]>
Commit | Line | Data |
---|---|---|
44127b65 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
44127b65 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
44127b65 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
44127b65 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
44127b65 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
44127b65 RD |
91 | #endif |
92 | ||
44127b65 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
44127b65 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
44127b65 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
44127b65 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | ||
125 | #endif | |
126 | ||
cc6dd355 | 127 | |
44127b65 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
44127b65 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
44127b65 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
44127b65 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
cc6dd355 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 | ||
200 | /* Contract support */ | |
201 | ||
202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
203 | ||
44127b65 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxOGLConstraint swig_types[0] | |
213 | #define SWIGTYPE_p_wxBrush swig_types[1] | |
214 | #define SWIGTYPE_p_wxColour swig_types[2] | |
215 | #define SWIGTYPE_p_wxShapeRegion swig_types[3] | |
216 | #define SWIGTYPE_p_wxDC swig_types[4] | |
217 | #define SWIGTYPE_p_wxRealPoint swig_types[5] | |
218 | #define SWIGTYPE_p_wxPyControlPoint swig_types[6] | |
219 | #define SWIGTYPE_p_wxArrowHead swig_types[7] | |
220 | #define SWIGTYPE_p_wxStringList swig_types[8] | |
221 | #define SWIGTYPE_p_wxPanel swig_types[9] | |
222 | #define SWIGTYPE_p_bool swig_types[10] | |
223 | #define SWIGTYPE_p_wxList swig_types[11] | |
224 | #define SWIGTYPE_p_wxFont swig_types[12] | |
225 | #define SWIGTYPE_p_wxScrolledWindow swig_types[13] | |
226 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
227 | #define SWIGTYPE_p_double swig_types[15] | |
228 | #define SWIGTYPE_p_wxPyDivisionShape swig_types[16] | |
229 | #define SWIGTYPE_p_wxPyDrawnShape swig_types[17] | |
230 | #define SWIGTYPE_p_wxPyPolygonShape swig_types[18] | |
231 | #define SWIGTYPE_p_wxBitmap swig_types[19] | |
232 | #define SWIGTYPE_p_wxObject swig_types[20] | |
233 | #define SWIGTYPE_p_wxPyBitmapShape swig_types[21] | |
234 | #define SWIGTYPE_p_wxString swig_types[22] | |
235 | #define SWIGTYPE_p_wxPyShapeEvtHandler swig_types[23] | |
236 | #define SWIGTYPE_p_wxEvtHandler swig_types[24] | |
237 | #define SWIGTYPE_p_wxPyEllipseShape swig_types[25] | |
238 | #define SWIGTYPE_p_wxPyShapeCanvas swig_types[26] | |
239 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
240 | #define SWIGTYPE_p_wxDiagram swig_types[28] | |
241 | #define SWIGTYPE_p_wxPyShape swig_types[29] | |
30d215aa RD |
242 | #define SWIGTYPE_p_wxAttachmentPoint swig_types[30] |
243 | #define SWIGTYPE_p_wxClassInfo swig_types[31] | |
244 | #define SWIGTYPE_p_wxPyLineShape swig_types[32] | |
245 | #define SWIGTYPE_p_wxPyRectangleShape swig_types[33] | |
246 | #define SWIGTYPE_p_wxPyCompositeShape swig_types[34] | |
247 | #define SWIGTYPE_p_wxPyCircleShape swig_types[35] | |
248 | #define SWIGTYPE_p_wxPen swig_types[36] | |
249 | #define SWIGTYPE_p_int swig_types[37] | |
250 | #define SWIGTYPE_p_wxPseudoMetaFile swig_types[38] | |
251 | #define SWIGTYPE_p_wxPyTextShape swig_types[39] | |
252 | #define SWIGTYPE_p_wxPyDividedShape swig_types[40] | |
253 | static swig_type_info *swig_types[42]; | |
44127b65 RD |
254 | |
255 | /* -------- TYPES TABLE (END) -------- */ | |
256 | ||
257 | ||
258 | /*----------------------------------------------- | |
259 | @(target):= _ogl.so | |
260 | ------------------------------------------------*/ | |
261 | #define SWIG_init init_ogl | |
262 | ||
263 | #define SWIG_name "_ogl" | |
264 | ||
265 | #include "wx/wxPython/wxPython.h" | |
266 | #include "wx/wxPython/pyclasses.h" | |
267 | #include "oglhelpers.h" | |
268 | ||
269 | ||
b2dc1044 | 270 | static const wxString wxPyEmptyString(wxEmptyString); |
44127b65 RD |
271 | |
272 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
273 | PyObject* o2; | |
274 | PyObject* o3; | |
275 | ||
276 | if (!target) { | |
277 | target = o; | |
278 | } else if (target == Py_None) { | |
279 | Py_DECREF(Py_None); | |
280 | target = o; | |
281 | } else { | |
282 | if (!PyTuple_Check(target)) { | |
283 | o2 = target; | |
284 | target = PyTuple_New(1); | |
285 | PyTuple_SetItem(target, 0, o2); | |
286 | } | |
287 | o3 = PyTuple_New(1); | |
288 | PyTuple_SetItem(o3, 0, o); | |
289 | ||
290 | o2 = target; | |
291 | target = PySequence_Concat(o2, o3); | |
292 | Py_DECREF(o2); | |
293 | Py_DECREF(o3); | |
294 | } | |
295 | return target; | |
296 | } | |
297 | ||
298 | ||
299 | WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler); | |
300 | ||
301 | void wxPyShapeEvtHandler__setOORInfo(wxPyShapeEvtHandler *self,PyObject *_self){ | |
302 | self->SetClientObject(new wxPyOORClientData(_self)); | |
303 | } | |
304 | ||
305 | WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape); | |
306 | ||
307 | PyObject *wxPyShape_GetChildren(wxPyShape *self){ | |
308 | wxList& list = self->GetChildren(); | |
309 | return wxPy_ConvertShapeList(&list); | |
310 | } | |
311 | PyObject *wxPyShape_GetLines(wxPyShape *self){ | |
312 | wxList& list = self->GetLines(); | |
313 | return wxPy_ConvertShapeList(&list); | |
314 | } | |
315 | PyObject *wxPyShape_GetRegions(wxPyShape *self){ | |
316 | wxList& list = self->GetRegions(); | |
317 | return wxPy_ConvertList(&list); | |
318 | } | |
30d215aa RD |
319 | PyObject *wxPyShape_GetAttachments(wxPyShape *self){ |
320 | wxList& list = self->GetAttachments(); | |
321 | return wxPy_ConvertList(&list); | |
322 | } | |
44127b65 RD |
323 | void wxPyShape_ApplyAttachmentOrdering(wxPyShape *self,PyObject *linesToSort){ |
324 | wxList* list = wxPy_wxListHelper(linesToSort, wxT("wxPyLineShape")); | |
325 | self->ApplyAttachmentOrdering(*list); | |
326 | delete list; | |
327 | } | |
328 | ||
329 | // Using this macro can sometimes provoke an Internal Compiler Error in MSVC | |
330 | // 6, so instead I'l just expand it out by hand... | |
331 | // WXSHAPE_IMP_CALLBACKS(wxPyRectangleShape, wxRectangleShape); | |
332 | ||
333 | IMP_PYCALLBACK__ (wxPyRectangleShape, wxRectangleShape, OnDelete); | |
334 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDraw); | |
335 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawContents); | |
336 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnDrawBranches); | |
337 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnMoveLinks); | |
338 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnErase); | |
339 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseContents); | |
340 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnHighlight); | |
341 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftClick); | |
342 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftDoubleClick); | |
343 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnRightClick); | |
344 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnSize); | |
345 | IMP_PYCALLBACK_BOOL_DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePre); | |
346 | IMP_PYCALLBACK__DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePost); | |
347 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragLeft); | |
348 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragLeft); | |
349 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragLeft); | |
350 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragRight); | |
351 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragRight); | |
352 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragRight); | |
353 | IMP_PYCALLBACK__DC4DBL (wxPyRectangleShape, wxRectangleShape, OnDrawOutline); | |
354 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawControlPoints); | |
355 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseControlPoints); | |
356 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnMoveLink); | |
357 | IMP_PYCALLBACK__WXCPBOOL2DBL2INT(wxPyRectangleShape, wxRectangleShape, OnSizingDragLeft); | |
358 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingBeginDragLeft); | |
359 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingEndDragLeft); | |
360 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnBeginSize); | |
361 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnEndSize) | |
362 | ||
363 | ||
364 | ||
365 | WXSHAPE_IMP_CALLBACKS(wxPyControlPoint, wxControlPoint); | |
366 | ||
367 | ||
368 | WXSHAPE_IMP_CALLBACKS(wxPyBitmapShape, wxBitmapShape); | |
369 | ||
370 | ||
371 | WXSHAPE_IMP_CALLBACKS(wxPyDrawnShape, wxDrawnShape); | |
372 | ||
373 | wxOGLConstraint *new_wxOGLConstraint(int type,wxPyShape *constraining,PyObject *constrained){ | |
374 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
375 | wxOGLConstraint* rv = new wxOGLConstraint(type, constraining, *list); | |
376 | delete list; | |
377 | return rv; | |
378 | } | |
379 | ||
380 | WXSHAPE_IMP_CALLBACKS(wxPyCompositeShape, wxCompositeShape); | |
381 | ||
382 | wxOGLConstraint *wxPyCompositeShape_AddConstrainedShapes(wxPyCompositeShape *self,int type,wxPyShape *constraining,PyObject *constrained){ | |
383 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
384 | wxOGLConstraint* rv = self->AddConstraint(type, constraining, *list); | |
385 | delete list; | |
386 | return rv; | |
387 | } | |
388 | PyObject *wxPyCompositeShape_GetConstraints(wxPyCompositeShape *self){ | |
389 | wxList& list = self->GetConstraints(); | |
390 | return wxPy_ConvertList(&list); | |
391 | } | |
392 | PyObject *wxPyCompositeShape_GetDivisions(wxPyCompositeShape *self){ | |
393 | wxList& list = self->GetDivisions(); | |
394 | return wxPy_ConvertShapeList(&list); | |
395 | } | |
396 | ||
397 | WXSHAPE_IMP_CALLBACKS(wxPyDividedShape, wxDividedShape); | |
398 | ||
399 | ||
400 | WXSHAPE_IMP_CALLBACKS(wxPyDivisionShape, wxDivisionShape); | |
401 | ||
402 | ||
403 | WXSHAPE_IMP_CALLBACKS(wxPyEllipseShape, wxEllipseShape); | |
404 | ||
405 | ||
406 | WXSHAPE_IMP_CALLBACKS(wxPyCircleShape, wxCircleShape); | |
407 | ||
408 | ||
409 | WXSHAPE_IMP_CALLBACKS(wxPyLineShape, wxLineShape); | |
410 | ||
411 | void wxPyLineShape_AddArrowOrdered(wxPyLineShape *self,wxArrowHead *arrow,PyObject *referenceList,int end){ | |
412 | wxList* list = wxPy_wxListHelper(referenceList, wxT("wxArrowHead")); | |
413 | self->AddArrowOrdered(arrow, *list, end); | |
414 | delete list; | |
415 | } | |
416 | PyObject *wxPyLineShape_GetLineControlPoints(wxPyLineShape *self){ | |
417 | wxList* list = self->GetLineControlPoints(); | |
418 | return wxPy_ConvertShapeList(list); | |
419 | } | |
420 | ||
421 | WXSHAPE_IMP_CALLBACKS(wxPyPolygonShape, wxPolygonShape); | |
422 | ||
423 | PyObject *wxPyPolygonShape_Create(wxPyPolygonShape *self,PyObject *points){ | |
424 | wxList* list = wxPy_wxRealPoint_ListHelper(points); | |
425 | if (list) { | |
426 | self->Create(list); | |
427 | Py_INCREF(Py_None); | |
428 | return Py_None; | |
429 | } | |
430 | else return NULL; | |
431 | } | |
432 | PyObject *wxPyPolygonShape_GetPoints(wxPyPolygonShape *self){ | |
433 | wxList* list = self->GetPoints(); | |
434 | PyObject* pyList; | |
435 | PyObject* pyObj; | |
436 | wxObject* wxObj; | |
437 | wxNode* node = list->GetFirst(); | |
438 | ||
30d215aa RD |
439 | wxPyBeginBlockThreads(); |
440 | pyList = PyList_New(0); | |
441 | while (node) { | |
442 | wxObj = node->GetData(); | |
443 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
444 | PyList_Append(pyList, pyObj); | |
445 | node = node->GetNext(); | |
446 | } | |
447 | wxPyEndBlockThreads(); | |
448 | return pyList; | |
449 | } | |
450 | PyObject *wxPyPolygonShape_GetOriginalPoints(wxPyPolygonShape *self){ | |
451 | wxList* list = self->GetOriginalPoints(); | |
452 | PyObject* pyList; | |
453 | PyObject* pyObj; | |
454 | wxObject* wxObj; | |
455 | wxNode* node = list->GetFirst(); | |
456 | ||
44127b65 RD |
457 | wxPyBeginBlockThreads(); |
458 | pyList = PyList_New(0); | |
459 | while (node) { | |
460 | wxObj = node->GetData(); | |
461 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
462 | PyList_Append(pyList, pyObj); | |
463 | node = node->GetNext(); | |
464 | } | |
465 | wxPyEndBlockThreads(); | |
466 | return pyList; | |
467 | } | |
468 | ||
469 | WXSHAPE_IMP_CALLBACKS(wxPyTextShape, wxTextShape); | |
470 | ||
471 | ||
472 | // Put some wx default wxChar* values into wxStrings. | |
473 | DECLARE_DEF_STRING(ShapeCanvasNameStr); | |
474 | ||
475 | PyObject *wxDiagram_GetShapeList(wxDiagram *self){ | |
476 | wxList* list = self->GetShapeList(); | |
477 | return wxPy_ConvertShapeList(list); | |
478 | } | |
479 | ||
480 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft); | |
481 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight); | |
482 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft); | |
483 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragRight); | |
484 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragLeft); | |
485 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragRight); | |
486 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnLeftClick); | |
487 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnRightClick); | |
488 | ||
489 | ||
490 | //--------------------------------------------------------------------------- | |
491 | ||
492 | // Convert from a Python list to a list of className objects. This one will | |
493 | // work for any class for the VERY generic cases, but beyond that the helper | |
494 | // needs to know more about the type. | |
495 | wxList* wxPy_wxListHelper(PyObject* pyList, const wxChar* className) { | |
496 | wxPyBeginBlockThreads(); | |
497 | if (!PyList_Check(pyList)) { | |
498 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
499 | wxPyEndBlockThreads(); | |
500 | return NULL; | |
501 | } | |
502 | int count = PyList_Size(pyList); | |
503 | wxList* list = new wxList; | |
504 | if (! list) { | |
505 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
506 | wxPyEndBlockThreads(); | |
507 | return NULL; | |
508 | } | |
509 | for (int x=0; x<count; x++) { | |
510 | PyObject* pyo = PyList_GetItem(pyList, x); | |
511 | wxObject* wxo = NULL; | |
512 | ||
513 | if ( !wxPyConvertSwigPtr(pyo, (void **)&wxo, className) ) { | |
514 | wxString errmsg; | |
515 | errmsg.Printf(wxT("Type error, expected list of %s objects"), className); | |
516 | PyErr_SetString(PyExc_TypeError, errmsg.mb_str()); | |
517 | wxPyEndBlockThreads(); | |
518 | return NULL; | |
519 | } | |
520 | list->Append(wxo); | |
521 | } | |
522 | wxPyEndBlockThreads(); | |
523 | return list; | |
524 | } | |
525 | ||
526 | //--------------------------------------------------------------------------- | |
527 | ||
528 | wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList) { | |
529 | wxPyBeginBlockThreads(); | |
530 | if (!PyList_Check(pyList)) { | |
531 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
532 | wxPyEndBlockThreads(); | |
533 | return NULL; | |
534 | } | |
535 | int count = PyList_Size(pyList); | |
536 | wxList* list = new wxList; | |
537 | if (! list) { | |
538 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
539 | wxPyEndBlockThreads(); | |
540 | return NULL; | |
541 | } | |
542 | for (int x=0; x<count; x++) { | |
543 | PyObject* pyo = PyList_GetItem(pyList, x); | |
544 | ||
545 | if (PyTuple_Check(pyo)) { | |
546 | PyObject* o1 = PyNumber_Float(PyTuple_GetItem(pyo, 0)); | |
547 | PyObject* o2 = PyNumber_Float(PyTuple_GetItem(pyo, 1)); | |
548 | ||
549 | double val1 = (o1 ? PyFloat_AsDouble(o1) : 0.0); | |
550 | double val2 = (o2 ? PyFloat_AsDouble(o2) : 0.0); | |
551 | ||
552 | list->Append((wxObject*) new wxRealPoint(val1, val2)); | |
553 | ||
554 | } else { | |
555 | wxRealPoint* wxo = NULL; | |
556 | if (wxPyConvertSwigPtr(pyo, (void **)&wxo, wxT("wxRealPoint"))) { | |
557 | PyErr_SetString(PyExc_TypeError, "Type error, expected list of wxRealPoint objects or 2-tuples"); | |
558 | wxPyEndBlockThreads(); | |
559 | return NULL; | |
560 | } | |
561 | list->Append((wxObject*) new wxRealPoint(*wxo)); | |
562 | } | |
563 | } | |
564 | wxPyEndBlockThreads(); | |
565 | return list; | |
566 | } | |
567 | ||
568 | //--------------------------------------------------------------------------- | |
569 | ||
570 | PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source) { | |
571 | PyObject* target = NULL; | |
572 | ||
573 | if (source && wxIsKindOf(source, wxShapeEvtHandler)) { | |
574 | // If it's derived from wxShapeEvtHandler then there may | |
575 | // already be a pointer to a Python object that we can use | |
576 | // in the OOR data. | |
577 | wxShapeEvtHandler* seh = (wxShapeEvtHandler*)source; | |
578 | wxPyOORClientData* data = (wxPyOORClientData*)seh->GetClientObject(); | |
579 | if (data) { | |
580 | target = data->m_obj; | |
581 | Py_INCREF(target); | |
582 | } | |
583 | } | |
584 | if (! target) { | |
585 | target = wxPyMake_wxObject2(source, FALSE); | |
586 | if (target != Py_None) | |
587 | ((wxShapeEvtHandler*)source)->SetClientObject(new wxPyOORClientData(target)); | |
588 | } | |
589 | return target; | |
590 | } | |
591 | ||
592 | //--------------------------------------------------------------------------- | |
593 | ||
594 | PyObject* wxPy_ConvertShapeList(wxListBase* listbase) { | |
595 | wxList* list = (wxList*)listbase; | |
596 | PyObject* pyList; | |
597 | PyObject* pyObj; | |
598 | wxObject* wxObj; | |
599 | wxNode* node = list->GetFirst(); | |
600 | ||
601 | wxPyBeginBlockThreads(); | |
602 | pyList = PyList_New(0); | |
603 | while (node) { | |
604 | wxObj = node->GetData(); | |
605 | pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj); | |
606 | PyList_Append(pyList, pyObj); | |
607 | node = node->GetNext(); | |
608 | } | |
609 | wxPyEndBlockThreads(); | |
610 | return pyList; | |
611 | } | |
612 | ||
613 | ||
614 | //--------------------------------------------------------------------------- | |
615 | ||
616 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeCanvas, wxShapeCanvas); | |
617 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeEvtHandler, wxShapeEvtHandler); | |
618 | IMPLEMENT_ABSTRACT_CLASS(wxPyShape, wxShape); | |
619 | IMPLEMENT_DYNAMIC_CLASS(wxPyRectangleShape, wxRectangleShape); | |
620 | IMPLEMENT_DYNAMIC_CLASS(wxPyControlPoint, wxControlPoint); | |
621 | IMPLEMENT_DYNAMIC_CLASS(wxPyBitmapShape, wxBitmapShape); | |
622 | IMPLEMENT_DYNAMIC_CLASS(wxPyDrawnShape, wxDrawnShape); | |
623 | IMPLEMENT_DYNAMIC_CLASS(wxPyCompositeShape, wxCompositeShape); | |
624 | IMPLEMENT_DYNAMIC_CLASS(wxPyDividedShape, wxDividedShape); | |
625 | IMPLEMENT_DYNAMIC_CLASS(wxPyDivisionShape, wxDivisionShape); | |
626 | IMPLEMENT_DYNAMIC_CLASS(wxPyEllipseShape, wxEllipseShape); | |
627 | IMPLEMENT_DYNAMIC_CLASS(wxPyCircleShape, wxCircleShape); | |
628 | IMPLEMENT_DYNAMIC_CLASS(wxPyLineShape, wxLineShape); | |
629 | IMPLEMENT_DYNAMIC_CLASS(wxPyPolygonShape, wxPolygonShape); | |
630 | IMPLEMENT_DYNAMIC_CLASS(wxPyTextShape, wxTextShape); | |
631 | ||
632 | //--------------------------------------------------------------------------- | |
633 | ||
634 | // extern "C" SWIGEXPORT(void) initoglbasicc(); | |
635 | // extern "C" SWIGEXPORT(void) initoglshapesc(); | |
636 | // extern "C" SWIGEXPORT(void) initoglshapes2c(); | |
637 | // extern "C" SWIGEXPORT(void) initoglcanvasc(); | |
638 | ||
639 | #ifdef __cplusplus | |
640 | extern "C" { | |
641 | #endif | |
642 | static PyObject *_wrap_new_ShapeRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
643 | PyObject *resultobj; | |
644 | wxShapeRegion *result; | |
645 | char *kwnames[] = { | |
646 | NULL | |
647 | }; | |
648 | ||
649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ShapeRegion",kwnames)) goto fail; | |
650 | { | |
651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
652 | result = (wxShapeRegion *)new wxShapeRegion(); | |
653 | ||
654 | wxPyEndAllowThreads(__tstate); | |
655 | if (PyErr_Occurred()) SWIG_fail; | |
656 | } | |
657 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShapeRegion, 1); | |
658 | return resultobj; | |
659 | fail: | |
660 | return NULL; | |
661 | } | |
662 | ||
663 | ||
664 | static PyObject *_wrap_ShapeRegion_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
665 | PyObject *resultobj; | |
666 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
667 | wxString *arg2 = 0 ; | |
668 | bool temp2 = False ; | |
669 | PyObject * obj0 = 0 ; | |
670 | PyObject * obj1 = 0 ; | |
671 | char *kwnames[] = { | |
672 | (char *) "self",(char *) "s", NULL | |
673 | }; | |
674 | ||
675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetText",kwnames,&obj0,&obj1)) goto fail; | |
676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
677 | { | |
678 | arg2 = wxString_in_helper(obj1); | |
679 | if (arg2 == NULL) SWIG_fail; | |
680 | temp2 = True; | |
681 | } | |
682 | { | |
683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
684 | (arg1)->SetText((wxString const &)*arg2); | |
685 | ||
686 | wxPyEndAllowThreads(__tstate); | |
687 | if (PyErr_Occurred()) SWIG_fail; | |
688 | } | |
689 | Py_INCREF(Py_None); resultobj = Py_None; | |
690 | { | |
691 | if (temp2) | |
692 | delete arg2; | |
693 | } | |
694 | return resultobj; | |
695 | fail: | |
696 | { | |
697 | if (temp2) | |
698 | delete arg2; | |
699 | } | |
700 | return NULL; | |
701 | } | |
702 | ||
703 | ||
704 | static PyObject *_wrap_ShapeRegion_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
705 | PyObject *resultobj; | |
706 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
707 | wxFont *arg2 = (wxFont *) 0 ; | |
708 | PyObject * obj0 = 0 ; | |
709 | PyObject * obj1 = 0 ; | |
710 | char *kwnames[] = { | |
711 | (char *) "self",(char *) "f", NULL | |
712 | }; | |
713 | ||
714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
716 | { | |
717 | wxFont* temp; | |
718 | if (obj1) { | |
719 | if (obj1 == Py_None) { | |
720 | temp = NULL; | |
721 | } | |
722 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
723 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
724 | return NULL; | |
725 | } | |
726 | } | |
727 | if (temp) | |
728 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
729 | temp->GetFamily(), | |
730 | temp->GetStyle(), | |
731 | temp->GetWeight(), | |
732 | temp->GetUnderlined(), | |
733 | temp->GetFaceName(), | |
734 | temp->GetEncoding()); | |
735 | else | |
736 | arg2 = NULL; | |
737 | } | |
738 | { | |
739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
740 | (arg1)->SetFont(arg2); | |
741 | ||
742 | wxPyEndAllowThreads(__tstate); | |
743 | if (PyErr_Occurred()) SWIG_fail; | |
744 | } | |
745 | Py_INCREF(Py_None); resultobj = Py_None; | |
746 | return resultobj; | |
747 | fail: | |
748 | return NULL; | |
749 | } | |
750 | ||
751 | ||
752 | static PyObject *_wrap_ShapeRegion_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
753 | PyObject *resultobj; | |
754 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
755 | double arg2 ; | |
756 | double arg3 ; | |
757 | PyObject * obj0 = 0 ; | |
758 | char *kwnames[] = { | |
759 | (char *) "self",(char *) "w",(char *) "h", NULL | |
760 | }; | |
761 | ||
762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:ShapeRegion_SetMinSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
764 | { | |
765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
766 | (arg1)->SetMinSize(arg2,arg3); | |
767 | ||
768 | wxPyEndAllowThreads(__tstate); | |
769 | if (PyErr_Occurred()) SWIG_fail; | |
770 | } | |
771 | Py_INCREF(Py_None); resultobj = Py_None; | |
772 | return resultobj; | |
773 | fail: | |
774 | return NULL; | |
775 | } | |
776 | ||
777 | ||
778 | static PyObject *_wrap_ShapeRegion_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject *resultobj; | |
780 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
781 | double arg2 ; | |
782 | double arg3 ; | |
783 | PyObject * obj0 = 0 ; | |
784 | char *kwnames[] = { | |
785 | (char *) "self",(char *) "w",(char *) "h", NULL | |
786 | }; | |
787 | ||
788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:ShapeRegion_SetSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
790 | { | |
791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
792 | (arg1)->SetSize(arg2,arg3); | |
793 | ||
794 | wxPyEndAllowThreads(__tstate); | |
795 | if (PyErr_Occurred()) SWIG_fail; | |
796 | } | |
797 | Py_INCREF(Py_None); resultobj = Py_None; | |
798 | return resultobj; | |
799 | fail: | |
800 | return NULL; | |
801 | } | |
802 | ||
803 | ||
804 | static PyObject *_wrap_ShapeRegion_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
805 | PyObject *resultobj; | |
806 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
807 | double arg2 ; | |
808 | double arg3 ; | |
809 | PyObject * obj0 = 0 ; | |
810 | char *kwnames[] = { | |
811 | (char *) "self",(char *) "x",(char *) "y", NULL | |
812 | }; | |
813 | ||
814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:ShapeRegion_SetPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
816 | { | |
817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
818 | (arg1)->SetPosition(arg2,arg3); | |
819 | ||
820 | wxPyEndAllowThreads(__tstate); | |
821 | if (PyErr_Occurred()) SWIG_fail; | |
822 | } | |
823 | Py_INCREF(Py_None); resultobj = Py_None; | |
824 | return resultobj; | |
825 | fail: | |
826 | return NULL; | |
827 | } | |
828 | ||
829 | ||
830 | static PyObject *_wrap_ShapeRegion_SetProportions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
831 | PyObject *resultobj; | |
832 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
833 | double arg2 ; | |
834 | double arg3 ; | |
835 | PyObject * obj0 = 0 ; | |
836 | char *kwnames[] = { | |
837 | (char *) "self",(char *) "x",(char *) "y", NULL | |
838 | }; | |
839 | ||
840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:ShapeRegion_SetProportions",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
842 | { | |
843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
844 | (arg1)->SetProportions(arg2,arg3); | |
845 | ||
846 | wxPyEndAllowThreads(__tstate); | |
847 | if (PyErr_Occurred()) SWIG_fail; | |
848 | } | |
849 | Py_INCREF(Py_None); resultobj = Py_None; | |
850 | return resultobj; | |
851 | fail: | |
852 | return NULL; | |
853 | } | |
854 | ||
855 | ||
856 | static PyObject *_wrap_ShapeRegion_SetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
857 | PyObject *resultobj; | |
858 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
859 | int arg2 ; | |
860 | PyObject * obj0 = 0 ; | |
861 | char *kwnames[] = { | |
862 | (char *) "self",(char *) "mode", NULL | |
863 | }; | |
864 | ||
865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ShapeRegion_SetFormatMode",kwnames,&obj0,&arg2)) goto fail; | |
866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
867 | { | |
868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
869 | (arg1)->SetFormatMode(arg2); | |
870 | ||
871 | wxPyEndAllowThreads(__tstate); | |
872 | if (PyErr_Occurred()) SWIG_fail; | |
873 | } | |
874 | Py_INCREF(Py_None); resultobj = Py_None; | |
875 | return resultobj; | |
876 | fail: | |
877 | return NULL; | |
878 | } | |
879 | ||
880 | ||
881 | static PyObject *_wrap_ShapeRegion_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
882 | PyObject *resultobj; | |
883 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
884 | wxString *arg2 = 0 ; | |
885 | bool temp2 = False ; | |
886 | PyObject * obj0 = 0 ; | |
887 | PyObject * obj1 = 0 ; | |
888 | char *kwnames[] = { | |
889 | (char *) "self",(char *) "s", NULL | |
890 | }; | |
891 | ||
892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetName",kwnames,&obj0,&obj1)) goto fail; | |
893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
894 | { | |
895 | arg2 = wxString_in_helper(obj1); | |
896 | if (arg2 == NULL) SWIG_fail; | |
897 | temp2 = True; | |
898 | } | |
899 | { | |
900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
901 | (arg1)->SetName((wxString const &)*arg2); | |
902 | ||
903 | wxPyEndAllowThreads(__tstate); | |
904 | if (PyErr_Occurred()) SWIG_fail; | |
905 | } | |
906 | Py_INCREF(Py_None); resultobj = Py_None; | |
907 | { | |
908 | if (temp2) | |
909 | delete arg2; | |
910 | } | |
911 | return resultobj; | |
912 | fail: | |
913 | { | |
914 | if (temp2) | |
915 | delete arg2; | |
916 | } | |
917 | return NULL; | |
918 | } | |
919 | ||
920 | ||
921 | static PyObject *_wrap_ShapeRegion_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
922 | PyObject *resultobj; | |
923 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
924 | wxString *arg2 = 0 ; | |
925 | bool temp2 = False ; | |
926 | PyObject * obj0 = 0 ; | |
927 | PyObject * obj1 = 0 ; | |
928 | char *kwnames[] = { | |
929 | (char *) "self",(char *) "col", NULL | |
930 | }; | |
931 | ||
932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
934 | { | |
935 | arg2 = wxString_in_helper(obj1); | |
936 | if (arg2 == NULL) SWIG_fail; | |
937 | temp2 = True; | |
938 | } | |
939 | { | |
940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
941 | (arg1)->SetColour((wxString const &)*arg2); | |
942 | ||
943 | wxPyEndAllowThreads(__tstate); | |
944 | if (PyErr_Occurred()) SWIG_fail; | |
945 | } | |
946 | Py_INCREF(Py_None); resultobj = Py_None; | |
947 | { | |
948 | if (temp2) | |
949 | delete arg2; | |
950 | } | |
951 | return resultobj; | |
952 | fail: | |
953 | { | |
954 | if (temp2) | |
955 | delete arg2; | |
956 | } | |
957 | return NULL; | |
958 | } | |
959 | ||
960 | ||
961 | static PyObject *_wrap_ShapeRegion_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject *resultobj; | |
963 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
964 | wxString result; | |
965 | PyObject * obj0 = 0 ; | |
966 | char *kwnames[] = { | |
967 | (char *) "self", NULL | |
968 | }; | |
969 | ||
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetText",kwnames,&obj0)) goto fail; | |
971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
972 | { | |
973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
974 | result = (arg1)->GetText(); | |
975 | ||
976 | wxPyEndAllowThreads(__tstate); | |
977 | if (PyErr_Occurred()) SWIG_fail; | |
978 | } | |
979 | { | |
980 | #if wxUSE_UNICODE | |
981 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
982 | #else | |
983 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
984 | #endif | |
985 | } | |
986 | return resultobj; | |
987 | fail: | |
988 | return NULL; | |
989 | } | |
990 | ||
991 | ||
992 | static PyObject *_wrap_ShapeRegion_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject *resultobj; | |
994 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
995 | wxFont *result; | |
996 | PyObject * obj0 = 0 ; | |
997 | char *kwnames[] = { | |
998 | (char *) "self", NULL | |
999 | }; | |
1000 | ||
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFont",kwnames,&obj0)) goto fail; | |
1002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1003 | { | |
1004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1005 | result = (wxFont *)(arg1)->GetFont(); | |
1006 | ||
1007 | wxPyEndAllowThreads(__tstate); | |
1008 | if (PyErr_Occurred()) SWIG_fail; | |
1009 | } | |
1010 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
1011 | return resultobj; | |
1012 | fail: | |
1013 | return NULL; | |
1014 | } | |
1015 | ||
1016 | ||
1017 | static PyObject *_wrap_ShapeRegion_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1018 | PyObject *resultobj; | |
1019 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1020 | double *arg2 = (double *) 0 ; | |
1021 | double *arg3 = (double *) 0 ; | |
1022 | double temp2 ; | |
1023 | double temp3 ; | |
1024 | PyObject * obj0 = 0 ; | |
1025 | char *kwnames[] = { | |
1026 | (char *) "self", NULL | |
1027 | }; | |
1028 | ||
1029 | arg2 = &temp2; | |
1030 | arg3 = &temp3; | |
1031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetMinSize",kwnames,&obj0)) goto fail; | |
1032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1033 | { | |
1034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1035 | (arg1)->GetMinSize(arg2,arg3); | |
1036 | ||
1037 | wxPyEndAllowThreads(__tstate); | |
1038 | if (PyErr_Occurred()) SWIG_fail; | |
1039 | } | |
1040 | Py_INCREF(Py_None); resultobj = Py_None; | |
1041 | { | |
1042 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
1043 | resultobj = t_output_helper(resultobj,o); | |
1044 | } | |
1045 | { | |
1046 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
1047 | resultobj = t_output_helper(resultobj,o); | |
1048 | } | |
1049 | return resultobj; | |
1050 | fail: | |
1051 | return NULL; | |
1052 | } | |
1053 | ||
1054 | ||
1055 | static PyObject *_wrap_ShapeRegion_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1056 | PyObject *resultobj; | |
1057 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1058 | double *arg2 = (double *) 0 ; | |
1059 | double *arg3 = (double *) 0 ; | |
1060 | double temp2 ; | |
1061 | double temp3 ; | |
1062 | PyObject * obj0 = 0 ; | |
1063 | char *kwnames[] = { | |
1064 | (char *) "self", NULL | |
1065 | }; | |
1066 | ||
1067 | arg2 = &temp2; | |
1068 | arg3 = &temp3; | |
1069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetProportion",kwnames,&obj0)) goto fail; | |
1070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1071 | { | |
1072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1073 | (arg1)->GetProportion(arg2,arg3); | |
1074 | ||
1075 | wxPyEndAllowThreads(__tstate); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | } | |
1078 | Py_INCREF(Py_None); resultobj = Py_None; | |
1079 | { | |
1080 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
1081 | resultobj = t_output_helper(resultobj,o); | |
1082 | } | |
1083 | { | |
1084 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
1085 | resultobj = t_output_helper(resultobj,o); | |
1086 | } | |
1087 | return resultobj; | |
1088 | fail: | |
1089 | return NULL; | |
1090 | } | |
1091 | ||
1092 | ||
1093 | static PyObject *_wrap_ShapeRegion_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1094 | PyObject *resultobj; | |
1095 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1096 | double *arg2 = (double *) 0 ; | |
1097 | double *arg3 = (double *) 0 ; | |
1098 | double temp2 ; | |
1099 | double temp3 ; | |
1100 | PyObject * obj0 = 0 ; | |
1101 | char *kwnames[] = { | |
1102 | (char *) "self", NULL | |
1103 | }; | |
1104 | ||
1105 | arg2 = &temp2; | |
1106 | arg3 = &temp3; | |
1107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetSize",kwnames,&obj0)) goto fail; | |
1108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1109 | { | |
1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1111 | (arg1)->GetSize(arg2,arg3); | |
1112 | ||
1113 | wxPyEndAllowThreads(__tstate); | |
1114 | if (PyErr_Occurred()) SWIG_fail; | |
1115 | } | |
1116 | Py_INCREF(Py_None); resultobj = Py_None; | |
1117 | { | |
1118 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
1119 | resultobj = t_output_helper(resultobj,o); | |
1120 | } | |
1121 | { | |
1122 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
1123 | resultobj = t_output_helper(resultobj,o); | |
1124 | } | |
1125 | return resultobj; | |
1126 | fail: | |
1127 | return NULL; | |
1128 | } | |
1129 | ||
1130 | ||
1131 | static PyObject *_wrap_ShapeRegion_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1132 | PyObject *resultobj; | |
1133 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1134 | double *arg2 = (double *) 0 ; | |
1135 | double *arg3 = (double *) 0 ; | |
1136 | double temp2 ; | |
1137 | double temp3 ; | |
1138 | PyObject * obj0 = 0 ; | |
1139 | char *kwnames[] = { | |
1140 | (char *) "self", NULL | |
1141 | }; | |
1142 | ||
1143 | arg2 = &temp2; | |
1144 | arg3 = &temp3; | |
1145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPosition",kwnames,&obj0)) goto fail; | |
1146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1147 | { | |
1148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1149 | (arg1)->GetPosition(arg2,arg3); | |
1150 | ||
1151 | wxPyEndAllowThreads(__tstate); | |
1152 | if (PyErr_Occurred()) SWIG_fail; | |
1153 | } | |
1154 | Py_INCREF(Py_None); resultobj = Py_None; | |
1155 | { | |
1156 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
1157 | resultobj = t_output_helper(resultobj,o); | |
1158 | } | |
1159 | { | |
1160 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
1161 | resultobj = t_output_helper(resultobj,o); | |
1162 | } | |
1163 | return resultobj; | |
1164 | fail: | |
1165 | return NULL; | |
1166 | } | |
1167 | ||
1168 | ||
1169 | static PyObject *_wrap_ShapeRegion_GetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1170 | PyObject *resultobj; | |
1171 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1172 | int result; | |
1173 | PyObject * obj0 = 0 ; | |
1174 | char *kwnames[] = { | |
1175 | (char *) "self", NULL | |
1176 | }; | |
1177 | ||
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormatMode",kwnames,&obj0)) goto fail; | |
1179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1180 | { | |
1181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1182 | result = (int)(arg1)->GetFormatMode(); | |
1183 | ||
1184 | wxPyEndAllowThreads(__tstate); | |
1185 | if (PyErr_Occurred()) SWIG_fail; | |
1186 | } | |
1187 | resultobj = PyInt_FromLong((long)result); | |
1188 | return resultobj; | |
1189 | fail: | |
1190 | return NULL; | |
1191 | } | |
1192 | ||
1193 | ||
1194 | static PyObject *_wrap_ShapeRegion_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1195 | PyObject *resultobj; | |
1196 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1197 | wxString result; | |
1198 | PyObject * obj0 = 0 ; | |
1199 | char *kwnames[] = { | |
1200 | (char *) "self", NULL | |
1201 | }; | |
1202 | ||
1203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetName",kwnames,&obj0)) goto fail; | |
1204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1205 | { | |
1206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1207 | result = (arg1)->GetName(); | |
1208 | ||
1209 | wxPyEndAllowThreads(__tstate); | |
1210 | if (PyErr_Occurred()) SWIG_fail; | |
1211 | } | |
1212 | { | |
1213 | #if wxUSE_UNICODE | |
1214 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1215 | #else | |
1216 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1217 | #endif | |
1218 | } | |
1219 | return resultobj; | |
1220 | fail: | |
1221 | return NULL; | |
1222 | } | |
1223 | ||
1224 | ||
1225 | static PyObject *_wrap_ShapeRegion_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1226 | PyObject *resultobj; | |
1227 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1228 | wxString result; | |
1229 | PyObject * obj0 = 0 ; | |
1230 | char *kwnames[] = { | |
1231 | (char *) "self", NULL | |
1232 | }; | |
1233 | ||
1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetColour",kwnames,&obj0)) goto fail; | |
1235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1236 | { | |
1237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1238 | result = (arg1)->GetColour(); | |
1239 | ||
1240 | wxPyEndAllowThreads(__tstate); | |
1241 | if (PyErr_Occurred()) SWIG_fail; | |
1242 | } | |
1243 | { | |
1244 | #if wxUSE_UNICODE | |
1245 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1246 | #else | |
1247 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1248 | #endif | |
1249 | } | |
1250 | return resultobj; | |
1251 | fail: | |
1252 | return NULL; | |
1253 | } | |
1254 | ||
1255 | ||
1256 | static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1257 | PyObject *resultobj; | |
1258 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
093d613e | 1259 | wxColour result; |
44127b65 RD |
1260 | PyObject * obj0 = 0 ; |
1261 | char *kwnames[] = { | |
1262 | (char *) "self", NULL | |
1263 | }; | |
1264 | ||
1265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualColourObject",kwnames,&obj0)) goto fail; | |
1266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1267 | { | |
1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d613e | 1269 | result = (arg1)->GetActualColourObject(); |
44127b65 RD |
1270 | |
1271 | wxPyEndAllowThreads(__tstate); | |
1272 | if (PyErr_Occurred()) SWIG_fail; | |
1273 | } | |
093d613e RD |
1274 | { |
1275 | wxColour * resultptr; | |
1276 | resultptr = new wxColour((wxColour &) result); | |
1277 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1278 | } | |
44127b65 RD |
1279 | return resultobj; |
1280 | fail: | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
1285 | static PyObject *_wrap_ShapeRegion_GetFormattedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1286 | PyObject *resultobj; | |
1287 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1288 | wxList *result; | |
1289 | PyObject * obj0 = 0 ; | |
1290 | char *kwnames[] = { | |
1291 | (char *) "self", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormattedText",kwnames,&obj0)) goto fail; | |
1295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1296 | { | |
1297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1298 | { | |
1299 | wxList &_result_ref = (arg1)->GetFormattedText(); | |
1300 | result = (wxList *) &_result_ref; | |
1301 | } | |
1302 | ||
1303 | wxPyEndAllowThreads(__tstate); | |
1304 | if (PyErr_Occurred()) SWIG_fail; | |
1305 | } | |
1306 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxList, 0); | |
1307 | return resultobj; | |
1308 | fail: | |
1309 | return NULL; | |
1310 | } | |
1311 | ||
1312 | ||
1313 | static PyObject *_wrap_ShapeRegion_GetPenColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1314 | PyObject *resultobj; | |
1315 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1316 | wxString result; | |
1317 | PyObject * obj0 = 0 ; | |
1318 | char *kwnames[] = { | |
1319 | (char *) "self", NULL | |
1320 | }; | |
1321 | ||
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenColour",kwnames,&obj0)) goto fail; | |
1323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1324 | { | |
1325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1326 | result = (arg1)->GetPenColour(); | |
1327 | ||
1328 | wxPyEndAllowThreads(__tstate); | |
1329 | if (PyErr_Occurred()) SWIG_fail; | |
1330 | } | |
1331 | { | |
1332 | #if wxUSE_UNICODE | |
1333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1334 | #else | |
1335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1336 | #endif | |
1337 | } | |
1338 | return resultobj; | |
1339 | fail: | |
1340 | return NULL; | |
1341 | } | |
1342 | ||
1343 | ||
1344 | static PyObject *_wrap_ShapeRegion_GetPenStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject *resultobj; | |
1346 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1347 | int result; | |
1348 | PyObject * obj0 = 0 ; | |
1349 | char *kwnames[] = { | |
1350 | (char *) "self", NULL | |
1351 | }; | |
1352 | ||
1353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenStyle",kwnames,&obj0)) goto fail; | |
1354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1355 | { | |
1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1357 | result = (int)(arg1)->GetPenStyle(); | |
1358 | ||
1359 | wxPyEndAllowThreads(__tstate); | |
1360 | if (PyErr_Occurred()) SWIG_fail; | |
1361 | } | |
1362 | resultobj = PyInt_FromLong((long)result); | |
1363 | return resultobj; | |
1364 | fail: | |
1365 | return NULL; | |
1366 | } | |
1367 | ||
1368 | ||
1369 | static PyObject *_wrap_ShapeRegion_SetPenStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject *resultobj; | |
1371 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1372 | int arg2 ; | |
1373 | PyObject * obj0 = 0 ; | |
1374 | char *kwnames[] = { | |
1375 | (char *) "self",(char *) "style", NULL | |
1376 | }; | |
1377 | ||
1378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ShapeRegion_SetPenStyle",kwnames,&obj0,&arg2)) goto fail; | |
1379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1380 | { | |
1381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1382 | (arg1)->SetPenStyle(arg2); | |
1383 | ||
1384 | wxPyEndAllowThreads(__tstate); | |
1385 | if (PyErr_Occurred()) SWIG_fail; | |
1386 | } | |
1387 | Py_INCREF(Py_None); resultobj = Py_None; | |
1388 | return resultobj; | |
1389 | fail: | |
1390 | return NULL; | |
1391 | } | |
1392 | ||
1393 | ||
1394 | static PyObject *_wrap_ShapeRegion_SetPenColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject *resultobj; | |
1396 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1397 | wxString *arg2 = 0 ; | |
1398 | bool temp2 = False ; | |
1399 | PyObject * obj0 = 0 ; | |
1400 | PyObject * obj1 = 0 ; | |
1401 | char *kwnames[] = { | |
1402 | (char *) "self",(char *) "col", NULL | |
1403 | }; | |
1404 | ||
1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetPenColour",kwnames,&obj0,&obj1)) goto fail; | |
1406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1407 | { | |
1408 | arg2 = wxString_in_helper(obj1); | |
1409 | if (arg2 == NULL) SWIG_fail; | |
1410 | temp2 = True; | |
1411 | } | |
1412 | { | |
1413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1414 | (arg1)->SetPenColour((wxString const &)*arg2); | |
1415 | ||
1416 | wxPyEndAllowThreads(__tstate); | |
1417 | if (PyErr_Occurred()) SWIG_fail; | |
1418 | } | |
1419 | Py_INCREF(Py_None); resultobj = Py_None; | |
1420 | { | |
1421 | if (temp2) | |
1422 | delete arg2; | |
1423 | } | |
1424 | return resultobj; | |
1425 | fail: | |
1426 | { | |
1427 | if (temp2) | |
1428 | delete arg2; | |
1429 | } | |
1430 | return NULL; | |
1431 | } | |
1432 | ||
1433 | ||
1434 | static PyObject *_wrap_ShapeRegion_GetActualPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject *resultobj; | |
1436 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1437 | wxPen *result; | |
1438 | PyObject * obj0 = 0 ; | |
1439 | char *kwnames[] = { | |
1440 | (char *) "self", NULL | |
1441 | }; | |
1442 | ||
1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualPen",kwnames,&obj0)) goto fail; | |
1444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1445 | { | |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | result = (wxPen *)(arg1)->GetActualPen(); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
1452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
1453 | return resultobj; | |
1454 | fail: | |
1455 | return NULL; | |
1456 | } | |
1457 | ||
1458 | ||
1459 | static PyObject *_wrap_ShapeRegion_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject *resultobj; | |
1461 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1462 | double result; | |
1463 | PyObject * obj0 = 0 ; | |
1464 | char *kwnames[] = { | |
1465 | (char *) "self", NULL | |
1466 | }; | |
1467 | ||
1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetWidth",kwnames,&obj0)) goto fail; | |
1469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1470 | { | |
1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1472 | result = (double)(arg1)->GetWidth(); | |
1473 | ||
1474 | wxPyEndAllowThreads(__tstate); | |
1475 | if (PyErr_Occurred()) SWIG_fail; | |
1476 | } | |
1477 | resultobj = PyFloat_FromDouble(result); | |
1478 | return resultobj; | |
1479 | fail: | |
1480 | return NULL; | |
1481 | } | |
1482 | ||
1483 | ||
1484 | static PyObject *_wrap_ShapeRegion_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1485 | PyObject *resultobj; | |
1486 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1487 | double result; | |
1488 | PyObject * obj0 = 0 ; | |
1489 | char *kwnames[] = { | |
1490 | (char *) "self", NULL | |
1491 | }; | |
1492 | ||
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetHeight",kwnames,&obj0)) goto fail; | |
1494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1495 | { | |
1496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1497 | result = (double)(arg1)->GetHeight(); | |
1498 | ||
1499 | wxPyEndAllowThreads(__tstate); | |
1500 | if (PyErr_Occurred()) SWIG_fail; | |
1501 | } | |
1502 | resultobj = PyFloat_FromDouble(result); | |
1503 | return resultobj; | |
1504 | fail: | |
1505 | return NULL; | |
1506 | } | |
1507 | ||
1508 | ||
1509 | static PyObject *_wrap_ShapeRegion_ClearText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject *resultobj; | |
1511 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1512 | PyObject * obj0 = 0 ; | |
1513 | char *kwnames[] = { | |
1514 | (char *) "self", NULL | |
1515 | }; | |
1516 | ||
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_ClearText",kwnames,&obj0)) goto fail; | |
1518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1519 | { | |
1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1521 | (arg1)->ClearText(); | |
1522 | ||
1523 | wxPyEndAllowThreads(__tstate); | |
1524 | if (PyErr_Occurred()) SWIG_fail; | |
1525 | } | |
1526 | Py_INCREF(Py_None); resultobj = Py_None; | |
1527 | return resultobj; | |
1528 | fail: | |
1529 | return NULL; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | static PyObject * ShapeRegion_swigregister(PyObject *self, PyObject *args) { | |
1534 | PyObject *obj; | |
1535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1536 | SWIG_TypeClientData(SWIGTYPE_p_wxShapeRegion, obj); | |
1537 | Py_INCREF(obj); | |
1538 | return Py_BuildValue((char *)""); | |
1539 | } | |
30d215aa RD |
1540 | static PyObject *_wrap_new_AttachmentPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1541 | PyObject *resultobj; | |
1542 | int arg1 = (int) 0 ; | |
1543 | double arg2 = (double) 0.0 ; | |
1544 | double arg3 = (double) 0.0 ; | |
1545 | wxAttachmentPoint *result; | |
1546 | char *kwnames[] = { | |
1547 | (char *) "id",(char *) "x",(char *) "y", NULL | |
1548 | }; | |
1549 | ||
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|idd:new_AttachmentPoint",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
1551 | { | |
1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1553 | result = (wxAttachmentPoint *)new wxAttachmentPoint(arg1,arg2,arg3); | |
1554 | ||
1555 | wxPyEndAllowThreads(__tstate); | |
1556 | if (PyErr_Occurred()) SWIG_fail; | |
1557 | } | |
1558 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAttachmentPoint, 1); | |
1559 | return resultobj; | |
1560 | fail: | |
1561 | return NULL; | |
1562 | } | |
1563 | ||
1564 | ||
1565 | static PyObject *_wrap_AttachmentPoint_m_id_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject *resultobj; | |
1567 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1568 | int arg2 ; | |
1569 | PyObject * obj0 = 0 ; | |
1570 | char *kwnames[] = { | |
1571 | (char *) "self",(char *) "m_id", NULL | |
1572 | }; | |
1573 | ||
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:AttachmentPoint_m_id_set",kwnames,&obj0,&arg2)) goto fail; | |
1575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1576 | if (arg1) (arg1)->m_id = arg2; | |
1577 | ||
1578 | Py_INCREF(Py_None); resultobj = Py_None; | |
1579 | return resultobj; | |
1580 | fail: | |
1581 | return NULL; | |
1582 | } | |
1583 | ||
1584 | ||
1585 | static PyObject *_wrap_AttachmentPoint_m_id_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject *resultobj; | |
1587 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1588 | int result; | |
1589 | PyObject * obj0 = 0 ; | |
1590 | char *kwnames[] = { | |
1591 | (char *) "self", NULL | |
1592 | }; | |
1593 | ||
1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_id_get",kwnames,&obj0)) goto fail; | |
1595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1596 | result = (int) ((arg1)->m_id); | |
1597 | ||
1598 | resultobj = PyInt_FromLong((long)result); | |
1599 | return resultobj; | |
1600 | fail: | |
1601 | return NULL; | |
1602 | } | |
1603 | ||
1604 | ||
1605 | static PyObject *_wrap_AttachmentPoint_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1606 | PyObject *resultobj; | |
1607 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1608 | double arg2 ; | |
1609 | PyObject * obj0 = 0 ; | |
1610 | char *kwnames[] = { | |
1611 | (char *) "self",(char *) "m_x", NULL | |
1612 | }; | |
1613 | ||
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:AttachmentPoint_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
1615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1616 | if (arg1) (arg1)->m_x = arg2; | |
1617 | ||
1618 | Py_INCREF(Py_None); resultobj = Py_None; | |
1619 | return resultobj; | |
1620 | fail: | |
1621 | return NULL; | |
1622 | } | |
1623 | ||
1624 | ||
1625 | static PyObject *_wrap_AttachmentPoint_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject *resultobj; | |
1627 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1628 | double result; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "self", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_x_get",kwnames,&obj0)) goto fail; | |
1635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1636 | result = (double) ((arg1)->m_x); | |
1637 | ||
1638 | resultobj = PyFloat_FromDouble(result); | |
1639 | return resultobj; | |
1640 | fail: | |
1641 | return NULL; | |
1642 | } | |
1643 | ||
1644 | ||
1645 | static PyObject *_wrap_AttachmentPoint_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject *resultobj; | |
1647 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1648 | double arg2 ; | |
1649 | PyObject * obj0 = 0 ; | |
1650 | char *kwnames[] = { | |
1651 | (char *) "self",(char *) "m_y", NULL | |
1652 | }; | |
1653 | ||
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:AttachmentPoint_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
1655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1656 | if (arg1) (arg1)->m_y = arg2; | |
1657 | ||
1658 | Py_INCREF(Py_None); resultobj = Py_None; | |
1659 | return resultobj; | |
1660 | fail: | |
1661 | return NULL; | |
1662 | } | |
1663 | ||
1664 | ||
1665 | static PyObject *_wrap_AttachmentPoint_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1666 | PyObject *resultobj; | |
1667 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1668 | double result; | |
1669 | PyObject * obj0 = 0 ; | |
1670 | char *kwnames[] = { | |
1671 | (char *) "self", NULL | |
1672 | }; | |
1673 | ||
1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_y_get",kwnames,&obj0)) goto fail; | |
1675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAttachmentPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1676 | result = (double) ((arg1)->m_y); | |
1677 | ||
1678 | resultobj = PyFloat_FromDouble(result); | |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject * AttachmentPoint_swigregister(PyObject *self, PyObject *args) { | |
1686 | PyObject *obj; | |
1687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1688 | SWIG_TypeClientData(SWIGTYPE_p_wxAttachmentPoint, obj); | |
1689 | Py_INCREF(obj); | |
1690 | return Py_BuildValue((char *)""); | |
1691 | } | |
44127b65 RD |
1692 | static PyObject *_wrap_new_PyShapeEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
1693 | PyObject *resultobj; | |
1694 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) NULL ; | |
1695 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
1696 | wxPyShapeEvtHandler *result; | |
1697 | PyObject * obj0 = 0 ; | |
1698 | PyObject * obj1 = 0 ; | |
1699 | char *kwnames[] = { | |
1700 | (char *) "prev",(char *) "shape", NULL | |
1701 | }; | |
1702 | ||
1703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyShapeEvtHandler",kwnames,&obj0,&obj1)) goto fail; | |
1704 | if (obj0) { | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1706 | } | |
1707 | if (obj1) { | |
1708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1709 | } | |
1710 | { | |
1711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1712 | result = (wxPyShapeEvtHandler *)new wxPyShapeEvtHandler(arg1,arg2); | |
1713 | ||
1714 | wxPyEndAllowThreads(__tstate); | |
1715 | if (PyErr_Occurred()) SWIG_fail; | |
1716 | } | |
1717 | { | |
1718 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
1719 | } | |
1720 | return resultobj; | |
1721 | fail: | |
1722 | return NULL; | |
1723 | } | |
1724 | ||
1725 | ||
1726 | static PyObject *_wrap_PyShapeEvtHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1727 | PyObject *resultobj; | |
1728 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1729 | PyObject *arg2 = (PyObject *) 0 ; | |
1730 | PyObject *arg3 = (PyObject *) 0 ; | |
1731 | PyObject * obj0 = 0 ; | |
1732 | PyObject * obj1 = 0 ; | |
1733 | PyObject * obj2 = 0 ; | |
1734 | char *kwnames[] = { | |
1735 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1736 | }; | |
1737 | ||
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1740 | arg2 = obj1; | |
1741 | arg3 = obj2; | |
1742 | { | |
1743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1744 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1745 | ||
1746 | wxPyEndAllowThreads(__tstate); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | } | |
1749 | Py_INCREF(Py_None); resultobj = Py_None; | |
1750 | return resultobj; | |
1751 | fail: | |
1752 | return NULL; | |
1753 | } | |
1754 | ||
1755 | ||
1756 | static PyObject *_wrap_PyShapeEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject *resultobj; | |
1758 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1759 | PyObject *arg2 = (PyObject *) 0 ; | |
1760 | PyObject * obj0 = 0 ; | |
1761 | PyObject * obj1 = 0 ; | |
1762 | char *kwnames[] = { | |
1763 | (char *) "self",(char *) "_self", NULL | |
1764 | }; | |
1765 | ||
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
1767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1768 | arg2 = obj1; | |
1769 | { | |
1770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1771 | wxPyShapeEvtHandler__setOORInfo(arg1,arg2); | |
1772 | ||
1773 | wxPyEndAllowThreads(__tstate); | |
1774 | if (PyErr_Occurred()) SWIG_fail; | |
1775 | } | |
1776 | Py_INCREF(Py_None); resultobj = Py_None; | |
1777 | return resultobj; | |
1778 | fail: | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
1783 | static PyObject *_wrap_PyShapeEvtHandler_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject *resultobj; | |
1785 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1786 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | PyObject * obj1 = 0 ; | |
1789 | char *kwnames[] = { | |
1790 | (char *) "self",(char *) "sh", NULL | |
1791 | }; | |
1792 | ||
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
1794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1795 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1796 | { | |
1797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1798 | (arg1)->SetShape(arg2); | |
1799 | ||
1800 | wxPyEndAllowThreads(__tstate); | |
1801 | if (PyErr_Occurred()) SWIG_fail; | |
1802 | } | |
1803 | Py_INCREF(Py_None); resultobj = Py_None; | |
1804 | return resultobj; | |
1805 | fail: | |
1806 | return NULL; | |
1807 | } | |
1808 | ||
1809 | ||
1810 | static PyObject *_wrap_PyShapeEvtHandler_GetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1811 | PyObject *resultobj; | |
1812 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1813 | wxPyShape *result; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "self", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetShape",kwnames,&obj0)) goto fail; | |
1820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1821 | { | |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | result = (wxPyShape *)(arg1)->GetShape(); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) SWIG_fail; | |
1827 | } | |
1828 | { | |
1829 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
1830 | } | |
1831 | return resultobj; | |
1832 | fail: | |
1833 | return NULL; | |
1834 | } | |
1835 | ||
1836 | ||
1837 | static PyObject *_wrap_PyShapeEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject *resultobj; | |
1839 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1840 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
1841 | PyObject * obj0 = 0 ; | |
1842 | PyObject * obj1 = 0 ; | |
1843 | char *kwnames[] = { | |
1844 | (char *) "self",(char *) "handler", NULL | |
1845 | }; | |
1846 | ||
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
1848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1850 | { | |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | (arg1)->SetPreviousHandler(arg2); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | Py_INCREF(Py_None); resultobj = Py_None; | |
1858 | return resultobj; | |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
1864 | static PyObject *_wrap_PyShapeEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject *resultobj; | |
1866 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1867 | wxPyShapeEvtHandler *result; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | { | |
1876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1877 | result = (wxPyShapeEvtHandler *)(arg1)->GetPreviousHandler(); | |
1878 | ||
1879 | wxPyEndAllowThreads(__tstate); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
1882 | { | |
1883 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
1884 | } | |
1885 | return resultobj; | |
1886 | fail: | |
1887 | return NULL; | |
1888 | } | |
1889 | ||
1890 | ||
1891 | static PyObject *_wrap_PyShapeEvtHandler_CreateNewCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1892 | PyObject *resultobj; | |
1893 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1894 | wxPyShapeEvtHandler *result; | |
1895 | PyObject * obj0 = 0 ; | |
1896 | char *kwnames[] = { | |
1897 | (char *) "self", NULL | |
1898 | }; | |
1899 | ||
1900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_CreateNewCopy",kwnames,&obj0)) goto fail; | |
1901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1902 | { | |
1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1904 | result = (wxPyShapeEvtHandler *)(arg1)->CreateNewCopy(); | |
1905 | ||
1906 | wxPyEndAllowThreads(__tstate); | |
1907 | if (PyErr_Occurred()) SWIG_fail; | |
1908 | } | |
1909 | { | |
1910 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
1911 | } | |
1912 | return resultobj; | |
1913 | fail: | |
1914 | return NULL; | |
1915 | } | |
1916 | ||
1917 | ||
1918 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1919 | PyObject *resultobj; | |
1920 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1921 | PyObject * obj0 = 0 ; | |
1922 | char *kwnames[] = { | |
1923 | (char *) "self", NULL | |
1924 | }; | |
1925 | ||
1926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_base_OnDelete",kwnames,&obj0)) goto fail; | |
1927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1928 | { | |
1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1930 | (arg1)->base_OnDelete(); | |
1931 | ||
1932 | wxPyEndAllowThreads(__tstate); | |
1933 | if (PyErr_Occurred()) SWIG_fail; | |
1934 | } | |
1935 | Py_INCREF(Py_None); resultobj = Py_None; | |
1936 | return resultobj; | |
1937 | fail: | |
1938 | return NULL; | |
1939 | } | |
1940 | ||
1941 | ||
1942 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1943 | PyObject *resultobj; | |
1944 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1945 | wxDC *arg2 = 0 ; | |
1946 | PyObject * obj0 = 0 ; | |
1947 | PyObject * obj1 = 0 ; | |
1948 | char *kwnames[] = { | |
1949 | (char *) "self",(char *) "dc", NULL | |
1950 | }; | |
1951 | ||
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
1953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1955 | if (arg2 == NULL) { | |
1956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1957 | } | |
1958 | { | |
1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1960 | (arg1)->base_OnDraw(*arg2); | |
1961 | ||
1962 | wxPyEndAllowThreads(__tstate); | |
1963 | if (PyErr_Occurred()) SWIG_fail; | |
1964 | } | |
1965 | Py_INCREF(Py_None); resultobj = Py_None; | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
1972 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1973 | PyObject *resultobj; | |
1974 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
1975 | wxDC *arg2 = 0 ; | |
1976 | PyObject * obj0 = 0 ; | |
1977 | PyObject * obj1 = 0 ; | |
1978 | char *kwnames[] = { | |
1979 | (char *) "self",(char *) "dc", NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
1983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1984 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1985 | if (arg2 == NULL) { | |
1986 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1987 | } | |
1988 | { | |
1989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1990 | (arg1)->base_OnDrawContents(*arg2); | |
1991 | ||
1992 | wxPyEndAllowThreads(__tstate); | |
1993 | if (PyErr_Occurred()) SWIG_fail; | |
1994 | } | |
1995 | Py_INCREF(Py_None); resultobj = Py_None; | |
1996 | return resultobj; | |
1997 | fail: | |
1998 | return NULL; | |
1999 | } | |
2000 | ||
2001 | ||
2002 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2003 | PyObject *resultobj; | |
2004 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2005 | wxDC *arg2 = 0 ; | |
2006 | bool arg3 = (bool) False ; | |
2007 | PyObject * obj0 = 0 ; | |
2008 | PyObject * obj1 = 0 ; | |
2009 | PyObject * obj2 = 0 ; | |
2010 | char *kwnames[] = { | |
2011 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
2012 | }; | |
2013 | ||
2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2016 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2017 | if (arg2 == NULL) { | |
2018 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2019 | } | |
2020 | if (obj2) { | |
2021 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
2022 | if (PyErr_Occurred()) SWIG_fail; | |
2023 | } | |
2024 | { | |
2025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2026 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
2027 | ||
2028 | wxPyEndAllowThreads(__tstate); | |
2029 | if (PyErr_Occurred()) SWIG_fail; | |
2030 | } | |
2031 | Py_INCREF(Py_None); resultobj = Py_None; | |
2032 | return resultobj; | |
2033 | fail: | |
2034 | return NULL; | |
2035 | } | |
2036 | ||
2037 | ||
2038 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2039 | PyObject *resultobj; | |
2040 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2041 | wxDC *arg2 = 0 ; | |
2042 | PyObject * obj0 = 0 ; | |
2043 | PyObject * obj1 = 0 ; | |
2044 | char *kwnames[] = { | |
2045 | (char *) "self",(char *) "dc", NULL | |
2046 | }; | |
2047 | ||
2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2050 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2051 | if (arg2 == NULL) { | |
2052 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2053 | } | |
2054 | { | |
2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2056 | (arg1)->base_OnMoveLinks(*arg2); | |
2057 | ||
2058 | wxPyEndAllowThreads(__tstate); | |
2059 | if (PyErr_Occurred()) SWIG_fail; | |
2060 | } | |
2061 | Py_INCREF(Py_None); resultobj = Py_None; | |
2062 | return resultobj; | |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
2068 | static PyObject *_wrap_PyShapeEvtHandler_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2069 | PyObject *resultobj; | |
2070 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2071 | wxDC *arg2 = 0 ; | |
2072 | PyObject * obj0 = 0 ; | |
2073 | PyObject * obj1 = 0 ; | |
2074 | char *kwnames[] = { | |
2075 | (char *) "self",(char *) "dc", NULL | |
2076 | }; | |
2077 | ||
2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2080 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2081 | if (arg2 == NULL) { | |
2082 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2083 | } | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | (arg1)->base_OnErase(*arg2); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | Py_INCREF(Py_None); resultobj = Py_None; | |
2092 | return resultobj; | |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject *resultobj; | |
2100 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2101 | wxDC *arg2 = 0 ; | |
2102 | PyObject * obj0 = 0 ; | |
2103 | PyObject * obj1 = 0 ; | |
2104 | char *kwnames[] = { | |
2105 | (char *) "self",(char *) "dc", NULL | |
2106 | }; | |
2107 | ||
2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2110 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2111 | if (arg2 == NULL) { | |
2112 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2113 | } | |
2114 | { | |
2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2116 | (arg1)->base_OnEraseContents(*arg2); | |
2117 | ||
2118 | wxPyEndAllowThreads(__tstate); | |
2119 | if (PyErr_Occurred()) SWIG_fail; | |
2120 | } | |
2121 | Py_INCREF(Py_None); resultobj = Py_None; | |
2122 | return resultobj; | |
2123 | fail: | |
2124 | return NULL; | |
2125 | } | |
2126 | ||
2127 | ||
2128 | static PyObject *_wrap_PyShapeEvtHandler_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject *resultobj; | |
2130 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2131 | wxDC *arg2 = 0 ; | |
2132 | PyObject * obj0 = 0 ; | |
2133 | PyObject * obj1 = 0 ; | |
2134 | char *kwnames[] = { | |
2135 | (char *) "self",(char *) "dc", NULL | |
2136 | }; | |
2137 | ||
2138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2141 | if (arg2 == NULL) { | |
2142 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2143 | } | |
2144 | { | |
2145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2146 | (arg1)->base_OnHighlight(*arg2); | |
2147 | ||
2148 | wxPyEndAllowThreads(__tstate); | |
2149 | if (PyErr_Occurred()) SWIG_fail; | |
2150 | } | |
2151 | Py_INCREF(Py_None); resultobj = Py_None; | |
2152 | return resultobj; | |
2153 | fail: | |
2154 | return NULL; | |
2155 | } | |
2156 | ||
2157 | ||
2158 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2159 | PyObject *resultobj; | |
2160 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2161 | double arg2 ; | |
2162 | double arg3 ; | |
2163 | int arg4 = (int) 0 ; | |
2164 | int arg5 = (int) 0 ; | |
2165 | PyObject * obj0 = 0 ; | |
2166 | char *kwnames[] = { | |
2167 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2168 | }; | |
2169 | ||
2170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) SWIG_fail; | |
2178 | } | |
2179 | Py_INCREF(Py_None); resultobj = Py_None; | |
2180 | return resultobj; | |
2181 | fail: | |
2182 | return NULL; | |
2183 | } | |
2184 | ||
2185 | ||
2186 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject *resultobj; | |
2188 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2189 | double arg2 ; | |
2190 | double arg3 ; | |
2191 | int arg4 = (int) 0 ; | |
2192 | int arg5 = (int) 0 ; | |
2193 | PyObject * obj0 = 0 ; | |
2194 | char *kwnames[] = { | |
2195 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2196 | }; | |
2197 | ||
2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2200 | { | |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2202 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | Py_INCREF(Py_None); resultobj = Py_None; | |
2208 | return resultobj; | |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_PyShapeEvtHandler_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2217 | double arg2 ; | |
2218 | double arg3 ; | |
2219 | int arg4 = (int) 0 ; | |
2220 | int arg5 = (int) 0 ; | |
2221 | PyObject * obj0 = 0 ; | |
2222 | char *kwnames[] = { | |
2223 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2224 | }; | |
2225 | ||
2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2228 | { | |
2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2230 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
2231 | ||
2232 | wxPyEndAllowThreads(__tstate); | |
2233 | if (PyErr_Occurred()) SWIG_fail; | |
2234 | } | |
2235 | Py_INCREF(Py_None); resultobj = Py_None; | |
2236 | return resultobj; | |
2237 | fail: | |
2238 | return NULL; | |
2239 | } | |
2240 | ||
2241 | ||
2242 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2243 | PyObject *resultobj; | |
2244 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2245 | double arg2 ; | |
2246 | double arg3 ; | |
2247 | PyObject * obj0 = 0 ; | |
2248 | char *kwnames[] = { | |
2249 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2250 | }; | |
2251 | ||
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShapeEvtHandler_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2254 | { | |
2255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2256 | (arg1)->base_OnSize(arg2,arg3); | |
2257 | ||
2258 | wxPyEndAllowThreads(__tstate); | |
2259 | if (PyErr_Occurred()) SWIG_fail; | |
2260 | } | |
2261 | Py_INCREF(Py_None); resultobj = Py_None; | |
2262 | return resultobj; | |
2263 | fail: | |
2264 | return NULL; | |
2265 | } | |
2266 | ||
2267 | ||
2268 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2269 | PyObject *resultobj; | |
2270 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2271 | wxDC *arg2 = 0 ; | |
2272 | double arg3 ; | |
2273 | double arg4 ; | |
2274 | double arg5 ; | |
2275 | double arg6 ; | |
2276 | bool arg7 = (bool) True ; | |
2277 | bool result; | |
2278 | PyObject * obj0 = 0 ; | |
2279 | PyObject * obj1 = 0 ; | |
2280 | PyObject * obj6 = 0 ; | |
2281 | char *kwnames[] = { | |
2282 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2283 | }; | |
2284 | ||
2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyShapeEvtHandler_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
2286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2287 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2288 | if (arg2 == NULL) { | |
2289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2290 | } | |
2291 | if (obj6) { | |
2292 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2293 | if (PyErr_Occurred()) SWIG_fail; | |
2294 | } | |
2295 | { | |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | } | |
2302 | resultobj = PyInt_FromLong((long)result); | |
2303 | return resultobj; | |
2304 | fail: | |
2305 | return NULL; | |
2306 | } | |
2307 | ||
2308 | ||
2309 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject *resultobj; | |
2311 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2312 | wxDC *arg2 = 0 ; | |
2313 | double arg3 ; | |
2314 | double arg4 ; | |
2315 | double arg5 ; | |
2316 | double arg6 ; | |
2317 | bool arg7 = (bool) True ; | |
2318 | PyObject * obj0 = 0 ; | |
2319 | PyObject * obj1 = 0 ; | |
2320 | PyObject * obj6 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyShapeEvtHandler_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
2326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2328 | if (arg2 == NULL) { | |
2329 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2330 | } | |
2331 | if (obj6) { | |
2332 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | Py_INCREF(Py_None); resultobj = Py_None; | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2352 | bool arg2 ; | |
2353 | double arg3 ; | |
2354 | double arg4 ; | |
2355 | int arg5 = (int) 0 ; | |
2356 | int arg6 = (int) 0 ; | |
2357 | PyObject * obj0 = 0 ; | |
2358 | PyObject * obj1 = 0 ; | |
2359 | char *kwnames[] = { | |
2360 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2361 | }; | |
2362 | ||
2363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShapeEvtHandler_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
2364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2365 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2366 | if (PyErr_Occurred()) SWIG_fail; | |
2367 | { | |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | Py_INCREF(Py_None); resultobj = Py_None; | |
2375 | return resultobj; | |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
2381 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2382 | PyObject *resultobj; | |
2383 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2384 | double arg2 ; | |
2385 | double arg3 ; | |
2386 | int arg4 = (int) 0 ; | |
2387 | int arg5 = (int) 0 ; | |
2388 | PyObject * obj0 = 0 ; | |
2389 | char *kwnames[] = { | |
2390 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2391 | }; | |
2392 | ||
2393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2395 | { | |
2396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2397 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
2398 | ||
2399 | wxPyEndAllowThreads(__tstate); | |
2400 | if (PyErr_Occurred()) SWIG_fail; | |
2401 | } | |
2402 | Py_INCREF(Py_None); resultobj = Py_None; | |
2403 | return resultobj; | |
2404 | fail: | |
2405 | return NULL; | |
2406 | } | |
2407 | ||
2408 | ||
2409 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2410 | PyObject *resultobj; | |
2411 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2412 | double arg2 ; | |
2413 | double arg3 ; | |
2414 | int arg4 = (int) 0 ; | |
2415 | int arg5 = (int) 0 ; | |
2416 | PyObject * obj0 = 0 ; | |
2417 | char *kwnames[] = { | |
2418 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2419 | }; | |
2420 | ||
2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2423 | { | |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2425 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
2426 | ||
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) SWIG_fail; | |
2429 | } | |
2430 | Py_INCREF(Py_None); resultobj = Py_None; | |
2431 | return resultobj; | |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
2437 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2438 | PyObject *resultobj; | |
2439 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2440 | bool arg2 ; | |
2441 | double arg3 ; | |
2442 | double arg4 ; | |
2443 | int arg5 = (int) 0 ; | |
2444 | int arg6 = (int) 0 ; | |
2445 | PyObject * obj0 = 0 ; | |
2446 | PyObject * obj1 = 0 ; | |
2447 | char *kwnames[] = { | |
2448 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2449 | }; | |
2450 | ||
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShapeEvtHandler_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
2452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2453 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2454 | if (PyErr_Occurred()) SWIG_fail; | |
2455 | { | |
2456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2457 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
2458 | ||
2459 | wxPyEndAllowThreads(__tstate); | |
2460 | if (PyErr_Occurred()) SWIG_fail; | |
2461 | } | |
2462 | Py_INCREF(Py_None); resultobj = Py_None; | |
2463 | return resultobj; | |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
2469 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject *resultobj; | |
2471 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2472 | double arg2 ; | |
2473 | double arg3 ; | |
2474 | int arg4 = (int) 0 ; | |
2475 | int arg5 = (int) 0 ; | |
2476 | PyObject * obj0 = 0 ; | |
2477 | char *kwnames[] = { | |
2478 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2479 | }; | |
2480 | ||
2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2483 | { | |
2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2485 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
2486 | ||
2487 | wxPyEndAllowThreads(__tstate); | |
2488 | if (PyErr_Occurred()) SWIG_fail; | |
2489 | } | |
2490 | Py_INCREF(Py_None); resultobj = Py_None; | |
2491 | return resultobj; | |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2500 | double arg2 ; | |
2501 | double arg3 ; | |
2502 | int arg4 = (int) 0 ; | |
2503 | int arg5 = (int) 0 ; | |
2504 | PyObject * obj0 = 0 ; | |
2505 | char *kwnames[] = { | |
2506 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2507 | }; | |
2508 | ||
2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShapeEvtHandler_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | Py_INCREF(Py_None); resultobj = Py_None; | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2528 | wxDC *arg2 = 0 ; | |
2529 | double arg3 ; | |
2530 | double arg4 ; | |
2531 | double arg5 ; | |
2532 | double arg6 ; | |
2533 | PyObject * obj0 = 0 ; | |
2534 | PyObject * obj1 = 0 ; | |
2535 | char *kwnames[] = { | |
2536 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
2537 | }; | |
2538 | ||
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyShapeEvtHandler_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
2540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2542 | if (arg2 == NULL) { | |
2543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2544 | } | |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | } | |
2552 | Py_INCREF(Py_None); resultobj = Py_None; | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject *resultobj; | |
2561 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2562 | wxDC *arg2 = 0 ; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | PyObject * obj1 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "self",(char *) "dc", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2572 | if (arg2 == NULL) { | |
2573 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2574 | } | |
2575 | { | |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2577 | (arg1)->base_OnDrawControlPoints(*arg2); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
2580 | if (PyErr_Occurred()) SWIG_fail; | |
2581 | } | |
2582 | Py_INCREF(Py_None); resultobj = Py_None; | |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
2589 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject *resultobj; | |
2591 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2592 | wxDC *arg2 = 0 ; | |
2593 | PyObject * obj0 = 0 ; | |
2594 | PyObject * obj1 = 0 ; | |
2595 | char *kwnames[] = { | |
2596 | (char *) "self",(char *) "dc", NULL | |
2597 | }; | |
2598 | ||
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2601 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2602 | if (arg2 == NULL) { | |
2603 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2604 | } | |
2605 | { | |
2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2607 | (arg1)->base_OnEraseControlPoints(*arg2); | |
2608 | ||
2609 | wxPyEndAllowThreads(__tstate); | |
2610 | if (PyErr_Occurred()) SWIG_fail; | |
2611 | } | |
2612 | Py_INCREF(Py_None); resultobj = Py_None; | |
2613 | return resultobj; | |
2614 | fail: | |
2615 | return NULL; | |
2616 | } | |
2617 | ||
2618 | ||
2619 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject *resultobj; | |
2621 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2622 | wxDC *arg2 = 0 ; | |
2623 | bool arg3 = (bool) True ; | |
2624 | PyObject * obj0 = 0 ; | |
2625 | PyObject * obj1 = 0 ; | |
2626 | PyObject * obj2 = 0 ; | |
2627 | char *kwnames[] = { | |
2628 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
2629 | }; | |
2630 | ||
2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2633 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2634 | if (arg2 == NULL) { | |
2635 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2636 | } | |
2637 | if (obj2) { | |
2638 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
2639 | if (PyErr_Occurred()) SWIG_fail; | |
2640 | } | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
2648 | Py_INCREF(Py_None); resultobj = Py_None; | |
2649 | return resultobj; | |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
2655 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2656 | PyObject *resultobj; | |
2657 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2658 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
2659 | bool arg3 ; | |
2660 | double arg4 ; | |
2661 | double arg5 ; | |
2662 | int arg6 = (int) 0 ; | |
2663 | int arg7 = (int) 0 ; | |
2664 | PyObject * obj0 = 0 ; | |
2665 | PyObject * obj1 = 0 ; | |
2666 | PyObject * obj2 = 0 ; | |
2667 | char *kwnames[] = { | |
2668 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2669 | }; | |
2670 | ||
2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyShapeEvtHandler_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
2672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2673 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2674 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
2675 | if (PyErr_Occurred()) SWIG_fail; | |
2676 | { | |
2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2678 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
2679 | ||
2680 | wxPyEndAllowThreads(__tstate); | |
2681 | if (PyErr_Occurred()) SWIG_fail; | |
2682 | } | |
2683 | Py_INCREF(Py_None); resultobj = Py_None; | |
2684 | return resultobj; | |
2685 | fail: | |
2686 | return NULL; | |
2687 | } | |
2688 | ||
2689 | ||
2690 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2691 | PyObject *resultobj; | |
2692 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2693 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
2694 | double arg3 ; | |
2695 | double arg4 ; | |
2696 | int arg5 = (int) 0 ; | |
2697 | int arg6 = (int) 0 ; | |
2698 | PyObject * obj0 = 0 ; | |
2699 | PyObject * obj1 = 0 ; | |
2700 | char *kwnames[] = { | |
2701 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2702 | }; | |
2703 | ||
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShapeEvtHandler_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
2705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2707 | { | |
2708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2709 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
2710 | ||
2711 | wxPyEndAllowThreads(__tstate); | |
2712 | if (PyErr_Occurred()) SWIG_fail; | |
2713 | } | |
2714 | Py_INCREF(Py_None); resultobj = Py_None; | |
2715 | return resultobj; | |
2716 | fail: | |
2717 | return NULL; | |
2718 | } | |
2719 | ||
2720 | ||
2721 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2722 | PyObject *resultobj; | |
2723 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2724 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
2725 | double arg3 ; | |
2726 | double arg4 ; | |
2727 | int arg5 = (int) 0 ; | |
2728 | int arg6 = (int) 0 ; | |
2729 | PyObject * obj0 = 0 ; | |
2730 | PyObject * obj1 = 0 ; | |
2731 | char *kwnames[] = { | |
2732 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2733 | }; | |
2734 | ||
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShapeEvtHandler_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
2736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2738 | { | |
2739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2740 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
2741 | ||
2742 | wxPyEndAllowThreads(__tstate); | |
2743 | if (PyErr_Occurred()) SWIG_fail; | |
2744 | } | |
2745 | Py_INCREF(Py_None); resultobj = Py_None; | |
2746 | return resultobj; | |
2747 | fail: | |
2748 | return NULL; | |
2749 | } | |
2750 | ||
2751 | ||
2752 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject *resultobj; | |
2754 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2755 | double arg2 ; | |
2756 | double arg3 ; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShapeEvtHandler_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2764 | { | |
2765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2766 | (arg1)->base_OnBeginSize(arg2,arg3); | |
2767 | ||
2768 | wxPyEndAllowThreads(__tstate); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | } | |
2771 | Py_INCREF(Py_None); resultobj = Py_None; | |
2772 | return resultobj; | |
2773 | fail: | |
2774 | return NULL; | |
2775 | } | |
2776 | ||
2777 | ||
2778 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject *resultobj; | |
2780 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2781 | double arg2 ; | |
2782 | double arg3 ; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | char *kwnames[] = { | |
2785 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2786 | }; | |
2787 | ||
2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShapeEvtHandler_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | (arg1)->base_OnEndSize(arg2,arg3); | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
2797 | Py_INCREF(Py_None); resultobj = Py_None; | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | return NULL; | |
2801 | } | |
2802 | ||
2803 | ||
2804 | static PyObject * PyShapeEvtHandler_swigregister(PyObject *self, PyObject *args) { | |
2805 | PyObject *obj; | |
2806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2807 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeEvtHandler, obj); | |
2808 | Py_INCREF(obj); | |
2809 | return Py_BuildValue((char *)""); | |
2810 | } | |
2811 | static PyObject *_wrap_new_PyShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2812 | PyObject *resultobj; | |
2813 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
2814 | wxPyShape *result; | |
2815 | PyObject * obj0 = 0 ; | |
2816 | char *kwnames[] = { | |
2817 | (char *) "can", NULL | |
2818 | }; | |
2819 | ||
2820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyShape",kwnames,&obj0)) goto fail; | |
2821 | if (obj0) { | |
2822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2823 | } | |
2824 | { | |
2825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2826 | result = (wxPyShape *)new wxPyShape(arg1); | |
2827 | ||
2828 | wxPyEndAllowThreads(__tstate); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
2830 | } | |
2831 | { | |
2832 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
2833 | } | |
2834 | return resultobj; | |
2835 | fail: | |
2836 | return NULL; | |
2837 | } | |
2838 | ||
2839 | ||
2840 | static PyObject *_wrap_PyShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2841 | PyObject *resultobj; | |
2842 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
2843 | PyObject *arg2 = (PyObject *) 0 ; | |
2844 | PyObject *arg3 = (PyObject *) 0 ; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | PyObject * obj1 = 0 ; | |
2847 | PyObject * obj2 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2854 | arg2 = obj1; | |
2855 | arg3 = obj2; | |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | Py_INCREF(Py_None); resultobj = Py_None; | |
2864 | return resultobj; | |
2865 | fail: | |
2866 | return NULL; | |
2867 | } | |
2868 | ||
2869 | ||
2870 | static PyObject *_wrap_PyShape_GetBoundingBoxMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2871 | PyObject *resultobj; | |
2872 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
2873 | double *arg2 = (double *) 0 ; | |
2874 | double *arg3 = (double *) 0 ; | |
2875 | double temp2 ; | |
2876 | double temp3 ; | |
2877 | PyObject * obj0 = 0 ; | |
2878 | char *kwnames[] = { | |
2879 | (char *) "self", NULL | |
2880 | }; | |
2881 | ||
2882 | arg2 = &temp2; | |
2883 | arg3 = &temp3; | |
2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMax",kwnames,&obj0)) goto fail; | |
2885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2886 | { | |
2887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2888 | (arg1)->GetBoundingBoxMax(arg2,arg3); | |
2889 | ||
2890 | wxPyEndAllowThreads(__tstate); | |
2891 | if (PyErr_Occurred()) SWIG_fail; | |
2892 | } | |
2893 | Py_INCREF(Py_None); resultobj = Py_None; | |
2894 | { | |
2895 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
2896 | resultobj = t_output_helper(resultobj,o); | |
2897 | } | |
2898 | { | |
2899 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
2900 | resultobj = t_output_helper(resultobj,o); | |
2901 | } | |
2902 | return resultobj; | |
2903 | fail: | |
2904 | return NULL; | |
2905 | } | |
2906 | ||
2907 | ||
2908 | static PyObject *_wrap_PyShape_GetBoundingBoxMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject *resultobj; | |
2910 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
2911 | double *arg2 = (double *) 0 ; | |
2912 | double *arg3 = (double *) 0 ; | |
2913 | double temp2 ; | |
2914 | double temp3 ; | |
2915 | PyObject * obj0 = 0 ; | |
2916 | char *kwnames[] = { | |
2917 | (char *) "self", NULL | |
2918 | }; | |
2919 | ||
2920 | arg2 = &temp2; | |
2921 | arg3 = &temp3; | |
2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMin",kwnames,&obj0)) goto fail; | |
2923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2924 | { | |
2925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2926 | (arg1)->GetBoundingBoxMin(arg2,arg3); | |
2927 | ||
2928 | wxPyEndAllowThreads(__tstate); | |
2929 | if (PyErr_Occurred()) SWIG_fail; | |
2930 | } | |
2931 | Py_INCREF(Py_None); resultobj = Py_None; | |
2932 | { | |
2933 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
2934 | resultobj = t_output_helper(resultobj,o); | |
2935 | } | |
2936 | { | |
2937 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
2938 | resultobj = t_output_helper(resultobj,o); | |
2939 | } | |
2940 | return resultobj; | |
2941 | fail: | |
2942 | return NULL; | |
2943 | } | |
2944 | ||
2945 | ||
2946 | static PyObject *_wrap_PyShape_GetPerimeterPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2947 | PyObject *resultobj; | |
2948 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
2949 | double arg2 ; | |
2950 | double arg3 ; | |
2951 | double arg4 ; | |
2952 | double arg5 ; | |
2953 | double *arg6 = (double *) 0 ; | |
2954 | double *arg7 = (double *) 0 ; | |
2955 | bool result; | |
2956 | double temp6 ; | |
2957 | double temp7 ; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | char *kwnames[] = { | |
2960 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
2961 | }; | |
2962 | ||
2963 | arg6 = &temp6; | |
2964 | arg7 = &temp7; | |
2965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odddd:PyShape_GetPerimeterPoint",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
2966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2967 | { | |
2968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2969 | result = (bool)(arg1)->GetPerimeterPoint(arg2,arg3,arg4,arg5,arg6,arg7); | |
2970 | ||
2971 | wxPyEndAllowThreads(__tstate); | |
2972 | if (PyErr_Occurred()) SWIG_fail; | |
2973 | } | |
2974 | resultobj = PyInt_FromLong((long)result); | |
2975 | { | |
2976 | PyObject *o = PyFloat_FromDouble((double) (*arg6)); | |
2977 | resultobj = t_output_helper(resultobj,o); | |
2978 | } | |
2979 | { | |
2980 | PyObject *o = PyFloat_FromDouble((double) (*arg7)); | |
2981 | resultobj = t_output_helper(resultobj,o); | |
2982 | } | |
2983 | return resultobj; | |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
2989 | static PyObject *_wrap_PyShape_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject *resultobj; | |
2991 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
2992 | wxPyShapeCanvas *result; | |
2993 | PyObject * obj0 = 0 ; | |
2994 | char *kwnames[] = { | |
2995 | (char *) "self", NULL | |
2996 | }; | |
2997 | ||
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCanvas",kwnames,&obj0)) goto fail; | |
2999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3000 | { | |
3001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3002 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
3003 | ||
3004 | wxPyEndAllowThreads(__tstate); | |
3005 | if (PyErr_Occurred()) SWIG_fail; | |
3006 | } | |
3007 | { | |
3008 | resultobj = wxPyMake_wxObject(result); | |
3009 | } | |
3010 | return resultobj; | |
3011 | fail: | |
3012 | return NULL; | |
3013 | } | |
3014 | ||
3015 | ||
3016 | static PyObject *_wrap_PyShape_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3017 | PyObject *resultobj; | |
3018 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3019 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3020 | PyObject * obj0 = 0 ; | |
3021 | PyObject * obj1 = 0 ; | |
3022 | char *kwnames[] = { | |
3023 | (char *) "self",(char *) "the_canvas", NULL | |
3024 | }; | |
3025 | ||
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3028 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3029 | { | |
3030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3031 | (arg1)->SetCanvas(arg2); | |
3032 | ||
3033 | wxPyEndAllowThreads(__tstate); | |
3034 | if (PyErr_Occurred()) SWIG_fail; | |
3035 | } | |
3036 | Py_INCREF(Py_None); resultobj = Py_None; | |
3037 | return resultobj; | |
3038 | fail: | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_PyShape_AddToCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3046 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3047 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
3048 | PyObject * obj0 = 0 ; | |
3049 | PyObject * obj1 = 0 ; | |
3050 | PyObject * obj2 = 0 ; | |
3051 | char *kwnames[] = { | |
3052 | (char *) "self",(char *) "the_canvas",(char *) "addAfter", NULL | |
3053 | }; | |
3054 | ||
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_AddToCanvas",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3057 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3058 | if (obj2) { | |
3059 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3060 | } | |
3061 | { | |
3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3063 | (arg1)->AddToCanvas(arg2,arg3); | |
3064 | ||
3065 | wxPyEndAllowThreads(__tstate); | |
3066 | if (PyErr_Occurred()) SWIG_fail; | |
3067 | } | |
3068 | Py_INCREF(Py_None); resultobj = Py_None; | |
3069 | return resultobj; | |
3070 | fail: | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
3075 | static PyObject *_wrap_PyShape_InsertInCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3078 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3079 | PyObject * obj0 = 0 ; | |
3080 | PyObject * obj1 = 0 ; | |
3081 | char *kwnames[] = { | |
3082 | (char *) "self",(char *) "the_canvas", NULL | |
3083 | }; | |
3084 | ||
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_InsertInCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3087 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3088 | { | |
3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3090 | (arg1)->InsertInCanvas(arg2); | |
3091 | ||
3092 | wxPyEndAllowThreads(__tstate); | |
3093 | if (PyErr_Occurred()) SWIG_fail; | |
3094 | } | |
3095 | Py_INCREF(Py_None); resultobj = Py_None; | |
3096 | return resultobj; | |
3097 | fail: | |
3098 | return NULL; | |
3099 | } | |
3100 | ||
3101 | ||
3102 | static PyObject *_wrap_PyShape_RemoveFromCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject *resultobj; | |
3104 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3105 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3106 | PyObject * obj0 = 0 ; | |
3107 | PyObject * obj1 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "self",(char *) "the_canvas", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveFromCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3115 | { | |
3116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3117 | (arg1)->RemoveFromCanvas(arg2); | |
3118 | ||
3119 | wxPyEndAllowThreads(__tstate); | |
3120 | if (PyErr_Occurred()) SWIG_fail; | |
3121 | } | |
3122 | Py_INCREF(Py_None); resultobj = Py_None; | |
3123 | return resultobj; | |
3124 | fail: | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
3129 | static PyObject *_wrap_PyShape_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3130 | PyObject *resultobj; | |
3131 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3132 | double result; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | char *kwnames[] = { | |
3135 | (char *) "self", NULL | |
3136 | }; | |
3137 | ||
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetX",kwnames,&obj0)) goto fail; | |
3139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3140 | { | |
3141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3142 | result = (double)(arg1)->GetX(); | |
3143 | ||
3144 | wxPyEndAllowThreads(__tstate); | |
3145 | if (PyErr_Occurred()) SWIG_fail; | |
3146 | } | |
3147 | resultobj = PyFloat_FromDouble(result); | |
3148 | return resultobj; | |
3149 | fail: | |
3150 | return NULL; | |
3151 | } | |
3152 | ||
3153 | ||
3154 | static PyObject *_wrap_PyShape_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3155 | PyObject *resultobj; | |
3156 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3157 | double result; | |
3158 | PyObject * obj0 = 0 ; | |
3159 | char *kwnames[] = { | |
3160 | (char *) "self", NULL | |
3161 | }; | |
3162 | ||
3163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetY",kwnames,&obj0)) goto fail; | |
3164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3165 | { | |
3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3167 | result = (double)(arg1)->GetY(); | |
3168 | ||
3169 | wxPyEndAllowThreads(__tstate); | |
3170 | if (PyErr_Occurred()) SWIG_fail; | |
3171 | } | |
3172 | resultobj = PyFloat_FromDouble(result); | |
3173 | return resultobj; | |
3174 | fail: | |
3175 | return NULL; | |
3176 | } | |
3177 | ||
3178 | ||
3179 | static PyObject *_wrap_PyShape_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3180 | PyObject *resultobj; | |
3181 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3182 | double arg2 ; | |
3183 | PyObject * obj0 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "self",(char *) "x", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyShape_SetX",kwnames,&obj0,&arg2)) goto fail; | |
3189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3190 | { | |
3191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3192 | (arg1)->SetX(arg2); | |
3193 | ||
3194 | wxPyEndAllowThreads(__tstate); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | Py_INCREF(Py_None); resultobj = Py_None; | |
3198 | return resultobj; | |
3199 | fail: | |
3200 | return NULL; | |
3201 | } | |
3202 | ||
3203 | ||
3204 | static PyObject *_wrap_PyShape_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3205 | PyObject *resultobj; | |
3206 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3207 | double arg2 ; | |
3208 | PyObject * obj0 = 0 ; | |
3209 | char *kwnames[] = { | |
3210 | (char *) "self",(char *) "y", NULL | |
3211 | }; | |
3212 | ||
3213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyShape_SetY",kwnames,&obj0,&arg2)) goto fail; | |
3214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3215 | { | |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3217 | (arg1)->SetY(arg2); | |
3218 | ||
3219 | wxPyEndAllowThreads(__tstate); | |
3220 | if (PyErr_Occurred()) SWIG_fail; | |
3221 | } | |
3222 | Py_INCREF(Py_None); resultobj = Py_None; | |
3223 | return resultobj; | |
3224 | fail: | |
3225 | return NULL; | |
3226 | } | |
3227 | ||
3228 | ||
3229 | static PyObject *_wrap_PyShape_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject *resultobj; | |
3231 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3232 | wxPyShape *result; | |
3233 | PyObject * obj0 = 0 ; | |
3234 | char *kwnames[] = { | |
3235 | (char *) "self", NULL | |
3236 | }; | |
3237 | ||
3238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetParent",kwnames,&obj0)) goto fail; | |
3239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3240 | { | |
3241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3242 | result = (wxPyShape *)(arg1)->GetParent(); | |
3243 | ||
3244 | wxPyEndAllowThreads(__tstate); | |
3245 | if (PyErr_Occurred()) SWIG_fail; | |
3246 | } | |
3247 | { | |
3248 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
3249 | } | |
3250 | return resultobj; | |
3251 | fail: | |
3252 | return NULL; | |
3253 | } | |
3254 | ||
3255 | ||
3256 | static PyObject *_wrap_PyShape_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3259 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | PyObject * obj1 = 0 ; | |
3262 | char *kwnames[] = { | |
3263 | (char *) "self",(char *) "p", NULL | |
3264 | }; | |
3265 | ||
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
3267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3268 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3269 | { | |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3271 | (arg1)->SetParent(arg2); | |
3272 | ||
3273 | wxPyEndAllowThreads(__tstate); | |
3274 | if (PyErr_Occurred()) SWIG_fail; | |
3275 | } | |
3276 | Py_INCREF(Py_None); resultobj = Py_None; | |
3277 | return resultobj; | |
3278 | fail: | |
3279 | return NULL; | |
3280 | } | |
3281 | ||
3282 | ||
3283 | static PyObject *_wrap_PyShape_GetTopAncestor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject *resultobj; | |
3285 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3286 | wxPyShape *result; | |
3287 | PyObject * obj0 = 0 ; | |
3288 | char *kwnames[] = { | |
3289 | (char *) "self", NULL | |
3290 | }; | |
3291 | ||
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetTopAncestor",kwnames,&obj0)) goto fail; | |
3293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3294 | { | |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | result = (wxPyShape *)(arg1)->GetTopAncestor(); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | { | |
3302 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
3303 | } | |
3304 | return resultobj; | |
3305 | fail: | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
3310 | static PyObject *_wrap_PyShape_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj; | |
3312 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3313 | PyObject *result; | |
3314 | PyObject * obj0 = 0 ; | |
3315 | char *kwnames[] = { | |
3316 | (char *) "self", NULL | |
3317 | }; | |
3318 | ||
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetChildren",kwnames,&obj0)) goto fail; | |
3320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3321 | { | |
3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3323 | result = (PyObject *)wxPyShape_GetChildren(arg1); | |
3324 | ||
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | resultobj = result; | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
3335 | static PyObject *_wrap_PyShape_Unlink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject *resultobj; | |
3337 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3338 | PyObject * obj0 = 0 ; | |
3339 | char *kwnames[] = { | |
3340 | (char *) "self", NULL | |
3341 | }; | |
3342 | ||
3343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Unlink",kwnames,&obj0)) goto fail; | |
3344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3345 | { | |
3346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3347 | (arg1)->Unlink(); | |
3348 | ||
3349 | wxPyEndAllowThreads(__tstate); | |
3350 | if (PyErr_Occurred()) SWIG_fail; | |
3351 | } | |
3352 | Py_INCREF(Py_None); resultobj = Py_None; | |
3353 | return resultobj; | |
3354 | fail: | |
3355 | return NULL; | |
3356 | } | |
3357 | ||
3358 | ||
3359 | static PyObject *_wrap_PyShape_SetDrawHandles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3360 | PyObject *resultobj; | |
3361 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3362 | bool arg2 ; | |
3363 | PyObject * obj0 = 0 ; | |
3364 | PyObject * obj1 = 0 ; | |
3365 | char *kwnames[] = { | |
3366 | (char *) "self",(char *) "drawH", NULL | |
3367 | }; | |
3368 | ||
3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDrawHandles",kwnames,&obj0,&obj1)) goto fail; | |
3370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3371 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
3372 | if (PyErr_Occurred()) SWIG_fail; | |
3373 | { | |
3374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3375 | (arg1)->SetDrawHandles(arg2); | |
3376 | ||
3377 | wxPyEndAllowThreads(__tstate); | |
3378 | if (PyErr_Occurred()) SWIG_fail; | |
3379 | } | |
3380 | Py_INCREF(Py_None); resultobj = Py_None; | |
3381 | return resultobj; | |
3382 | fail: | |
3383 | return NULL; | |
3384 | } | |
3385 | ||
3386 | ||
3387 | static PyObject *_wrap_PyShape_GetDrawHandles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3388 | PyObject *resultobj; | |
3389 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3390 | bool result; | |
3391 | PyObject * obj0 = 0 ; | |
3392 | char *kwnames[] = { | |
3393 | (char *) "self", NULL | |
3394 | }; | |
3395 | ||
3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDrawHandles",kwnames,&obj0)) goto fail; | |
3397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3398 | { | |
3399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3400 | result = (bool)(arg1)->GetDrawHandles(); | |
3401 | ||
3402 | wxPyEndAllowThreads(__tstate); | |
3403 | if (PyErr_Occurred()) SWIG_fail; | |
3404 | } | |
3405 | resultobj = PyInt_FromLong((long)result); | |
3406 | return resultobj; | |
3407 | fail: | |
3408 | return NULL; | |
3409 | } | |
3410 | ||
3411 | ||
3412 | static PyObject *_wrap_PyShape_MakeControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject *resultobj; | |
3414 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3415 | PyObject * obj0 = 0 ; | |
3416 | char *kwnames[] = { | |
3417 | (char *) "self", NULL | |
3418 | }; | |
3419 | ||
3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeControlPoints",kwnames,&obj0)) goto fail; | |
3421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3422 | { | |
3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3424 | (arg1)->MakeControlPoints(); | |
3425 | ||
3426 | wxPyEndAllowThreads(__tstate); | |
3427 | if (PyErr_Occurred()) SWIG_fail; | |
3428 | } | |
3429 | Py_INCREF(Py_None); resultobj = Py_None; | |
3430 | return resultobj; | |
3431 | fail: | |
3432 | return NULL; | |
3433 | } | |
3434 | ||
3435 | ||
3436 | static PyObject *_wrap_PyShape_DeleteControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject *resultobj; | |
3438 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3439 | wxDC *arg2 = (wxDC *) NULL ; | |
3440 | PyObject * obj0 = 0 ; | |
3441 | PyObject * obj1 = 0 ; | |
3442 | char *kwnames[] = { | |
3443 | (char *) "self",(char *) "dc", NULL | |
3444 | }; | |
3445 | ||
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_DeleteControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
3447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3448 | if (obj1) { | |
3449 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3450 | } | |
3451 | { | |
3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3453 | (arg1)->DeleteControlPoints(arg2); | |
3454 | ||
3455 | wxPyEndAllowThreads(__tstate); | |
3456 | if (PyErr_Occurred()) SWIG_fail; | |
3457 | } | |
3458 | Py_INCREF(Py_None); resultobj = Py_None; | |
3459 | return resultobj; | |
3460 | fail: | |
3461 | return NULL; | |
3462 | } | |
3463 | ||
3464 | ||
3465 | static PyObject *_wrap_PyShape_ResetControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "self", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetControlPoints",kwnames,&obj0)) goto fail; | |
3474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | (arg1)->ResetControlPoints(); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
3482 | Py_INCREF(Py_None); resultobj = Py_None; | |
3483 | return resultobj; | |
3484 | fail: | |
3485 | return NULL; | |
3486 | } | |
3487 | ||
3488 | ||
3489 | static PyObject *_wrap_PyShape_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3490 | PyObject *resultobj; | |
3491 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3492 | wxPyShapeEvtHandler *result; | |
3493 | PyObject * obj0 = 0 ; | |
3494 | char *kwnames[] = { | |
3495 | (char *) "self", NULL | |
3496 | }; | |
3497 | ||
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetEventHandler",kwnames,&obj0)) goto fail; | |
3499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | result = (wxPyShapeEvtHandler *)(arg1)->GetEventHandler(); | |
3503 | ||
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | { | |
3508 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
3509 | } | |
3510 | return resultobj; | |
3511 | fail: | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
3516 | static PyObject *_wrap_PyShape_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3517 | PyObject *resultobj; | |
3518 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3519 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
3520 | PyObject * obj0 = 0 ; | |
3521 | PyObject * obj1 = 0 ; | |
3522 | char *kwnames[] = { | |
3523 | (char *) "self",(char *) "handler", NULL | |
3524 | }; | |
3525 | ||
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
3527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3528 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3529 | { | |
3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3531 | (arg1)->SetEventHandler(arg2); | |
3532 | ||
3533 | wxPyEndAllowThreads(__tstate); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
3536 | Py_INCREF(Py_None); resultobj = Py_None; | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | return NULL; | |
3540 | } | |
3541 | ||
3542 | ||
3543 | static PyObject *_wrap_PyShape_MakeMandatoryControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject *resultobj; | |
3545 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3546 | PyObject * obj0 = 0 ; | |
3547 | char *kwnames[] = { | |
3548 | (char *) "self", NULL | |
3549 | }; | |
3550 | ||
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
3552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | (arg1)->MakeMandatoryControlPoints(); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
3560 | Py_INCREF(Py_None); resultobj = Py_None; | |
3561 | return resultobj; | |
3562 | fail: | |
3563 | return NULL; | |
3564 | } | |
3565 | ||
3566 | ||
3567 | static PyObject *_wrap_PyShape_ResetMandatoryControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject *resultobj; | |
3569 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3570 | PyObject * obj0 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3577 | { | |
3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3579 | (arg1)->ResetMandatoryControlPoints(); | |
3580 | ||
3581 | wxPyEndAllowThreads(__tstate); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
3583 | } | |
3584 | Py_INCREF(Py_None); resultobj = Py_None; | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
3591 | static PyObject *_wrap_PyShape_Recompute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3592 | PyObject *resultobj; | |
3593 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3594 | bool result; | |
3595 | PyObject * obj0 = 0 ; | |
3596 | char *kwnames[] = { | |
3597 | (char *) "self", NULL | |
3598 | }; | |
3599 | ||
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Recompute",kwnames,&obj0)) goto fail; | |
3601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3602 | { | |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | result = (bool)(arg1)->Recompute(); | |
3605 | ||
3606 | wxPyEndAllowThreads(__tstate); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
3609 | resultobj = PyInt_FromLong((long)result); | |
3610 | return resultobj; | |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
3616 | static PyObject *_wrap_PyShape_CalculateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3617 | PyObject *resultobj; | |
3618 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3619 | PyObject * obj0 = 0 ; | |
3620 | char *kwnames[] = { | |
3621 | (char *) "self", NULL | |
3622 | }; | |
3623 | ||
3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_CalculateSize",kwnames,&obj0)) goto fail; | |
3625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3626 | { | |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | (arg1)->CalculateSize(); | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | Py_INCREF(Py_None); resultobj = Py_None; | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_PyShape_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3643 | bool arg2 = (bool) True ; | |
3644 | wxDC *arg3 = (wxDC *) NULL ; | |
3645 | PyObject * obj0 = 0 ; | |
3646 | PyObject * obj1 = 0 ; | |
3647 | PyObject * obj2 = 0 ; | |
3648 | char *kwnames[] = { | |
3649 | (char *) "self",(char *) "select",(char *) "dc", NULL | |
3650 | }; | |
3651 | ||
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3654 | if (obj1) { | |
3655 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
3656 | if (PyErr_Occurred()) SWIG_fail; | |
3657 | } | |
3658 | if (obj2) { | |
3659 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3660 | } | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | (arg1)->Select(arg2,arg3); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | Py_INCREF(Py_None); resultobj = Py_None; | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject *_wrap_PyShape_SetHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3676 | PyObject *resultobj; | |
3677 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3678 | bool arg2 = (bool) True ; | |
3679 | bool arg3 = (bool) False ; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | PyObject * obj1 = 0 ; | |
3682 | PyObject * obj2 = 0 ; | |
3683 | char *kwnames[] = { | |
3684 | (char *) "self",(char *) "hi",(char *) "recurse", NULL | |
3685 | }; | |
3686 | ||
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_SetHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3689 | if (obj1) { | |
3690 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | } | |
3693 | if (obj2) { | |
3694 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | (arg1)->SetHighlight(arg2,arg3); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | Py_INCREF(Py_None); resultobj = Py_None; | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | static PyObject *_wrap_PyShape_IsHighlighted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj; | |
3713 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3714 | bool result; | |
3715 | PyObject * obj0 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "self", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsHighlighted",kwnames,&obj0)) goto fail; | |
3721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3722 | { | |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | result = (bool)(arg1)->IsHighlighted(); | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | resultobj = PyInt_FromLong((long)result); | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
3736 | static PyObject *_wrap_PyShape_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject *resultobj; | |
3738 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3739 | bool result; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "self", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Selected",kwnames,&obj0)) goto fail; | |
3746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | result = (bool)(arg1)->Selected(); | |
3750 | ||
3751 | wxPyEndAllowThreads(__tstate); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | } | |
3754 | resultobj = PyInt_FromLong((long)result); | |
3755 | return resultobj; | |
3756 | fail: | |
3757 | return NULL; | |
3758 | } | |
3759 | ||
3760 | ||
3761 | static PyObject *_wrap_PyShape_AncestorSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3762 | PyObject *resultobj; | |
3763 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3764 | bool result; | |
3765 | PyObject * obj0 = 0 ; | |
3766 | char *kwnames[] = { | |
3767 | (char *) "self", NULL | |
3768 | }; | |
3769 | ||
3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AncestorSelected",kwnames,&obj0)) goto fail; | |
3771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3772 | { | |
3773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3774 | result = (bool)(arg1)->AncestorSelected(); | |
3775 | ||
3776 | wxPyEndAllowThreads(__tstate); | |
3777 | if (PyErr_Occurred()) SWIG_fail; | |
3778 | } | |
3779 | resultobj = PyInt_FromLong((long)result); | |
3780 | return resultobj; | |
3781 | fail: | |
3782 | return NULL; | |
3783 | } | |
3784 | ||
3785 | ||
3786 | static PyObject *_wrap_PyShape_SetSensitivityFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3787 | PyObject *resultobj; | |
3788 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3789 | int arg2 = (int) OP_ALL ; | |
3790 | bool arg3 = (bool) False ; | |
3791 | PyObject * obj0 = 0 ; | |
3792 | PyObject * obj2 = 0 ; | |
3793 | char *kwnames[] = { | |
3794 | (char *) "self",(char *) "sens",(char *) "recursive", NULL | |
3795 | }; | |
3796 | ||
3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:PyShape_SetSensitivityFilter",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
3798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3799 | if (obj2) { | |
3800 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | (arg1)->SetSensitivityFilter(arg2,arg3); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
3810 | Py_INCREF(Py_None); resultobj = Py_None; | |
3811 | return resultobj; | |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
3817 | static PyObject *_wrap_PyShape_GetSensitivityFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject *resultobj; | |
3819 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3820 | int result; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | char *kwnames[] = { | |
3823 | (char *) "self", NULL | |
3824 | }; | |
3825 | ||
3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSensitivityFilter",kwnames,&obj0)) goto fail; | |
3827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3828 | { | |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | result = (int)(arg1)->GetSensitivityFilter(); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | resultobj = PyInt_FromLong((long)result); | |
3836 | return resultobj; | |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_PyShape_SetDraggable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3843 | PyObject *resultobj; | |
3844 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3845 | bool arg2 ; | |
3846 | bool arg3 = (bool) False ; | |
3847 | PyObject * obj0 = 0 ; | |
3848 | PyObject * obj1 = 0 ; | |
3849 | PyObject * obj2 = 0 ; | |
3850 | char *kwnames[] = { | |
3851 | (char *) "self",(char *) "drag",(char *) "recursive", NULL | |
3852 | }; | |
3853 | ||
3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetDraggable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3856 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | if (obj2) { | |
3859 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
3862 | { | |
3863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3864 | (arg1)->SetDraggable(arg2,arg3); | |
3865 | ||
3866 | wxPyEndAllowThreads(__tstate); | |
3867 | if (PyErr_Occurred()) SWIG_fail; | |
3868 | } | |
3869 | Py_INCREF(Py_None); resultobj = Py_None; | |
3870 | return resultobj; | |
3871 | fail: | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | static PyObject *_wrap_PyShape_SetFixedSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject *resultobj; | |
3878 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3879 | bool arg2 ; | |
3880 | bool arg3 ; | |
3881 | PyObject * obj0 = 0 ; | |
3882 | PyObject * obj1 = 0 ; | |
3883 | PyObject * obj2 = 0 ; | |
3884 | char *kwnames[] = { | |
3885 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3886 | }; | |
3887 | ||
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_SetFixedSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3890 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | { | |
3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3896 | (arg1)->SetFixedSize(arg2,arg3); | |
3897 | ||
3898 | wxPyEndAllowThreads(__tstate); | |
3899 | if (PyErr_Occurred()) SWIG_fail; | |
3900 | } | |
3901 | Py_INCREF(Py_None); resultobj = Py_None; | |
3902 | return resultobj; | |
3903 | fail: | |
3904 | return NULL; | |
3905 | } | |
3906 | ||
3907 | ||
3908 | static PyObject *_wrap_PyShape_GetFixedSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject *resultobj; | |
3910 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3911 | bool *arg2 = (bool *) 0 ; | |
3912 | bool *arg3 = (bool *) 0 ; | |
3913 | bool temp2 ; | |
3914 | bool temp3 ; | |
3915 | PyObject * obj0 = 0 ; | |
3916 | char *kwnames[] = { | |
3917 | (char *) "self", NULL | |
3918 | }; | |
3919 | ||
3920 | arg2 = &temp2; | |
3921 | arg3 = &temp3; | |
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedSize",kwnames,&obj0)) goto fail; | |
3923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3924 | { | |
3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3926 | (arg1)->GetFixedSize(arg2,arg3); | |
3927 | ||
3928 | wxPyEndAllowThreads(__tstate); | |
3929 | if (PyErr_Occurred()) SWIG_fail; | |
3930 | } | |
3931 | Py_INCREF(Py_None); resultobj = Py_None; | |
3932 | { | |
3933 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3934 | resultobj = t_output_helper(resultobj,o); | |
3935 | } | |
3936 | { | |
3937 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3938 | resultobj = t_output_helper(resultobj,o); | |
3939 | } | |
3940 | return resultobj; | |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_PyShape_GetFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3949 | bool result; | |
3950 | PyObject * obj0 = 0 ; | |
3951 | char *kwnames[] = { | |
3952 | (char *) "self", NULL | |
3953 | }; | |
3954 | ||
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedWidth",kwnames,&obj0)) goto fail; | |
3956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | result = (bool)(arg1)->GetFixedWidth(); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | resultobj = PyInt_FromLong((long)result); | |
3965 | return resultobj; | |
3966 | fail: | |
3967 | return NULL; | |
3968 | } | |
3969 | ||
3970 | ||
3971 | static PyObject *_wrap_PyShape_GetFixedHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3972 | PyObject *resultobj; | |
3973 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3974 | bool result; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | char *kwnames[] = { | |
3977 | (char *) "self", NULL | |
3978 | }; | |
3979 | ||
3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedHeight",kwnames,&obj0)) goto fail; | |
3981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3982 | { | |
3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3984 | result = (bool)(arg1)->GetFixedHeight(); | |
3985 | ||
3986 | wxPyEndAllowThreads(__tstate); | |
3987 | if (PyErr_Occurred()) SWIG_fail; | |
3988 | } | |
3989 | resultobj = PyInt_FromLong((long)result); | |
3990 | return resultobj; | |
3991 | fail: | |
3992 | return NULL; | |
3993 | } | |
3994 | ||
3995 | ||
3996 | static PyObject *_wrap_PyShape_SetSpaceAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3997 | PyObject *resultobj; | |
3998 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3999 | bool arg2 ; | |
4000 | PyObject * obj0 = 0 ; | |
4001 | PyObject * obj1 = 0 ; | |
4002 | char *kwnames[] = { | |
4003 | (char *) "self",(char *) "sp", NULL | |
4004 | }; | |
4005 | ||
4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetSpaceAttachments",kwnames,&obj0,&obj1)) goto fail; | |
4007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4008 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | { | |
4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4012 | (arg1)->SetSpaceAttachments(arg2); | |
4013 | ||
4014 | wxPyEndAllowThreads(__tstate); | |
4015 | if (PyErr_Occurred()) SWIG_fail; | |
4016 | } | |
4017 | Py_INCREF(Py_None); resultobj = Py_None; | |
4018 | return resultobj; | |
4019 | fail: | |
4020 | return NULL; | |
4021 | } | |
4022 | ||
4023 | ||
4024 | static PyObject *_wrap_PyShape_GetSpaceAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4025 | PyObject *resultobj; | |
4026 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4027 | bool result; | |
4028 | PyObject * obj0 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "self", NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSpaceAttachments",kwnames,&obj0)) goto fail; | |
4034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4035 | { | |
4036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4037 | result = (bool)(arg1)->GetSpaceAttachments(); | |
4038 | ||
4039 | wxPyEndAllowThreads(__tstate); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | } | |
4042 | resultobj = PyInt_FromLong((long)result); | |
4043 | return resultobj; | |
4044 | fail: | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_PyShape_SetShadowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4052 | int arg2 ; | |
4053 | bool arg3 = (bool) False ; | |
4054 | PyObject * obj0 = 0 ; | |
4055 | PyObject * obj2 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "self",(char *) "mode",(char *) "redraw", NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:PyShape_SetShadowMode",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4062 | if (obj2) { | |
4063 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4064 | if (PyErr_Occurred()) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->SetShadowMode(arg2,arg3); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
4080 | static PyObject *_wrap_PyShape_GetShadowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4081 | PyObject *resultobj; | |
4082 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4083 | int result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetShadowMode",kwnames,&obj0)) goto fail; | |
4090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4091 | { | |
4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4093 | result = (int)(arg1)->GetShadowMode(); | |
4094 | ||
4095 | wxPyEndAllowThreads(__tstate); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | } | |
4098 | resultobj = PyInt_FromLong((long)result); | |
4099 | return resultobj; | |
4100 | fail: | |
4101 | return NULL; | |
4102 | } | |
4103 | ||
4104 | ||
4105 | static PyObject *_wrap_PyShape_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4106 | PyObject *resultobj; | |
4107 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4108 | double arg2 ; | |
4109 | double arg3 ; | |
4110 | int *arg4 = (int *) 0 ; | |
4111 | double *arg5 = (double *) 0 ; | |
4112 | bool result; | |
4113 | int temp4 ; | |
4114 | double temp5 ; | |
4115 | PyObject * obj0 = 0 ; | |
4116 | char *kwnames[] = { | |
4117 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4118 | }; | |
4119 | ||
4120 | arg4 = &temp4; | |
4121 | arg5 = &temp5; | |
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShape_HitTest",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4124 | { | |
4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4126 | result = (bool)(arg1)->HitTest(arg2,arg3,arg4,arg5); | |
4127 | ||
4128 | wxPyEndAllowThreads(__tstate); | |
4129 | if (PyErr_Occurred()) SWIG_fail; | |
4130 | } | |
4131 | resultobj = PyInt_FromLong((long)result); | |
4132 | { | |
4133 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4134 | resultobj = t_output_helper(resultobj,o); | |
4135 | } | |
4136 | { | |
4137 | PyObject *o = PyFloat_FromDouble((double) (*arg5)); | |
4138 | resultobj = t_output_helper(resultobj,o); | |
4139 | } | |
4140 | return resultobj; | |
4141 | fail: | |
4142 | return NULL; | |
4143 | } | |
4144 | ||
4145 | ||
4146 | static PyObject *_wrap_PyShape_SetCentreResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4147 | PyObject *resultobj; | |
4148 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4149 | bool arg2 ; | |
4150 | PyObject * obj0 = 0 ; | |
4151 | PyObject * obj1 = 0 ; | |
4152 | char *kwnames[] = { | |
4153 | (char *) "self",(char *) "cr", NULL | |
4154 | }; | |
4155 | ||
4156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCentreResize",kwnames,&obj0,&obj1)) goto fail; | |
4157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4158 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | { | |
4161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4162 | (arg1)->SetCentreResize(arg2); | |
4163 | ||
4164 | wxPyEndAllowThreads(__tstate); | |
4165 | if (PyErr_Occurred()) SWIG_fail; | |
4166 | } | |
4167 | Py_INCREF(Py_None); resultobj = Py_None; | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | return NULL; | |
4171 | } | |
4172 | ||
4173 | ||
4174 | static PyObject *_wrap_PyShape_GetCentreResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4175 | PyObject *resultobj; | |
4176 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4177 | bool result; | |
4178 | PyObject * obj0 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCentreResize",kwnames,&obj0)) goto fail; | |
4184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4185 | { | |
4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4187 | result = (bool)(arg1)->GetCentreResize(); | |
4188 | ||
4189 | wxPyEndAllowThreads(__tstate); | |
4190 | if (PyErr_Occurred()) SWIG_fail; | |
4191 | } | |
4192 | resultobj = PyInt_FromLong((long)result); | |
4193 | return resultobj; | |
4194 | fail: | |
4195 | return NULL; | |
4196 | } | |
4197 | ||
4198 | ||
4199 | static PyObject *_wrap_PyShape_SetMaintainAspectRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject *resultobj; | |
4201 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4202 | bool arg2 ; | |
4203 | PyObject * obj0 = 0 ; | |
4204 | PyObject * obj1 = 0 ; | |
4205 | char *kwnames[] = { | |
4206 | (char *) "self",(char *) "ar", NULL | |
4207 | }; | |
4208 | ||
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetMaintainAspectRatio",kwnames,&obj0,&obj1)) goto fail; | |
4210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4211 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | { | |
4214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4215 | (arg1)->SetMaintainAspectRatio(arg2); | |
4216 | ||
4217 | wxPyEndAllowThreads(__tstate); | |
4218 | if (PyErr_Occurred()) SWIG_fail; | |
4219 | } | |
4220 | Py_INCREF(Py_None); resultobj = Py_None; | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
4227 | static PyObject *_wrap_PyShape_GetMaintainAspectRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4228 | PyObject *resultobj; | |
4229 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4230 | bool result; | |
4231 | PyObject * obj0 = 0 ; | |
4232 | char *kwnames[] = { | |
4233 | (char *) "self", NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetMaintainAspectRatio",kwnames,&obj0)) goto fail; | |
4237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | result = (bool)(arg1)->GetMaintainAspectRatio(); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | resultobj = PyInt_FromLong((long)result); | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
4249 | } | |
4250 | ||
4251 | ||
4252 | static PyObject *_wrap_PyShape_GetLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4253 | PyObject *resultobj; | |
4254 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4255 | PyObject *result; | |
4256 | PyObject * obj0 = 0 ; | |
4257 | char *kwnames[] = { | |
4258 | (char *) "self", NULL | |
4259 | }; | |
4260 | ||
4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetLines",kwnames,&obj0)) goto fail; | |
4262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4263 | { | |
4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4265 | result = (PyObject *)wxPyShape_GetLines(arg1); | |
4266 | ||
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | resultobj = result; | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | static PyObject *_wrap_PyShape_SetDisableLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj; | |
4279 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4280 | bool arg2 ; | |
4281 | PyObject * obj0 = 0 ; | |
4282 | PyObject * obj1 = 0 ; | |
4283 | char *kwnames[] = { | |
4284 | (char *) "self",(char *) "flag", NULL | |
4285 | }; | |
4286 | ||
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDisableLabel",kwnames,&obj0,&obj1)) goto fail; | |
4288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4289 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
4290 | if (PyErr_Occurred()) SWIG_fail; | |
4291 | { | |
4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4293 | (arg1)->SetDisableLabel(arg2); | |
4294 | ||
4295 | wxPyEndAllowThreads(__tstate); | |
4296 | if (PyErr_Occurred()) SWIG_fail; | |
4297 | } | |
4298 | Py_INCREF(Py_None); resultobj = Py_None; | |
4299 | return resultobj; | |
4300 | fail: | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
4305 | static PyObject *_wrap_PyShape_GetDisableLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject *resultobj; | |
4307 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4308 | bool result; | |
4309 | PyObject * obj0 = 0 ; | |
4310 | char *kwnames[] = { | |
4311 | (char *) "self", NULL | |
4312 | }; | |
4313 | ||
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDisableLabel",kwnames,&obj0)) goto fail; | |
4315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4316 | { | |
4317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4318 | result = (bool)(arg1)->GetDisableLabel(); | |
4319 | ||
4320 | wxPyEndAllowThreads(__tstate); | |
4321 | if (PyErr_Occurred()) SWIG_fail; | |
4322 | } | |
4323 | resultobj = PyInt_FromLong((long)result); | |
4324 | return resultobj; | |
4325 | fail: | |
4326 | return NULL; | |
4327 | } | |
4328 | ||
4329 | ||
4330 | static PyObject *_wrap_PyShape_SetAttachmentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject *resultobj; | |
4332 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4333 | int arg2 ; | |
4334 | PyObject * obj0 = 0 ; | |
4335 | char *kwnames[] = { | |
4336 | (char *) "self",(char *) "mode", NULL | |
4337 | }; | |
4338 | ||
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_SetAttachmentMode",kwnames,&obj0,&arg2)) goto fail; | |
4340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4341 | { | |
4342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4343 | (arg1)->SetAttachmentMode(arg2); | |
4344 | ||
4345 | wxPyEndAllowThreads(__tstate); | |
4346 | if (PyErr_Occurred()) SWIG_fail; | |
4347 | } | |
4348 | Py_INCREF(Py_None); resultobj = Py_None; | |
4349 | return resultobj; | |
4350 | fail: | |
4351 | return NULL; | |
4352 | } | |
4353 | ||
4354 | ||
4355 | static PyObject *_wrap_PyShape_GetAttachmentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4356 | PyObject *resultobj; | |
4357 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4358 | int result; | |
4359 | PyObject * obj0 = 0 ; | |
4360 | char *kwnames[] = { | |
4361 | (char *) "self", NULL | |
4362 | }; | |
4363 | ||
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachmentMode",kwnames,&obj0)) goto fail; | |
4365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4366 | { | |
4367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4368 | result = (int)(arg1)->GetAttachmentMode(); | |
4369 | ||
4370 | wxPyEndAllowThreads(__tstate); | |
4371 | if (PyErr_Occurred()) SWIG_fail; | |
4372 | } | |
4373 | resultobj = PyInt_FromLong((long)result); | |
4374 | return resultobj; | |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
4380 | static PyObject *_wrap_PyShape_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4381 | PyObject *resultobj; | |
4382 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4383 | long arg2 ; | |
4384 | PyObject * obj0 = 0 ; | |
4385 | char *kwnames[] = { | |
4386 | (char *) "self",(char *) "i", NULL | |
4387 | }; | |
4388 | ||
4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:PyShape_SetId",kwnames,&obj0,&arg2)) goto fail; | |
4390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | (arg1)->SetId(arg2); | |
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 | ||
4405 | static PyObject *_wrap_PyShape_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject *resultobj; | |
4407 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4408 | long result; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | char *kwnames[] = { | |
4411 | (char *) "self", NULL | |
4412 | }; | |
4413 | ||
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetId",kwnames,&obj0)) goto fail; | |
4415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4416 | { | |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (long)(arg1)->GetId(); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
4423 | resultobj = PyInt_FromLong((long)result); | |
4424 | return resultobj; | |
4425 | fail: | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
4430 | static PyObject *_wrap_PyShape_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject *resultobj; | |
4432 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4433 | wxPen *arg2 = (wxPen *) 0 ; | |
4434 | PyObject * obj0 = 0 ; | |
4435 | PyObject * obj1 = 0 ; | |
4436 | char *kwnames[] = { | |
4437 | (char *) "self",(char *) "pen", NULL | |
4438 | }; | |
4439 | ||
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
4441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4442 | { | |
4443 | wxPen* temp; | |
4444 | if (obj1) { | |
4445 | if (obj1 == Py_None) { | |
4446 | temp = NULL; | |
4447 | } | |
4448 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
4449 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
4450 | return NULL; | |
4451 | } | |
4452 | } | |
4453 | if (temp) | |
4454 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
4455 | temp->GetWidth(), | |
4456 | temp->GetStyle()); | |
4457 | else | |
4458 | arg2 = NULL; | |
4459 | } | |
4460 | { | |
4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4462 | (arg1)->SetPen(arg2); | |
4463 | ||
4464 | wxPyEndAllowThreads(__tstate); | |
4465 | if (PyErr_Occurred()) SWIG_fail; | |
4466 | } | |
4467 | Py_INCREF(Py_None); resultobj = Py_None; | |
4468 | return resultobj; | |
4469 | fail: | |
4470 | return NULL; | |
4471 | } | |
4472 | ||
4473 | ||
4474 | static PyObject *_wrap_PyShape_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4475 | PyObject *resultobj; | |
4476 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4477 | wxBrush *arg2 = (wxBrush *) 0 ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | PyObject * obj1 = 0 ; | |
4480 | char *kwnames[] = { | |
4481 | (char *) "self",(char *) "brush", NULL | |
4482 | }; | |
4483 | ||
4484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
4485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4486 | { | |
4487 | wxBrush* temp; | |
4488 | if (obj1) { | |
4489 | if (obj1 == Py_None) { | |
4490 | temp = NULL; | |
4491 | } | |
4492 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
4493 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
4494 | return NULL; | |
4495 | } | |
4496 | } | |
4497 | if (temp) | |
4498 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
4499 | else | |
4500 | arg2 = NULL; | |
4501 | } | |
4502 | { | |
4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4504 | (arg1)->SetBrush(arg2); | |
4505 | ||
4506 | wxPyEndAllowThreads(__tstate); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | } | |
4509 | Py_INCREF(Py_None); resultobj = Py_None; | |
4510 | return resultobj; | |
4511 | fail: | |
4512 | return NULL; | |
4513 | } | |
4514 | ||
4515 | ||
4516 | static PyObject *_wrap_PyShape_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4517 | PyObject *resultobj; | |
4518 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4519 | bool arg2 ; | |
4520 | PyObject * obj0 = 0 ; | |
4521 | PyObject * obj1 = 0 ; | |
4522 | char *kwnames[] = { | |
4523 | (char *) "self",(char *) "show", NULL | |
4524 | }; | |
4525 | ||
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Show",kwnames,&obj0,&obj1)) goto fail; | |
4527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4528 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
4529 | if (PyErr_Occurred()) SWIG_fail; | |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | (arg1)->Show(arg2); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4537 | Py_INCREF(Py_None); resultobj = Py_None; | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_PyShape_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4547 | bool result; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | char *kwnames[] = { | |
4550 | (char *) "self", NULL | |
4551 | }; | |
4552 | ||
4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsShown",kwnames,&obj0)) goto fail; | |
4554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4555 | { | |
4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4557 | result = (bool)(arg1)->IsShown(); | |
4558 | ||
4559 | wxPyEndAllowThreads(__tstate); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | } | |
4562 | resultobj = PyInt_FromLong((long)result); | |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | static PyObject *_wrap_PyShape_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject *resultobj; | |
4571 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4572 | wxDC *arg2 = 0 ; | |
4573 | double arg3 ; | |
4574 | double arg4 ; | |
4575 | bool arg5 = (bool) True ; | |
4576 | PyObject * obj0 = 0 ; | |
4577 | PyObject * obj1 = 0 ; | |
4578 | PyObject * obj4 = 0 ; | |
4579 | char *kwnames[] = { | |
4580 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "display", NULL | |
4581 | }; | |
4582 | ||
4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|O:PyShape_Move",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
4584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4585 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4586 | if (arg2 == NULL) { | |
4587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4588 | } | |
4589 | if (obj4) { | |
4590 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | { | |
4594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4595 | (arg1)->Move(*arg2,arg3,arg4,arg5); | |
4596 | ||
4597 | wxPyEndAllowThreads(__tstate); | |
4598 | if (PyErr_Occurred()) SWIG_fail; | |
4599 | } | |
4600 | Py_INCREF(Py_None); resultobj = Py_None; | |
4601 | return resultobj; | |
4602 | fail: | |
4603 | return NULL; | |
4604 | } | |
4605 | ||
4606 | ||
4607 | static PyObject *_wrap_PyShape_Erase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4608 | PyObject *resultobj; | |
4609 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4610 | wxDC *arg2 = 0 ; | |
4611 | PyObject * obj0 = 0 ; | |
4612 | PyObject * obj1 = 0 ; | |
4613 | char *kwnames[] = { | |
4614 | (char *) "self",(char *) "dc", NULL | |
4615 | }; | |
4616 | ||
4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Erase",kwnames,&obj0,&obj1)) goto fail; | |
4618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4619 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4620 | if (arg2 == NULL) { | |
4621 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4622 | } | |
4623 | { | |
4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4625 | (arg1)->Erase(*arg2); | |
4626 | ||
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4630 | Py_INCREF(Py_None); resultobj = Py_None; | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | return NULL; | |
4634 | } | |
4635 | ||
4636 | ||
4637 | static PyObject *_wrap_PyShape_EraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4638 | PyObject *resultobj; | |
4639 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4640 | wxDC *arg2 = 0 ; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | PyObject * obj1 = 0 ; | |
4643 | char *kwnames[] = { | |
4644 | (char *) "self",(char *) "dc", NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_EraseContents",kwnames,&obj0,&obj1)) goto fail; | |
4648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4649 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4650 | if (arg2 == NULL) { | |
4651 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4652 | } | |
4653 | { | |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4655 | (arg1)->EraseContents(*arg2); | |
4656 | ||
4657 | wxPyEndAllowThreads(__tstate); | |
4658 | if (PyErr_Occurred()) SWIG_fail; | |
4659 | } | |
4660 | Py_INCREF(Py_None); resultobj = Py_None; | |
4661 | return resultobj; | |
4662 | fail: | |
4663 | return NULL; | |
4664 | } | |
4665 | ||
4666 | ||
4667 | static PyObject *_wrap_PyShape_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4668 | PyObject *resultobj; | |
4669 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4670 | wxDC *arg2 = 0 ; | |
4671 | PyObject * obj0 = 0 ; | |
4672 | PyObject * obj1 = 0 ; | |
4673 | char *kwnames[] = { | |
4674 | (char *) "self",(char *) "dc", NULL | |
4675 | }; | |
4676 | ||
4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Draw",kwnames,&obj0,&obj1)) goto fail; | |
4678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4679 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4680 | if (arg2 == NULL) { | |
4681 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4682 | } | |
4683 | { | |
4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4685 | (arg1)->Draw(*arg2); | |
4686 | ||
4687 | wxPyEndAllowThreads(__tstate); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | Py_INCREF(Py_None); resultobj = Py_None; | |
4691 | return resultobj; | |
4692 | fail: | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
4697 | static PyObject *_wrap_PyShape_Flash(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject *resultobj; | |
4699 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4700 | PyObject * obj0 = 0 ; | |
4701 | char *kwnames[] = { | |
4702 | (char *) "self", NULL | |
4703 | }; | |
4704 | ||
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Flash",kwnames,&obj0)) goto fail; | |
4706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4707 | { | |
4708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4709 | (arg1)->Flash(); | |
4710 | ||
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | Py_INCREF(Py_None); resultobj = Py_None; | |
4715 | return resultobj; | |
4716 | fail: | |
4717 | return NULL; | |
4718 | } | |
4719 | ||
4720 | ||
4721 | static PyObject *_wrap_PyShape_MoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4722 | PyObject *resultobj; | |
4723 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4724 | wxDC *arg2 = 0 ; | |
4725 | PyObject * obj0 = 0 ; | |
4726 | PyObject * obj1 = 0 ; | |
4727 | char *kwnames[] = { | |
4728 | (char *) "self",(char *) "dc", NULL | |
4729 | }; | |
4730 | ||
4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_MoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
4732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4733 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4734 | if (arg2 == NULL) { | |
4735 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4736 | } | |
4737 | { | |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | (arg1)->MoveLinks(*arg2); | |
4740 | ||
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4744 | Py_INCREF(Py_None); resultobj = Py_None; | |
4745 | return resultobj; | |
4746 | fail: | |
4747 | return NULL; | |
4748 | } | |
4749 | ||
4750 | ||
4751 | static PyObject *_wrap_PyShape_DrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj; | |
4753 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4754 | wxDC *arg2 = 0 ; | |
4755 | PyObject * obj0 = 0 ; | |
4756 | PyObject * obj1 = 0 ; | |
4757 | char *kwnames[] = { | |
4758 | (char *) "self",(char *) "dc", NULL | |
4759 | }; | |
4760 | ||
4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_DrawContents",kwnames,&obj0,&obj1)) goto fail; | |
4762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4763 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4764 | if (arg2 == NULL) { | |
4765 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4766 | } | |
4767 | { | |
4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4769 | (arg1)->DrawContents(*arg2); | |
4770 | ||
4771 | wxPyEndAllowThreads(__tstate); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | } | |
4774 | Py_INCREF(Py_None); resultobj = Py_None; | |
4775 | return resultobj; | |
4776 | fail: | |
4777 | return NULL; | |
4778 | } | |
4779 | ||
4780 | ||
4781 | static PyObject *_wrap_PyShape_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject *resultobj; | |
4783 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4784 | double arg2 ; | |
4785 | double arg3 ; | |
4786 | bool arg4 = (bool) True ; | |
4787 | PyObject * obj0 = 0 ; | |
4788 | PyObject * obj3 = 0 ; | |
4789 | char *kwnames[] = { | |
4790 | (char *) "self",(char *) "x",(char *) "y",(char *) "recursive", NULL | |
4791 | }; | |
4792 | ||
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|O:PyShape_SetSize",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
4794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4795 | if (obj3) { | |
4796 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
4797 | if (PyErr_Occurred()) SWIG_fail; | |
4798 | } | |
4799 | { | |
4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4801 | (arg1)->SetSize(arg2,arg3,arg4); | |
4802 | ||
4803 | wxPyEndAllowThreads(__tstate); | |
4804 | if (PyErr_Occurred()) SWIG_fail; | |
4805 | } | |
4806 | Py_INCREF(Py_None); resultobj = Py_None; | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
4813 | static PyObject *_wrap_PyShape_SetAttachmentSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject *resultobj; | |
4815 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4816 | double arg2 ; | |
4817 | double arg3 ; | |
4818 | PyObject * obj0 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4821 | }; | |
4822 | ||
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShape_SetAttachmentSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | (arg1)->SetAttachmentSize(arg2,arg3); | |
4828 | ||
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | Py_INCREF(Py_None); resultobj = Py_None; | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_PyShape_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4842 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
4843 | PyObject * obj0 = 0 ; | |
4844 | PyObject * obj1 = 0 ; | |
4845 | char *kwnames[] = { | |
4846 | (char *) "self",(char *) "can", NULL | |
4847 | }; | |
4848 | ||
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Attach",kwnames,&obj0,&obj1)) goto fail; | |
4850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4851 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4852 | { | |
4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4854 | (arg1)->Attach(arg2); | |
4855 | ||
4856 | wxPyEndAllowThreads(__tstate); | |
4857 | if (PyErr_Occurred()) SWIG_fail; | |
4858 | } | |
4859 | Py_INCREF(Py_None); resultobj = Py_None; | |
4860 | return resultobj; | |
4861 | fail: | |
4862 | return NULL; | |
4863 | } | |
4864 | ||
4865 | ||
4866 | static PyObject *_wrap_PyShape_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4867 | PyObject *resultobj; | |
4868 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4869 | PyObject * obj0 = 0 ; | |
4870 | char *kwnames[] = { | |
4871 | (char *) "self", NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Detach",kwnames,&obj0)) goto fail; | |
4875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4876 | { | |
4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4878 | (arg1)->Detach(); | |
4879 | ||
4880 | wxPyEndAllowThreads(__tstate); | |
4881 | if (PyErr_Occurred()) SWIG_fail; | |
4882 | } | |
4883 | Py_INCREF(Py_None); resultobj = Py_None; | |
4884 | return resultobj; | |
4885 | fail: | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
4890 | static PyObject *_wrap_PyShape_Constrain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject *resultobj; | |
4892 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4893 | bool result; | |
4894 | PyObject * obj0 = 0 ; | |
4895 | char *kwnames[] = { | |
4896 | (char *) "self", NULL | |
4897 | }; | |
4898 | ||
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Constrain",kwnames,&obj0)) goto fail; | |
4900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4901 | { | |
4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4903 | result = (bool)(arg1)->Constrain(); | |
4904 | ||
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | resultobj = PyInt_FromLong((long)result); | |
4909 | return resultobj; | |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | static PyObject *_wrap_PyShape_AddLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4916 | PyObject *resultobj; | |
4917 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4918 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
4919 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
4920 | int arg4 = (int) 0 ; | |
4921 | int arg5 = (int) 0 ; | |
4922 | int arg6 = (int) -1 ; | |
4923 | int arg7 = (int) -1 ; | |
4924 | PyObject * obj0 = 0 ; | |
4925 | PyObject * obj1 = 0 ; | |
4926 | PyObject * obj2 = 0 ; | |
4927 | char *kwnames[] = { | |
4928 | (char *) "self",(char *) "line",(char *) "other",(char *) "attachFrom",(char *) "attachTo",(char *) "positionFrom",(char *) "positionTo", NULL | |
4929 | }; | |
4930 | ||
4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiii:PyShape_AddLine",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
4932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4933 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4934 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4935 | { | |
4936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4937 | (arg1)->AddLine(arg2,arg3,arg4,arg5,arg6,arg7); | |
4938 | ||
4939 | wxPyEndAllowThreads(__tstate); | |
4940 | if (PyErr_Occurred()) SWIG_fail; | |
4941 | } | |
4942 | Py_INCREF(Py_None); resultobj = Py_None; | |
4943 | return resultobj; | |
4944 | fail: | |
4945 | return NULL; | |
4946 | } | |
4947 | ||
4948 | ||
4949 | static PyObject *_wrap_PyShape_GetLinePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4950 | PyObject *resultobj; | |
4951 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4952 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
4953 | int result; | |
4954 | PyObject * obj0 = 0 ; | |
4955 | PyObject * obj1 = 0 ; | |
4956 | char *kwnames[] = { | |
4957 | (char *) "self",(char *) "line", NULL | |
4958 | }; | |
4959 | ||
4960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetLinePosition",kwnames,&obj0,&obj1)) goto fail; | |
4961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4962 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | result = (int)(arg1)->GetLinePosition(arg2); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
4970 | resultobj = PyInt_FromLong((long)result); | |
4971 | return resultobj; | |
4972 | fail: | |
4973 | return NULL; | |
4974 | } | |
4975 | ||
4976 | ||
4977 | static PyObject *_wrap_PyShape_AddText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4978 | PyObject *resultobj; | |
4979 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4980 | wxString *arg2 = 0 ; | |
4981 | bool temp2 = False ; | |
4982 | PyObject * obj0 = 0 ; | |
4983 | PyObject * obj1 = 0 ; | |
4984 | char *kwnames[] = { | |
4985 | (char *) "self",(char *) "string", NULL | |
4986 | }; | |
4987 | ||
4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddText",kwnames,&obj0,&obj1)) goto fail; | |
4989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4990 | { | |
4991 | arg2 = wxString_in_helper(obj1); | |
4992 | if (arg2 == NULL) SWIG_fail; | |
4993 | temp2 = True; | |
4994 | } | |
4995 | { | |
4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4997 | (arg1)->AddText((wxString const &)*arg2); | |
4998 | ||
4999 | wxPyEndAllowThreads(__tstate); | |
5000 | if (PyErr_Occurred()) SWIG_fail; | |
5001 | } | |
5002 | Py_INCREF(Py_None); resultobj = Py_None; | |
5003 | { | |
5004 | if (temp2) | |
5005 | delete arg2; | |
5006 | } | |
5007 | return resultobj; | |
5008 | fail: | |
5009 | { | |
5010 | if (temp2) | |
5011 | delete arg2; | |
5012 | } | |
5013 | return NULL; | |
5014 | } | |
5015 | ||
5016 | ||
5017 | static PyObject *_wrap_PyShape_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5018 | PyObject *resultobj; | |
5019 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5020 | wxPen *result; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | char *kwnames[] = { | |
5023 | (char *) "self", NULL | |
5024 | }; | |
5025 | ||
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetPen",kwnames,&obj0)) goto fail; | |
5027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5028 | { | |
5029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5030 | result = (wxPen *)(arg1)->GetPen(); | |
5031 | ||
5032 | wxPyEndAllowThreads(__tstate); | |
5033 | if (PyErr_Occurred()) SWIG_fail; | |
5034 | } | |
5035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
5036 | return resultobj; | |
5037 | fail: | |
5038 | return NULL; | |
5039 | } | |
5040 | ||
5041 | ||
5042 | static PyObject *_wrap_PyShape_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5043 | PyObject *resultobj; | |
5044 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5045 | wxBrush *result; | |
5046 | PyObject * obj0 = 0 ; | |
5047 | char *kwnames[] = { | |
5048 | (char *) "self", NULL | |
5049 | }; | |
5050 | ||
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBrush",kwnames,&obj0)) goto fail; | |
5052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5053 | { | |
5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5055 | result = (wxBrush *)(arg1)->GetBrush(); | |
5056 | ||
5057 | wxPyEndAllowThreads(__tstate); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
5060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
5061 | return resultobj; | |
5062 | fail: | |
5063 | return NULL; | |
5064 | } | |
5065 | ||
5066 | ||
5067 | static PyObject *_wrap_PyShape_SetDefaultRegionSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject *resultobj; | |
5069 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "self", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_SetDefaultRegionSize",kwnames,&obj0)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5077 | { | |
5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5079 | (arg1)->SetDefaultRegionSize(); | |
5080 | ||
5081 | wxPyEndAllowThreads(__tstate); | |
5082 | if (PyErr_Occurred()) SWIG_fail; | |
5083 | } | |
5084 | Py_INCREF(Py_None); resultobj = Py_None; | |
5085 | return resultobj; | |
5086 | fail: | |
5087 | return NULL; | |
5088 | } | |
5089 | ||
5090 | ||
5091 | static PyObject *_wrap_PyShape_FormatText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject *resultobj; | |
5093 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5094 | wxDC *arg2 = 0 ; | |
5095 | wxString *arg3 = 0 ; | |
5096 | int arg4 = (int) 0 ; | |
5097 | bool temp3 = False ; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | PyObject * obj1 = 0 ; | |
5100 | PyObject * obj2 = 0 ; | |
5101 | char *kwnames[] = { | |
5102 | (char *) "self",(char *) "dc",(char *) "s",(char *) "regionId", NULL | |
5103 | }; | |
5104 | ||
5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:PyShape_FormatText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5107 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5108 | if (arg2 == NULL) { | |
5109 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5110 | } | |
5111 | { | |
5112 | arg3 = wxString_in_helper(obj2); | |
5113 | if (arg3 == NULL) SWIG_fail; | |
5114 | temp3 = True; | |
5115 | } | |
5116 | { | |
5117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5118 | (arg1)->FormatText(*arg2,(wxString const &)*arg3,arg4); | |
5119 | ||
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
5123 | Py_INCREF(Py_None); resultobj = Py_None; | |
5124 | { | |
5125 | if (temp3) | |
5126 | delete arg3; | |
5127 | } | |
5128 | return resultobj; | |
5129 | fail: | |
5130 | { | |
5131 | if (temp3) | |
5132 | delete arg3; | |
5133 | } | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
5138 | static PyObject *_wrap_PyShape_SetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5139 | PyObject *resultobj; | |
5140 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5141 | int arg2 ; | |
5142 | int arg3 = (int) 0 ; | |
5143 | PyObject * obj0 = 0 ; | |
5144 | char *kwnames[] = { | |
5145 | (char *) "self",(char *) "mode",(char *) "regionId", NULL | |
5146 | }; | |
5147 | ||
5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:PyShape_SetFormatMode",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5150 | { | |
5151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5152 | (arg1)->SetFormatMode(arg2,arg3); | |
5153 | ||
5154 | wxPyEndAllowThreads(__tstate); | |
5155 | if (PyErr_Occurred()) SWIG_fail; | |
5156 | } | |
5157 | Py_INCREF(Py_None); resultobj = Py_None; | |
5158 | return resultobj; | |
5159 | fail: | |
5160 | return NULL; | |
5161 | } | |
5162 | ||
5163 | ||
5164 | static PyObject *_wrap_PyShape_GetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5165 | PyObject *resultobj; | |
5166 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5167 | int arg2 = (int) 0 ; | |
5168 | int result; | |
5169 | PyObject * obj0 = 0 ; | |
5170 | char *kwnames[] = { | |
5171 | (char *) "self",(char *) "regionId", NULL | |
5172 | }; | |
5173 | ||
5174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyShape_GetFormatMode",kwnames,&obj0,&arg2)) goto fail; | |
5175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | result = (int)(arg1)->GetFormatMode(arg2); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | resultobj = PyInt_FromLong((long)result); | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
5190 | static PyObject *_wrap_PyShape_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject *resultobj; | |
5192 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5193 | wxFont *arg2 = (wxFont *) 0 ; | |
5194 | int arg3 = (int) 0 ; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | PyObject * obj1 = 0 ; | |
5197 | char *kwnames[] = { | |
5198 | (char *) "self",(char *) "font",(char *) "regionId", NULL | |
5199 | }; | |
5200 | ||
5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:PyShape_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5203 | { | |
5204 | wxFont* temp; | |
5205 | if (obj1) { | |
5206 | if (obj1 == Py_None) { | |
5207 | temp = NULL; | |
5208 | } | |
5209 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
5210 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
5211 | return NULL; | |
5212 | } | |
5213 | } | |
5214 | if (temp) | |
5215 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
5216 | temp->GetFamily(), | |
5217 | temp->GetStyle(), | |
5218 | temp->GetWeight(), | |
5219 | temp->GetUnderlined(), | |
5220 | temp->GetFaceName(), | |
5221 | temp->GetEncoding()); | |
5222 | else | |
5223 | arg2 = NULL; | |
5224 | } | |
5225 | { | |
5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5227 | (arg1)->SetFont(arg2,arg3); | |
5228 | ||
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | Py_INCREF(Py_None); resultobj = Py_None; | |
5233 | return resultobj; | |
5234 | fail: | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
5239 | static PyObject *_wrap_PyShape_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5242 | int arg2 = (int) 0 ; | |
5243 | wxFont *result; | |
5244 | PyObject * obj0 = 0 ; | |
5245 | char *kwnames[] = { | |
5246 | (char *) "self",(char *) "regionId", NULL | |
5247 | }; | |
5248 | ||
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyShape_GetFont",kwnames,&obj0,&arg2)) goto fail; | |
5250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (wxFont *)(arg1)->GetFont(arg2); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
5265 | static PyObject *_wrap_PyShape_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5266 | PyObject *resultobj; | |
5267 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5268 | wxString *arg2 = 0 ; | |
5269 | int arg3 = (int) 0 ; | |
5270 | bool temp2 = False ; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | PyObject * obj1 = 0 ; | |
5273 | char *kwnames[] = { | |
5274 | (char *) "self",(char *) "colour",(char *) "regionId", NULL | |
5275 | }; | |
5276 | ||
5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:PyShape_SetTextColour",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5279 | { | |
5280 | arg2 = wxString_in_helper(obj1); | |
5281 | if (arg2 == NULL) SWIG_fail; | |
5282 | temp2 = True; | |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->SetTextColour((wxString const &)*arg2,arg3); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | { | |
5293 | if (temp2) | |
5294 | delete arg2; | |
5295 | } | |
5296 | return resultobj; | |
5297 | fail: | |
5298 | { | |
5299 | if (temp2) | |
5300 | delete arg2; | |
5301 | } | |
5302 | return NULL; | |
5303 | } | |
5304 | ||
5305 | ||
5306 | static PyObject *_wrap_PyShape_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject *resultobj; | |
5308 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5309 | int arg2 = (int) 0 ; | |
5310 | wxString result; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self",(char *) "regionId", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyShape_GetTextColour",kwnames,&obj0,&arg2)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5318 | { | |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | result = (arg1)->GetTextColour(arg2); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | { | |
5326 | #if wxUSE_UNICODE | |
5327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5328 | #else | |
5329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5330 | #endif | |
5331 | } | |
5332 | return resultobj; | |
5333 | fail: | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_PyShape_GetNumberOfTextRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5341 | int result; | |
5342 | PyObject * obj0 = 0 ; | |
5343 | char *kwnames[] = { | |
5344 | (char *) "self", NULL | |
5345 | }; | |
5346 | ||
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfTextRegions",kwnames,&obj0)) goto fail; | |
5348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | result = (int)(arg1)->GetNumberOfTextRegions(); | |
5352 | ||
5353 | wxPyEndAllowThreads(__tstate); | |
5354 | if (PyErr_Occurred()) SWIG_fail; | |
5355 | } | |
5356 | resultobj = PyInt_FromLong((long)result); | |
5357 | return resultobj; | |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
5363 | static PyObject *_wrap_PyShape_SetRegionName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5364 | PyObject *resultobj; | |
5365 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5366 | wxString *arg2 = 0 ; | |
5367 | int arg3 = (int) 0 ; | |
5368 | bool temp2 = False ; | |
5369 | PyObject * obj0 = 0 ; | |
5370 | PyObject * obj1 = 0 ; | |
5371 | char *kwnames[] = { | |
5372 | (char *) "self",(char *) "name",(char *) "regionId", NULL | |
5373 | }; | |
5374 | ||
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:PyShape_SetRegionName",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5377 | { | |
5378 | arg2 = wxString_in_helper(obj1); | |
5379 | if (arg2 == NULL) SWIG_fail; | |
5380 | temp2 = True; | |
5381 | } | |
5382 | { | |
5383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5384 | (arg1)->SetRegionName((wxString const &)*arg2,arg3); | |
5385 | ||
5386 | wxPyEndAllowThreads(__tstate); | |
5387 | if (PyErr_Occurred()) SWIG_fail; | |
5388 | } | |
5389 | Py_INCREF(Py_None); resultobj = Py_None; | |
5390 | { | |
5391 | if (temp2) | |
5392 | delete arg2; | |
5393 | } | |
5394 | return resultobj; | |
5395 | fail: | |
5396 | { | |
5397 | if (temp2) | |
5398 | delete arg2; | |
5399 | } | |
5400 | return NULL; | |
5401 | } | |
5402 | ||
5403 | ||
5404 | static PyObject *_wrap_PyShape_GetRegionName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5405 | PyObject *resultobj; | |
5406 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5407 | int arg2 ; | |
5408 | wxString result; | |
5409 | PyObject * obj0 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self",(char *) "regionId", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_GetRegionName",kwnames,&obj0,&arg2)) goto fail; | |
5415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5416 | { | |
5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5418 | result = (arg1)->GetRegionName(arg2); | |
5419 | ||
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | #if wxUSE_UNICODE | |
5425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5426 | #else | |
5427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5428 | #endif | |
5429 | } | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_PyShape_GetRegionId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5439 | wxString *arg2 = 0 ; | |
5440 | int result; | |
5441 | bool temp2 = False ; | |
5442 | PyObject * obj0 = 0 ; | |
5443 | PyObject * obj1 = 0 ; | |
5444 | char *kwnames[] = { | |
5445 | (char *) "self",(char *) "name", NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetRegionId",kwnames,&obj0,&obj1)) goto fail; | |
5449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5450 | { | |
5451 | arg2 = wxString_in_helper(obj1); | |
5452 | if (arg2 == NULL) SWIG_fail; | |
5453 | temp2 = True; | |
5454 | } | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | result = (int)(arg1)->GetRegionId((wxString const &)*arg2); | |
5458 | ||
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
5462 | resultobj = PyInt_FromLong((long)result); | |
5463 | { | |
5464 | if (temp2) | |
5465 | delete arg2; | |
5466 | } | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | { | |
5470 | if (temp2) | |
5471 | delete arg2; | |
5472 | } | |
5473 | return NULL; | |
5474 | } | |
5475 | ||
5476 | ||
5477 | static PyObject *_wrap_PyShape_NameRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5478 | PyObject *resultobj; | |
5479 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
dec9fa49 | 5480 | wxString const &arg2_defvalue = wxPyEmptyString ; |
44127b65 RD |
5481 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
5482 | bool temp2 = False ; | |
5483 | PyObject * obj0 = 0 ; | |
5484 | PyObject * obj1 = 0 ; | |
5485 | char *kwnames[] = { | |
5486 | (char *) "self",(char *) "parentName", NULL | |
5487 | }; | |
5488 | ||
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_NameRegions",kwnames,&obj0,&obj1)) goto fail; | |
5490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5491 | if (obj1) { | |
5492 | { | |
5493 | arg2 = wxString_in_helper(obj1); | |
5494 | if (arg2 == NULL) SWIG_fail; | |
5495 | temp2 = True; | |
5496 | } | |
5497 | } | |
5498 | { | |
5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5500 | (arg1)->NameRegions((wxString const &)*arg2); | |
5501 | ||
5502 | wxPyEndAllowThreads(__tstate); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
5505 | Py_INCREF(Py_None); resultobj = Py_None; | |
5506 | { | |
5507 | if (temp2) | |
5508 | delete arg2; | |
5509 | } | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | { | |
5513 | if (temp2) | |
5514 | delete arg2; | |
5515 | } | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_PyShape_GetRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5523 | PyObject *result; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "self", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRegions",kwnames,&obj0)) goto fail; | |
5530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (PyObject *)wxPyShape_GetRegions(arg1); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | resultobj = result; | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
5545 | static PyObject *_wrap_PyShape_AddRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject *resultobj; | |
5547 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5548 | wxShapeRegion *arg2 = (wxShapeRegion *) 0 ; | |
5549 | PyObject * obj0 = 0 ; | |
5550 | PyObject * obj1 = 0 ; | |
5551 | char *kwnames[] = { | |
5552 | (char *) "self",(char *) "region", NULL | |
5553 | }; | |
5554 | ||
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddRegion",kwnames,&obj0,&obj1)) goto fail; | |
5556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5557 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5560 | (arg1)->AddRegion(arg2); | |
5561 | ||
5562 | wxPyEndAllowThreads(__tstate); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | } | |
5565 | Py_INCREF(Py_None); resultobj = Py_None; | |
5566 | return resultobj; | |
5567 | fail: | |
5568 | return NULL; | |
5569 | } | |
5570 | ||
5571 | ||
5572 | static PyObject *_wrap_PyShape_ClearRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject *resultobj; | |
5574 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5575 | PyObject * obj0 = 0 ; | |
5576 | char *kwnames[] = { | |
5577 | (char *) "self", NULL | |
5578 | }; | |
5579 | ||
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearRegions",kwnames,&obj0)) goto fail; | |
5581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5582 | { | |
5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5584 | (arg1)->ClearRegions(); | |
5585 | ||
5586 | wxPyEndAllowThreads(__tstate); | |
5587 | if (PyErr_Occurred()) SWIG_fail; | |
5588 | } | |
5589 | Py_INCREF(Py_None); resultobj = Py_None; | |
5590 | return resultobj; | |
5591 | fail: | |
5592 | return NULL; | |
5593 | } | |
5594 | ||
5595 | ||
5596 | static PyObject *_wrap_PyShape_AssignNewIds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5597 | PyObject *resultobj; | |
5598 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5599 | PyObject * obj0 = 0 ; | |
5600 | char *kwnames[] = { | |
5601 | (char *) "self", NULL | |
5602 | }; | |
5603 | ||
5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AssignNewIds",kwnames,&obj0)) goto fail; | |
5605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5606 | { | |
5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5608 | (arg1)->AssignNewIds(); | |
5609 | ||
5610 | wxPyEndAllowThreads(__tstate); | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | Py_INCREF(Py_None); resultobj = Py_None; | |
5614 | return resultobj; | |
5615 | fail: | |
5616 | return NULL; | |
5617 | } | |
5618 | ||
5619 | ||
5620 | static PyObject *_wrap_PyShape_FindRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5621 | PyObject *resultobj; | |
5622 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5623 | wxString *arg2 = 0 ; | |
5624 | int *arg3 = (int *) 0 ; | |
5625 | wxPyShape *result; | |
5626 | bool temp2 = False ; | |
5627 | int temp3 ; | |
5628 | PyObject * obj0 = 0 ; | |
5629 | PyObject * obj1 = 0 ; | |
5630 | char *kwnames[] = { | |
5631 | (char *) "self",(char *) "regionName", NULL | |
5632 | }; | |
5633 | ||
5634 | arg3 = &temp3; | |
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegion",kwnames,&obj0,&obj1)) goto fail; | |
5636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5637 | { | |
5638 | arg2 = wxString_in_helper(obj1); | |
5639 | if (arg2 == NULL) SWIG_fail; | |
5640 | temp2 = True; | |
5641 | } | |
5642 | { | |
5643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5644 | result = (wxPyShape *)(arg1)->FindRegion((wxString const &)*arg2,arg3); | |
5645 | ||
5646 | wxPyEndAllowThreads(__tstate); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
5648 | } | |
5649 | { | |
5650 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
5651 | } | |
5652 | { | |
5653 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5654 | resultobj = t_output_helper(resultobj,o); | |
5655 | } | |
5656 | { | |
5657 | if (temp2) | |
5658 | delete arg2; | |
5659 | } | |
5660 | return resultobj; | |
5661 | fail: | |
5662 | { | |
5663 | if (temp2) | |
5664 | delete arg2; | |
5665 | } | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | static PyObject *_wrap_PyShape_FindRegionNames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj; | |
5672 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5673 | wxStringList *arg2 = 0 ; | |
5674 | PyObject * obj0 = 0 ; | |
5675 | PyObject * obj1 = 0 ; | |
5676 | char *kwnames[] = { | |
5677 | (char *) "self",(char *) "list", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegionNames",kwnames,&obj0,&obj1)) goto fail; | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxStringList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5683 | if (arg2 == NULL) { | |
5684 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5685 | } | |
5686 | { | |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5688 | (arg1)->FindRegionNames(*arg2); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | Py_INCREF(Py_None); resultobj = Py_None; | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_PyShape_ClearText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5703 | int arg2 = (int) 0 ; | |
5704 | PyObject * obj0 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self",(char *) "regionId", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyShape_ClearText",kwnames,&obj0,&arg2)) goto fail; | |
5710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | (arg1)->ClearText(arg2); | |
5714 | ||
5715 | wxPyEndAllowThreads(__tstate); | |
5716 | if (PyErr_Occurred()) SWIG_fail; | |
5717 | } | |
5718 | Py_INCREF(Py_None); resultobj = Py_None; | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | return NULL; | |
5722 | } | |
5723 | ||
5724 | ||
5725 | static PyObject *_wrap_PyShape_RemoveLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5726 | PyObject *resultobj; | |
5727 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5728 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
5729 | PyObject * obj0 = 0 ; | |
5730 | PyObject * obj1 = 0 ; | |
5731 | char *kwnames[] = { | |
5732 | (char *) "self",(char *) "line", NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveLine",kwnames,&obj0,&obj1)) goto fail; | |
5736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5738 | { | |
5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5740 | (arg1)->RemoveLine(arg2); | |
5741 | ||
5742 | wxPyEndAllowThreads(__tstate); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | Py_INCREF(Py_None); resultobj = Py_None; | |
5746 | return resultobj; | |
5747 | fail: | |
5748 | return NULL; | |
5749 | } | |
5750 | ||
5751 | ||
5752 | static PyObject *_wrap_PyShape_GetAttachmentPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5753 | PyObject *resultobj; | |
5754 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5755 | int arg2 ; | |
5756 | double *arg3 = (double *) 0 ; | |
5757 | double *arg4 = (double *) 0 ; | |
5758 | int arg5 = (int) 0 ; | |
5759 | int arg6 = (int) 1 ; | |
5760 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
5761 | bool result; | |
5762 | double temp3 ; | |
5763 | double temp4 ; | |
5764 | PyObject * obj0 = 0 ; | |
5765 | PyObject * obj4 = 0 ; | |
5766 | char *kwnames[] = { | |
5767 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
5768 | }; | |
5769 | ||
5770 | arg3 = &temp3; | |
5771 | arg4 = &temp4; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiO:PyShape_GetAttachmentPosition",kwnames,&obj0,&arg2,&arg5,&arg6,&obj4)) goto fail; | |
5773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5774 | if (obj4) { | |
5775 | if ((SWIG_ConvertPtr(obj4,(void **) &arg7, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5776 | } | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | result = (bool)(arg1)->GetAttachmentPosition(arg2,arg3,arg4,arg5,arg6,arg7); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | resultobj = PyInt_FromLong((long)result); | |
5785 | { | |
5786 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
5787 | resultobj = t_output_helper(resultobj,o); | |
5788 | } | |
5789 | { | |
5790 | PyObject *o = PyFloat_FromDouble((double) (*arg4)); | |
5791 | resultobj = t_output_helper(resultobj,o); | |
5792 | } | |
5793 | return resultobj; | |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
5799 | static PyObject *_wrap_PyShape_GetNumberOfAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5800 | PyObject *resultobj; | |
5801 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5802 | int result; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "self", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfAttachments",kwnames,&obj0)) goto fail; | |
5809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | result = (int)(arg1)->GetNumberOfAttachments(); | |
5813 | ||
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | resultobj = PyInt_FromLong((long)result); | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
5824 | static PyObject *_wrap_PyShape_AttachmentIsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj; | |
5826 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5827 | int arg2 ; | |
5828 | bool result; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | char *kwnames[] = { | |
5831 | (char *) "self",(char *) "attachment", NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_AttachmentIsValid",kwnames,&obj0,&arg2)) goto fail; | |
5835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5836 | { | |
5837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5838 | result = (bool)(arg1)->AttachmentIsValid(arg2); | |
5839 | ||
5840 | wxPyEndAllowThreads(__tstate); | |
5841 | if (PyErr_Occurred()) SWIG_fail; | |
5842 | } | |
5843 | resultobj = PyInt_FromLong((long)result); | |
5844 | return resultobj; | |
5845 | fail: | |
5846 | return NULL; | |
5847 | } | |
5848 | ||
5849 | ||
30d215aa RD |
5850 | static PyObject *_wrap_PyShape_GetAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { |
5851 | PyObject *resultobj; | |
5852 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5853 | PyObject *result; | |
5854 | PyObject * obj0 = 0 ; | |
5855 | char *kwnames[] = { | |
5856 | (char *) "self", NULL | |
5857 | }; | |
5858 | ||
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachments",kwnames,&obj0)) goto fail; | |
5860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5861 | { | |
5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5863 | result = (PyObject *)wxPyShape_GetAttachments(arg1); | |
5864 | ||
5865 | wxPyEndAllowThreads(__tstate); | |
5866 | if (PyErr_Occurred()) SWIG_fail; | |
5867 | } | |
5868 | resultobj = result; | |
5869 | return resultobj; | |
5870 | fail: | |
5871 | return NULL; | |
5872 | } | |
5873 | ||
5874 | ||
44127b65 RD |
5875 | static PyObject *_wrap_PyShape_GetAttachmentPositionEdge(PyObject *self, PyObject *args, PyObject *kwargs) { |
5876 | PyObject *resultobj; | |
5877 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5878 | int arg2 ; | |
5879 | double *arg3 = (double *) 0 ; | |
5880 | double *arg4 = (double *) 0 ; | |
5881 | int arg5 = (int) 0 ; | |
5882 | int arg6 = (int) 1 ; | |
5883 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
5884 | bool result; | |
5885 | double temp3 ; | |
5886 | double temp4 ; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | PyObject * obj4 = 0 ; | |
5889 | char *kwnames[] = { | |
5890 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
5891 | }; | |
5892 | ||
5893 | arg3 = &temp3; | |
5894 | arg4 = &temp4; | |
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiO:PyShape_GetAttachmentPositionEdge",kwnames,&obj0,&arg2,&arg5,&arg6,&obj4)) goto fail; | |
5896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5897 | if (obj4) { | |
5898 | if ((SWIG_ConvertPtr(obj4,(void **) &arg7, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5899 | } | |
5900 | { | |
5901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5902 | result = (bool)(arg1)->GetAttachmentPositionEdge(arg2,arg3,arg4,arg5,arg6,arg7); | |
5903 | ||
5904 | wxPyEndAllowThreads(__tstate); | |
5905 | if (PyErr_Occurred()) SWIG_fail; | |
5906 | } | |
5907 | resultobj = PyInt_FromLong((long)result); | |
5908 | { | |
5909 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
5910 | resultobj = t_output_helper(resultobj,o); | |
5911 | } | |
5912 | { | |
5913 | PyObject *o = PyFloat_FromDouble((double) (*arg4)); | |
5914 | resultobj = t_output_helper(resultobj,o); | |
5915 | } | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject *_wrap_PyShape_CalcSimpleAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5925 | wxRealPoint *arg2 = 0 ; | |
5926 | wxRealPoint *arg3 = 0 ; | |
5927 | int arg4 ; | |
5928 | int arg5 ; | |
5929 | wxPyLineShape *arg6 = (wxPyLineShape *) 0 ; | |
5930 | wxRealPoint result; | |
5931 | wxRealPoint temp2 ; | |
5932 | wxRealPoint temp3 ; | |
5933 | PyObject * obj0 = 0 ; | |
5934 | PyObject * obj1 = 0 ; | |
5935 | PyObject * obj2 = 0 ; | |
5936 | PyObject * obj5 = 0 ; | |
5937 | char *kwnames[] = { | |
5938 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "nth",(char *) "noArcs",(char *) "line", NULL | |
5939 | }; | |
5940 | ||
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:PyShape_CalcSimpleAttachment",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
5942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5943 | { | |
5944 | arg2 = &temp2; | |
5945 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
5946 | } | |
5947 | { | |
5948 | arg3 = &temp3; | |
5949 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
5950 | } | |
5951 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | result = (arg1)->CalcSimpleAttachment((wxRealPoint const &)*arg2,(wxRealPoint const &)*arg3,arg4,arg5,arg6); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
5959 | { | |
5960 | wxRealPoint * resultptr; | |
5961 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
5962 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
5963 | } | |
5964 | return resultobj; | |
5965 | fail: | |
5966 | return NULL; | |
5967 | } | |
5968 | ||
5969 | ||
5970 | static PyObject *_wrap_PyShape_AttachmentSortTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5971 | PyObject *resultobj; | |
5972 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5973 | int arg2 ; | |
5974 | wxRealPoint *arg3 = 0 ; | |
5975 | wxRealPoint *arg4 = 0 ; | |
5976 | bool result; | |
5977 | wxRealPoint temp3 ; | |
5978 | wxRealPoint temp4 ; | |
5979 | PyObject * obj0 = 0 ; | |
5980 | PyObject * obj2 = 0 ; | |
5981 | PyObject * obj3 = 0 ; | |
5982 | char *kwnames[] = { | |
5983 | (char *) "self",(char *) "attachmentPoint",(char *) "pt1",(char *) "pt2", NULL | |
5984 | }; | |
5985 | ||
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:PyShape_AttachmentSortTest",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
5987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5988 | { | |
5989 | arg3 = &temp3; | |
5990 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
5991 | } | |
5992 | { | |
5993 | arg4 = &temp4; | |
5994 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
5995 | } | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | result = (bool)(arg1)->AttachmentSortTest(arg2,(wxRealPoint const &)*arg3,(wxRealPoint const &)*arg4); | |
5999 | ||
6000 | wxPyEndAllowThreads(__tstate); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
6003 | resultobj = PyInt_FromLong((long)result); | |
6004 | return resultobj; | |
6005 | fail: | |
6006 | return NULL; | |
6007 | } | |
6008 | ||
6009 | ||
6010 | static PyObject *_wrap_PyShape_EraseLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject *resultobj; | |
6012 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6013 | wxDC *arg2 = 0 ; | |
6014 | int arg3 = (int) -1 ; | |
6015 | bool arg4 = (bool) False ; | |
6016 | PyObject * obj0 = 0 ; | |
6017 | PyObject * obj1 = 0 ; | |
6018 | PyObject * obj3 = 0 ; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iO:PyShape_EraseLinks",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
6024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6025 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6026 | if (arg2 == NULL) { | |
6027 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6028 | } | |
6029 | if (obj3) { | |
6030 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6031 | if (PyErr_Occurred()) SWIG_fail; | |
6032 | } | |
6033 | { | |
6034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6035 | (arg1)->EraseLinks(*arg2,arg3,arg4); | |
6036 | ||
6037 | wxPyEndAllowThreads(__tstate); | |
6038 | if (PyErr_Occurred()) SWIG_fail; | |
6039 | } | |
6040 | Py_INCREF(Py_None); resultobj = Py_None; | |
6041 | return resultobj; | |
6042 | fail: | |
6043 | return NULL; | |
6044 | } | |
6045 | ||
6046 | ||
6047 | static PyObject *_wrap_PyShape_DrawLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6048 | PyObject *resultobj; | |
6049 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6050 | wxDC *arg2 = 0 ; | |
6051 | int arg3 = (int) -1 ; | |
6052 | bool arg4 = (bool) False ; | |
6053 | PyObject * obj0 = 0 ; | |
6054 | PyObject * obj1 = 0 ; | |
6055 | PyObject * obj3 = 0 ; | |
6056 | char *kwnames[] = { | |
6057 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
6058 | }; | |
6059 | ||
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iO:PyShape_DrawLinks",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
6061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6063 | if (arg2 == NULL) { | |
6064 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6065 | } | |
6066 | if (obj3) { | |
6067 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6068 | if (PyErr_Occurred()) SWIG_fail; | |
6069 | } | |
6070 | { | |
6071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6072 | (arg1)->DrawLinks(*arg2,arg3,arg4); | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
6076 | } | |
6077 | Py_INCREF(Py_None); resultobj = Py_None; | |
6078 | return resultobj; | |
6079 | fail: | |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
6084 | static PyObject *_wrap_PyShape_MoveLineToNewAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6087 | wxDC *arg2 = 0 ; | |
6088 | wxPyLineShape *arg3 = (wxPyLineShape *) 0 ; | |
6089 | double arg4 ; | |
6090 | double arg5 ; | |
6091 | bool result; | |
6092 | PyObject * obj0 = 0 ; | |
6093 | PyObject * obj1 = 0 ; | |
6094 | PyObject * obj2 = 0 ; | |
6095 | char *kwnames[] = { | |
6096 | (char *) "self",(char *) "dc",(char *) "to_move",(char *) "x",(char *) "y", NULL | |
6097 | }; | |
6098 | ||
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:PyShape_MoveLineToNewAttachment",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
6100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6102 | if (arg2 == NULL) { | |
6103 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6104 | } | |
6105 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6106 | { | |
6107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6108 | result = (bool)(arg1)->MoveLineToNewAttachment(*arg2,arg3,arg4,arg5); | |
6109 | ||
6110 | wxPyEndAllowThreads(__tstate); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | } | |
6113 | resultobj = PyInt_FromLong((long)result); | |
6114 | return resultobj; | |
6115 | fail: | |
6116 | return NULL; | |
6117 | } | |
6118 | ||
6119 | ||
6120 | static PyObject *_wrap_PyShape_ApplyAttachmentOrdering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6123 | PyObject *arg2 = (PyObject *) 0 ; | |
6124 | PyObject * obj0 = 0 ; | |
6125 | PyObject * obj1 = 0 ; | |
6126 | char *kwnames[] = { | |
6127 | (char *) "self",(char *) "linesToSort", NULL | |
6128 | }; | |
6129 | ||
6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ApplyAttachmentOrdering",kwnames,&obj0,&obj1)) goto fail; | |
6131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6132 | arg2 = obj1; | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | wxPyShape_ApplyAttachmentOrdering(arg1,arg2); | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | Py_INCREF(Py_None); resultobj = Py_None; | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_PyShape_GetBranchingAttachmentRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6150 | int arg2 ; | |
6151 | wxRealPoint result; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self",(char *) "attachment", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_GetBranchingAttachmentRoot",kwnames,&obj0,&arg2)) goto fail; | |
6158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6159 | { | |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | result = (arg1)->GetBranchingAttachmentRoot(arg2); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | { | |
6167 | wxRealPoint * resultptr; | |
6168 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
6169 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
6170 | } | |
6171 | return resultobj; | |
6172 | fail: | |
6173 | return NULL; | |
6174 | } | |
6175 | ||
6176 | ||
6177 | static PyObject *_wrap_PyShape_GetBranchingAttachmentInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject *resultobj; | |
6179 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6180 | int arg2 ; | |
6181 | wxRealPoint *arg3 = 0 ; | |
6182 | wxRealPoint *arg4 = 0 ; | |
6183 | wxRealPoint *arg5 = 0 ; | |
6184 | wxRealPoint *arg6 = 0 ; | |
6185 | bool result; | |
6186 | wxRealPoint temp3 ; | |
6187 | wxRealPoint temp4 ; | |
6188 | wxRealPoint temp5 ; | |
6189 | wxRealPoint temp6 ; | |
6190 | PyObject * obj0 = 0 ; | |
6191 | PyObject * obj2 = 0 ; | |
6192 | PyObject * obj3 = 0 ; | |
6193 | PyObject * obj4 = 0 ; | |
6194 | PyObject * obj5 = 0 ; | |
6195 | char *kwnames[] = { | |
6196 | (char *) "self",(char *) "attachment",(char *) "root",(char *) "neck",(char *) "shoulder1",(char *) "shoulder2", NULL | |
6197 | }; | |
6198 | ||
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOOOO:PyShape_GetBranchingAttachmentInfo",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6201 | { | |
6202 | arg3 = &temp3; | |
6203 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
6204 | } | |
6205 | { | |
6206 | arg4 = &temp4; | |
6207 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
6208 | } | |
6209 | { | |
6210 | arg5 = &temp5; | |
6211 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
6212 | } | |
6213 | { | |
6214 | arg6 = &temp6; | |
6215 | if ( ! wxRealPoint_helper(obj5, &arg6)) SWIG_fail; | |
6216 | } | |
6217 | { | |
6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6219 | result = (bool)(arg1)->GetBranchingAttachmentInfo(arg2,*arg3,*arg4,*arg5,*arg6); | |
6220 | ||
6221 | wxPyEndAllowThreads(__tstate); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | resultobj = PyInt_FromLong((long)result); | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
6231 | static PyObject *_wrap_PyShape_GetBranchingAttachmentPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6232 | PyObject *resultobj; | |
6233 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6234 | int arg2 ; | |
6235 | int arg3 ; | |
6236 | wxRealPoint *arg4 = 0 ; | |
6237 | wxRealPoint *arg5 = 0 ; | |
6238 | bool result; | |
6239 | wxRealPoint temp4 ; | |
6240 | wxRealPoint temp5 ; | |
6241 | PyObject * obj0 = 0 ; | |
6242 | PyObject * obj3 = 0 ; | |
6243 | PyObject * obj4 = 0 ; | |
6244 | char *kwnames[] = { | |
6245 | (char *) "self",(char *) "attachment",(char *) "n",(char *) "attachmentPoint",(char *) "stemPoint", NULL | |
6246 | }; | |
6247 | ||
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiOO:PyShape_GetBranchingAttachmentPoint",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4)) goto fail; | |
6249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6250 | { | |
6251 | arg4 = &temp4; | |
6252 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
6253 | } | |
6254 | { | |
6255 | arg5 = &temp5; | |
6256 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
6257 | } | |
6258 | { | |
6259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6260 | result = (bool)(arg1)->GetBranchingAttachmentPoint(arg2,arg3,*arg4,*arg5); | |
6261 | ||
6262 | wxPyEndAllowThreads(__tstate); | |
6263 | if (PyErr_Occurred()) SWIG_fail; | |
6264 | } | |
6265 | resultobj = PyInt_FromLong((long)result); | |
6266 | return resultobj; | |
6267 | fail: | |
6268 | return NULL; | |
6269 | } | |
6270 | ||
6271 | ||
6272 | static PyObject *_wrap_PyShape_GetAttachmentLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject *resultobj; | |
6274 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6275 | int arg2 ; | |
6276 | int result; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | char *kwnames[] = { | |
6279 | (char *) "self",(char *) "attachment", NULL | |
6280 | }; | |
6281 | ||
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_GetAttachmentLineCount",kwnames,&obj0,&arg2)) goto fail; | |
6283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6284 | { | |
6285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6286 | result = (int)(arg1)->GetAttachmentLineCount(arg2); | |
6287 | ||
6288 | wxPyEndAllowThreads(__tstate); | |
6289 | if (PyErr_Occurred()) SWIG_fail; | |
6290 | } | |
6291 | resultobj = PyInt_FromLong((long)result); | |
6292 | return resultobj; | |
6293 | fail: | |
6294 | return NULL; | |
6295 | } | |
6296 | ||
6297 | ||
6298 | static PyObject *_wrap_PyShape_SetBranchNeckLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6299 | PyObject *resultobj; | |
6300 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6301 | int arg2 ; | |
6302 | PyObject * obj0 = 0 ; | |
6303 | char *kwnames[] = { | |
6304 | (char *) "self",(char *) "len", NULL | |
6305 | }; | |
6306 | ||
6307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_SetBranchNeckLength",kwnames,&obj0,&arg2)) goto fail; | |
6308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | (arg1)->SetBranchNeckLength(arg2); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_PyShape_GetBranchNeckLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6326 | int result; | |
6327 | PyObject * obj0 = 0 ; | |
6328 | char *kwnames[] = { | |
6329 | (char *) "self", NULL | |
6330 | }; | |
6331 | ||
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchNeckLength",kwnames,&obj0)) goto fail; | |
6333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6334 | { | |
6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6336 | result = (int)(arg1)->GetBranchNeckLength(); | |
6337 | ||
6338 | wxPyEndAllowThreads(__tstate); | |
6339 | if (PyErr_Occurred()) SWIG_fail; | |
6340 | } | |
6341 | resultobj = PyInt_FromLong((long)result); | |
6342 | return resultobj; | |
6343 | fail: | |
6344 | return NULL; | |
6345 | } | |
6346 | ||
6347 | ||
6348 | static PyObject *_wrap_PyShape_SetBranchStemLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6349 | PyObject *resultobj; | |
6350 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6351 | int arg2 ; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | char *kwnames[] = { | |
6354 | (char *) "self",(char *) "len", NULL | |
6355 | }; | |
6356 | ||
6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_SetBranchStemLength",kwnames,&obj0,&arg2)) goto fail; | |
6358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6359 | { | |
6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6361 | (arg1)->SetBranchStemLength(arg2); | |
6362 | ||
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
6366 | Py_INCREF(Py_None); resultobj = Py_None; | |
6367 | return resultobj; | |
6368 | fail: | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject *_wrap_PyShape_GetBranchStemLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj; | |
6375 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6376 | int result; | |
6377 | PyObject * obj0 = 0 ; | |
6378 | char *kwnames[] = { | |
6379 | (char *) "self", NULL | |
6380 | }; | |
6381 | ||
6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStemLength",kwnames,&obj0)) goto fail; | |
6383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6384 | { | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6386 | result = (int)(arg1)->GetBranchStemLength(); | |
6387 | ||
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | resultobj = PyInt_FromLong((long)result); | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | return NULL; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_PyShape_SetBranchSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject *resultobj; | |
6400 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6401 | int arg2 ; | |
6402 | PyObject * obj0 = 0 ; | |
6403 | char *kwnames[] = { | |
6404 | (char *) "self",(char *) "len", NULL | |
6405 | }; | |
6406 | ||
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_SetBranchSpacing",kwnames,&obj0,&arg2)) goto fail; | |
6408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6409 | { | |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6411 | (arg1)->SetBranchSpacing(arg2); | |
6412 | ||
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) SWIG_fail; | |
6415 | } | |
6416 | Py_INCREF(Py_None); resultobj = Py_None; | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
6423 | static PyObject *_wrap_PyShape_GetBranchSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject *resultobj; | |
6425 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6426 | int result; | |
6427 | PyObject * obj0 = 0 ; | |
6428 | char *kwnames[] = { | |
6429 | (char *) "self", NULL | |
6430 | }; | |
6431 | ||
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchSpacing",kwnames,&obj0)) goto fail; | |
6433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6434 | { | |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | result = (int)(arg1)->GetBranchSpacing(); | |
6437 | ||
6438 | wxPyEndAllowThreads(__tstate); | |
6439 | if (PyErr_Occurred()) SWIG_fail; | |
6440 | } | |
6441 | resultobj = PyInt_FromLong((long)result); | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | return NULL; | |
6445 | } | |
6446 | ||
6447 | ||
6448 | static PyObject *_wrap_PyShape_SetBranchStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject *resultobj; | |
6450 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6451 | long arg2 ; | |
6452 | PyObject * obj0 = 0 ; | |
6453 | char *kwnames[] = { | |
6454 | (char *) "self",(char *) "style", NULL | |
6455 | }; | |
6456 | ||
6457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:PyShape_SetBranchStyle",kwnames,&obj0,&arg2)) goto fail; | |
6458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | (arg1)->SetBranchStyle(arg2); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | Py_INCREF(Py_None); resultobj = Py_None; | |
6467 | return resultobj; | |
6468 | fail: | |
6469 | return NULL; | |
6470 | } | |
6471 | ||
6472 | ||
6473 | static PyObject *_wrap_PyShape_GetBranchStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject *resultobj; | |
6475 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6476 | long result; | |
6477 | PyObject * obj0 = 0 ; | |
6478 | char *kwnames[] = { | |
6479 | (char *) "self", NULL | |
6480 | }; | |
6481 | ||
6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStyle",kwnames,&obj0)) goto fail; | |
6483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6484 | { | |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | result = (long)(arg1)->GetBranchStyle(); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | resultobj = PyInt_FromLong((long)result); | |
6492 | return resultobj; | |
6493 | fail: | |
6494 | return NULL; | |
6495 | } | |
6496 | ||
6497 | ||
6498 | static PyObject *_wrap_PyShape_PhysicalToLogicalAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6499 | PyObject *resultobj; | |
6500 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6501 | int arg2 ; | |
6502 | int result; | |
6503 | PyObject * obj0 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "self",(char *) "physicalAttachment", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_PhysicalToLogicalAttachment",kwnames,&obj0,&arg2)) goto fail; | |
6509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6510 | { | |
6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6512 | result = (int)(arg1)->PhysicalToLogicalAttachment(arg2); | |
6513 | ||
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | resultobj = PyInt_FromLong((long)result); | |
6518 | return resultobj; | |
6519 | fail: | |
6520 | return NULL; | |
6521 | } | |
6522 | ||
6523 | ||
6524 | static PyObject *_wrap_PyShape_LogicalToPhysicalAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject *resultobj; | |
6526 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6527 | int arg2 ; | |
6528 | int result; | |
6529 | PyObject * obj0 = 0 ; | |
6530 | char *kwnames[] = { | |
6531 | (char *) "self",(char *) "logicalAttachment", NULL | |
6532 | }; | |
6533 | ||
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyShape_LogicalToPhysicalAttachment",kwnames,&obj0,&arg2)) goto fail; | |
6535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6536 | { | |
6537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6538 | result = (int)(arg1)->LogicalToPhysicalAttachment(arg2); | |
6539 | ||
6540 | wxPyEndAllowThreads(__tstate); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | } | |
6543 | resultobj = PyInt_FromLong((long)result); | |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
6547 | } | |
6548 | ||
6549 | ||
6550 | static PyObject *_wrap_PyShape_Draggable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject *resultobj; | |
6552 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6553 | bool result; | |
6554 | PyObject * obj0 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "self", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Draggable",kwnames,&obj0)) goto fail; | |
6560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | result = (bool)(arg1)->Draggable(); | |
6564 | ||
6565 | wxPyEndAllowThreads(__tstate); | |
6566 | if (PyErr_Occurred()) SWIG_fail; | |
6567 | } | |
6568 | resultobj = PyInt_FromLong((long)result); | |
6569 | return resultobj; | |
6570 | fail: | |
6571 | return NULL; | |
6572 | } | |
6573 | ||
6574 | ||
6575 | static PyObject *_wrap_PyShape_HasDescendant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject *resultobj; | |
6577 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6578 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
6579 | bool result; | |
6580 | PyObject * obj0 = 0 ; | |
6581 | PyObject * obj1 = 0 ; | |
6582 | char *kwnames[] = { | |
6583 | (char *) "self",(char *) "image", NULL | |
6584 | }; | |
6585 | ||
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_HasDescendant",kwnames,&obj0,&obj1)) goto fail; | |
6587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6588 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6589 | { | |
6590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6591 | result = (bool)(arg1)->HasDescendant(arg2); | |
6592 | ||
6593 | wxPyEndAllowThreads(__tstate); | |
6594 | if (PyErr_Occurred()) SWIG_fail; | |
6595 | } | |
6596 | resultobj = PyInt_FromLong((long)result); | |
6597 | return resultobj; | |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_PyShape_CreateNewCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6606 | bool arg2 = (bool) True ; | |
6607 | bool arg3 = (bool) True ; | |
6608 | wxPyShape *result; | |
6609 | PyObject * obj0 = 0 ; | |
6610 | PyObject * obj1 = 0 ; | |
6611 | PyObject * obj2 = 0 ; | |
6612 | char *kwnames[] = { | |
6613 | (char *) "self",(char *) "resetMapping",(char *) "recompute", NULL | |
6614 | }; | |
6615 | ||
6616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_CreateNewCopy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6618 | if (obj1) { | |
6619 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | if (obj2) { | |
6623 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | result = (wxPyShape *)(arg1)->CreateNewCopy(arg2,arg3); | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | { | |
6634 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
6635 | } | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
6642 | static PyObject *_wrap_PyShape_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6643 | PyObject *resultobj; | |
6644 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6645 | wxPyShape *arg2 = 0 ; | |
6646 | PyObject * obj0 = 0 ; | |
6647 | PyObject * obj1 = 0 ; | |
6648 | char *kwnames[] = { | |
6649 | (char *) "self",(char *) "copy", NULL | |
6650 | }; | |
6651 | ||
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Copy",kwnames,&obj0,&obj1)) goto fail; | |
6653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6654 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6655 | if (arg2 == NULL) { | |
6656 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6657 | } | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | (arg1)->Copy(*arg2); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
6665 | Py_INCREF(Py_None); resultobj = Py_None; | |
6666 | return resultobj; | |
6667 | fail: | |
6668 | return NULL; | |
6669 | } | |
6670 | ||
6671 | ||
6672 | static PyObject *_wrap_PyShape_CopyWithHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject *resultobj; | |
6674 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6675 | wxPyShape *arg2 = 0 ; | |
6676 | PyObject * obj0 = 0 ; | |
6677 | PyObject * obj1 = 0 ; | |
6678 | char *kwnames[] = { | |
6679 | (char *) "self",(char *) "copy", NULL | |
6680 | }; | |
6681 | ||
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_CopyWithHandler",kwnames,&obj0,&obj1)) goto fail; | |
6683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6685 | if (arg2 == NULL) { | |
6686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6687 | } | |
6688 | { | |
6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6690 | (arg1)->CopyWithHandler(*arg2); | |
6691 | ||
6692 | wxPyEndAllowThreads(__tstate); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | Py_INCREF(Py_None); resultobj = Py_None; | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | return NULL; | |
6699 | } | |
6700 | ||
6701 | ||
6702 | static PyObject *_wrap_PyShape_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject *resultobj; | |
6704 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6705 | double arg2 ; | |
6706 | double arg3 ; | |
6707 | double arg4 ; | |
6708 | PyObject * obj0 = 0 ; | |
6709 | char *kwnames[] = { | |
6710 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
6711 | }; | |
6712 | ||
6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oddd:PyShape_Rotate",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
6714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6715 | { | |
6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6717 | (arg1)->Rotate(arg2,arg3,arg4); | |
6718 | ||
6719 | wxPyEndAllowThreads(__tstate); | |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
6721 | } | |
6722 | Py_INCREF(Py_None); resultobj = Py_None; | |
6723 | return resultobj; | |
6724 | fail: | |
6725 | return NULL; | |
6726 | } | |
6727 | ||
6728 | ||
6729 | static PyObject *_wrap_PyShape_GetRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject *resultobj; | |
6731 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6732 | double result; | |
6733 | PyObject * obj0 = 0 ; | |
6734 | char *kwnames[] = { | |
6735 | (char *) "self", NULL | |
6736 | }; | |
6737 | ||
6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRotation",kwnames,&obj0)) goto fail; | |
6739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6740 | { | |
6741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6742 | result = (double)(arg1)->GetRotation(); | |
6743 | ||
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) SWIG_fail; | |
6746 | } | |
6747 | resultobj = PyFloat_FromDouble(result); | |
6748 | return resultobj; | |
6749 | fail: | |
6750 | return NULL; | |
6751 | } | |
6752 | ||
6753 | ||
30d215aa RD |
6754 | static PyObject *_wrap_PyShape_SetRotation(PyObject *self, PyObject *args, PyObject *kwargs) { |
6755 | PyObject *resultobj; | |
6756 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6757 | double arg2 ; | |
6758 | PyObject * obj0 = 0 ; | |
6759 | char *kwnames[] = { | |
6760 | (char *) "self",(char *) "rotation", NULL | |
6761 | }; | |
6762 | ||
6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyShape_SetRotation",kwnames,&obj0,&arg2)) goto fail; | |
6764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6765 | { | |
6766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6767 | (arg1)->SetRotation(arg2); | |
6768 | ||
6769 | wxPyEndAllowThreads(__tstate); | |
6770 | if (PyErr_Occurred()) SWIG_fail; | |
6771 | } | |
6772 | Py_INCREF(Py_None); resultobj = Py_None; | |
6773 | return resultobj; | |
6774 | fail: | |
6775 | return NULL; | |
6776 | } | |
6777 | ||
6778 | ||
44127b65 RD |
6779 | static PyObject *_wrap_PyShape_ClearAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { |
6780 | PyObject *resultobj; | |
6781 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | char *kwnames[] = { | |
6784 | (char *) "self", NULL | |
6785 | }; | |
6786 | ||
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearAttachments",kwnames,&obj0)) goto fail; | |
6788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6789 | { | |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | (arg1)->ClearAttachments(); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) SWIG_fail; | |
6795 | } | |
6796 | Py_INCREF(Py_None); resultobj = Py_None; | |
6797 | return resultobj; | |
6798 | fail: | |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
6803 | static PyObject *_wrap_PyShape_Recentre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject *resultobj; | |
6805 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6806 | wxDC *arg2 = 0 ; | |
6807 | PyObject * obj0 = 0 ; | |
6808 | PyObject * obj1 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self",(char *) "dc", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Recentre",kwnames,&obj0,&obj1)) goto fail; | |
6814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6816 | if (arg2 == NULL) { | |
6817 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6818 | } | |
6819 | { | |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | (arg1)->Recentre(*arg2); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | Py_INCREF(Py_None); resultobj = Py_None; | |
6827 | return resultobj; | |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
6833 | static PyObject *_wrap_PyShape_ClearPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6834 | PyObject *resultobj; | |
6835 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6836 | wxList *arg2 = 0 ; | |
6837 | PyObject * obj0 = 0 ; | |
6838 | PyObject * obj1 = 0 ; | |
6839 | char *kwnames[] = { | |
6840 | (char *) "self",(char *) "list", NULL | |
6841 | }; | |
6842 | ||
6843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ClearPointList",kwnames,&obj0,&obj1)) goto fail; | |
6844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6845 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6846 | if (arg2 == NULL) { | |
6847 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6848 | } | |
6849 | { | |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6851 | (arg1)->ClearPointList(*arg2); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
6854 | if (PyErr_Occurred()) SWIG_fail; | |
6855 | } | |
6856 | Py_INCREF(Py_None); resultobj = Py_None; | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject *_wrap_PyShape_GetBackgroundPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6864 | PyObject *resultobj; | |
6865 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6866 | wxPen result; | |
6867 | PyObject * obj0 = 0 ; | |
6868 | char *kwnames[] = { | |
6869 | (char *) "self", NULL | |
6870 | }; | |
6871 | ||
6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundPen",kwnames,&obj0)) goto fail; | |
6873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6874 | { | |
6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6876 | result = (arg1)->GetBackgroundPen(); | |
6877 | ||
6878 | wxPyEndAllowThreads(__tstate); | |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
6880 | } | |
6881 | { | |
6882 | wxPen * resultptr; | |
6883 | resultptr = new wxPen((wxPen &) result); | |
6884 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPen, 1); | |
6885 | } | |
6886 | return resultobj; | |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
6892 | static PyObject *_wrap_PyShape_GetBackgroundBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6893 | PyObject *resultobj; | |
6894 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6895 | wxBrush result; | |
6896 | PyObject * obj0 = 0 ; | |
6897 | char *kwnames[] = { | |
6898 | (char *) "self", NULL | |
6899 | }; | |
6900 | ||
6901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundBrush",kwnames,&obj0)) goto fail; | |
6902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6903 | { | |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6905 | result = (arg1)->GetBackgroundBrush(); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
6908 | if (PyErr_Occurred()) SWIG_fail; | |
6909 | } | |
6910 | { | |
6911 | wxBrush * resultptr; | |
6912 | resultptr = new wxBrush((wxBrush &) result); | |
6913 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBrush, 1); | |
6914 | } | |
6915 | return resultobj; | |
6916 | fail: | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_PyShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6924 | PyObject * obj0 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
6930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6931 | { | |
6932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6933 | (arg1)->base_OnDelete(); | |
6934 | ||
6935 | wxPyEndAllowThreads(__tstate); | |
6936 | if (PyErr_Occurred()) SWIG_fail; | |
6937 | } | |
6938 | Py_INCREF(Py_None); resultobj = Py_None; | |
6939 | return resultobj; | |
6940 | fail: | |
6941 | return NULL; | |
6942 | } | |
6943 | ||
6944 | ||
6945 | static PyObject *_wrap_PyShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6946 | PyObject *resultobj; | |
6947 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6948 | wxDC *arg2 = 0 ; | |
6949 | PyObject * obj0 = 0 ; | |
6950 | PyObject * obj1 = 0 ; | |
6951 | char *kwnames[] = { | |
6952 | (char *) "self",(char *) "dc", NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
6956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6958 | if (arg2 == NULL) { | |
6959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6960 | } | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->base_OnDraw(*arg2); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | Py_INCREF(Py_None); resultobj = Py_None; | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_PyShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject *resultobj; | |
6977 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6978 | wxDC *arg2 = 0 ; | |
6979 | PyObject * obj0 = 0 ; | |
6980 | PyObject * obj1 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self",(char *) "dc", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6987 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6988 | if (arg2 == NULL) { | |
6989 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6990 | } | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | (arg1)->base_OnDrawContents(*arg2); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | Py_INCREF(Py_None); resultobj = Py_None; | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | static PyObject *_wrap_PyShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj; | |
7007 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7008 | wxDC *arg2 = 0 ; | |
7009 | bool arg3 = (bool) False ; | |
7010 | PyObject * obj0 = 0 ; | |
7011 | PyObject * obj1 = 0 ; | |
7012 | PyObject * obj2 = 0 ; | |
7013 | char *kwnames[] = { | |
7014 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
7015 | }; | |
7016 | ||
7017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7019 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7020 | if (arg2 == NULL) { | |
7021 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7022 | } | |
7023 | if (obj2) { | |
7024 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
7027 | { | |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7029 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
7030 | ||
7031 | wxPyEndAllowThreads(__tstate); | |
7032 | if (PyErr_Occurred()) SWIG_fail; | |
7033 | } | |
7034 | Py_INCREF(Py_None); resultobj = Py_None; | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
7041 | static PyObject *_wrap_PyShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7042 | PyObject *resultobj; | |
7043 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7044 | wxDC *arg2 = 0 ; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | PyObject * obj1 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self",(char *) "dc", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
7052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7053 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7054 | if (arg2 == NULL) { | |
7055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7056 | } | |
7057 | { | |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | (arg1)->base_OnMoveLinks(*arg2); | |
7060 | ||
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | Py_INCREF(Py_None); resultobj = Py_None; | |
7065 | return resultobj; | |
7066 | fail: | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject *_wrap_PyShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj; | |
7073 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7074 | wxDC *arg2 = 0 ; | |
7075 | PyObject * obj0 = 0 ; | |
7076 | PyObject * obj1 = 0 ; | |
7077 | char *kwnames[] = { | |
7078 | (char *) "self",(char *) "dc", NULL | |
7079 | }; | |
7080 | ||
7081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
7082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7084 | if (arg2 == NULL) { | |
7085 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7086 | } | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | (arg1)->base_OnErase(*arg2); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
7101 | static PyObject *_wrap_PyShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7102 | PyObject *resultobj; | |
7103 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7104 | wxDC *arg2 = 0 ; | |
7105 | PyObject * obj0 = 0 ; | |
7106 | PyObject * obj1 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self",(char *) "dc", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
7112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7113 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7114 | if (arg2 == NULL) { | |
7115 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7116 | } | |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | (arg1)->base_OnEraseContents(*arg2); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | Py_INCREF(Py_None); resultobj = Py_None; | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_PyShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7134 | wxDC *arg2 = 0 ; | |
7135 | PyObject * obj0 = 0 ; | |
7136 | PyObject * obj1 = 0 ; | |
7137 | char *kwnames[] = { | |
7138 | (char *) "self",(char *) "dc", NULL | |
7139 | }; | |
7140 | ||
7141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
7142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7144 | if (arg2 == NULL) { | |
7145 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7146 | } | |
7147 | { | |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | (arg1)->base_OnHighlight(*arg2); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | Py_INCREF(Py_None); resultobj = Py_None; | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | static PyObject *_wrap_PyShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7162 | PyObject *resultobj; | |
7163 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7164 | double arg2 ; | |
7165 | double arg3 ; | |
7166 | int arg4 = (int) 0 ; | |
7167 | int arg5 = (int) 0 ; | |
7168 | PyObject * obj0 = 0 ; | |
7169 | char *kwnames[] = { | |
7170 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7171 | }; | |
7172 | ||
7173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7175 | { | |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
7182 | Py_INCREF(Py_None); resultobj = Py_None; | |
7183 | return resultobj; | |
7184 | fail: | |
7185 | return NULL; | |
7186 | } | |
7187 | ||
7188 | ||
7189 | static PyObject *_wrap_PyShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7190 | PyObject *resultobj; | |
7191 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7192 | double arg2 ; | |
7193 | double arg3 ; | |
7194 | int arg4 = (int) 0 ; | |
7195 | int arg5 = (int) 0 ; | |
7196 | PyObject * obj0 = 0 ; | |
7197 | char *kwnames[] = { | |
7198 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7199 | }; | |
7200 | ||
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7203 | { | |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
7210 | Py_INCREF(Py_None); resultobj = Py_None; | |
7211 | return resultobj; | |
7212 | fail: | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject *_wrap_PyShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject *resultobj; | |
7219 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7220 | double arg2 ; | |
7221 | double arg3 ; | |
7222 | int arg4 = (int) 0 ; | |
7223 | int arg5 = (int) 0 ; | |
7224 | PyObject * obj0 = 0 ; | |
7225 | char *kwnames[] = { | |
7226 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7227 | }; | |
7228 | ||
7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7231 | { | |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7233 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
7234 | ||
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
7238 | Py_INCREF(Py_None); resultobj = Py_None; | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | return NULL; | |
7242 | } | |
7243 | ||
7244 | ||
7245 | static PyObject *_wrap_PyShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7248 | double arg2 ; | |
7249 | double arg3 ; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7257 | { | |
7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7259 | (arg1)->base_OnSize(arg2,arg3); | |
7260 | ||
7261 | wxPyEndAllowThreads(__tstate); | |
7262 | if (PyErr_Occurred()) SWIG_fail; | |
7263 | } | |
7264 | Py_INCREF(Py_None); resultobj = Py_None; | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | return NULL; | |
7268 | } | |
7269 | ||
7270 | ||
7271 | static PyObject *_wrap_PyShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject *resultobj; | |
7273 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7274 | wxDC *arg2 = 0 ; | |
7275 | double arg3 ; | |
7276 | double arg4 ; | |
7277 | double arg5 ; | |
7278 | double arg6 ; | |
7279 | bool arg7 = (bool) True ; | |
7280 | bool result; | |
7281 | PyObject * obj0 = 0 ; | |
7282 | PyObject * obj1 = 0 ; | |
7283 | PyObject * obj6 = 0 ; | |
7284 | char *kwnames[] = { | |
7285 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
7286 | }; | |
7287 | ||
7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
7289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7290 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7291 | if (arg2 == NULL) { | |
7292 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7293 | } | |
7294 | if (obj6) { | |
7295 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
7296 | if (PyErr_Occurred()) SWIG_fail; | |
7297 | } | |
7298 | { | |
7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7300 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
7301 | ||
7302 | wxPyEndAllowThreads(__tstate); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | } | |
7305 | resultobj = PyInt_FromLong((long)result); | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
7312 | static PyObject *_wrap_PyShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7313 | PyObject *resultobj; | |
7314 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7315 | wxDC *arg2 = 0 ; | |
7316 | double arg3 ; | |
7317 | double arg4 ; | |
7318 | double arg5 ; | |
7319 | double arg6 ; | |
7320 | bool arg7 = (bool) True ; | |
7321 | PyObject * obj0 = 0 ; | |
7322 | PyObject * obj1 = 0 ; | |
7323 | PyObject * obj6 = 0 ; | |
7324 | char *kwnames[] = { | |
7325 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
7326 | }; | |
7327 | ||
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
7329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7331 | if (arg2 == NULL) { | |
7332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7333 | } | |
7334 | if (obj6) { | |
7335 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | Py_INCREF(Py_None); resultobj = Py_None; | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_PyShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7355 | bool arg2 ; | |
7356 | double arg3 ; | |
7357 | double arg4 ; | |
7358 | int arg5 = (int) 0 ; | |
7359 | int arg6 = (int) 0 ; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | PyObject * obj1 = 0 ; | |
7362 | char *kwnames[] = { | |
7363 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7364 | }; | |
7365 | ||
7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
7367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7368 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | { | |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) SWIG_fail; | |
7376 | } | |
7377 | Py_INCREF(Py_None); resultobj = Py_None; | |
7378 | return resultobj; | |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
7384 | static PyObject *_wrap_PyShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject *resultobj; | |
7386 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7387 | double arg2 ; | |
7388 | double arg3 ; | |
7389 | int arg4 = (int) 0 ; | |
7390 | int arg5 = (int) 0 ; | |
7391 | PyObject * obj0 = 0 ; | |
7392 | char *kwnames[] = { | |
7393 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7394 | }; | |
7395 | ||
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | Py_INCREF(Py_None); resultobj = Py_None; | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_PyShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7415 | double arg2 ; | |
7416 | double arg3 ; | |
7417 | int arg4 = (int) 0 ; | |
7418 | int arg5 = (int) 0 ; | |
7419 | PyObject * obj0 = 0 ; | |
7420 | char *kwnames[] = { | |
7421 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7422 | }; | |
7423 | ||
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7426 | { | |
7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7428 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
7429 | ||
7430 | wxPyEndAllowThreads(__tstate); | |
7431 | if (PyErr_Occurred()) SWIG_fail; | |
7432 | } | |
7433 | Py_INCREF(Py_None); resultobj = Py_None; | |
7434 | return resultobj; | |
7435 | fail: | |
7436 | return NULL; | |
7437 | } | |
7438 | ||
7439 | ||
7440 | static PyObject *_wrap_PyShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7441 | PyObject *resultobj; | |
7442 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7443 | bool arg2 ; | |
7444 | double arg3 ; | |
7445 | double arg4 ; | |
7446 | int arg5 = (int) 0 ; | |
7447 | int arg6 = (int) 0 ; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | PyObject * obj1 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
7455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7456 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | Py_INCREF(Py_None); resultobj = Py_None; | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
7472 | static PyObject *_wrap_PyShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject *resultobj; | |
7474 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7475 | double arg2 ; | |
7476 | double arg3 ; | |
7477 | int arg4 = (int) 0 ; | |
7478 | int arg5 = (int) 0 ; | |
7479 | PyObject * obj0 = 0 ; | |
7480 | char *kwnames[] = { | |
7481 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7482 | }; | |
7483 | ||
7484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7486 | { | |
7487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7488 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
7489 | ||
7490 | wxPyEndAllowThreads(__tstate); | |
7491 | if (PyErr_Occurred()) SWIG_fail; | |
7492 | } | |
7493 | Py_INCREF(Py_None); resultobj = Py_None; | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject *_wrap_PyShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject *resultobj; | |
7502 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7503 | double arg2 ; | |
7504 | double arg3 ; | |
7505 | int arg4 = (int) 0 ; | |
7506 | int arg5 = (int) 0 ; | |
7507 | PyObject * obj0 = 0 ; | |
7508 | char *kwnames[] = { | |
7509 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
7513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | Py_INCREF(Py_None); resultobj = Py_None; | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_PyShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7531 | wxDC *arg2 = 0 ; | |
7532 | double arg3 ; | |
7533 | double arg4 ; | |
7534 | double arg5 ; | |
7535 | double arg6 ; | |
7536 | PyObject * obj0 = 0 ; | |
7537 | PyObject * obj1 = 0 ; | |
7538 | char *kwnames[] = { | |
7539 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
7540 | }; | |
7541 | ||
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
7543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7545 | if (arg2 == NULL) { | |
7546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7547 | } | |
7548 | { | |
7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7550 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
7551 | ||
7552 | wxPyEndAllowThreads(__tstate); | |
7553 | if (PyErr_Occurred()) SWIG_fail; | |
7554 | } | |
7555 | Py_INCREF(Py_None); resultobj = Py_None; | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | static PyObject *_wrap_PyShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj; | |
7564 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7565 | wxDC *arg2 = 0 ; | |
7566 | PyObject * obj0 = 0 ; | |
7567 | PyObject * obj1 = 0 ; | |
7568 | char *kwnames[] = { | |
7569 | (char *) "self",(char *) "dc", NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
7573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7575 | if (arg2 == NULL) { | |
7576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7577 | } | |
7578 | { | |
7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7580 | (arg1)->base_OnDrawControlPoints(*arg2); | |
7581 | ||
7582 | wxPyEndAllowThreads(__tstate); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
7585 | Py_INCREF(Py_None); resultobj = Py_None; | |
7586 | return resultobj; | |
7587 | fail: | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | static PyObject *_wrap_PyShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7593 | PyObject *resultobj; | |
7594 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7595 | wxDC *arg2 = 0 ; | |
7596 | PyObject * obj0 = 0 ; | |
7597 | PyObject * obj1 = 0 ; | |
7598 | char *kwnames[] = { | |
7599 | (char *) "self",(char *) "dc", NULL | |
7600 | }; | |
7601 | ||
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
7603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7604 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7605 | if (arg2 == NULL) { | |
7606 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7607 | } | |
7608 | { | |
7609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7610 | (arg1)->base_OnEraseControlPoints(*arg2); | |
7611 | ||
7612 | wxPyEndAllowThreads(__tstate); | |
7613 | if (PyErr_Occurred()) SWIG_fail; | |
7614 | } | |
7615 | Py_INCREF(Py_None); resultobj = Py_None; | |
7616 | return resultobj; | |
7617 | fail: | |
7618 | return NULL; | |
7619 | } | |
7620 | ||
7621 | ||
7622 | static PyObject *_wrap_PyShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7623 | PyObject *resultobj; | |
7624 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7625 | wxDC *arg2 = 0 ; | |
7626 | bool arg3 = (bool) True ; | |
7627 | PyObject * obj0 = 0 ; | |
7628 | PyObject * obj1 = 0 ; | |
7629 | PyObject * obj2 = 0 ; | |
7630 | char *kwnames[] = { | |
7631 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
7632 | }; | |
7633 | ||
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7636 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7637 | if (arg2 == NULL) { | |
7638 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7639 | } | |
7640 | if (obj2) { | |
7641 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7642 | if (PyErr_Occurred()) SWIG_fail; | |
7643 | } | |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | Py_INCREF(Py_None); resultobj = Py_None; | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_PyShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7661 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
7662 | bool arg3 ; | |
7663 | double arg4 ; | |
7664 | double arg5 ; | |
7665 | int arg6 = (int) 0 ; | |
7666 | int arg7 = (int) 0 ; | |
7667 | PyObject * obj0 = 0 ; | |
7668 | PyObject * obj1 = 0 ; | |
7669 | PyObject * obj2 = 0 ; | |
7670 | char *kwnames[] = { | |
7671 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7672 | }; | |
7673 | ||
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
7675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7677 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | { | |
7680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7681 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
7682 | ||
7683 | wxPyEndAllowThreads(__tstate); | |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
7685 | } | |
7686 | Py_INCREF(Py_None); resultobj = Py_None; | |
7687 | return resultobj; | |
7688 | fail: | |
7689 | return NULL; | |
7690 | } | |
7691 | ||
7692 | ||
7693 | static PyObject *_wrap_PyShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7694 | PyObject *resultobj; | |
7695 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7696 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
7697 | double arg3 ; | |
7698 | double arg4 ; | |
7699 | int arg5 = (int) 0 ; | |
7700 | int arg6 = (int) 0 ; | |
7701 | PyObject * obj0 = 0 ; | |
7702 | PyObject * obj1 = 0 ; | |
7703 | char *kwnames[] = { | |
7704 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
7708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7709 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
7716 | } | |
7717 | Py_INCREF(Py_None); resultobj = Py_None; | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | return NULL; | |
7721 | } | |
7722 | ||
7723 | ||
7724 | static PyObject *_wrap_PyShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7725 | PyObject *resultobj; | |
7726 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7727 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
7728 | double arg3 ; | |
7729 | double arg4 ; | |
7730 | int arg5 = (int) 0 ; | |
7731 | int arg6 = (int) 0 ; | |
7732 | PyObject * obj0 = 0 ; | |
7733 | PyObject * obj1 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7740 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7741 | { | |
7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7743 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
7744 | ||
7745 | wxPyEndAllowThreads(__tstate); | |
7746 | if (PyErr_Occurred()) SWIG_fail; | |
7747 | } | |
7748 | Py_INCREF(Py_None); resultobj = Py_None; | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
7755 | static PyObject *_wrap_PyShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7756 | PyObject *resultobj; | |
7757 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7758 | double arg2 ; | |
7759 | double arg3 ; | |
7760 | PyObject * obj0 = 0 ; | |
7761 | char *kwnames[] = { | |
7762 | (char *) "self",(char *) "w",(char *) "h", NULL | |
7763 | }; | |
7764 | ||
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7767 | { | |
7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7769 | (arg1)->base_OnBeginSize(arg2,arg3); | |
7770 | ||
7771 | wxPyEndAllowThreads(__tstate); | |
7772 | if (PyErr_Occurred()) SWIG_fail; | |
7773 | } | |
7774 | Py_INCREF(Py_None); resultobj = Py_None; | |
7775 | return resultobj; | |
7776 | fail: | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
7781 | static PyObject *_wrap_PyShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7782 | PyObject *resultobj; | |
7783 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7784 | double arg2 ; | |
7785 | double arg3 ; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | char *kwnames[] = { | |
7788 | (char *) "self",(char *) "w",(char *) "h", NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7793 | { | |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | (arg1)->base_OnEndSize(arg2,arg3); | |
7796 | ||
7797 | wxPyEndAllowThreads(__tstate); | |
7798 | if (PyErr_Occurred()) SWIG_fail; | |
7799 | } | |
7800 | Py_INCREF(Py_None); resultobj = Py_None; | |
7801 | return resultobj; | |
7802 | fail: | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
7807 | static PyObject * PyShape_swigregister(PyObject *self, PyObject *args) { | |
7808 | PyObject *obj; | |
7809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7810 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShape, obj); | |
7811 | Py_INCREF(obj); | |
7812 | return Py_BuildValue((char *)""); | |
7813 | } | |
7814 | static PyObject *_wrap_new_PseudoMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxPseudoMetaFile *result; | |
7817 | char *kwnames[] = { | |
7818 | NULL | |
7819 | }; | |
7820 | ||
7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PseudoMetaFile",kwnames)) goto fail; | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = (wxPseudoMetaFile *)new wxPseudoMetaFile(); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | { | |
7830 | resultobj = wxPyMake_wxObject(result); | |
7831 | } | |
7832 | return resultobj; | |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
7838 | static PyObject *_wrap_delete_PseudoMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7839 | PyObject *resultobj; | |
7840 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7841 | PyObject * obj0 = 0 ; | |
7842 | char *kwnames[] = { | |
7843 | (char *) "self", NULL | |
7844 | }; | |
7845 | ||
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PseudoMetaFile",kwnames,&obj0)) goto fail; | |
7847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | delete arg1; | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | Py_INCREF(Py_None); resultobj = Py_None; | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
7862 | static PyObject *_wrap_PseudoMetaFile_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject *resultobj; | |
7864 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7865 | wxDC *arg2 = 0 ; | |
7866 | double arg3 ; | |
7867 | double arg4 ; | |
7868 | PyObject * obj0 = 0 ; | |
7869 | PyObject * obj1 = 0 ; | |
7870 | char *kwnames[] = { | |
7871 | (char *) "self",(char *) "dc",(char *) "xoffset",(char *) "yoffset", NULL | |
7872 | }; | |
7873 | ||
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd:PseudoMetaFile_Draw",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
7875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7876 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7877 | if (arg2 == NULL) { | |
7878 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7879 | } | |
7880 | { | |
7881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7882 | (arg1)->Draw(*arg2,arg3,arg4); | |
7883 | ||
7884 | wxPyEndAllowThreads(__tstate); | |
7885 | if (PyErr_Occurred()) SWIG_fail; | |
7886 | } | |
7887 | Py_INCREF(Py_None); resultobj = Py_None; | |
7888 | return resultobj; | |
7889 | fail: | |
7890 | return NULL; | |
7891 | } | |
7892 | ||
7893 | ||
7894 | static PyObject *_wrap_PseudoMetaFile_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7895 | PyObject *resultobj; | |
7896 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7897 | PyObject * obj0 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "self", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_Clear",kwnames,&obj0)) goto fail; | |
7903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7904 | { | |
7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7906 | (arg1)->Clear(); | |
7907 | ||
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | Py_INCREF(Py_None); resultobj = Py_None; | |
7912 | return resultobj; | |
7913 | fail: | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | static PyObject *_wrap_PseudoMetaFile_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7919 | PyObject *resultobj; | |
7920 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7921 | wxPseudoMetaFile *arg2 = 0 ; | |
7922 | PyObject * obj0 = 0 ; | |
7923 | PyObject * obj1 = 0 ; | |
7924 | char *kwnames[] = { | |
7925 | (char *) "self",(char *) "copy", NULL | |
7926 | }; | |
7927 | ||
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_Copy",kwnames,&obj0,&obj1)) goto fail; | |
7929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7931 | if (arg2 == NULL) { | |
7932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7933 | } | |
7934 | { | |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | (arg1)->Copy(*arg2); | |
7937 | ||
7938 | wxPyEndAllowThreads(__tstate); | |
7939 | if (PyErr_Occurred()) SWIG_fail; | |
7940 | } | |
7941 | Py_INCREF(Py_None); resultobj = Py_None; | |
7942 | return resultobj; | |
7943 | fail: | |
7944 | return NULL; | |
7945 | } | |
7946 | ||
7947 | ||
7948 | static PyObject *_wrap_PseudoMetaFile_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7949 | PyObject *resultobj; | |
7950 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7951 | double arg2 ; | |
7952 | double arg3 ; | |
7953 | PyObject * obj0 = 0 ; | |
7954 | char *kwnames[] = { | |
7955 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
7956 | }; | |
7957 | ||
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PseudoMetaFile_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7960 | { | |
7961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7962 | (arg1)->Scale(arg2,arg3); | |
7963 | ||
7964 | wxPyEndAllowThreads(__tstate); | |
7965 | if (PyErr_Occurred()) SWIG_fail; | |
7966 | } | |
7967 | Py_INCREF(Py_None); resultobj = Py_None; | |
7968 | return resultobj; | |
7969 | fail: | |
7970 | return NULL; | |
7971 | } | |
7972 | ||
7973 | ||
7974 | static PyObject *_wrap_PseudoMetaFile_ScaleTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject *resultobj; | |
7976 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
7977 | double arg2 ; | |
7978 | double arg3 ; | |
7979 | PyObject * obj0 = 0 ; | |
7980 | char *kwnames[] = { | |
7981 | (char *) "self",(char *) "w",(char *) "h", NULL | |
7982 | }; | |
7983 | ||
7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PseudoMetaFile_ScaleTo",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7986 | { | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | (arg1)->ScaleTo(arg2,arg3); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | Py_INCREF(Py_None); resultobj = Py_None; | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | static PyObject *_wrap_PseudoMetaFile_Translate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8003 | double arg2 ; | |
8004 | double arg3 ; | |
8005 | PyObject * obj0 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PseudoMetaFile_Translate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8012 | { | |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | (arg1)->Translate(arg2,arg3); | |
8015 | ||
8016 | wxPyEndAllowThreads(__tstate); | |
8017 | if (PyErr_Occurred()) SWIG_fail; | |
8018 | } | |
8019 | Py_INCREF(Py_None); resultobj = Py_None; | |
8020 | return resultobj; | |
8021 | fail: | |
8022 | return NULL; | |
8023 | } | |
8024 | ||
8025 | ||
8026 | static PyObject *_wrap_PseudoMetaFile_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject *resultobj; | |
8028 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8029 | double arg2 ; | |
8030 | double arg3 ; | |
8031 | double arg4 ; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oddd:PseudoMetaFile_Rotate",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
8038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8039 | { | |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | (arg1)->Rotate(arg2,arg3,arg4); | |
8042 | ||
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | Py_INCREF(Py_None); resultobj = Py_None; | |
8047 | return resultobj; | |
8048 | fail: | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_PseudoMetaFile_LoadFromMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8056 | wxString *arg2 = 0 ; | |
8057 | double *arg3 = (double *) 0 ; | |
8058 | double *arg4 = (double *) 0 ; | |
8059 | bool result; | |
8060 | bool temp2 = False ; | |
8061 | PyObject * obj0 = 0 ; | |
8062 | PyObject * obj1 = 0 ; | |
8063 | PyObject * obj2 = 0 ; | |
8064 | PyObject * obj3 = 0 ; | |
8065 | char *kwnames[] = { | |
8066 | (char *) "self",(char *) "filename",(char *) "width",(char *) "height", NULL | |
8067 | }; | |
8068 | ||
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_LoadFromMetaFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8071 | { | |
8072 | arg2 = wxString_in_helper(obj1); | |
8073 | if (arg2 == NULL) SWIG_fail; | |
8074 | temp2 = True; | |
8075 | } | |
8076 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8077 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8078 | { | |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2,arg3,arg4); | |
8081 | ||
8082 | wxPyEndAllowThreads(__tstate); | |
8083 | if (PyErr_Occurred()) SWIG_fail; | |
8084 | } | |
8085 | resultobj = PyInt_FromLong((long)result); | |
8086 | { | |
8087 | if (temp2) | |
8088 | delete arg2; | |
8089 | } | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | { | |
8093 | if (temp2) | |
8094 | delete arg2; | |
8095 | } | |
8096 | return NULL; | |
8097 | } | |
8098 | ||
8099 | ||
8100 | static PyObject *_wrap_PseudoMetaFile_GetBounds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8101 | PyObject *resultobj; | |
8102 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8103 | double *arg2 = (double *) 0 ; | |
8104 | double *arg3 = (double *) 0 ; | |
8105 | double *arg4 = (double *) 0 ; | |
8106 | double *arg5 = (double *) 0 ; | |
8107 | PyObject * obj0 = 0 ; | |
8108 | PyObject * obj1 = 0 ; | |
8109 | PyObject * obj2 = 0 ; | |
8110 | PyObject * obj3 = 0 ; | |
8111 | PyObject * obj4 = 0 ; | |
8112 | char *kwnames[] = { | |
8113 | (char *) "self",(char *) "minX",(char *) "minY",(char *) "maxX",(char *) "maxY", NULL | |
8114 | }; | |
8115 | ||
8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoMetaFile_GetBounds",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8118 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8119 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8120 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8121 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_double,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8122 | { | |
8123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8124 | (arg1)->GetBounds(arg2,arg3,arg4,arg5); | |
8125 | ||
8126 | wxPyEndAllowThreads(__tstate); | |
8127 | if (PyErr_Occurred()) SWIG_fail; | |
8128 | } | |
8129 | Py_INCREF(Py_None); resultobj = Py_None; | |
8130 | return resultobj; | |
8131 | fail: | |
8132 | return NULL; | |
8133 | } | |
8134 | ||
8135 | ||
8136 | static PyObject *_wrap_PseudoMetaFile_CalculateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8137 | PyObject *resultobj; | |
8138 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8139 | wxPyDrawnShape *arg2 = (wxPyDrawnShape *) 0 ; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | PyObject * obj1 = 0 ; | |
8142 | char *kwnames[] = { | |
8143 | (char *) "self",(char *) "shape", NULL | |
8144 | }; | |
8145 | ||
8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_CalculateSize",kwnames,&obj0,&obj1)) goto fail; | |
8147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8148 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8149 | { | |
8150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8151 | (arg1)->CalculateSize(arg2); | |
8152 | ||
8153 | wxPyEndAllowThreads(__tstate); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | } | |
8156 | Py_INCREF(Py_None); resultobj = Py_None; | |
8157 | return resultobj; | |
8158 | fail: | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
8163 | static PyObject *_wrap_PseudoMetaFile_SetRotateable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject *resultobj; | |
8165 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8166 | bool arg2 ; | |
8167 | PyObject * obj0 = 0 ; | |
8168 | PyObject * obj1 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "self",(char *) "rot", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetRotateable",kwnames,&obj0,&obj1)) goto fail; | |
8174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8175 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | { | |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | (arg1)->SetRotateable(arg2); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | Py_INCREF(Py_None); resultobj = Py_None; | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | return NULL; | |
8188 | } | |
8189 | ||
8190 | ||
8191 | static PyObject *_wrap_PseudoMetaFile_GetRotateable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8194 | bool result; | |
8195 | PyObject * obj0 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "self", NULL | |
8198 | }; | |
8199 | ||
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetRotateable",kwnames,&obj0)) goto fail; | |
8201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | result = (bool)(arg1)->GetRotateable(); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
8209 | resultobj = PyInt_FromLong((long)result); | |
8210 | return resultobj; | |
8211 | fail: | |
8212 | return NULL; | |
8213 | } | |
8214 | ||
8215 | ||
8216 | static PyObject *_wrap_PseudoMetaFile_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject *resultobj; | |
8218 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8219 | double arg2 ; | |
8220 | double arg3 ; | |
8221 | PyObject * obj0 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self",(char *) "w",(char *) "h", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PseudoMetaFile_SetSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8228 | { | |
8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8230 | (arg1)->SetSize(arg2,arg3); | |
8231 | ||
8232 | wxPyEndAllowThreads(__tstate); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | Py_INCREF(Py_None); resultobj = Py_None; | |
8236 | return resultobj; | |
8237 | fail: | |
8238 | return NULL; | |
8239 | } | |
8240 | ||
8241 | ||
8242 | static PyObject *_wrap_PseudoMetaFile_SetFillBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8243 | PyObject *resultobj; | |
8244 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8245 | wxBrush *arg2 = (wxBrush *) 0 ; | |
8246 | PyObject * obj0 = 0 ; | |
8247 | PyObject * obj1 = 0 ; | |
8248 | char *kwnames[] = { | |
8249 | (char *) "self",(char *) "brush", NULL | |
8250 | }; | |
8251 | ||
8252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFillBrush",kwnames,&obj0,&obj1)) goto fail; | |
8253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8254 | { | |
8255 | wxBrush* temp; | |
8256 | if (obj1) { | |
8257 | if (obj1 == Py_None) { | |
8258 | temp = NULL; | |
8259 | } | |
8260 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
8261 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
8262 | return NULL; | |
8263 | } | |
8264 | } | |
8265 | if (temp) | |
8266 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
8267 | else | |
8268 | arg2 = NULL; | |
8269 | } | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | (arg1)->SetFillBrush(arg2); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | Py_INCREF(Py_None); resultobj = Py_None; | |
8278 | return resultobj; | |
8279 | fail: | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject *_wrap_PseudoMetaFile_GetFillBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8285 | PyObject *resultobj; | |
8286 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8287 | wxBrush *result; | |
8288 | PyObject * obj0 = 0 ; | |
8289 | char *kwnames[] = { | |
8290 | (char *) "self", NULL | |
8291 | }; | |
8292 | ||
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetFillBrush",kwnames,&obj0)) goto fail; | |
8294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8295 | { | |
8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8297 | result = (wxBrush *)(arg1)->GetFillBrush(); | |
8298 | ||
8299 | wxPyEndAllowThreads(__tstate); | |
8300 | if (PyErr_Occurred()) SWIG_fail; | |
8301 | } | |
8302 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
8309 | static PyObject *_wrap_PseudoMetaFile_SetOutlinePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8310 | PyObject *resultobj; | |
8311 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8312 | wxPen *arg2 = (wxPen *) 0 ; | |
8313 | PyObject * obj0 = 0 ; | |
8314 | PyObject * obj1 = 0 ; | |
8315 | char *kwnames[] = { | |
8316 | (char *) "self",(char *) "pen", NULL | |
8317 | }; | |
8318 | ||
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetOutlinePen",kwnames,&obj0,&obj1)) goto fail; | |
8320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8321 | { | |
8322 | wxPen* temp; | |
8323 | if (obj1) { | |
8324 | if (obj1 == Py_None) { | |
8325 | temp = NULL; | |
8326 | } | |
8327 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
8328 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
8329 | return NULL; | |
8330 | } | |
8331 | } | |
8332 | if (temp) | |
8333 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
8334 | temp->GetWidth(), | |
8335 | temp->GetStyle()); | |
8336 | else | |
8337 | arg2 = NULL; | |
8338 | } | |
8339 | { | |
8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8341 | (arg1)->SetOutlinePen(arg2); | |
8342 | ||
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) SWIG_fail; | |
8345 | } | |
8346 | Py_INCREF(Py_None); resultobj = Py_None; | |
8347 | return resultobj; | |
8348 | fail: | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | static PyObject *_wrap_PseudoMetaFile_GetOutlinePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj; | |
8355 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8356 | wxPen *result; | |
8357 | PyObject * obj0 = 0 ; | |
8358 | char *kwnames[] = { | |
8359 | (char *) "self", NULL | |
8360 | }; | |
8361 | ||
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlinePen",kwnames,&obj0)) goto fail; | |
8363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | result = (wxPen *)(arg1)->GetOutlinePen(); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
8378 | static PyObject *_wrap_PseudoMetaFile_SetOutlineOp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8379 | PyObject *resultobj; | |
8380 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8381 | int arg2 ; | |
8382 | PyObject * obj0 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "self",(char *) "op", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PseudoMetaFile_SetOutlineOp",kwnames,&obj0,&arg2)) goto fail; | |
8388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | (arg1)->SetOutlineOp(arg2); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | Py_INCREF(Py_None); resultobj = Py_None; | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | return NULL; | |
8400 | } | |
8401 | ||
8402 | ||
8403 | static PyObject *_wrap_PseudoMetaFile_GetOutlineOp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8404 | PyObject *resultobj; | |
8405 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8406 | int result; | |
8407 | PyObject * obj0 = 0 ; | |
8408 | char *kwnames[] = { | |
8409 | (char *) "self", NULL | |
8410 | }; | |
8411 | ||
8412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlineOp",kwnames,&obj0)) goto fail; | |
8413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8414 | { | |
8415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8416 | result = (int)(arg1)->GetOutlineOp(); | |
8417 | ||
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | resultobj = PyInt_FromLong((long)result); | |
8422 | return resultobj; | |
8423 | fail: | |
8424 | return NULL; | |
8425 | } | |
8426 | ||
8427 | ||
8428 | static PyObject *_wrap_PseudoMetaFile_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8429 | PyObject *resultobj; | |
8430 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8431 | bool result; | |
8432 | PyObject * obj0 = 0 ; | |
8433 | char *kwnames[] = { | |
8434 | (char *) "self", NULL | |
8435 | }; | |
8436 | ||
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_IsValid",kwnames,&obj0)) goto fail; | |
8438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | result = (bool)(arg1)->IsValid(); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | resultobj = PyInt_FromLong((long)result); | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
8453 | static PyObject *_wrap_PseudoMetaFile_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8454 | PyObject *resultobj; | |
8455 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8456 | wxPoint *arg2 = 0 ; | |
8457 | wxPoint *arg3 = 0 ; | |
8458 | wxPoint temp2 ; | |
8459 | wxPoint temp3 ; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | PyObject * obj1 = 0 ; | |
8462 | PyObject * obj2 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8469 | { | |
8470 | arg2 = &temp2; | |
8471 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8472 | } | |
8473 | { | |
8474 | arg3 = &temp3; | |
8475 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8476 | } | |
8477 | { | |
8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8479 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
8480 | ||
8481 | wxPyEndAllowThreads(__tstate); | |
8482 | if (PyErr_Occurred()) SWIG_fail; | |
8483 | } | |
8484 | Py_INCREF(Py_None); resultobj = Py_None; | |
8485 | return resultobj; | |
8486 | fail: | |
8487 | return NULL; | |
8488 | } | |
8489 | ||
8490 | ||
8491 | static PyObject *_wrap_PseudoMetaFile_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject *resultobj; | |
8493 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8494 | wxRect *arg2 = 0 ; | |
8495 | wxRect temp2 ; | |
8496 | PyObject * obj0 = 0 ; | |
8497 | PyObject * obj1 = 0 ; | |
8498 | char *kwnames[] = { | |
8499 | (char *) "self",(char *) "rect", NULL | |
8500 | }; | |
8501 | ||
8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
8503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8504 | { | |
8505 | arg2 = &temp2; | |
8506 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8507 | } | |
8508 | { | |
8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8510 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
8511 | ||
8512 | wxPyEndAllowThreads(__tstate); | |
8513 | if (PyErr_Occurred()) SWIG_fail; | |
8514 | } | |
8515 | Py_INCREF(Py_None); resultobj = Py_None; | |
8516 | return resultobj; | |
8517 | fail: | |
8518 | return NULL; | |
8519 | } | |
8520 | ||
8521 | ||
8522 | static PyObject *_wrap_PseudoMetaFile_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8523 | PyObject *resultobj; | |
8524 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8525 | wxRect *arg2 = 0 ; | |
8526 | double arg3 ; | |
8527 | wxRect temp2 ; | |
8528 | PyObject * obj0 = 0 ; | |
8529 | PyObject * obj1 = 0 ; | |
8530 | char *kwnames[] = { | |
8531 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:PseudoMetaFile_DrawRoundedRectangle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
8535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8536 | { | |
8537 | arg2 = &temp2; | |
8538 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8539 | } | |
8540 | { | |
8541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8542 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
8543 | ||
8544 | wxPyEndAllowThreads(__tstate); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | } | |
8547 | Py_INCREF(Py_None); resultobj = Py_None; | |
8548 | return resultobj; | |
8549 | fail: | |
8550 | return NULL; | |
8551 | } | |
8552 | ||
8553 | ||
8554 | static PyObject *_wrap_PseudoMetaFile_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8555 | PyObject *resultobj; | |
8556 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8557 | wxPoint *arg2 = 0 ; | |
8558 | wxPoint *arg3 = 0 ; | |
8559 | wxPoint *arg4 = 0 ; | |
8560 | wxPoint temp2 ; | |
8561 | wxPoint temp3 ; | |
8562 | wxPoint temp4 ; | |
8563 | PyObject * obj0 = 0 ; | |
8564 | PyObject * obj1 = 0 ; | |
8565 | PyObject * obj2 = 0 ; | |
8566 | PyObject * obj3 = 0 ; | |
8567 | char *kwnames[] = { | |
8568 | (char *) "self",(char *) "centrePt",(char *) "startPt",(char *) "endPt", NULL | |
8569 | }; | |
8570 | ||
8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8573 | { | |
8574 | arg2 = &temp2; | |
8575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8576 | } | |
8577 | { | |
8578 | arg3 = &temp3; | |
8579 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8580 | } | |
8581 | { | |
8582 | arg4 = &temp4; | |
8583 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8584 | } | |
8585 | { | |
8586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8587 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
8588 | ||
8589 | wxPyEndAllowThreads(__tstate); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | Py_INCREF(Py_None); resultobj = Py_None; | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
8599 | static PyObject *_wrap_PseudoMetaFile_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8600 | PyObject *resultobj; | |
8601 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8602 | wxRect *arg2 = 0 ; | |
8603 | double arg3 ; | |
8604 | double arg4 ; | |
8605 | wxRect temp2 ; | |
8606 | PyObject * obj0 = 0 ; | |
8607 | PyObject * obj1 = 0 ; | |
8608 | char *kwnames[] = { | |
8609 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
8610 | }; | |
8611 | ||
8612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd:PseudoMetaFile_DrawEllipticArc",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8614 | { | |
8615 | arg2 = &temp2; | |
8616 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8617 | } | |
8618 | { | |
8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8620 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
8621 | ||
8622 | wxPyEndAllowThreads(__tstate); | |
8623 | if (PyErr_Occurred()) SWIG_fail; | |
8624 | } | |
8625 | Py_INCREF(Py_None); resultobj = Py_None; | |
8626 | return resultobj; | |
8627 | fail: | |
8628 | return NULL; | |
8629 | } | |
8630 | ||
8631 | ||
8632 | static PyObject *_wrap_PseudoMetaFile_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject *resultobj; | |
8634 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8635 | wxRect *arg2 = 0 ; | |
8636 | wxRect temp2 ; | |
8637 | PyObject * obj0 = 0 ; | |
8638 | PyObject * obj1 = 0 ; | |
8639 | char *kwnames[] = { | |
8640 | (char *) "self",(char *) "rect", NULL | |
8641 | }; | |
8642 | ||
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawEllipse",kwnames,&obj0,&obj1)) goto fail; | |
8644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8645 | { | |
8646 | arg2 = &temp2; | |
8647 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8648 | } | |
8649 | { | |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | Py_INCREF(Py_None); resultobj = Py_None; | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject *_wrap_PseudoMetaFile_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8664 | PyObject *resultobj; | |
8665 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8666 | wxPoint *arg2 = 0 ; | |
8667 | wxPoint temp2 ; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | PyObject * obj1 = 0 ; | |
8670 | char *kwnames[] = { | |
8671 | (char *) "self",(char *) "pt", NULL | |
8672 | }; | |
8673 | ||
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
8675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8676 | { | |
8677 | arg2 = &temp2; | |
8678 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8679 | } | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | Py_INCREF(Py_None); resultobj = Py_None; | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_PseudoMetaFile_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8697 | wxString *arg2 = 0 ; | |
8698 | wxPoint *arg3 = 0 ; | |
8699 | bool temp2 = False ; | |
8700 | wxPoint temp3 ; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | PyObject * obj1 = 0 ; | |
8703 | PyObject * obj2 = 0 ; | |
8704 | char *kwnames[] = { | |
8705 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
8706 | }; | |
8707 | ||
8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8710 | { | |
8711 | arg2 = wxString_in_helper(obj1); | |
8712 | if (arg2 == NULL) SWIG_fail; | |
8713 | temp2 = True; | |
8714 | } | |
8715 | { | |
8716 | arg3 = &temp3; | |
8717 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8718 | } | |
8719 | { | |
8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8721 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
8722 | ||
8723 | wxPyEndAllowThreads(__tstate); | |
8724 | if (PyErr_Occurred()) SWIG_fail; | |
8725 | } | |
8726 | Py_INCREF(Py_None); resultobj = Py_None; | |
8727 | { | |
8728 | if (temp2) | |
8729 | delete arg2; | |
8730 | } | |
8731 | return resultobj; | |
8732 | fail: | |
8733 | { | |
8734 | if (temp2) | |
8735 | delete arg2; | |
8736 | } | |
8737 | return NULL; | |
8738 | } | |
8739 | ||
8740 | ||
8741 | static PyObject *_wrap_PseudoMetaFile_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8742 | PyObject *resultobj; | |
8743 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8744 | int arg2 ; | |
8745 | wxPoint *arg3 = (wxPoint *) 0 ; | |
8746 | PyObject * obj0 = 0 ; | |
8747 | PyObject * obj2 = 0 ; | |
8748 | char *kwnames[] = { | |
8749 | (char *) "self",(char *) "PCOUNT",(char *) "points", NULL | |
8750 | }; | |
8751 | ||
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PseudoMetaFile_DrawLines",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8754 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8755 | { | |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | (arg1)->DrawLines(arg2,arg3); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
8762 | Py_INCREF(Py_None); resultobj = Py_None; | |
8763 | return resultobj; | |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
8769 | static PyObject *_wrap_PseudoMetaFile_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj; | |
8771 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8772 | int arg2 ; | |
8773 | wxPoint *arg3 = (wxPoint *) 0 ; | |
8774 | int arg4 = (int) 0 ; | |
8775 | PyObject * obj0 = 0 ; | |
8776 | PyObject * obj2 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self",(char *) "PCOUNT",(char *) "points",(char *) "flags", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|i:PseudoMetaFile_DrawPolygon",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
8782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8783 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | Py_INCREF(Py_None); resultobj = Py_None; | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
8798 | static PyObject *_wrap_PseudoMetaFile_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject *resultobj; | |
8800 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8801 | int arg2 ; | |
8802 | wxPoint *arg3 = (wxPoint *) 0 ; | |
8803 | PyObject * obj0 = 0 ; | |
8804 | PyObject * obj2 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "self",(char *) "PCOUNT",(char *) "points", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PseudoMetaFile_DrawSpline",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8811 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | (arg1)->DrawSpline(arg2,arg3); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | Py_INCREF(Py_None); resultobj = Py_None; | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | static PyObject *_wrap_PseudoMetaFile_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj; | |
8828 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8829 | wxRect *arg2 = 0 ; | |
8830 | wxRect temp2 ; | |
8831 | PyObject * obj0 = 0 ; | |
8832 | PyObject * obj1 = 0 ; | |
8833 | char *kwnames[] = { | |
8834 | (char *) "self",(char *) "rect", NULL | |
8835 | }; | |
8836 | ||
8837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
8838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8839 | { | |
8840 | arg2 = &temp2; | |
8841 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8842 | } | |
8843 | { | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | Py_INCREF(Py_None); resultobj = Py_None; | |
8851 | return resultobj; | |
8852 | fail: | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
8857 | static PyObject *_wrap_PseudoMetaFile_DestroyClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject *resultobj; | |
8859 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8860 | PyObject * obj0 = 0 ; | |
8861 | char *kwnames[] = { | |
8862 | (char *) "self", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
8866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8867 | { | |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | (arg1)->DestroyClippingRect(); | |
8870 | ||
8871 | wxPyEndAllowThreads(__tstate); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | } | |
8874 | Py_INCREF(Py_None); resultobj = Py_None; | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | return NULL; | |
8878 | } | |
8879 | ||
8880 | ||
8881 | static PyObject *_wrap_PseudoMetaFile_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8882 | PyObject *resultobj; | |
8883 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8884 | wxPen *arg2 = (wxPen *) 0 ; | |
8885 | bool arg3 = (bool) FALSE ; | |
8886 | PyObject * obj0 = 0 ; | |
8887 | PyObject * obj1 = 0 ; | |
8888 | PyObject * obj2 = 0 ; | |
8889 | char *kwnames[] = { | |
8890 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
8891 | }; | |
8892 | ||
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8895 | { | |
8896 | wxPen* temp; | |
8897 | if (obj1) { | |
8898 | if (obj1 == Py_None) { | |
8899 | temp = NULL; | |
8900 | } | |
8901 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
8902 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
8903 | return NULL; | |
8904 | } | |
8905 | } | |
8906 | if (temp) | |
8907 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
8908 | temp->GetWidth(), | |
8909 | temp->GetStyle()); | |
8910 | else | |
8911 | arg2 = NULL; | |
8912 | } | |
8913 | if (obj2) { | |
8914 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8915 | if (PyErr_Occurred()) SWIG_fail; | |
8916 | } | |
8917 | { | |
8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8919 | (arg1)->SetPen(arg2,arg3); | |
8920 | ||
8921 | wxPyEndAllowThreads(__tstate); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
8923 | } | |
8924 | Py_INCREF(Py_None); resultobj = Py_None; | |
8925 | return resultobj; | |
8926 | fail: | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
8931 | static PyObject *_wrap_PseudoMetaFile_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject *resultobj; | |
8933 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8934 | wxBrush *arg2 = (wxBrush *) 0 ; | |
8935 | bool arg3 = (bool) FALSE ; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | PyObject * obj1 = 0 ; | |
8938 | PyObject * obj2 = 0 ; | |
8939 | char *kwnames[] = { | |
8940 | (char *) "self",(char *) "brush",(char *) "isFill", NULL | |
8941 | }; | |
8942 | ||
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8945 | { | |
8946 | wxBrush* temp; | |
8947 | if (obj1) { | |
8948 | if (obj1 == Py_None) { | |
8949 | temp = NULL; | |
8950 | } | |
8951 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
8952 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
8953 | return NULL; | |
8954 | } | |
8955 | } | |
8956 | if (temp) | |
8957 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
8958 | else | |
8959 | arg2 = NULL; | |
8960 | } | |
8961 | if (obj2) { | |
8962 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | { | |
8966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8967 | (arg1)->SetBrush(arg2,arg3); | |
8968 | ||
8969 | wxPyEndAllowThreads(__tstate); | |
8970 | if (PyErr_Occurred()) SWIG_fail; | |
8971 | } | |
8972 | Py_INCREF(Py_None); resultobj = Py_None; | |
8973 | return resultobj; | |
8974 | fail: | |
8975 | return NULL; | |
8976 | } | |
8977 | ||
8978 | ||
8979 | static PyObject *_wrap_PseudoMetaFile_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8980 | PyObject *resultobj; | |
8981 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
8982 | wxFont *arg2 = (wxFont *) 0 ; | |
8983 | PyObject * obj0 = 0 ; | |
8984 | PyObject * obj1 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self",(char *) "font", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8991 | { | |
8992 | wxFont* temp; | |
8993 | if (obj1) { | |
8994 | if (obj1 == Py_None) { | |
8995 | temp = NULL; | |
8996 | } | |
8997 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
8998 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
8999 | return NULL; | |
9000 | } | |
9001 | } | |
9002 | if (temp) | |
9003 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
9004 | temp->GetFamily(), | |
9005 | temp->GetStyle(), | |
9006 | temp->GetWeight(), | |
9007 | temp->GetUnderlined(), | |
9008 | temp->GetFaceName(), | |
9009 | temp->GetEncoding()); | |
9010 | else | |
9011 | arg2 = NULL; | |
9012 | } | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | (arg1)->SetFont(arg2); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | Py_INCREF(Py_None); resultobj = Py_None; | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
9027 | static PyObject *_wrap_PseudoMetaFile_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject *resultobj; | |
9029 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9030 | wxColour *arg2 = 0 ; | |
9031 | wxColour temp2 ; | |
9032 | PyObject * obj0 = 0 ; | |
9033 | PyObject * obj1 = 0 ; | |
9034 | char *kwnames[] = { | |
9035 | (char *) "self",(char *) "colour", NULL | |
9036 | }; | |
9037 | ||
9038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
9039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9040 | { | |
9041 | arg2 = &temp2; | |
9042 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9043 | } | |
9044 | { | |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | Py_INCREF(Py_None); resultobj = Py_None; | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
9055 | } | |
9056 | ||
9057 | ||
9058 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9059 | PyObject *resultobj; | |
9060 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9061 | wxColour *arg2 = 0 ; | |
9062 | wxColour temp2 ; | |
9063 | PyObject * obj0 = 0 ; | |
9064 | PyObject * obj1 = 0 ; | |
9065 | char *kwnames[] = { | |
9066 | (char *) "self",(char *) "colour", NULL | |
9067 | }; | |
9068 | ||
9069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
9070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9071 | { | |
9072 | arg2 = &temp2; | |
9073 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9074 | } | |
9075 | { | |
9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9077 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
9078 | ||
9079 | wxPyEndAllowThreads(__tstate); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
9081 | } | |
9082 | Py_INCREF(Py_None); resultobj = Py_None; | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9092 | int arg2 ; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | char *kwnames[] = { | |
9095 | (char *) "self",(char *) "mode", NULL | |
9096 | }; | |
9097 | ||
9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PseudoMetaFile_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
9099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | (arg1)->SetBackgroundMode(arg2); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | Py_INCREF(Py_None); resultobj = Py_None; | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject * PseudoMetaFile_swigregister(PyObject *self, PyObject *args) { | |
9115 | PyObject *obj; | |
9116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9117 | SWIG_TypeClientData(SWIGTYPE_p_wxPseudoMetaFile, obj); | |
9118 | Py_INCREF(obj); | |
9119 | return Py_BuildValue((char *)""); | |
9120 | } | |
9121 | static PyObject *_wrap_new_PyRectangleShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9122 | PyObject *resultobj; | |
9123 | double arg1 = (double) 0.0 ; | |
9124 | double arg2 = (double) 0.0 ; | |
9125 | wxPyRectangleShape *result; | |
9126 | char *kwnames[] = { | |
9127 | (char *) "width",(char *) "height", NULL | |
9128 | }; | |
9129 | ||
9130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_PyRectangleShape",kwnames,&arg1,&arg2)) goto fail; | |
9131 | { | |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9133 | result = (wxPyRectangleShape *)new wxPyRectangleShape(arg1,arg2); | |
9134 | ||
9135 | wxPyEndAllowThreads(__tstate); | |
9136 | if (PyErr_Occurred()) SWIG_fail; | |
9137 | } | |
9138 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyRectangleShape, 1); | |
9139 | return resultobj; | |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
9145 | static PyObject *_wrap_PyRectangleShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject *resultobj; | |
9147 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9148 | PyObject *arg2 = (PyObject *) 0 ; | |
9149 | PyObject *arg3 = (PyObject *) 0 ; | |
9150 | PyObject * obj0 = 0 ; | |
9151 | PyObject * obj1 = 0 ; | |
9152 | PyObject * obj2 = 0 ; | |
9153 | char *kwnames[] = { | |
9154 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9155 | }; | |
9156 | ||
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9159 | arg2 = obj1; | |
9160 | arg3 = obj2; | |
9161 | { | |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
9168 | Py_INCREF(Py_None); resultobj = Py_None; | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_PyRectangleShape_SetCornerRadius(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9178 | double arg2 ; | |
9179 | PyObject * obj0 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self",(char *) "radius", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyRectangleShape_SetCornerRadius",kwnames,&obj0,&arg2)) goto fail; | |
9185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9186 | { | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | (arg1)->SetCornerRadius(arg2); | |
9189 | ||
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | Py_INCREF(Py_None); resultobj = Py_None; | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
30d215aa RD |
9200 | static PyObject *_wrap_PyRectangleShape_GetCornerRadius(PyObject *self, PyObject *args, PyObject *kwargs) { |
9201 | PyObject *resultobj; | |
9202 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9203 | double result; | |
9204 | PyObject * obj0 = 0 ; | |
9205 | char *kwnames[] = { | |
9206 | (char *) "self", NULL | |
9207 | }; | |
9208 | ||
9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_GetCornerRadius",kwnames,&obj0)) goto fail; | |
9210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9211 | { | |
9212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9213 | result = (double)(arg1)->GetCornerRadius(); | |
9214 | ||
9215 | wxPyEndAllowThreads(__tstate); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
9217 | } | |
9218 | resultobj = PyFloat_FromDouble(result); | |
9219 | return resultobj; | |
9220 | fail: | |
9221 | return NULL; | |
9222 | } | |
9223 | ||
9224 | ||
44127b65 RD |
9225 | static PyObject *_wrap_PyRectangleShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { |
9226 | PyObject *resultobj; | |
9227 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9228 | PyObject * obj0 = 0 ; | |
9229 | char *kwnames[] = { | |
9230 | (char *) "self", NULL | |
9231 | }; | |
9232 | ||
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
9234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9235 | { | |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | (arg1)->base_OnDelete(); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | Py_INCREF(Py_None); resultobj = Py_None; | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject *_wrap_PyRectangleShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject *resultobj; | |
9251 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9252 | wxDC *arg2 = 0 ; | |
9253 | PyObject * obj0 = 0 ; | |
9254 | PyObject * obj1 = 0 ; | |
9255 | char *kwnames[] = { | |
9256 | (char *) "self",(char *) "dc", NULL | |
9257 | }; | |
9258 | ||
9259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
9260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9262 | if (arg2 == NULL) { | |
9263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9264 | } | |
9265 | { | |
9266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9267 | (arg1)->base_OnDraw(*arg2); | |
9268 | ||
9269 | wxPyEndAllowThreads(__tstate); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | } | |
9272 | Py_INCREF(Py_None); resultobj = Py_None; | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
9279 | static PyObject *_wrap_PyRectangleShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject *resultobj; | |
9281 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9282 | wxDC *arg2 = 0 ; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | PyObject * obj1 = 0 ; | |
9285 | char *kwnames[] = { | |
9286 | (char *) "self",(char *) "dc", NULL | |
9287 | }; | |
9288 | ||
9289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
9290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9292 | if (arg2 == NULL) { | |
9293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9294 | } | |
9295 | { | |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | (arg1)->base_OnDrawContents(*arg2); | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | Py_INCREF(Py_None); resultobj = Py_None; | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | static PyObject *_wrap_PyRectangleShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj; | |
9311 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9312 | wxDC *arg2 = 0 ; | |
9313 | bool arg3 = (bool) FALSE ; | |
9314 | PyObject * obj0 = 0 ; | |
9315 | PyObject * obj1 = 0 ; | |
9316 | PyObject * obj2 = 0 ; | |
9317 | char *kwnames[] = { | |
9318 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
9319 | }; | |
9320 | ||
9321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9323 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9324 | if (arg2 == NULL) { | |
9325 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9326 | } | |
9327 | if (obj2) { | |
9328 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
9334 | ||
9335 | wxPyEndAllowThreads(__tstate); | |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
9337 | } | |
9338 | Py_INCREF(Py_None); resultobj = Py_None; | |
9339 | return resultobj; | |
9340 | fail: | |
9341 | return NULL; | |
9342 | } | |
9343 | ||
9344 | ||
9345 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject *resultobj; | |
9347 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9348 | wxDC *arg2 = 0 ; | |
9349 | PyObject * obj0 = 0 ; | |
9350 | PyObject * obj1 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self",(char *) "dc", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
9356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9357 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9358 | if (arg2 == NULL) { | |
9359 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9360 | } | |
9361 | { | |
9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9363 | (arg1)->base_OnMoveLinks(*arg2); | |
9364 | ||
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | Py_INCREF(Py_None); resultobj = Py_None; | |
9369 | return resultobj; | |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
9375 | static PyObject *_wrap_PyRectangleShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9376 | PyObject *resultobj; | |
9377 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9378 | wxDC *arg2 = 0 ; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | PyObject * obj1 = 0 ; | |
9381 | char *kwnames[] = { | |
9382 | (char *) "self",(char *) "dc", NULL | |
9383 | }; | |
9384 | ||
9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
9386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9388 | if (arg2 == NULL) { | |
9389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9390 | } | |
9391 | { | |
9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9393 | (arg1)->base_OnErase(*arg2); | |
9394 | ||
9395 | wxPyEndAllowThreads(__tstate); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
9397 | } | |
9398 | Py_INCREF(Py_None); resultobj = Py_None; | |
9399 | return resultobj; | |
9400 | fail: | |
9401 | return NULL; | |
9402 | } | |
9403 | ||
9404 | ||
9405 | static PyObject *_wrap_PyRectangleShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9406 | PyObject *resultobj; | |
9407 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9408 | wxDC *arg2 = 0 ; | |
9409 | PyObject * obj0 = 0 ; | |
9410 | PyObject * obj1 = 0 ; | |
9411 | char *kwnames[] = { | |
9412 | (char *) "self",(char *) "dc", NULL | |
9413 | }; | |
9414 | ||
9415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
9416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9417 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9418 | if (arg2 == NULL) { | |
9419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9420 | } | |
9421 | { | |
9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9423 | (arg1)->base_OnEraseContents(*arg2); | |
9424 | ||
9425 | wxPyEndAllowThreads(__tstate); | |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
9427 | } | |
9428 | Py_INCREF(Py_None); resultobj = Py_None; | |
9429 | return resultobj; | |
9430 | fail: | |
9431 | return NULL; | |
9432 | } | |
9433 | ||
9434 | ||
9435 | static PyObject *_wrap_PyRectangleShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9436 | PyObject *resultobj; | |
9437 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9438 | wxDC *arg2 = 0 ; | |
9439 | PyObject * obj0 = 0 ; | |
9440 | PyObject * obj1 = 0 ; | |
9441 | char *kwnames[] = { | |
9442 | (char *) "self",(char *) "dc", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
9446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9447 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9448 | if (arg2 == NULL) { | |
9449 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9450 | } | |
9451 | { | |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | (arg1)->base_OnHighlight(*arg2); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | Py_INCREF(Py_None); resultobj = Py_None; | |
9459 | return resultobj; | |
9460 | fail: | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_PyRectangleShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9468 | double arg2 ; | |
9469 | double arg3 ; | |
9470 | int arg4 = (int) 0 ; | |
9471 | int arg5 = (int) 0 ; | |
9472 | PyObject * obj0 = 0 ; | |
9473 | char *kwnames[] = { | |
9474 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9475 | }; | |
9476 | ||
9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9479 | { | |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9481 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
9482 | ||
9483 | wxPyEndAllowThreads(__tstate); | |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | } | |
9486 | Py_INCREF(Py_None); resultobj = Py_None; | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
9493 | static PyObject *_wrap_PyRectangleShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject *resultobj; | |
9495 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9496 | double arg2 ; | |
9497 | double arg3 ; | |
9498 | int arg4 = (int) 0 ; | |
9499 | int arg5 = (int) 0 ; | |
9500 | PyObject * obj0 = 0 ; | |
9501 | char *kwnames[] = { | |
9502 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9503 | }; | |
9504 | ||
9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | Py_INCREF(Py_None); resultobj = Py_None; | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
9521 | static PyObject *_wrap_PyRectangleShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9522 | PyObject *resultobj; | |
9523 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9524 | double arg2 ; | |
9525 | double arg3 ; | |
9526 | int arg4 = (int) 0 ; | |
9527 | int arg5 = (int) 0 ; | |
9528 | PyObject * obj0 = 0 ; | |
9529 | char *kwnames[] = { | |
9530 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9531 | }; | |
9532 | ||
9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | Py_INCREF(Py_None); resultobj = Py_None; | |
9543 | return resultobj; | |
9544 | fail: | |
9545 | return NULL; | |
9546 | } | |
9547 | ||
9548 | ||
9549 | static PyObject *_wrap_PyRectangleShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj; | |
9551 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9552 | double arg2 ; | |
9553 | double arg3 ; | |
9554 | PyObject * obj0 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyRectangleShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9561 | { | |
9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9563 | (arg1)->base_OnSize(arg2,arg3); | |
9564 | ||
9565 | wxPyEndAllowThreads(__tstate); | |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
9567 | } | |
9568 | Py_INCREF(Py_None); resultobj = Py_None; | |
9569 | return resultobj; | |
9570 | fail: | |
9571 | return NULL; | |
9572 | } | |
9573 | ||
9574 | ||
9575 | static PyObject *_wrap_PyRectangleShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9576 | PyObject *resultobj; | |
9577 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9578 | wxDC *arg2 = 0 ; | |
9579 | double arg3 ; | |
9580 | double arg4 ; | |
9581 | double arg5 ; | |
9582 | double arg6 ; | |
9583 | bool arg7 = (bool) True ; | |
9584 | bool result; | |
9585 | PyObject * obj0 = 0 ; | |
9586 | PyObject * obj1 = 0 ; | |
9587 | PyObject * obj6 = 0 ; | |
9588 | char *kwnames[] = { | |
9589 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
9590 | }; | |
9591 | ||
9592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyRectangleShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
9593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9594 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9595 | if (arg2 == NULL) { | |
9596 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9597 | } | |
9598 | if (obj6) { | |
9599 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
9600 | if (PyErr_Occurred()) SWIG_fail; | |
9601 | } | |
9602 | { | |
9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9604 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
9605 | ||
9606 | wxPyEndAllowThreads(__tstate); | |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
9608 | } | |
9609 | resultobj = PyInt_FromLong((long)result); | |
9610 | return resultobj; | |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
9616 | static PyObject *_wrap_PyRectangleShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9617 | PyObject *resultobj; | |
9618 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9619 | wxDC *arg2 = 0 ; | |
9620 | double arg3 ; | |
9621 | double arg4 ; | |
9622 | double arg5 ; | |
9623 | double arg6 ; | |
9624 | bool arg7 = (bool) True ; | |
9625 | PyObject * obj0 = 0 ; | |
9626 | PyObject * obj1 = 0 ; | |
9627 | PyObject * obj6 = 0 ; | |
9628 | char *kwnames[] = { | |
9629 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
9630 | }; | |
9631 | ||
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyRectangleShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
9633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9634 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9635 | if (arg2 == NULL) { | |
9636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9637 | } | |
9638 | if (obj6) { | |
9639 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
9640 | if (PyErr_Occurred()) SWIG_fail; | |
9641 | } | |
9642 | { | |
9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9644 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
9645 | ||
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) SWIG_fail; | |
9648 | } | |
9649 | Py_INCREF(Py_None); resultobj = Py_None; | |
9650 | return resultobj; | |
9651 | fail: | |
9652 | return NULL; | |
9653 | } | |
9654 | ||
9655 | ||
9656 | static PyObject *_wrap_PyRectangleShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9657 | PyObject *resultobj; | |
9658 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9659 | bool arg2 ; | |
9660 | double arg3 ; | |
9661 | double arg4 ; | |
9662 | int arg5 = (int) 0 ; | |
9663 | int arg6 = (int) 0 ; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | PyObject * obj1 = 0 ; | |
9666 | char *kwnames[] = { | |
9667 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9668 | }; | |
9669 | ||
9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyRectangleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
9671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9672 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9673 | if (PyErr_Occurred()) SWIG_fail; | |
9674 | { | |
9675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9676 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
9677 | ||
9678 | wxPyEndAllowThreads(__tstate); | |
9679 | if (PyErr_Occurred()) SWIG_fail; | |
9680 | } | |
9681 | Py_INCREF(Py_None); resultobj = Py_None; | |
9682 | return resultobj; | |
9683 | fail: | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj; | |
9690 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9691 | double arg2 ; | |
9692 | double arg3 ; | |
9693 | int arg4 = (int) 0 ; | |
9694 | int arg5 = (int) 0 ; | |
9695 | PyObject * obj0 = 0 ; | |
9696 | char *kwnames[] = { | |
9697 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9698 | }; | |
9699 | ||
9700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9702 | { | |
9703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9704 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
9705 | ||
9706 | wxPyEndAllowThreads(__tstate); | |
9707 | if (PyErr_Occurred()) SWIG_fail; | |
9708 | } | |
9709 | Py_INCREF(Py_None); resultobj = Py_None; | |
9710 | return resultobj; | |
9711 | fail: | |
9712 | return NULL; | |
9713 | } | |
9714 | ||
9715 | ||
9716 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9717 | PyObject *resultobj; | |
9718 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9719 | double arg2 ; | |
9720 | double arg3 ; | |
9721 | int arg4 = (int) 0 ; | |
9722 | int arg5 = (int) 0 ; | |
9723 | PyObject * obj0 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9726 | }; | |
9727 | ||
9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9730 | { | |
9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9732 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
9733 | ||
9734 | wxPyEndAllowThreads(__tstate); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
9737 | Py_INCREF(Py_None); resultobj = Py_None; | |
9738 | return resultobj; | |
9739 | fail: | |
9740 | return NULL; | |
9741 | } | |
9742 | ||
9743 | ||
9744 | static PyObject *_wrap_PyRectangleShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9745 | PyObject *resultobj; | |
9746 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9747 | bool arg2 ; | |
9748 | double arg3 ; | |
9749 | double arg4 ; | |
9750 | int arg5 = (int) 0 ; | |
9751 | int arg6 = (int) 0 ; | |
9752 | PyObject * obj0 = 0 ; | |
9753 | PyObject * obj1 = 0 ; | |
9754 | char *kwnames[] = { | |
9755 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9756 | }; | |
9757 | ||
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyRectangleShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
9759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9760 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | { | |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9764 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
9767 | if (PyErr_Occurred()) SWIG_fail; | |
9768 | } | |
9769 | Py_INCREF(Py_None); resultobj = Py_None; | |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj; | |
9778 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9779 | double arg2 ; | |
9780 | double arg3 ; | |
9781 | int arg4 = (int) 0 ; | |
9782 | int arg5 = (int) 0 ; | |
9783 | PyObject * obj0 = 0 ; | |
9784 | char *kwnames[] = { | |
9785 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9786 | }; | |
9787 | ||
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9790 | { | |
9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9792 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
9793 | ||
9794 | wxPyEndAllowThreads(__tstate); | |
9795 | if (PyErr_Occurred()) SWIG_fail; | |
9796 | } | |
9797 | Py_INCREF(Py_None); resultobj = Py_None; | |
9798 | return resultobj; | |
9799 | fail: | |
9800 | return NULL; | |
9801 | } | |
9802 | ||
9803 | ||
9804 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9805 | PyObject *resultobj; | |
9806 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9807 | double arg2 ; | |
9808 | double arg3 ; | |
9809 | int arg4 = (int) 0 ; | |
9810 | int arg5 = (int) 0 ; | |
9811 | PyObject * obj0 = 0 ; | |
9812 | char *kwnames[] = { | |
9813 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9814 | }; | |
9815 | ||
9816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyRectangleShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | Py_INCREF(Py_None); resultobj = Py_None; | |
9826 | return resultobj; | |
9827 | fail: | |
9828 | return NULL; | |
9829 | } | |
9830 | ||
9831 | ||
9832 | static PyObject *_wrap_PyRectangleShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9833 | PyObject *resultobj; | |
9834 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9835 | wxDC *arg2 = 0 ; | |
9836 | double arg3 ; | |
9837 | double arg4 ; | |
9838 | double arg5 ; | |
9839 | double arg6 ; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | PyObject * obj1 = 0 ; | |
9842 | char *kwnames[] = { | |
9843 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
9844 | }; | |
9845 | ||
9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyRectangleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
9847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9849 | if (arg2 == NULL) { | |
9850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9851 | } | |
9852 | { | |
9853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9854 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
9855 | ||
9856 | wxPyEndAllowThreads(__tstate); | |
9857 | if (PyErr_Occurred()) SWIG_fail; | |
9858 | } | |
9859 | Py_INCREF(Py_None); resultobj = Py_None; | |
9860 | return resultobj; | |
9861 | fail: | |
9862 | return NULL; | |
9863 | } | |
9864 | ||
9865 | ||
9866 | static PyObject *_wrap_PyRectangleShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9867 | PyObject *resultobj; | |
9868 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9869 | wxDC *arg2 = 0 ; | |
9870 | PyObject * obj0 = 0 ; | |
9871 | PyObject * obj1 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self",(char *) "dc", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9879 | if (arg2 == NULL) { | |
9880 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9884 | (arg1)->base_OnDrawControlPoints(*arg2); | |
9885 | ||
9886 | wxPyEndAllowThreads(__tstate); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
9889 | Py_INCREF(Py_None); resultobj = Py_None; | |
9890 | return resultobj; | |
9891 | fail: | |
9892 | return NULL; | |
9893 | } | |
9894 | ||
9895 | ||
9896 | static PyObject *_wrap_PyRectangleShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9897 | PyObject *resultobj; | |
9898 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9899 | wxDC *arg2 = 0 ; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | PyObject * obj1 = 0 ; | |
9902 | char *kwnames[] = { | |
9903 | (char *) "self",(char *) "dc", NULL | |
9904 | }; | |
9905 | ||
9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
9907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9908 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9909 | if (arg2 == NULL) { | |
9910 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9911 | } | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | (arg1)->base_OnEraseControlPoints(*arg2); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | Py_INCREF(Py_None); resultobj = Py_None; | |
9920 | return resultobj; | |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject *resultobj; | |
9928 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9929 | wxDC *arg2 = 0 ; | |
9930 | bool arg3 = (bool) True ; | |
9931 | PyObject * obj0 = 0 ; | |
9932 | PyObject * obj1 = 0 ; | |
9933 | PyObject * obj2 = 0 ; | |
9934 | char *kwnames[] = { | |
9935 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
9936 | }; | |
9937 | ||
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9941 | if (arg2 == NULL) { | |
9942 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9943 | } | |
9944 | if (obj2) { | |
9945 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | } | |
9948 | { | |
9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9950 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
9951 | ||
9952 | wxPyEndAllowThreads(__tstate); | |
9953 | if (PyErr_Occurred()) SWIG_fail; | |
9954 | } | |
9955 | Py_INCREF(Py_None); resultobj = Py_None; | |
9956 | return resultobj; | |
9957 | fail: | |
9958 | return NULL; | |
9959 | } | |
9960 | ||
9961 | ||
9962 | static PyObject *_wrap_PyRectangleShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9963 | PyObject *resultobj; | |
9964 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
9965 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9966 | bool arg3 ; | |
9967 | double arg4 ; | |
9968 | double arg5 ; | |
9969 | int arg6 = (int) 0 ; | |
9970 | int arg7 = (int) 0 ; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | PyObject * obj1 = 0 ; | |
9973 | PyObject * obj2 = 0 ; | |
9974 | char *kwnames[] = { | |
9975 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9976 | }; | |
9977 | ||
9978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyRectangleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9980 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9981 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9982 | if (PyErr_Occurred()) SWIG_fail; | |
9983 | { | |
9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9985 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
9986 | ||
9987 | wxPyEndAllowThreads(__tstate); | |
9988 | if (PyErr_Occurred()) SWIG_fail; | |
9989 | } | |
9990 | Py_INCREF(Py_None); resultobj = Py_None; | |
9991 | return resultobj; | |
9992 | fail: | |
9993 | return NULL; | |
9994 | } | |
9995 | ||
9996 | ||
9997 | static PyObject *_wrap_PyRectangleShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject *resultobj; | |
9999 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10000 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
10001 | double arg3 ; | |
10002 | double arg4 ; | |
10003 | int arg5 = (int) 0 ; | |
10004 | int arg6 = (int) 0 ; | |
10005 | PyObject * obj0 = 0 ; | |
10006 | PyObject * obj1 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyRectangleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10013 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | Py_INCREF(Py_None); resultobj = Py_None; | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
10028 | static PyObject *_wrap_PyRectangleShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj; | |
10030 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10031 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
10032 | double arg3 ; | |
10033 | double arg4 ; | |
10034 | int arg5 = (int) 0 ; | |
10035 | int arg6 = (int) 0 ; | |
10036 | PyObject * obj0 = 0 ; | |
10037 | PyObject * obj1 = 0 ; | |
10038 | char *kwnames[] = { | |
10039 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10040 | }; | |
10041 | ||
10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyRectangleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10044 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10045 | { | |
10046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10047 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
10048 | ||
10049 | wxPyEndAllowThreads(__tstate); | |
10050 | if (PyErr_Occurred()) SWIG_fail; | |
10051 | } | |
10052 | Py_INCREF(Py_None); resultobj = Py_None; | |
10053 | return resultobj; | |
10054 | fail: | |
10055 | return NULL; | |
10056 | } | |
10057 | ||
10058 | ||
10059 | static PyObject *_wrap_PyRectangleShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10060 | PyObject *resultobj; | |
10061 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10062 | double arg2 ; | |
10063 | double arg3 ; | |
10064 | PyObject * obj0 = 0 ; | |
10065 | char *kwnames[] = { | |
10066 | (char *) "self",(char *) "w",(char *) "h", NULL | |
10067 | }; | |
10068 | ||
10069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyRectangleShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | (arg1)->base_OnBeginSize(arg2,arg3); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
10078 | Py_INCREF(Py_None); resultobj = Py_None; | |
10079 | return resultobj; | |
10080 | fail: | |
10081 | return NULL; | |
10082 | } | |
10083 | ||
10084 | ||
10085 | static PyObject *_wrap_PyRectangleShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10086 | PyObject *resultobj; | |
10087 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10088 | double arg2 ; | |
10089 | double arg3 ; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "self",(char *) "w",(char *) "h", NULL | |
10093 | }; | |
10094 | ||
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyRectangleShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyRectangleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | (arg1)->base_OnEndSize(arg2,arg3); | |
10100 | ||
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
10104 | Py_INCREF(Py_None); resultobj = Py_None; | |
10105 | return resultobj; | |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
10111 | static PyObject * PyRectangleShape_swigregister(PyObject *self, PyObject *args) { | |
10112 | PyObject *obj; | |
10113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10114 | SWIG_TypeClientData(SWIGTYPE_p_wxPyRectangleShape, obj); | |
10115 | Py_INCREF(obj); | |
10116 | return Py_BuildValue((char *)""); | |
10117 | } | |
10118 | static PyObject *_wrap_new_PyControlPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10119 | PyObject *resultobj; | |
10120 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
10121 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
10122 | double arg3 = (double) 0.0 ; | |
10123 | double arg4 = (double) 0.0 ; | |
10124 | double arg5 = (double) 0.0 ; | |
10125 | int arg6 = (int) 0 ; | |
10126 | wxPyControlPoint *result; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | PyObject * obj1 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "the_canvas",(char *) "object",(char *) "size",(char *) "the_xoffset",(char *) "the_yoffset",(char *) "the_type", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOdddi:new_PyControlPoint",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10134 | if (obj0) { | |
10135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10136 | } | |
10137 | if (obj1) { | |
10138 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10139 | } | |
10140 | { | |
10141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10142 | result = (wxPyControlPoint *)new wxPyControlPoint(arg1,arg2,arg3,arg4,arg5,arg6); | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControlPoint, 1); | |
10148 | return resultobj; | |
10149 | fail: | |
10150 | return NULL; | |
10151 | } | |
10152 | ||
10153 | ||
10154 | static PyObject *_wrap_PyControlPoint__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10155 | PyObject *resultobj; | |
10156 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10157 | PyObject *arg2 = (PyObject *) 0 ; | |
10158 | PyObject *arg3 = (PyObject *) 0 ; | |
10159 | PyObject * obj0 = 0 ; | |
10160 | PyObject * obj1 = 0 ; | |
10161 | PyObject * obj2 = 0 ; | |
10162 | char *kwnames[] = { | |
10163 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10164 | }; | |
10165 | ||
10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10168 | arg2 = obj1; | |
10169 | arg3 = obj2; | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
10177 | Py_INCREF(Py_None); resultobj = Py_None; | |
10178 | return resultobj; | |
10179 | fail: | |
10180 | return NULL; | |
10181 | } | |
10182 | ||
10183 | ||
10184 | static PyObject *_wrap_PyControlPoint_SetCornerRadius(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10185 | PyObject *resultobj; | |
10186 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10187 | double arg2 ; | |
10188 | PyObject * obj0 = 0 ; | |
10189 | char *kwnames[] = { | |
10190 | (char *) "self",(char *) "radius", NULL | |
10191 | }; | |
10192 | ||
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyControlPoint_SetCornerRadius",kwnames,&obj0,&arg2)) goto fail; | |
10194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | (arg1)->SetCornerRadius(arg2); | |
10198 | ||
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | Py_INCREF(Py_None); resultobj = Py_None; | |
10203 | return resultobj; | |
10204 | fail: | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
10209 | static PyObject *_wrap_PyControlPoint_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10210 | PyObject *resultobj; | |
10211 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10212 | PyObject * obj0 = 0 ; | |
10213 | char *kwnames[] = { | |
10214 | (char *) "self", NULL | |
10215 | }; | |
10216 | ||
10217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControlPoint_base_OnDelete",kwnames,&obj0)) goto fail; | |
10218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10219 | { | |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10221 | (arg1)->base_OnDelete(); | |
10222 | ||
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | Py_INCREF(Py_None); resultobj = Py_None; | |
10227 | return resultobj; | |
10228 | fail: | |
10229 | return NULL; | |
10230 | } | |
10231 | ||
10232 | ||
10233 | static PyObject *_wrap_PyControlPoint_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject *resultobj; | |
10235 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10236 | wxDC *arg2 = 0 ; | |
10237 | PyObject * obj0 = 0 ; | |
10238 | PyObject * obj1 = 0 ; | |
10239 | char *kwnames[] = { | |
10240 | (char *) "self",(char *) "dc", NULL | |
10241 | }; | |
10242 | ||
10243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
10244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10246 | if (arg2 == NULL) { | |
10247 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10248 | } | |
10249 | { | |
10250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10251 | (arg1)->base_OnDraw(*arg2); | |
10252 | ||
10253 | wxPyEndAllowThreads(__tstate); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | } | |
10256 | Py_INCREF(Py_None); resultobj = Py_None; | |
10257 | return resultobj; | |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
10263 | static PyObject *_wrap_PyControlPoint_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject *resultobj; | |
10265 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10266 | wxDC *arg2 = 0 ; | |
10267 | PyObject * obj0 = 0 ; | |
10268 | PyObject * obj1 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self",(char *) "dc", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
10274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10276 | if (arg2 == NULL) { | |
10277 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10278 | } | |
10279 | { | |
10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10281 | (arg1)->base_OnDrawContents(*arg2); | |
10282 | ||
10283 | wxPyEndAllowThreads(__tstate); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | } | |
10286 | Py_INCREF(Py_None); resultobj = Py_None; | |
10287 | return resultobj; | |
10288 | fail: | |
10289 | return NULL; | |
10290 | } | |
10291 | ||
10292 | ||
10293 | static PyObject *_wrap_PyControlPoint_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10294 | PyObject *resultobj; | |
10295 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10296 | wxDC *arg2 = 0 ; | |
10297 | bool arg3 = (bool) FALSE ; | |
10298 | PyObject * obj0 = 0 ; | |
10299 | PyObject * obj1 = 0 ; | |
10300 | PyObject * obj2 = 0 ; | |
10301 | char *kwnames[] = { | |
10302 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
10303 | }; | |
10304 | ||
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10307 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10308 | if (arg2 == NULL) { | |
10309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10310 | } | |
10311 | if (obj2) { | |
10312 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | Py_INCREF(Py_None); resultobj = Py_None; | |
10323 | return resultobj; | |
10324 | fail: | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | static PyObject *_wrap_PyControlPoint_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj; | |
10331 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10332 | wxDC *arg2 = 0 ; | |
10333 | PyObject * obj0 = 0 ; | |
10334 | PyObject * obj1 = 0 ; | |
10335 | char *kwnames[] = { | |
10336 | (char *) "self",(char *) "dc", NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
10340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10341 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10342 | if (arg2 == NULL) { | |
10343 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10344 | } | |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | (arg1)->base_OnMoveLinks(*arg2); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | Py_INCREF(Py_None); resultobj = Py_None; | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | static PyObject *_wrap_PyControlPoint_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10360 | PyObject *resultobj; | |
10361 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10362 | wxDC *arg2 = 0 ; | |
10363 | PyObject * obj0 = 0 ; | |
10364 | PyObject * obj1 = 0 ; | |
10365 | char *kwnames[] = { | |
10366 | (char *) "self",(char *) "dc", NULL | |
10367 | }; | |
10368 | ||
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
10370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10371 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10372 | if (arg2 == NULL) { | |
10373 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10374 | } | |
10375 | { | |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10377 | (arg1)->base_OnErase(*arg2); | |
10378 | ||
10379 | wxPyEndAllowThreads(__tstate); | |
10380 | if (PyErr_Occurred()) SWIG_fail; | |
10381 | } | |
10382 | Py_INCREF(Py_None); resultobj = Py_None; | |
10383 | return resultobj; | |
10384 | fail: | |
10385 | return NULL; | |
10386 | } | |
10387 | ||
10388 | ||
10389 | static PyObject *_wrap_PyControlPoint_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10390 | PyObject *resultobj; | |
10391 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10392 | wxDC *arg2 = 0 ; | |
10393 | PyObject * obj0 = 0 ; | |
10394 | PyObject * obj1 = 0 ; | |
10395 | char *kwnames[] = { | |
10396 | (char *) "self",(char *) "dc", NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
10400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10402 | if (arg2 == NULL) { | |
10403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10404 | } | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | (arg1)->base_OnEraseContents(*arg2); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | Py_INCREF(Py_None); resultobj = Py_None; | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
10416 | } | |
10417 | ||
10418 | ||
10419 | static PyObject *_wrap_PyControlPoint_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10420 | PyObject *resultobj; | |
10421 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10422 | wxDC *arg2 = 0 ; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | PyObject * obj1 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self",(char *) "dc", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
10430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10432 | if (arg2 == NULL) { | |
10433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10434 | } | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | (arg1)->base_OnHighlight(*arg2); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | Py_INCREF(Py_None); resultobj = Py_None; | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
10449 | static PyObject *_wrap_PyControlPoint_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10450 | PyObject *resultobj; | |
10451 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10452 | double arg2 ; | |
10453 | double arg3 ; | |
10454 | int arg4 = (int) 0 ; | |
10455 | int arg5 = (int) 0 ; | |
10456 | PyObject * obj0 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
10466 | ||
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | Py_INCREF(Py_None); resultobj = Py_None; | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
10477 | static PyObject *_wrap_PyControlPoint_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10478 | PyObject *resultobj; | |
10479 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10480 | double arg2 ; | |
10481 | double arg3 ; | |
10482 | int arg4 = (int) 0 ; | |
10483 | int arg5 = (int) 0 ; | |
10484 | PyObject * obj0 = 0 ; | |
10485 | char *kwnames[] = { | |
10486 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10487 | }; | |
10488 | ||
10489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10493 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
10494 | ||
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | } | |
10498 | Py_INCREF(Py_None); resultobj = Py_None; | |
10499 | return resultobj; | |
10500 | fail: | |
10501 | return NULL; | |
10502 | } | |
10503 | ||
10504 | ||
10505 | static PyObject *_wrap_PyControlPoint_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject *resultobj; | |
10507 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10508 | double arg2 ; | |
10509 | double arg3 ; | |
10510 | int arg4 = (int) 0 ; | |
10511 | int arg5 = (int) 0 ; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10519 | { | |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10521 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
10522 | ||
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) SWIG_fail; | |
10525 | } | |
10526 | Py_INCREF(Py_None); resultobj = Py_None; | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
10533 | static PyObject *_wrap_PyControlPoint_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject *resultobj; | |
10535 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10536 | double arg2 ; | |
10537 | double arg3 ; | |
10538 | PyObject * obj0 = 0 ; | |
10539 | char *kwnames[] = { | |
10540 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10541 | }; | |
10542 | ||
10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyControlPoint_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | (arg1)->base_OnSize(arg2,arg3); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | Py_INCREF(Py_None); resultobj = Py_None; | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject *_wrap_PyControlPoint_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj; | |
10561 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10562 | wxDC *arg2 = 0 ; | |
10563 | double arg3 ; | |
10564 | double arg4 ; | |
10565 | double arg5 ; | |
10566 | double arg6 ; | |
10567 | bool arg7 = (bool) True ; | |
10568 | bool result; | |
10569 | PyObject * obj0 = 0 ; | |
10570 | PyObject * obj1 = 0 ; | |
10571 | PyObject * obj6 = 0 ; | |
10572 | char *kwnames[] = { | |
10573 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
10574 | }; | |
10575 | ||
10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyControlPoint_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
10577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10579 | if (arg2 == NULL) { | |
10580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10581 | } | |
10582 | if (obj6) { | |
10583 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
10593 | resultobj = PyInt_FromLong((long)result); | |
10594 | return resultobj; | |
10595 | fail: | |
10596 | return NULL; | |
10597 | } | |
10598 | ||
10599 | ||
10600 | static PyObject *_wrap_PyControlPoint_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10601 | PyObject *resultobj; | |
10602 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10603 | wxDC *arg2 = 0 ; | |
10604 | double arg3 ; | |
10605 | double arg4 ; | |
10606 | double arg5 ; | |
10607 | double arg6 ; | |
10608 | bool arg7 = (bool) True ; | |
10609 | PyObject * obj0 = 0 ; | |
10610 | PyObject * obj1 = 0 ; | |
10611 | PyObject * obj6 = 0 ; | |
10612 | char *kwnames[] = { | |
10613 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
10614 | }; | |
10615 | ||
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyControlPoint_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
10617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10619 | if (arg2 == NULL) { | |
10620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10621 | } | |
10622 | if (obj6) { | |
10623 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10624 | if (PyErr_Occurred()) SWIG_fail; | |
10625 | } | |
10626 | { | |
10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10628 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
10629 | ||
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
10633 | Py_INCREF(Py_None); resultobj = Py_None; | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
10640 | static PyObject *_wrap_PyControlPoint_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10641 | PyObject *resultobj; | |
10642 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10643 | bool arg2 ; | |
10644 | double arg3 ; | |
10645 | double arg4 ; | |
10646 | int arg5 = (int) 0 ; | |
10647 | int arg6 = (int) 0 ; | |
10648 | PyObject * obj0 = 0 ; | |
10649 | PyObject * obj1 = 0 ; | |
10650 | char *kwnames[] = { | |
10651 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10652 | }; | |
10653 | ||
10654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyControlPoint_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10656 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | { | |
10659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10660 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
10661 | ||
10662 | wxPyEndAllowThreads(__tstate); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | } | |
10665 | Py_INCREF(Py_None); resultobj = Py_None; | |
10666 | return resultobj; | |
10667 | fail: | |
10668 | return NULL; | |
10669 | } | |
10670 | ||
10671 | ||
10672 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10673 | PyObject *resultobj; | |
10674 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10675 | double arg2 ; | |
10676 | double arg3 ; | |
10677 | int arg4 = (int) 0 ; | |
10678 | int arg5 = (int) 0 ; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10686 | { | |
10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10688 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
10689 | ||
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) SWIG_fail; | |
10692 | } | |
10693 | Py_INCREF(Py_None); resultobj = Py_None; | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
10697 | } | |
10698 | ||
10699 | ||
10700 | static PyObject *_wrap_PyControlPoint_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject *resultobj; | |
10702 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10703 | double arg2 ; | |
10704 | double arg3 ; | |
10705 | int arg4 = (int) 0 ; | |
10706 | int arg5 = (int) 0 ; | |
10707 | PyObject * obj0 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10714 | { | |
10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10716 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
10717 | ||
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
10721 | Py_INCREF(Py_None); resultobj = Py_None; | |
10722 | return resultobj; | |
10723 | fail: | |
10724 | return NULL; | |
10725 | } | |
10726 | ||
10727 | ||
10728 | static PyObject *_wrap_PyControlPoint_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10729 | PyObject *resultobj; | |
10730 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10731 | bool arg2 ; | |
10732 | double arg3 ; | |
10733 | double arg4 ; | |
10734 | int arg5 = (int) 0 ; | |
10735 | int arg6 = (int) 0 ; | |
10736 | PyObject * obj0 = 0 ; | |
10737 | PyObject * obj1 = 0 ; | |
10738 | char *kwnames[] = { | |
10739 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10740 | }; | |
10741 | ||
10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyControlPoint_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10744 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | { | |
10747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10748 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
10749 | ||
10750 | wxPyEndAllowThreads(__tstate); | |
10751 | if (PyErr_Occurred()) SWIG_fail; | |
10752 | } | |
10753 | Py_INCREF(Py_None); resultobj = Py_None; | |
10754 | return resultobj; | |
10755 | fail: | |
10756 | return NULL; | |
10757 | } | |
10758 | ||
10759 | ||
10760 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10761 | PyObject *resultobj; | |
10762 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10763 | double arg2 ; | |
10764 | double arg3 ; | |
10765 | int arg4 = (int) 0 ; | |
10766 | int arg5 = (int) 0 ; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | char *kwnames[] = { | |
10769 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10770 | }; | |
10771 | ||
10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10774 | { | |
10775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10776 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
10777 | ||
10778 | wxPyEndAllowThreads(__tstate); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
10780 | } | |
10781 | Py_INCREF(Py_None); resultobj = Py_None; | |
10782 | return resultobj; | |
10783 | fail: | |
10784 | return NULL; | |
10785 | } | |
10786 | ||
10787 | ||
10788 | static PyObject *_wrap_PyControlPoint_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10789 | PyObject *resultobj; | |
10790 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10791 | double arg2 ; | |
10792 | double arg3 ; | |
10793 | int arg4 = (int) 0 ; | |
10794 | int arg5 = (int) 0 ; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyControlPoint_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10802 | { | |
10803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10804 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
10805 | ||
10806 | wxPyEndAllowThreads(__tstate); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | } | |
10809 | Py_INCREF(Py_None); resultobj = Py_None; | |
10810 | return resultobj; | |
10811 | fail: | |
10812 | return NULL; | |
10813 | } | |
10814 | ||
10815 | ||
10816 | static PyObject *_wrap_PyControlPoint_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10817 | PyObject *resultobj; | |
10818 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10819 | wxDC *arg2 = 0 ; | |
10820 | double arg3 ; | |
10821 | double arg4 ; | |
10822 | double arg5 ; | |
10823 | double arg6 ; | |
10824 | PyObject * obj0 = 0 ; | |
10825 | PyObject * obj1 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyControlPoint_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10832 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10833 | if (arg2 == NULL) { | |
10834 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10835 | } | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
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 | ||
10850 | static PyObject *_wrap_PyControlPoint_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10853 | wxDC *arg2 = 0 ; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | PyObject * obj1 = 0 ; | |
10856 | char *kwnames[] = { | |
10857 | (char *) "self",(char *) "dc", NULL | |
10858 | }; | |
10859 | ||
10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
10861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10862 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10863 | if (arg2 == NULL) { | |
10864 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10865 | } | |
10866 | { | |
10867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10868 | (arg1)->base_OnDrawControlPoints(*arg2); | |
10869 | ||
10870 | wxPyEndAllowThreads(__tstate); | |
10871 | if (PyErr_Occurred()) SWIG_fail; | |
10872 | } | |
10873 | Py_INCREF(Py_None); resultobj = Py_None; | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | static PyObject *_wrap_PyControlPoint_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj; | |
10882 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10883 | wxDC *arg2 = 0 ; | |
10884 | PyObject * obj0 = 0 ; | |
10885 | PyObject * obj1 = 0 ; | |
10886 | char *kwnames[] = { | |
10887 | (char *) "self",(char *) "dc", NULL | |
10888 | }; | |
10889 | ||
10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
10891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10893 | if (arg2 == NULL) { | |
10894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10895 | } | |
10896 | { | |
10897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10898 | (arg1)->base_OnEraseControlPoints(*arg2); | |
10899 | ||
10900 | wxPyEndAllowThreads(__tstate); | |
10901 | if (PyErr_Occurred()) SWIG_fail; | |
10902 | } | |
10903 | Py_INCREF(Py_None); resultobj = Py_None; | |
10904 | return resultobj; | |
10905 | fail: | |
10906 | return NULL; | |
10907 | } | |
10908 | ||
10909 | ||
10910 | static PyObject *_wrap_PyControlPoint_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10911 | PyObject *resultobj; | |
10912 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10913 | wxDC *arg2 = 0 ; | |
10914 | bool arg3 = (bool) True ; | |
10915 | PyObject * obj0 = 0 ; | |
10916 | PyObject * obj1 = 0 ; | |
10917 | PyObject * obj2 = 0 ; | |
10918 | char *kwnames[] = { | |
10919 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
10920 | }; | |
10921 | ||
10922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10924 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10925 | if (arg2 == NULL) { | |
10926 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10927 | } | |
10928 | if (obj2) { | |
10929 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
10935 | ||
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) SWIG_fail; | |
10938 | } | |
10939 | Py_INCREF(Py_None); resultobj = Py_None; | |
10940 | return resultobj; | |
10941 | fail: | |
10942 | return NULL; | |
10943 | } | |
10944 | ||
10945 | ||
10946 | static PyObject *_wrap_PyControlPoint_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10947 | PyObject *resultobj; | |
10948 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10949 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
10950 | bool arg3 ; | |
10951 | double arg4 ; | |
10952 | double arg5 ; | |
10953 | int arg6 = (int) 0 ; | |
10954 | int arg7 = (int) 0 ; | |
10955 | PyObject * obj0 = 0 ; | |
10956 | PyObject * obj1 = 0 ; | |
10957 | PyObject * obj2 = 0 ; | |
10958 | char *kwnames[] = { | |
10959 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10960 | }; | |
10961 | ||
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyControlPoint_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
10963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10965 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | { | |
10968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10969 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
10970 | ||
10971 | wxPyEndAllowThreads(__tstate); | |
10972 | if (PyErr_Occurred()) SWIG_fail; | |
10973 | } | |
10974 | Py_INCREF(Py_None); resultobj = Py_None; | |
10975 | return resultobj; | |
10976 | fail: | |
10977 | return NULL; | |
10978 | } | |
10979 | ||
10980 | ||
10981 | static PyObject *_wrap_PyControlPoint_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10982 | PyObject *resultobj; | |
10983 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
10984 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
10985 | double arg3 ; | |
10986 | double arg4 ; | |
10987 | int arg5 = (int) 0 ; | |
10988 | int arg6 = (int) 0 ; | |
10989 | PyObject * obj0 = 0 ; | |
10990 | PyObject * obj1 = 0 ; | |
10991 | char *kwnames[] = { | |
10992 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
10993 | }; | |
10994 | ||
10995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyControlPoint_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10998 | { | |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11000 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11001 | ||
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
11005 | Py_INCREF(Py_None); resultobj = Py_None; | |
11006 | return resultobj; | |
11007 | fail: | |
11008 | return NULL; | |
11009 | } | |
11010 | ||
11011 | ||
11012 | static PyObject *_wrap_PyControlPoint_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11013 | PyObject *resultobj; | |
11014 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
11015 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11016 | double arg3 ; | |
11017 | double arg4 ; | |
11018 | int arg5 = (int) 0 ; | |
11019 | int arg6 = (int) 0 ; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | char *kwnames[] = { | |
11023 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11024 | }; | |
11025 | ||
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyControlPoint_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
11027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11028 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11029 | { | |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11031 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
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 | ||
11043 | static PyObject *_wrap_PyControlPoint_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11044 | PyObject *resultobj; | |
11045 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
11046 | double arg2 ; | |
11047 | double arg3 ; | |
11048 | PyObject * obj0 = 0 ; | |
11049 | char *kwnames[] = { | |
11050 | (char *) "self",(char *) "w",(char *) "h", NULL | |
11051 | }; | |
11052 | ||
11053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyControlPoint_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | (arg1)->base_OnBeginSize(arg2,arg3); | |
11058 | ||
11059 | wxPyEndAllowThreads(__tstate); | |
11060 | if (PyErr_Occurred()) SWIG_fail; | |
11061 | } | |
11062 | Py_INCREF(Py_None); resultobj = Py_None; | |
11063 | return resultobj; | |
11064 | fail: | |
11065 | return NULL; | |
11066 | } | |
11067 | ||
11068 | ||
11069 | static PyObject *_wrap_PyControlPoint_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11070 | PyObject *resultobj; | |
11071 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
11072 | double arg2 ; | |
11073 | double arg3 ; | |
11074 | PyObject * obj0 = 0 ; | |
11075 | char *kwnames[] = { | |
11076 | (char *) "self",(char *) "w",(char *) "h", NULL | |
11077 | }; | |
11078 | ||
11079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyControlPoint_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11081 | { | |
11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11083 | (arg1)->base_OnEndSize(arg2,arg3); | |
11084 | ||
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | Py_INCREF(Py_None); resultobj = Py_None; | |
11089 | return resultobj; | |
11090 | fail: | |
11091 | return NULL; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject * PyControlPoint_swigregister(PyObject *self, PyObject *args) { | |
11096 | PyObject *obj; | |
11097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11098 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControlPoint, obj); | |
11099 | Py_INCREF(obj); | |
11100 | return Py_BuildValue((char *)""); | |
11101 | } | |
11102 | static PyObject *_wrap_new_PyBitmapShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11103 | PyObject *resultobj; | |
11104 | wxPyBitmapShape *result; | |
11105 | char *kwnames[] = { | |
11106 | NULL | |
11107 | }; | |
11108 | ||
11109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyBitmapShape",kwnames)) goto fail; | |
11110 | { | |
11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11112 | result = (wxPyBitmapShape *)new wxPyBitmapShape(); | |
11113 | ||
11114 | wxPyEndAllowThreads(__tstate); | |
11115 | if (PyErr_Occurred()) SWIG_fail; | |
11116 | } | |
11117 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapShape, 1); | |
11118 | return resultobj; | |
11119 | fail: | |
11120 | return NULL; | |
11121 | } | |
11122 | ||
11123 | ||
11124 | static PyObject *_wrap_PyBitmapShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11125 | PyObject *resultobj; | |
11126 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11127 | PyObject *arg2 = (PyObject *) 0 ; | |
11128 | PyObject *arg3 = (PyObject *) 0 ; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | PyObject * obj1 = 0 ; | |
11131 | PyObject * obj2 = 0 ; | |
11132 | char *kwnames[] = { | |
11133 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
11134 | }; | |
11135 | ||
11136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11138 | arg2 = obj1; | |
11139 | arg3 = obj2; | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | (arg1)->_setCallbackInfo(arg2,arg3); | |
11143 | ||
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
11147 | Py_INCREF(Py_None); resultobj = Py_None; | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject *_wrap_PyBitmapShape_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject *resultobj; | |
11156 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11157 | wxBitmap *result; | |
11158 | PyObject * obj0 = 0 ; | |
11159 | char *kwnames[] = { | |
11160 | (char *) "self", NULL | |
11161 | }; | |
11162 | ||
11163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetBitmap",kwnames,&obj0)) goto fail; | |
11164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11165 | { | |
11166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11167 | { | |
11168 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
11169 | result = (wxBitmap *) &_result_ref; | |
11170 | } | |
11171 | ||
11172 | wxPyEndAllowThreads(__tstate); | |
11173 | if (PyErr_Occurred()) SWIG_fail; | |
11174 | } | |
11175 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
11176 | return resultobj; | |
11177 | fail: | |
11178 | return NULL; | |
11179 | } | |
11180 | ||
11181 | ||
11182 | static PyObject *_wrap_PyBitmapShape_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11183 | PyObject *resultobj; | |
11184 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11185 | wxString result; | |
11186 | PyObject * obj0 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "self", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetFilename",kwnames,&obj0)) goto fail; | |
11192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | result = (arg1)->GetFilename(); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
11200 | { | |
11201 | #if wxUSE_UNICODE | |
11202 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11203 | #else | |
11204 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11205 | #endif | |
11206 | } | |
11207 | return resultobj; | |
11208 | fail: | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
11213 | static PyObject *_wrap_PyBitmapShape_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11214 | PyObject *resultobj; | |
11215 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11216 | wxBitmap *arg2 = 0 ; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | PyObject * obj1 = 0 ; | |
11219 | char *kwnames[] = { | |
11220 | (char *) "self",(char *) "bitmap", NULL | |
11221 | }; | |
11222 | ||
11223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
11224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11226 | if (arg2 == NULL) { | |
11227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11228 | } | |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) SWIG_fail; | |
11235 | } | |
11236 | Py_INCREF(Py_None); resultobj = Py_None; | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | return NULL; | |
11240 | } | |
11241 | ||
11242 | ||
11243 | static PyObject *_wrap_PyBitmapShape_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11244 | PyObject *resultobj; | |
11245 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11246 | wxString *arg2 = 0 ; | |
11247 | bool temp2 = False ; | |
11248 | PyObject * obj0 = 0 ; | |
11249 | PyObject * obj1 = 0 ; | |
11250 | char *kwnames[] = { | |
11251 | (char *) "self",(char *) "filename", NULL | |
11252 | }; | |
11253 | ||
11254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11256 | { | |
11257 | arg2 = wxString_in_helper(obj1); | |
11258 | if (arg2 == NULL) SWIG_fail; | |
11259 | temp2 = True; | |
11260 | } | |
11261 | { | |
11262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11263 | (arg1)->SetFilename((wxString const &)*arg2); | |
11264 | ||
11265 | wxPyEndAllowThreads(__tstate); | |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
11267 | } | |
11268 | Py_INCREF(Py_None); resultobj = Py_None; | |
11269 | { | |
11270 | if (temp2) | |
11271 | delete arg2; | |
11272 | } | |
11273 | return resultobj; | |
11274 | fail: | |
11275 | { | |
11276 | if (temp2) | |
11277 | delete arg2; | |
11278 | } | |
11279 | return NULL; | |
11280 | } | |
11281 | ||
11282 | ||
11283 | static PyObject *_wrap_PyBitmapShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11284 | PyObject *resultobj; | |
11285 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11286 | PyObject * obj0 = 0 ; | |
11287 | char *kwnames[] = { | |
11288 | (char *) "self", NULL | |
11289 | }; | |
11290 | ||
11291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
11292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11293 | { | |
11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11295 | (arg1)->base_OnDelete(); | |
11296 | ||
11297 | wxPyEndAllowThreads(__tstate); | |
11298 | if (PyErr_Occurred()) SWIG_fail; | |
11299 | } | |
11300 | Py_INCREF(Py_None); resultobj = Py_None; | |
11301 | return resultobj; | |
11302 | fail: | |
11303 | return NULL; | |
11304 | } | |
11305 | ||
11306 | ||
11307 | static PyObject *_wrap_PyBitmapShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11308 | PyObject *resultobj; | |
11309 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11310 | wxDC *arg2 = 0 ; | |
11311 | PyObject * obj0 = 0 ; | |
11312 | PyObject * obj1 = 0 ; | |
11313 | char *kwnames[] = { | |
11314 | (char *) "self",(char *) "dc", NULL | |
11315 | }; | |
11316 | ||
11317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
11318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11319 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11320 | if (arg2 == NULL) { | |
11321 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | (arg1)->base_OnDraw(*arg2); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | Py_INCREF(Py_None); resultobj = Py_None; | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
11337 | static PyObject *_wrap_PyBitmapShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11338 | PyObject *resultobj; | |
11339 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11340 | wxDC *arg2 = 0 ; | |
11341 | PyObject * obj0 = 0 ; | |
11342 | PyObject * obj1 = 0 ; | |
11343 | char *kwnames[] = { | |
11344 | (char *) "self",(char *) "dc", NULL | |
11345 | }; | |
11346 | ||
11347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
11348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11349 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11350 | if (arg2 == NULL) { | |
11351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11352 | } | |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | (arg1)->base_OnDrawContents(*arg2); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | Py_INCREF(Py_None); resultobj = Py_None; | |
11361 | return resultobj; | |
11362 | fail: | |
11363 | return NULL; | |
11364 | } | |
11365 | ||
11366 | ||
11367 | static PyObject *_wrap_PyBitmapShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11368 | PyObject *resultobj; | |
11369 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11370 | wxDC *arg2 = 0 ; | |
11371 | bool arg3 = (bool) FALSE ; | |
11372 | PyObject * obj0 = 0 ; | |
11373 | PyObject * obj1 = 0 ; | |
11374 | PyObject * obj2 = 0 ; | |
11375 | char *kwnames[] = { | |
11376 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
11377 | }; | |
11378 | ||
11379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11382 | if (arg2 == NULL) { | |
11383 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11384 | } | |
11385 | if (obj2) { | |
11386 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | } | |
11389 | { | |
11390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11391 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
11392 | ||
11393 | wxPyEndAllowThreads(__tstate); | |
11394 | if (PyErr_Occurred()) SWIG_fail; | |
11395 | } | |
11396 | Py_INCREF(Py_None); resultobj = Py_None; | |
11397 | return resultobj; | |
11398 | fail: | |
11399 | return NULL; | |
11400 | } | |
11401 | ||
11402 | ||
11403 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11404 | PyObject *resultobj; | |
11405 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11406 | wxDC *arg2 = 0 ; | |
11407 | PyObject * obj0 = 0 ; | |
11408 | PyObject * obj1 = 0 ; | |
11409 | char *kwnames[] = { | |
11410 | (char *) "self",(char *) "dc", NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
11414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11415 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11416 | if (arg2 == NULL) { | |
11417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11418 | } | |
11419 | { | |
11420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11421 | (arg1)->base_OnMoveLinks(*arg2); | |
11422 | ||
11423 | wxPyEndAllowThreads(__tstate); | |
11424 | if (PyErr_Occurred()) SWIG_fail; | |
11425 | } | |
11426 | Py_INCREF(Py_None); resultobj = Py_None; | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | static PyObject *_wrap_PyBitmapShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11434 | PyObject *resultobj; | |
11435 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11436 | wxDC *arg2 = 0 ; | |
11437 | PyObject * obj0 = 0 ; | |
11438 | PyObject * obj1 = 0 ; | |
11439 | char *kwnames[] = { | |
11440 | (char *) "self",(char *) "dc", NULL | |
11441 | }; | |
11442 | ||
11443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
11444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11445 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11446 | if (arg2 == NULL) { | |
11447 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11448 | } | |
11449 | { | |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | (arg1)->base_OnErase(*arg2); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
11456 | Py_INCREF(Py_None); resultobj = Py_None; | |
11457 | return resultobj; | |
11458 | fail: | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
11463 | static PyObject *_wrap_PyBitmapShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11464 | PyObject *resultobj; | |
11465 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11466 | wxDC *arg2 = 0 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self",(char *) "dc", NULL | |
11471 | }; | |
11472 | ||
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
11474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11476 | if (arg2 == NULL) { | |
11477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11478 | } | |
11479 | { | |
11480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11481 | (arg1)->base_OnEraseContents(*arg2); | |
11482 | ||
11483 | wxPyEndAllowThreads(__tstate); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | } | |
11486 | Py_INCREF(Py_None); resultobj = Py_None; | |
11487 | return resultobj; | |
11488 | fail: | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
11493 | static PyObject *_wrap_PyBitmapShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11494 | PyObject *resultobj; | |
11495 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11496 | wxDC *arg2 = 0 ; | |
11497 | PyObject * obj0 = 0 ; | |
11498 | PyObject * obj1 = 0 ; | |
11499 | char *kwnames[] = { | |
11500 | (char *) "self",(char *) "dc", NULL | |
11501 | }; | |
11502 | ||
11503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
11504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11505 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11506 | if (arg2 == NULL) { | |
11507 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11508 | } | |
11509 | { | |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | (arg1)->base_OnHighlight(*arg2); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | Py_INCREF(Py_None); resultobj = Py_None; | |
11517 | return resultobj; | |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
11523 | static PyObject *_wrap_PyBitmapShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11524 | PyObject *resultobj; | |
11525 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11526 | double arg2 ; | |
11527 | double arg3 ; | |
11528 | int arg4 = (int) 0 ; | |
11529 | int arg5 = (int) 0 ; | |
11530 | PyObject * obj0 = 0 ; | |
11531 | char *kwnames[] = { | |
11532 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11533 | }; | |
11534 | ||
11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11537 | { | |
11538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11539 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
11540 | ||
11541 | wxPyEndAllowThreads(__tstate); | |
11542 | if (PyErr_Occurred()) SWIG_fail; | |
11543 | } | |
11544 | Py_INCREF(Py_None); resultobj = Py_None; | |
11545 | return resultobj; | |
11546 | fail: | |
11547 | return NULL; | |
11548 | } | |
11549 | ||
11550 | ||
11551 | static PyObject *_wrap_PyBitmapShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11552 | PyObject *resultobj; | |
11553 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11554 | double arg2 ; | |
11555 | double arg3 ; | |
11556 | int arg4 = (int) 0 ; | |
11557 | int arg5 = (int) 0 ; | |
11558 | PyObject * obj0 = 0 ; | |
11559 | char *kwnames[] = { | |
11560 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11561 | }; | |
11562 | ||
11563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11565 | { | |
11566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11567 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
11568 | ||
11569 | wxPyEndAllowThreads(__tstate); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
11571 | } | |
11572 | Py_INCREF(Py_None); resultobj = Py_None; | |
11573 | return resultobj; | |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
11579 | static PyObject *_wrap_PyBitmapShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11580 | PyObject *resultobj; | |
11581 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11582 | double arg2 ; | |
11583 | double arg3 ; | |
11584 | int arg4 = (int) 0 ; | |
11585 | int arg5 = (int) 0 ; | |
11586 | PyObject * obj0 = 0 ; | |
11587 | char *kwnames[] = { | |
11588 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11589 | }; | |
11590 | ||
11591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11593 | { | |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | Py_INCREF(Py_None); resultobj = Py_None; | |
11601 | return resultobj; | |
11602 | fail: | |
11603 | return NULL; | |
11604 | } | |
11605 | ||
11606 | ||
11607 | static PyObject *_wrap_PyBitmapShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11608 | PyObject *resultobj; | |
11609 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11610 | double arg2 ; | |
11611 | double arg3 ; | |
11612 | PyObject * obj0 = 0 ; | |
11613 | char *kwnames[] = { | |
11614 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11615 | }; | |
11616 | ||
11617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyBitmapShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11619 | { | |
11620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11621 | (arg1)->base_OnSize(arg2,arg3); | |
11622 | ||
11623 | wxPyEndAllowThreads(__tstate); | |
11624 | if (PyErr_Occurred()) SWIG_fail; | |
11625 | } | |
11626 | Py_INCREF(Py_None); resultobj = Py_None; | |
11627 | return resultobj; | |
11628 | fail: | |
11629 | return NULL; | |
11630 | } | |
11631 | ||
11632 | ||
11633 | static PyObject *_wrap_PyBitmapShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11634 | PyObject *resultobj; | |
11635 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11636 | wxDC *arg2 = 0 ; | |
11637 | double arg3 ; | |
11638 | double arg4 ; | |
11639 | double arg5 ; | |
11640 | double arg6 ; | |
11641 | bool arg7 = (bool) True ; | |
11642 | bool result; | |
11643 | PyObject * obj0 = 0 ; | |
11644 | PyObject * obj1 = 0 ; | |
11645 | PyObject * obj6 = 0 ; | |
11646 | char *kwnames[] = { | |
11647 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11648 | }; | |
11649 | ||
11650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyBitmapShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
11651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11653 | if (arg2 == NULL) { | |
11654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11655 | } | |
11656 | if (obj6) { | |
11657 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
11658 | if (PyErr_Occurred()) SWIG_fail; | |
11659 | } | |
11660 | { | |
11661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11662 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11663 | ||
11664 | wxPyEndAllowThreads(__tstate); | |
11665 | if (PyErr_Occurred()) SWIG_fail; | |
11666 | } | |
11667 | resultobj = PyInt_FromLong((long)result); | |
11668 | return resultobj; | |
11669 | fail: | |
11670 | return NULL; | |
11671 | } | |
11672 | ||
11673 | ||
11674 | static PyObject *_wrap_PyBitmapShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11675 | PyObject *resultobj; | |
11676 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11677 | wxDC *arg2 = 0 ; | |
11678 | double arg3 ; | |
11679 | double arg4 ; | |
11680 | double arg5 ; | |
11681 | double arg6 ; | |
11682 | bool arg7 = (bool) True ; | |
11683 | PyObject * obj0 = 0 ; | |
11684 | PyObject * obj1 = 0 ; | |
11685 | PyObject * obj6 = 0 ; | |
11686 | char *kwnames[] = { | |
11687 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11688 | }; | |
11689 | ||
11690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyBitmapShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
11691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11692 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11693 | if (arg2 == NULL) { | |
11694 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11695 | } | |
11696 | if (obj6) { | |
11697 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
11700 | { | |
11701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11702 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11703 | ||
11704 | wxPyEndAllowThreads(__tstate); | |
11705 | if (PyErr_Occurred()) SWIG_fail; | |
11706 | } | |
11707 | Py_INCREF(Py_None); resultobj = Py_None; | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | return NULL; | |
11711 | } | |
11712 | ||
11713 | ||
11714 | static PyObject *_wrap_PyBitmapShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11717 | bool arg2 ; | |
11718 | double arg3 ; | |
11719 | double arg4 ; | |
11720 | int arg5 = (int) 0 ; | |
11721 | int arg6 = (int) 0 ; | |
11722 | PyObject * obj0 = 0 ; | |
11723 | PyObject * obj1 = 0 ; | |
11724 | char *kwnames[] = { | |
11725 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11726 | }; | |
11727 | ||
11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyBitmapShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
11729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11730 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | { | |
11733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11734 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11735 | ||
11736 | wxPyEndAllowThreads(__tstate); | |
11737 | if (PyErr_Occurred()) SWIG_fail; | |
11738 | } | |
11739 | Py_INCREF(Py_None); resultobj = Py_None; | |
11740 | return resultobj; | |
11741 | fail: | |
11742 | return NULL; | |
11743 | } | |
11744 | ||
11745 | ||
11746 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11747 | PyObject *resultobj; | |
11748 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11749 | double arg2 ; | |
11750 | double arg3 ; | |
11751 | int arg4 = (int) 0 ; | |
11752 | int arg5 = (int) 0 ; | |
11753 | PyObject * obj0 = 0 ; | |
11754 | char *kwnames[] = { | |
11755 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11756 | }; | |
11757 | ||
11758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11760 | { | |
11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11762 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
11763 | ||
11764 | wxPyEndAllowThreads(__tstate); | |
11765 | if (PyErr_Occurred()) SWIG_fail; | |
11766 | } | |
11767 | Py_INCREF(Py_None); resultobj = Py_None; | |
11768 | return resultobj; | |
11769 | fail: | |
11770 | return NULL; | |
11771 | } | |
11772 | ||
11773 | ||
11774 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11775 | PyObject *resultobj; | |
11776 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11777 | double arg2 ; | |
11778 | double arg3 ; | |
11779 | int arg4 = (int) 0 ; | |
11780 | int arg5 = (int) 0 ; | |
11781 | PyObject * obj0 = 0 ; | |
11782 | char *kwnames[] = { | |
11783 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11784 | }; | |
11785 | ||
11786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11788 | { | |
11789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11790 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
11791 | ||
11792 | wxPyEndAllowThreads(__tstate); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
11795 | Py_INCREF(Py_None); resultobj = Py_None; | |
11796 | return resultobj; | |
11797 | fail: | |
11798 | return NULL; | |
11799 | } | |
11800 | ||
11801 | ||
11802 | static PyObject *_wrap_PyBitmapShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11803 | PyObject *resultobj; | |
11804 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11805 | bool arg2 ; | |
11806 | double arg3 ; | |
11807 | double arg4 ; | |
11808 | int arg5 = (int) 0 ; | |
11809 | int arg6 = (int) 0 ; | |
11810 | PyObject * obj0 = 0 ; | |
11811 | PyObject * obj1 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11814 | }; | |
11815 | ||
11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyBitmapShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
11817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11818 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11819 | if (PyErr_Occurred()) SWIG_fail; | |
11820 | { | |
11821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11822 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
11823 | ||
11824 | wxPyEndAllowThreads(__tstate); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | Py_INCREF(Py_None); resultobj = Py_None; | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
11834 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11835 | PyObject *resultobj; | |
11836 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11837 | double arg2 ; | |
11838 | double arg3 ; | |
11839 | int arg4 = (int) 0 ; | |
11840 | int arg5 = (int) 0 ; | |
11841 | PyObject * obj0 = 0 ; | |
11842 | char *kwnames[] = { | |
11843 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11844 | }; | |
11845 | ||
11846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11848 | { | |
11849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11850 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
11851 | ||
11852 | wxPyEndAllowThreads(__tstate); | |
11853 | if (PyErr_Occurred()) SWIG_fail; | |
11854 | } | |
11855 | Py_INCREF(Py_None); resultobj = Py_None; | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11863 | PyObject *resultobj; | |
11864 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11865 | double arg2 ; | |
11866 | double arg3 ; | |
11867 | int arg4 = (int) 0 ; | |
11868 | int arg5 = (int) 0 ; | |
11869 | PyObject * obj0 = 0 ; | |
11870 | char *kwnames[] = { | |
11871 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11872 | }; | |
11873 | ||
11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyBitmapShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11876 | { | |
11877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11878 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
11883 | Py_INCREF(Py_None); resultobj = Py_None; | |
11884 | return resultobj; | |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
11890 | static PyObject *_wrap_PyBitmapShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11891 | PyObject *resultobj; | |
11892 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11893 | wxDC *arg2 = 0 ; | |
11894 | double arg3 ; | |
11895 | double arg4 ; | |
11896 | double arg5 ; | |
11897 | double arg6 ; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | PyObject * obj1 = 0 ; | |
11900 | char *kwnames[] = { | |
11901 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11902 | }; | |
11903 | ||
11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyBitmapShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
11905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11906 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11907 | if (arg2 == NULL) { | |
11908 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11909 | } | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
11917 | Py_INCREF(Py_None); resultobj = Py_None; | |
11918 | return resultobj; | |
11919 | fail: | |
11920 | return NULL; | |
11921 | } | |
11922 | ||
11923 | ||
11924 | static PyObject *_wrap_PyBitmapShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11925 | PyObject *resultobj; | |
11926 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11927 | wxDC *arg2 = 0 ; | |
11928 | PyObject * obj0 = 0 ; | |
11929 | PyObject * obj1 = 0 ; | |
11930 | char *kwnames[] = { | |
11931 | (char *) "self",(char *) "dc", NULL | |
11932 | }; | |
11933 | ||
11934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
11935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11936 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11937 | if (arg2 == NULL) { | |
11938 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11939 | } | |
11940 | { | |
11941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11942 | (arg1)->base_OnDrawControlPoints(*arg2); | |
11943 | ||
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | Py_INCREF(Py_None); resultobj = Py_None; | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | return NULL; | |
11951 | } | |
11952 | ||
11953 | ||
11954 | static PyObject *_wrap_PyBitmapShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11955 | PyObject *resultobj; | |
11956 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11957 | wxDC *arg2 = 0 ; | |
11958 | PyObject * obj0 = 0 ; | |
11959 | PyObject * obj1 = 0 ; | |
11960 | char *kwnames[] = { | |
11961 | (char *) "self",(char *) "dc", NULL | |
11962 | }; | |
11963 | ||
11964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
11965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11966 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11967 | if (arg2 == NULL) { | |
11968 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11969 | } | |
11970 | { | |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11972 | (arg1)->base_OnEraseControlPoints(*arg2); | |
11973 | ||
11974 | wxPyEndAllowThreads(__tstate); | |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
11976 | } | |
11977 | Py_INCREF(Py_None); resultobj = Py_None; | |
11978 | return resultobj; | |
11979 | fail: | |
11980 | return NULL; | |
11981 | } | |
11982 | ||
11983 | ||
11984 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11985 | PyObject *resultobj; | |
11986 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
11987 | wxDC *arg2 = 0 ; | |
11988 | bool arg3 = (bool) True ; | |
11989 | PyObject * obj0 = 0 ; | |
11990 | PyObject * obj1 = 0 ; | |
11991 | PyObject * obj2 = 0 ; | |
11992 | char *kwnames[] = { | |
11993 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
11994 | }; | |
11995 | ||
11996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11999 | if (arg2 == NULL) { | |
12000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12001 | } | |
12002 | if (obj2) { | |
12003 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
12009 | ||
12010 | wxPyEndAllowThreads(__tstate); | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
12013 | Py_INCREF(Py_None); resultobj = Py_None; | |
12014 | return resultobj; | |
12015 | fail: | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
12020 | static PyObject *_wrap_PyBitmapShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12021 | PyObject *resultobj; | |
12022 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
12023 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
12024 | bool arg3 ; | |
12025 | double arg4 ; | |
12026 | double arg5 ; | |
12027 | int arg6 = (int) 0 ; | |
12028 | int arg7 = (int) 0 ; | |
12029 | PyObject * obj0 = 0 ; | |
12030 | PyObject * obj1 = 0 ; | |
12031 | PyObject * obj2 = 0 ; | |
12032 | char *kwnames[] = { | |
12033 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12034 | }; | |
12035 | ||
12036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyBitmapShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
12037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12038 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12039 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | { | |
12042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12043 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
12044 | ||
12045 | wxPyEndAllowThreads(__tstate); | |
12046 | if (PyErr_Occurred()) SWIG_fail; | |
12047 | } | |
12048 | Py_INCREF(Py_None); resultobj = Py_None; | |
12049 | return resultobj; | |
12050 | fail: | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_PyBitmapShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
12058 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
12059 | double arg3 ; | |
12060 | double arg4 ; | |
12061 | int arg5 = (int) 0 ; | |
12062 | int arg6 = (int) 0 ; | |
12063 | PyObject * obj0 = 0 ; | |
12064 | PyObject * obj1 = 0 ; | |
12065 | char *kwnames[] = { | |
12066 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12067 | }; | |
12068 | ||
12069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyBitmapShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
12070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12071 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12072 | { | |
12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12074 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12075 | ||
12076 | wxPyEndAllowThreads(__tstate); | |
12077 | if (PyErr_Occurred()) SWIG_fail; | |
12078 | } | |
12079 | Py_INCREF(Py_None); resultobj = Py_None; | |
12080 | return resultobj; | |
12081 | fail: | |
12082 | return NULL; | |
12083 | } | |
12084 | ||
12085 | ||
12086 | static PyObject *_wrap_PyBitmapShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12087 | PyObject *resultobj; | |
12088 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
12089 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
12090 | double arg3 ; | |
12091 | double arg4 ; | |
12092 | int arg5 = (int) 0 ; | |
12093 | int arg6 = (int) 0 ; | |
12094 | PyObject * obj0 = 0 ; | |
12095 | PyObject * obj1 = 0 ; | |
12096 | char *kwnames[] = { | |
12097 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12098 | }; | |
12099 | ||
12100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyBitmapShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
12101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12102 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12103 | { | |
12104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12105 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12106 | ||
12107 | wxPyEndAllowThreads(__tstate); | |
12108 | if (PyErr_Occurred()) SWIG_fail; | |
12109 | } | |
12110 | Py_INCREF(Py_None); resultobj = Py_None; | |
12111 | return resultobj; | |
12112 | fail: | |
12113 | return NULL; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_PyBitmapShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12118 | PyObject *resultobj; | |
12119 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
12120 | double arg2 ; | |
12121 | double arg3 ; | |
12122 | PyObject * obj0 = 0 ; | |
12123 | char *kwnames[] = { | |
12124 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12125 | }; | |
12126 | ||
12127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyBitmapShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12129 | { | |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | (arg1)->base_OnBeginSize(arg2,arg3); | |
12132 | ||
12133 | wxPyEndAllowThreads(__tstate); | |
12134 | if (PyErr_Occurred()) SWIG_fail; | |
12135 | } | |
12136 | Py_INCREF(Py_None); resultobj = Py_None; | |
12137 | return resultobj; | |
12138 | fail: | |
12139 | return NULL; | |
12140 | } | |
12141 | ||
12142 | ||
12143 | static PyObject *_wrap_PyBitmapShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12144 | PyObject *resultobj; | |
12145 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
12146 | double arg2 ; | |
12147 | double arg3 ; | |
12148 | PyObject * obj0 = 0 ; | |
12149 | char *kwnames[] = { | |
12150 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12151 | }; | |
12152 | ||
12153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyBitmapShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12155 | { | |
12156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12157 | (arg1)->base_OnEndSize(arg2,arg3); | |
12158 | ||
12159 | wxPyEndAllowThreads(__tstate); | |
12160 | if (PyErr_Occurred()) SWIG_fail; | |
12161 | } | |
12162 | Py_INCREF(Py_None); resultobj = Py_None; | |
12163 | return resultobj; | |
12164 | fail: | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject * PyBitmapShape_swigregister(PyObject *self, PyObject *args) { | |
12170 | PyObject *obj; | |
12171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12172 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapShape, obj); | |
12173 | Py_INCREF(obj); | |
12174 | return Py_BuildValue((char *)""); | |
12175 | } | |
12176 | static PyObject *_wrap_new_PyDrawnShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxPyDrawnShape *result; | |
12179 | char *kwnames[] = { | |
12180 | NULL | |
12181 | }; | |
12182 | ||
12183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDrawnShape",kwnames)) goto fail; | |
12184 | { | |
12185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12186 | result = (wxPyDrawnShape *)new wxPyDrawnShape(); | |
12187 | ||
12188 | wxPyEndAllowThreads(__tstate); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
12191 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDrawnShape, 1); | |
12192 | return resultobj; | |
12193 | fail: | |
12194 | return NULL; | |
12195 | } | |
12196 | ||
12197 | ||
12198 | static PyObject *_wrap_PyDrawnShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12199 | PyObject *resultobj; | |
12200 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12201 | PyObject *arg2 = (PyObject *) 0 ; | |
12202 | PyObject *arg3 = (PyObject *) 0 ; | |
12203 | PyObject * obj0 = 0 ; | |
12204 | PyObject * obj1 = 0 ; | |
12205 | PyObject * obj2 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12212 | arg2 = obj1; | |
12213 | arg3 = obj2; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | Py_INCREF(Py_None); resultobj = Py_None; | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
12225 | } | |
12226 | ||
12227 | ||
12228 | static PyObject *_wrap_PyDrawnShape_CalculateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12229 | PyObject *resultobj; | |
12230 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12231 | PyObject * obj0 = 0 ; | |
12232 | char *kwnames[] = { | |
12233 | (char *) "self", NULL | |
12234 | }; | |
12235 | ||
12236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_CalculateSize",kwnames,&obj0)) goto fail; | |
12237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | (arg1)->CalculateSize(); | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | Py_INCREF(Py_None); resultobj = Py_None; | |
12246 | return resultobj; | |
12247 | fail: | |
12248 | return NULL; | |
12249 | } | |
12250 | ||
12251 | ||
12252 | static PyObject *_wrap_PyDrawnShape_DestroyClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12253 | PyObject *resultobj; | |
12254 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
12261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12262 | { | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | (arg1)->DestroyClippingRect(); | |
12265 | ||
12266 | wxPyEndAllowThreads(__tstate); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
12269 | Py_INCREF(Py_None); resultobj = Py_None; | |
12270 | return resultobj; | |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
12276 | static PyObject *_wrap_PyDrawnShape_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12277 | PyObject *resultobj; | |
12278 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12279 | wxPoint *arg2 = 0 ; | |
12280 | wxPoint *arg3 = 0 ; | |
12281 | wxPoint *arg4 = 0 ; | |
12282 | wxPoint temp2 ; | |
12283 | wxPoint temp3 ; | |
12284 | wxPoint temp4 ; | |
12285 | PyObject * obj0 = 0 ; | |
12286 | PyObject * obj1 = 0 ; | |
12287 | PyObject * obj2 = 0 ; | |
12288 | PyObject * obj3 = 0 ; | |
12289 | char *kwnames[] = { | |
12290 | (char *) "self",(char *) "centrePoint",(char *) "startPoint",(char *) "endPoint", NULL | |
12291 | }; | |
12292 | ||
12293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12295 | { | |
12296 | arg2 = &temp2; | |
12297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12298 | } | |
12299 | { | |
12300 | arg3 = &temp3; | |
12301 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12302 | } | |
12303 | { | |
12304 | arg4 = &temp4; | |
12305 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12306 | } | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | Py_INCREF(Py_None); resultobj = Py_None; | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_PyDrawnShape_DrawAtAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12324 | int arg2 ; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | char *kwnames[] = { | |
12327 | (char *) "self",(char *) "angle", NULL | |
12328 | }; | |
12329 | ||
12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyDrawnShape_DrawAtAngle",kwnames,&obj0,&arg2)) goto fail; | |
12331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12332 | { | |
12333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12334 | (arg1)->DrawAtAngle(arg2); | |
12335 | ||
12336 | wxPyEndAllowThreads(__tstate); | |
12337 | if (PyErr_Occurred()) SWIG_fail; | |
12338 | } | |
12339 | Py_INCREF(Py_None); resultobj = Py_None; | |
12340 | return resultobj; | |
12341 | fail: | |
12342 | return NULL; | |
12343 | } | |
12344 | ||
12345 | ||
12346 | static PyObject *_wrap_PyDrawnShape_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12347 | PyObject *resultobj; | |
12348 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12349 | wxRect *arg2 = 0 ; | |
12350 | double arg3 ; | |
12351 | double arg4 ; | |
12352 | wxRect temp2 ; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | PyObject * obj1 = 0 ; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd:PyDrawnShape_DrawEllipticArc",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
12360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12361 | { | |
12362 | arg2 = &temp2; | |
12363 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12364 | } | |
12365 | { | |
12366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12367 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
12368 | ||
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
12372 | Py_INCREF(Py_None); resultobj = Py_None; | |
12373 | return resultobj; | |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
12379 | static PyObject *_wrap_PyDrawnShape_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12380 | PyObject *resultobj; | |
12381 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12382 | wxPoint *arg2 = 0 ; | |
12383 | wxPoint *arg3 = 0 ; | |
12384 | wxPoint temp2 ; | |
12385 | wxPoint temp3 ; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | PyObject * obj1 = 0 ; | |
12388 | PyObject * obj2 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self",(char *) "point1",(char *) "point2", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12395 | { | |
12396 | arg2 = &temp2; | |
12397 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12398 | } | |
12399 | { | |
12400 | arg3 = &temp3; | |
12401 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12402 | } | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | Py_INCREF(Py_None); resultobj = Py_None; | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
12414 | } | |
12415 | ||
12416 | ||
12417 | static PyObject *_wrap_PyDrawnShape_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12420 | int arg2 ; | |
12421 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12422 | PyObject * obj0 = 0 ; | |
12423 | PyObject * obj2 = 0 ; | |
12424 | char *kwnames[] = { | |
12425 | (char *) "self",(char *) "PCOUNT",(char *) "points", NULL | |
12426 | }; | |
12427 | ||
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyDrawnShape_DrawLines",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
12429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12430 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | (arg1)->DrawLines(arg2,arg3); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | Py_INCREF(Py_None); resultobj = Py_None; | |
12439 | return resultobj; | |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | static PyObject *_wrap_PyDrawnShape_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12446 | PyObject *resultobj; | |
12447 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12448 | wxPoint *arg2 = 0 ; | |
12449 | wxPoint temp2 ; | |
12450 | PyObject * obj0 = 0 ; | |
12451 | PyObject * obj1 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self",(char *) "point", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12458 | { | |
12459 | arg2 = &temp2; | |
12460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12461 | } | |
12462 | { | |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
12469 | Py_INCREF(Py_None); resultobj = Py_None; | |
12470 | return resultobj; | |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
12476 | static PyObject *_wrap_PyDrawnShape_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12477 | PyObject *resultobj; | |
12478 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12479 | int arg2 ; | |
12480 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12481 | int arg4 = (int) 0 ; | |
12482 | PyObject * obj0 = 0 ; | |
12483 | PyObject * obj2 = 0 ; | |
12484 | char *kwnames[] = { | |
12485 | (char *) "self",(char *) "PCOUNT",(char *) "points",(char *) "flags", NULL | |
12486 | }; | |
12487 | ||
12488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|i:PyDrawnShape_DrawPolygon",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
12489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12490 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12491 | { | |
12492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12493 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
12494 | ||
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | Py_INCREF(Py_None); resultobj = Py_None; | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | static PyObject *_wrap_PyDrawnShape_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12506 | PyObject *resultobj; | |
12507 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12508 | wxRect *arg2 = 0 ; | |
12509 | wxRect temp2 ; | |
12510 | PyObject * obj0 = 0 ; | |
12511 | PyObject * obj1 = 0 ; | |
12512 | char *kwnames[] = { | |
12513 | (char *) "self",(char *) "rect", NULL | |
12514 | }; | |
12515 | ||
12516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
12517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12518 | { | |
12519 | arg2 = &temp2; | |
12520 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12521 | } | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | Py_INCREF(Py_None); resultobj = Py_None; | |
12530 | return resultobj; | |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_PyDrawnShape_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12539 | wxRect *arg2 = 0 ; | |
12540 | double arg3 ; | |
12541 | wxRect temp2 ; | |
12542 | PyObject * obj0 = 0 ; | |
12543 | PyObject * obj1 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:PyDrawnShape_DrawRoundedRectangle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
12549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12550 | { | |
12551 | arg2 = &temp2; | |
12552 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | Py_INCREF(Py_None); resultobj = Py_None; | |
12562 | return resultobj; | |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_PyDrawnShape_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12571 | int arg2 ; | |
12572 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | PyObject * obj2 = 0 ; | |
12575 | char *kwnames[] = { | |
12576 | (char *) "self",(char *) "PCOUNT",(char *) "points", NULL | |
12577 | }; | |
12578 | ||
12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyDrawnShape_DrawSpline",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
12580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12581 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | (arg1)->DrawSpline(arg2,arg3); | |
12585 | ||
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
12589 | Py_INCREF(Py_None); resultobj = Py_None; | |
12590 | return resultobj; | |
12591 | fail: | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
12596 | static PyObject *_wrap_PyDrawnShape_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12597 | PyObject *resultobj; | |
12598 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12599 | wxString *arg2 = 0 ; | |
12600 | wxPoint *arg3 = 0 ; | |
12601 | bool temp2 = False ; | |
12602 | wxPoint temp3 ; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | PyObject * obj1 = 0 ; | |
12605 | PyObject * obj2 = 0 ; | |
12606 | char *kwnames[] = { | |
12607 | (char *) "self",(char *) "text",(char *) "point", NULL | |
12608 | }; | |
12609 | ||
12610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12612 | { | |
12613 | arg2 = wxString_in_helper(obj1); | |
12614 | if (arg2 == NULL) SWIG_fail; | |
12615 | temp2 = True; | |
12616 | } | |
12617 | { | |
12618 | arg3 = &temp3; | |
12619 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12620 | } | |
12621 | { | |
12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12623 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12624 | ||
12625 | wxPyEndAllowThreads(__tstate); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | Py_INCREF(Py_None); resultobj = Py_None; | |
12629 | { | |
12630 | if (temp2) | |
12631 | delete arg2; | |
12632 | } | |
12633 | return resultobj; | |
12634 | fail: | |
12635 | { | |
12636 | if (temp2) | |
12637 | delete arg2; | |
12638 | } | |
12639 | return NULL; | |
12640 | } | |
12641 | ||
12642 | ||
12643 | static PyObject *_wrap_PyDrawnShape_GetAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12644 | PyObject *resultobj; | |
12645 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12646 | int result; | |
12647 | PyObject * obj0 = 0 ; | |
12648 | char *kwnames[] = { | |
12649 | (char *) "self", NULL | |
12650 | }; | |
12651 | ||
12652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetAngle",kwnames,&obj0)) goto fail; | |
12653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12654 | { | |
12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12656 | result = (int)(arg1)->GetAngle(); | |
12657 | ||
12658 | wxPyEndAllowThreads(__tstate); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | resultobj = PyInt_FromLong((long)result); | |
12662 | return resultobj; | |
12663 | fail: | |
12664 | return NULL; | |
12665 | } | |
12666 | ||
12667 | ||
12668 | static PyObject *_wrap_PyDrawnShape_GetMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12669 | PyObject *resultobj; | |
12670 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12671 | wxPseudoMetaFile *result; | |
12672 | PyObject * obj0 = 0 ; | |
12673 | char *kwnames[] = { | |
12674 | (char *) "self", NULL | |
12675 | }; | |
12676 | ||
12677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetMetaFile",kwnames,&obj0)) goto fail; | |
12678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12679 | { | |
12680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12681 | { | |
12682 | wxPseudoMetaFile &_result_ref = (arg1)->GetMetaFile(); | |
12683 | result = (wxPseudoMetaFile *) &_result_ref; | |
12684 | } | |
12685 | ||
12686 | wxPyEndAllowThreads(__tstate); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
12689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPseudoMetaFile, 0); | |
12690 | return resultobj; | |
12691 | fail: | |
12692 | return NULL; | |
12693 | } | |
12694 | ||
12695 | ||
12696 | static PyObject *_wrap_PyDrawnShape_GetRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12697 | PyObject *resultobj; | |
12698 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12699 | double result; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | char *kwnames[] = { | |
12702 | (char *) "self", NULL | |
12703 | }; | |
12704 | ||
12705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetRotation",kwnames,&obj0)) goto fail; | |
12706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12707 | { | |
12708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12709 | result = (double)(arg1)->GetRotation(); | |
12710 | ||
12711 | wxPyEndAllowThreads(__tstate); | |
12712 | if (PyErr_Occurred()) SWIG_fail; | |
12713 | } | |
12714 | resultobj = PyFloat_FromDouble(result); | |
12715 | return resultobj; | |
12716 | fail: | |
12717 | return NULL; | |
12718 | } | |
12719 | ||
12720 | ||
12721 | static PyObject *_wrap_PyDrawnShape_LoadFromMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12722 | PyObject *resultobj; | |
12723 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12724 | wxString *arg2 = 0 ; | |
12725 | bool result; | |
12726 | bool temp2 = False ; | |
12727 | PyObject * obj0 = 0 ; | |
12728 | PyObject * obj1 = 0 ; | |
12729 | char *kwnames[] = { | |
12730 | (char *) "self",(char *) "filename", NULL | |
12731 | }; | |
12732 | ||
12733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_LoadFromMetaFile",kwnames,&obj0,&obj1)) goto fail; | |
12734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12735 | { | |
12736 | arg2 = wxString_in_helper(obj1); | |
12737 | if (arg2 == NULL) SWIG_fail; | |
12738 | temp2 = True; | |
12739 | } | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2); | |
12743 | ||
12744 | wxPyEndAllowThreads(__tstate); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | resultobj = PyInt_FromLong((long)result); | |
12748 | { | |
12749 | if (temp2) | |
12750 | delete arg2; | |
12751 | } | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | { | |
12755 | if (temp2) | |
12756 | delete arg2; | |
12757 | } | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
12762 | static PyObject *_wrap_PyDrawnShape_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12763 | PyObject *resultobj; | |
12764 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12765 | double arg2 ; | |
12766 | double arg3 ; | |
12767 | double arg4 ; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | char *kwnames[] = { | |
12770 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
12771 | }; | |
12772 | ||
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oddd:PyDrawnShape_Rotate",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
12774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12775 | { | |
12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12777 | (arg1)->Rotate(arg2,arg3,arg4); | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | Py_INCREF(Py_None); resultobj = Py_None; | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject *_wrap_PyDrawnShape_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj; | |
12791 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12792 | wxRect *arg2 = 0 ; | |
12793 | wxRect temp2 ; | |
12794 | PyObject * obj0 = 0 ; | |
12795 | PyObject * obj1 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self",(char *) "rect", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12802 | { | |
12803 | arg2 = &temp2; | |
12804 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12805 | } | |
12806 | { | |
12807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12808 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
12809 | ||
12810 | wxPyEndAllowThreads(__tstate); | |
12811 | if (PyErr_Occurred()) SWIG_fail; | |
12812 | } | |
12813 | Py_INCREF(Py_None); resultobj = Py_None; | |
12814 | return resultobj; | |
12815 | fail: | |
12816 | return NULL; | |
12817 | } | |
12818 | ||
12819 | ||
12820 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12821 | PyObject *resultobj; | |
12822 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12823 | wxColour *arg2 = 0 ; | |
12824 | wxColour temp2 ; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | PyObject * obj1 = 0 ; | |
12827 | char *kwnames[] = { | |
12828 | (char *) "self",(char *) "colour", NULL | |
12829 | }; | |
12830 | ||
12831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
12832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12833 | { | |
12834 | arg2 = &temp2; | |
12835 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12836 | } | |
12837 | { | |
12838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12839 | (arg1)->SetDrawnBackgroundColour((wxColour const &)*arg2); | |
12840 | ||
12841 | wxPyEndAllowThreads(__tstate); | |
12842 | if (PyErr_Occurred()) SWIG_fail; | |
12843 | } | |
12844 | Py_INCREF(Py_None); resultobj = Py_None; | |
12845 | return resultobj; | |
12846 | fail: | |
12847 | return NULL; | |
12848 | } | |
12849 | ||
12850 | ||
12851 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12852 | PyObject *resultobj; | |
12853 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12854 | int arg2 ; | |
12855 | PyObject * obj0 = 0 ; | |
12856 | char *kwnames[] = { | |
12857 | (char *) "self",(char *) "mode", NULL | |
12858 | }; | |
12859 | ||
12860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyDrawnShape_SetDrawnBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
12861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12862 | { | |
12863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12864 | (arg1)->SetDrawnBackgroundMode(arg2); | |
12865 | ||
12866 | wxPyEndAllowThreads(__tstate); | |
12867 | if (PyErr_Occurred()) SWIG_fail; | |
12868 | } | |
12869 | Py_INCREF(Py_None); resultobj = Py_None; | |
12870 | return resultobj; | |
12871 | fail: | |
12872 | return NULL; | |
12873 | } | |
12874 | ||
12875 | ||
12876 | static PyObject *_wrap_PyDrawnShape_SetDrawnBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12877 | PyObject *resultobj; | |
12878 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12879 | wxBrush *arg2 = (wxBrush *) 0 ; | |
12880 | bool arg3 = (bool) FALSE ; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | PyObject * obj1 = 0 ; | |
12883 | PyObject * obj2 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12890 | { | |
12891 | wxBrush* temp; | |
12892 | if (obj1) { | |
12893 | if (obj1 == Py_None) { | |
12894 | temp = NULL; | |
12895 | } | |
12896 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
12897 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
12898 | return NULL; | |
12899 | } | |
12900 | } | |
12901 | if (temp) | |
12902 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
12903 | else | |
12904 | arg2 = NULL; | |
12905 | } | |
12906 | if (obj2) { | |
12907 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
12910 | { | |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | (arg1)->SetDrawnBrush(arg2,arg3); | |
12913 | ||
12914 | wxPyEndAllowThreads(__tstate); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | Py_INCREF(Py_None); resultobj = Py_None; | |
12918 | return resultobj; | |
12919 | fail: | |
12920 | return NULL; | |
12921 | } | |
12922 | ||
12923 | ||
12924 | static PyObject *_wrap_PyDrawnShape_SetDrawnFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12925 | PyObject *resultobj; | |
12926 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12927 | wxFont *arg2 = (wxFont *) 0 ; | |
12928 | PyObject * obj0 = 0 ; | |
12929 | PyObject * obj1 = 0 ; | |
12930 | char *kwnames[] = { | |
12931 | (char *) "self",(char *) "font", NULL | |
12932 | }; | |
12933 | ||
12934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnFont",kwnames,&obj0,&obj1)) goto fail; | |
12935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12936 | { | |
12937 | wxFont* temp; | |
12938 | if (obj1) { | |
12939 | if (obj1 == Py_None) { | |
12940 | temp = NULL; | |
12941 | } | |
12942 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
12943 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
12944 | return NULL; | |
12945 | } | |
12946 | } | |
12947 | if (temp) | |
12948 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
12949 | temp->GetFamily(), | |
12950 | temp->GetStyle(), | |
12951 | temp->GetWeight(), | |
12952 | temp->GetUnderlined(), | |
12953 | temp->GetFaceName(), | |
12954 | temp->GetEncoding()); | |
12955 | else | |
12956 | arg2 = NULL; | |
12957 | } | |
12958 | { | |
12959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12960 | (arg1)->SetDrawnFont(arg2); | |
12961 | ||
12962 | wxPyEndAllowThreads(__tstate); | |
12963 | if (PyErr_Occurred()) SWIG_fail; | |
12964 | } | |
12965 | Py_INCREF(Py_None); resultobj = Py_None; | |
12966 | return resultobj; | |
12967 | fail: | |
12968 | return NULL; | |
12969 | } | |
12970 | ||
12971 | ||
12972 | static PyObject *_wrap_PyDrawnShape_SetDrawnPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12973 | PyObject *resultobj; | |
12974 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
12975 | wxPen *arg2 = (wxPen *) 0 ; | |
12976 | bool arg3 = (bool) FALSE ; | |
12977 | PyObject * obj0 = 0 ; | |
12978 | PyObject * obj1 = 0 ; | |
12979 | PyObject * obj2 = 0 ; | |
12980 | char *kwnames[] = { | |
12981 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
12982 | }; | |
12983 | ||
12984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12986 | { | |
12987 | wxPen* temp; | |
12988 | if (obj1) { | |
12989 | if (obj1 == Py_None) { | |
12990 | temp = NULL; | |
12991 | } | |
12992 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
12993 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
12994 | return NULL; | |
12995 | } | |
12996 | } | |
12997 | if (temp) | |
12998 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
12999 | temp->GetWidth(), | |
13000 | temp->GetStyle()); | |
13001 | else | |
13002 | arg2 = NULL; | |
13003 | } | |
13004 | if (obj2) { | |
13005 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
13007 | } | |
13008 | { | |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13010 | (arg1)->SetDrawnPen(arg2,arg3); | |
13011 | ||
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
13015 | Py_INCREF(Py_None); resultobj = Py_None; | |
13016 | return resultobj; | |
13017 | fail: | |
13018 | return NULL; | |
13019 | } | |
13020 | ||
13021 | ||
13022 | static PyObject *_wrap_PyDrawnShape_SetDrawnTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13025 | wxColour *arg2 = 0 ; | |
13026 | wxColour temp2 ; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | PyObject * obj1 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self",(char *) "colour", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnTextColour",kwnames,&obj0,&obj1)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13035 | { | |
13036 | arg2 = &temp2; | |
13037 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13038 | } | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | (arg1)->SetDrawnTextColour((wxColour const &)*arg2); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | Py_INCREF(Py_None); resultobj = Py_None; | |
13047 | return resultobj; | |
13048 | fail: | |
13049 | return NULL; | |
13050 | } | |
13051 | ||
13052 | ||
13053 | static PyObject *_wrap_PyDrawnShape_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13054 | PyObject *resultobj; | |
13055 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13056 | double arg2 ; | |
13057 | double arg3 ; | |
13058 | PyObject * obj0 = 0 ; | |
13059 | char *kwnames[] = { | |
13060 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
13061 | }; | |
13062 | ||
13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDrawnShape_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13065 | { | |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | (arg1)->Scale(arg2,arg3); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | Py_INCREF(Py_None); resultobj = Py_None; | |
13073 | return resultobj; | |
13074 | fail: | |
13075 | return NULL; | |
13076 | } | |
13077 | ||
13078 | ||
13079 | static PyObject *_wrap_PyDrawnShape_SetSaveToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13080 | PyObject *resultobj; | |
13081 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13082 | bool arg2 ; | |
13083 | PyObject * obj0 = 0 ; | |
13084 | PyObject * obj1 = 0 ; | |
13085 | char *kwnames[] = { | |
13086 | (char *) "self",(char *) "save", NULL | |
13087 | }; | |
13088 | ||
13089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetSaveToFile",kwnames,&obj0,&obj1)) goto fail; | |
13090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13091 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | (arg1)->SetSaveToFile(arg2); | |
13096 | ||
13097 | wxPyEndAllowThreads(__tstate); | |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
13099 | } | |
13100 | Py_INCREF(Py_None); resultobj = Py_None; | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | return NULL; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_PyDrawnShape_Translate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13108 | PyObject *resultobj; | |
13109 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13110 | double arg2 ; | |
13111 | double arg3 ; | |
13112 | PyObject * obj0 = 0 ; | |
13113 | char *kwnames[] = { | |
13114 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13115 | }; | |
13116 | ||
13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDrawnShape_Translate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13119 | { | |
13120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13121 | (arg1)->Translate(arg2,arg3); | |
13122 | ||
13123 | wxPyEndAllowThreads(__tstate); | |
13124 | if (PyErr_Occurred()) SWIG_fail; | |
13125 | } | |
13126 | Py_INCREF(Py_None); resultobj = Py_None; | |
13127 | return resultobj; | |
13128 | fail: | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
13133 | static PyObject *_wrap_PyDrawnShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13134 | PyObject *resultobj; | |
13135 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13136 | PyObject * obj0 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
13142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | (arg1)->base_OnDelete(); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
13150 | Py_INCREF(Py_None); resultobj = Py_None; | |
13151 | return resultobj; | |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_PyDrawnShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13160 | wxDC *arg2 = 0 ; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | PyObject * obj1 = 0 ; | |
13163 | char *kwnames[] = { | |
13164 | (char *) "self",(char *) "dc", NULL | |
13165 | }; | |
13166 | ||
13167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
13168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13169 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13170 | if (arg2 == NULL) { | |
13171 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13172 | } | |
13173 | { | |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | (arg1)->base_OnDraw(*arg2); | |
13176 | ||
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
13180 | Py_INCREF(Py_None); resultobj = Py_None; | |
13181 | return resultobj; | |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_PyDrawnShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13190 | wxDC *arg2 = 0 ; | |
13191 | PyObject * obj0 = 0 ; | |
13192 | PyObject * obj1 = 0 ; | |
13193 | char *kwnames[] = { | |
13194 | (char *) "self",(char *) "dc", NULL | |
13195 | }; | |
13196 | ||
13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
13198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13200 | if (arg2 == NULL) { | |
13201 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13202 | } | |
13203 | { | |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13205 | (arg1)->base_OnDrawContents(*arg2); | |
13206 | ||
13207 | wxPyEndAllowThreads(__tstate); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
13210 | Py_INCREF(Py_None); resultobj = Py_None; | |
13211 | return resultobj; | |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
13217 | static PyObject *_wrap_PyDrawnShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13218 | PyObject *resultobj; | |
13219 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13220 | wxDC *arg2 = 0 ; | |
13221 | bool arg3 = (bool) FALSE ; | |
13222 | PyObject * obj0 = 0 ; | |
13223 | PyObject * obj1 = 0 ; | |
13224 | PyObject * obj2 = 0 ; | |
13225 | char *kwnames[] = { | |
13226 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
13227 | }; | |
13228 | ||
13229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13232 | if (arg2 == NULL) { | |
13233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13234 | } | |
13235 | if (obj2) { | |
13236 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
13239 | { | |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13241 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
13242 | ||
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | Py_INCREF(Py_None); resultobj = Py_None; | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13254 | PyObject *resultobj; | |
13255 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13256 | wxDC *arg2 = 0 ; | |
13257 | PyObject * obj0 = 0 ; | |
13258 | PyObject * obj1 = 0 ; | |
13259 | char *kwnames[] = { | |
13260 | (char *) "self",(char *) "dc", NULL | |
13261 | }; | |
13262 | ||
13263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
13264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13265 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13266 | if (arg2 == NULL) { | |
13267 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13268 | } | |
13269 | { | |
13270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13271 | (arg1)->base_OnMoveLinks(*arg2); | |
13272 | ||
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | Py_INCREF(Py_None); resultobj = Py_None; | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
13283 | static PyObject *_wrap_PyDrawnShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13284 | PyObject *resultobj; | |
13285 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13286 | wxDC *arg2 = 0 ; | |
13287 | PyObject * obj0 = 0 ; | |
13288 | PyObject * obj1 = 0 ; | |
13289 | char *kwnames[] = { | |
13290 | (char *) "self",(char *) "dc", NULL | |
13291 | }; | |
13292 | ||
13293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
13294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13295 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13296 | if (arg2 == NULL) { | |
13297 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13298 | } | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | (arg1)->base_OnErase(*arg2); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | Py_INCREF(Py_None); resultobj = Py_None; | |
13307 | return resultobj; | |
13308 | fail: | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_PyDrawnShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13316 | wxDC *arg2 = 0 ; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | PyObject * obj1 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self",(char *) "dc", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13325 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13326 | if (arg2 == NULL) { | |
13327 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13328 | } | |
13329 | { | |
13330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13331 | (arg1)->base_OnEraseContents(*arg2); | |
13332 | ||
13333 | wxPyEndAllowThreads(__tstate); | |
13334 | if (PyErr_Occurred()) SWIG_fail; | |
13335 | } | |
13336 | Py_INCREF(Py_None); resultobj = Py_None; | |
13337 | return resultobj; | |
13338 | fail: | |
13339 | return NULL; | |
13340 | } | |
13341 | ||
13342 | ||
13343 | static PyObject *_wrap_PyDrawnShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13344 | PyObject *resultobj; | |
13345 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13346 | wxDC *arg2 = 0 ; | |
13347 | PyObject * obj0 = 0 ; | |
13348 | PyObject * obj1 = 0 ; | |
13349 | char *kwnames[] = { | |
13350 | (char *) "self",(char *) "dc", NULL | |
13351 | }; | |
13352 | ||
13353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
13354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13355 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13356 | if (arg2 == NULL) { | |
13357 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13358 | } | |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | (arg1)->base_OnHighlight(*arg2); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_PyDrawnShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13376 | double arg2 ; | |
13377 | double arg3 ; | |
13378 | int arg4 = (int) 0 ; | |
13379 | int arg5 = (int) 0 ; | |
13380 | PyObject * obj0 = 0 ; | |
13381 | char *kwnames[] = { | |
13382 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13383 | }; | |
13384 | ||
13385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13387 | { | |
13388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13389 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
13390 | ||
13391 | wxPyEndAllowThreads(__tstate); | |
13392 | if (PyErr_Occurred()) SWIG_fail; | |
13393 | } | |
13394 | Py_INCREF(Py_None); resultobj = Py_None; | |
13395 | return resultobj; | |
13396 | fail: | |
13397 | return NULL; | |
13398 | } | |
13399 | ||
13400 | ||
13401 | static PyObject *_wrap_PyDrawnShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13402 | PyObject *resultobj; | |
13403 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13404 | double arg2 ; | |
13405 | double arg3 ; | |
13406 | int arg4 = (int) 0 ; | |
13407 | int arg5 = (int) 0 ; | |
13408 | PyObject * obj0 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13415 | { | |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
13418 | ||
13419 | wxPyEndAllowThreads(__tstate); | |
13420 | if (PyErr_Occurred()) SWIG_fail; | |
13421 | } | |
13422 | Py_INCREF(Py_None); resultobj = Py_None; | |
13423 | return resultobj; | |
13424 | fail: | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
13429 | static PyObject *_wrap_PyDrawnShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13430 | PyObject *resultobj; | |
13431 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13432 | double arg2 ; | |
13433 | double arg3 ; | |
13434 | int arg4 = (int) 0 ; | |
13435 | int arg5 = (int) 0 ; | |
13436 | PyObject * obj0 = 0 ; | |
13437 | char *kwnames[] = { | |
13438 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13439 | }; | |
13440 | ||
13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13443 | { | |
13444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13445 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
13446 | ||
13447 | wxPyEndAllowThreads(__tstate); | |
13448 | if (PyErr_Occurred()) SWIG_fail; | |
13449 | } | |
13450 | Py_INCREF(Py_None); resultobj = Py_None; | |
13451 | return resultobj; | |
13452 | fail: | |
13453 | return NULL; | |
13454 | } | |
13455 | ||
13456 | ||
13457 | static PyObject *_wrap_PyDrawnShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13458 | PyObject *resultobj; | |
13459 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13460 | double arg2 ; | |
13461 | double arg3 ; | |
13462 | PyObject * obj0 = 0 ; | |
13463 | char *kwnames[] = { | |
13464 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13465 | }; | |
13466 | ||
13467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDrawnShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13469 | { | |
13470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13471 | (arg1)->base_OnSize(arg2,arg3); | |
13472 | ||
13473 | wxPyEndAllowThreads(__tstate); | |
13474 | if (PyErr_Occurred()) SWIG_fail; | |
13475 | } | |
13476 | Py_INCREF(Py_None); resultobj = Py_None; | |
13477 | return resultobj; | |
13478 | fail: | |
13479 | return NULL; | |
13480 | } | |
13481 | ||
13482 | ||
13483 | static PyObject *_wrap_PyDrawnShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13484 | PyObject *resultobj; | |
13485 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13486 | wxDC *arg2 = 0 ; | |
13487 | double arg3 ; | |
13488 | double arg4 ; | |
13489 | double arg5 ; | |
13490 | double arg6 ; | |
13491 | bool arg7 = (bool) True ; | |
13492 | bool result; | |
13493 | PyObject * obj0 = 0 ; | |
13494 | PyObject * obj1 = 0 ; | |
13495 | PyObject * obj6 = 0 ; | |
13496 | char *kwnames[] = { | |
13497 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
13498 | }; | |
13499 | ||
13500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDrawnShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
13501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13502 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13503 | if (arg2 == NULL) { | |
13504 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13505 | } | |
13506 | if (obj6) { | |
13507 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
13508 | if (PyErr_Occurred()) SWIG_fail; | |
13509 | } | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
13517 | resultobj = PyInt_FromLong((long)result); | |
13518 | return resultobj; | |
13519 | fail: | |
13520 | return NULL; | |
13521 | } | |
13522 | ||
13523 | ||
13524 | static PyObject *_wrap_PyDrawnShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13525 | PyObject *resultobj; | |
13526 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13527 | wxDC *arg2 = 0 ; | |
13528 | double arg3 ; | |
13529 | double arg4 ; | |
13530 | double arg5 ; | |
13531 | double arg6 ; | |
13532 | bool arg7 = (bool) True ; | |
13533 | PyObject * obj0 = 0 ; | |
13534 | PyObject * obj1 = 0 ; | |
13535 | PyObject * obj6 = 0 ; | |
13536 | char *kwnames[] = { | |
13537 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
13538 | }; | |
13539 | ||
13540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDrawnShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
13541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13542 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13543 | if (arg2 == NULL) { | |
13544 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13545 | } | |
13546 | if (obj6) { | |
13547 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | Py_INCREF(Py_None); resultobj = Py_None; | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_PyDrawnShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13567 | bool arg2 ; | |
13568 | double arg3 ; | |
13569 | double arg4 ; | |
13570 | int arg5 = (int) 0 ; | |
13571 | int arg6 = (int) 0 ; | |
13572 | PyObject * obj0 = 0 ; | |
13573 | PyObject * obj1 = 0 ; | |
13574 | char *kwnames[] = { | |
13575 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13576 | }; | |
13577 | ||
13578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDrawnShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
13579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13580 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | { | |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | Py_INCREF(Py_None); resultobj = Py_None; | |
13590 | return resultobj; | |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13597 | PyObject *resultobj; | |
13598 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13599 | double arg2 ; | |
13600 | double arg3 ; | |
13601 | int arg4 = (int) 0 ; | |
13602 | int arg5 = (int) 0 ; | |
13603 | PyObject * obj0 = 0 ; | |
13604 | char *kwnames[] = { | |
13605 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13606 | }; | |
13607 | ||
13608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13610 | { | |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
13617 | Py_INCREF(Py_None); resultobj = Py_None; | |
13618 | return resultobj; | |
13619 | fail: | |
13620 | return NULL; | |
13621 | } | |
13622 | ||
13623 | ||
13624 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13625 | PyObject *resultobj; | |
13626 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13627 | double arg2 ; | |
13628 | double arg3 ; | |
13629 | int arg4 = (int) 0 ; | |
13630 | int arg5 = (int) 0 ; | |
13631 | PyObject * obj0 = 0 ; | |
13632 | char *kwnames[] = { | |
13633 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13634 | }; | |
13635 | ||
13636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
13652 | static PyObject *_wrap_PyDrawnShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13653 | PyObject *resultobj; | |
13654 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13655 | bool arg2 ; | |
13656 | double arg3 ; | |
13657 | double arg4 ; | |
13658 | int arg5 = (int) 0 ; | |
13659 | int arg6 = (int) 0 ; | |
13660 | PyObject * obj0 = 0 ; | |
13661 | PyObject * obj1 = 0 ; | |
13662 | char *kwnames[] = { | |
13663 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13664 | }; | |
13665 | ||
13666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDrawnShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
13667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13668 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13669 | if (PyErr_Occurred()) SWIG_fail; | |
13670 | { | |
13671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13672 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
13673 | ||
13674 | wxPyEndAllowThreads(__tstate); | |
13675 | if (PyErr_Occurred()) SWIG_fail; | |
13676 | } | |
13677 | Py_INCREF(Py_None); resultobj = Py_None; | |
13678 | return resultobj; | |
13679 | fail: | |
13680 | return NULL; | |
13681 | } | |
13682 | ||
13683 | ||
13684 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13685 | PyObject *resultobj; | |
13686 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13687 | double arg2 ; | |
13688 | double arg3 ; | |
13689 | int arg4 = (int) 0 ; | |
13690 | int arg5 = (int) 0 ; | |
13691 | PyObject * obj0 = 0 ; | |
13692 | char *kwnames[] = { | |
13693 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13694 | }; | |
13695 | ||
13696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13698 | { | |
13699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13700 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
13701 | ||
13702 | wxPyEndAllowThreads(__tstate); | |
13703 | if (PyErr_Occurred()) SWIG_fail; | |
13704 | } | |
13705 | Py_INCREF(Py_None); resultobj = Py_None; | |
13706 | return resultobj; | |
13707 | fail: | |
13708 | return NULL; | |
13709 | } | |
13710 | ||
13711 | ||
13712 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13713 | PyObject *resultobj; | |
13714 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13715 | double arg2 ; | |
13716 | double arg3 ; | |
13717 | int arg4 = (int) 0 ; | |
13718 | int arg5 = (int) 0 ; | |
13719 | PyObject * obj0 = 0 ; | |
13720 | char *kwnames[] = { | |
13721 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13722 | }; | |
13723 | ||
13724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDrawnShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
13725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13726 | { | |
13727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13728 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
13729 | ||
13730 | wxPyEndAllowThreads(__tstate); | |
13731 | if (PyErr_Occurred()) SWIG_fail; | |
13732 | } | |
13733 | Py_INCREF(Py_None); resultobj = Py_None; | |
13734 | return resultobj; | |
13735 | fail: | |
13736 | return NULL; | |
13737 | } | |
13738 | ||
13739 | ||
13740 | static PyObject *_wrap_PyDrawnShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13741 | PyObject *resultobj; | |
13742 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13743 | wxDC *arg2 = 0 ; | |
13744 | double arg3 ; | |
13745 | double arg4 ; | |
13746 | double arg5 ; | |
13747 | double arg6 ; | |
13748 | PyObject * obj0 = 0 ; | |
13749 | PyObject * obj1 = 0 ; | |
13750 | char *kwnames[] = { | |
13751 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
13752 | }; | |
13753 | ||
13754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyDrawnShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
13755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13756 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13757 | if (arg2 == NULL) { | |
13758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13759 | } | |
13760 | { | |
13761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13762 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
13763 | ||
13764 | wxPyEndAllowThreads(__tstate); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
13767 | Py_INCREF(Py_None); resultobj = Py_None; | |
13768 | return resultobj; | |
13769 | fail: | |
13770 | return NULL; | |
13771 | } | |
13772 | ||
13773 | ||
13774 | static PyObject *_wrap_PyDrawnShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13775 | PyObject *resultobj; | |
13776 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13777 | wxDC *arg2 = 0 ; | |
13778 | PyObject * obj0 = 0 ; | |
13779 | PyObject * obj1 = 0 ; | |
13780 | char *kwnames[] = { | |
13781 | (char *) "self",(char *) "dc", NULL | |
13782 | }; | |
13783 | ||
13784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
13785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13786 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13787 | if (arg2 == NULL) { | |
13788 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13789 | } | |
13790 | { | |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | (arg1)->base_OnDrawControlPoints(*arg2); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
13797 | Py_INCREF(Py_None); resultobj = Py_None; | |
13798 | return resultobj; | |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_PyDrawnShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13807 | wxDC *arg2 = 0 ; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | PyObject * obj1 = 0 ; | |
13810 | char *kwnames[] = { | |
13811 | (char *) "self",(char *) "dc", NULL | |
13812 | }; | |
13813 | ||
13814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
13815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13816 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13817 | if (arg2 == NULL) { | |
13818 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13819 | } | |
13820 | { | |
13821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13822 | (arg1)->base_OnEraseControlPoints(*arg2); | |
13823 | ||
13824 | wxPyEndAllowThreads(__tstate); | |
13825 | if (PyErr_Occurred()) SWIG_fail; | |
13826 | } | |
13827 | Py_INCREF(Py_None); resultobj = Py_None; | |
13828 | return resultobj; | |
13829 | fail: | |
13830 | return NULL; | |
13831 | } | |
13832 | ||
13833 | ||
13834 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13835 | PyObject *resultobj; | |
13836 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13837 | wxDC *arg2 = 0 ; | |
13838 | bool arg3 = (bool) True ; | |
13839 | PyObject * obj0 = 0 ; | |
13840 | PyObject * obj1 = 0 ; | |
13841 | PyObject * obj2 = 0 ; | |
13842 | char *kwnames[] = { | |
13843 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
13844 | }; | |
13845 | ||
13846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13849 | if (arg2 == NULL) { | |
13850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13851 | } | |
13852 | if (obj2) { | |
13853 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | } | |
13856 | { | |
13857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13858 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
13859 | ||
13860 | wxPyEndAllowThreads(__tstate); | |
13861 | if (PyErr_Occurred()) SWIG_fail; | |
13862 | } | |
13863 | Py_INCREF(Py_None); resultobj = Py_None; | |
13864 | return resultobj; | |
13865 | fail: | |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
13870 | static PyObject *_wrap_PyDrawnShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13871 | PyObject *resultobj; | |
13872 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13873 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13874 | bool arg3 ; | |
13875 | double arg4 ; | |
13876 | double arg5 ; | |
13877 | int arg6 = (int) 0 ; | |
13878 | int arg7 = (int) 0 ; | |
13879 | PyObject * obj0 = 0 ; | |
13880 | PyObject * obj1 = 0 ; | |
13881 | PyObject * obj2 = 0 ; | |
13882 | char *kwnames[] = { | |
13883 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13884 | }; | |
13885 | ||
13886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyDrawnShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
13887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13888 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13889 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13890 | if (PyErr_Occurred()) SWIG_fail; | |
13891 | { | |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
13894 | ||
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | Py_INCREF(Py_None); resultobj = Py_None; | |
13899 | return resultobj; | |
13900 | fail: | |
13901 | return NULL; | |
13902 | } | |
13903 | ||
13904 | ||
13905 | static PyObject *_wrap_PyDrawnShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13906 | PyObject *resultobj; | |
13907 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13908 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13909 | double arg3 ; | |
13910 | double arg4 ; | |
13911 | int arg5 = (int) 0 ; | |
13912 | int arg6 = (int) 0 ; | |
13913 | PyObject * obj0 = 0 ; | |
13914 | PyObject * obj1 = 0 ; | |
13915 | char *kwnames[] = { | |
13916 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13917 | }; | |
13918 | ||
13919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDrawnShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
13920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13921 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13922 | { | |
13923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13924 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13925 | ||
13926 | wxPyEndAllowThreads(__tstate); | |
13927 | if (PyErr_Occurred()) SWIG_fail; | |
13928 | } | |
13929 | Py_INCREF(Py_None); resultobj = Py_None; | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
13933 | } | |
13934 | ||
13935 | ||
13936 | static PyObject *_wrap_PyDrawnShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13937 | PyObject *resultobj; | |
13938 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13939 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13940 | double arg3 ; | |
13941 | double arg4 ; | |
13942 | int arg5 = (int) 0 ; | |
13943 | int arg6 = (int) 0 ; | |
13944 | PyObject * obj0 = 0 ; | |
13945 | PyObject * obj1 = 0 ; | |
13946 | char *kwnames[] = { | |
13947 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13948 | }; | |
13949 | ||
13950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDrawnShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
13951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13952 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13953 | { | |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13956 | ||
13957 | wxPyEndAllowThreads(__tstate); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | } | |
13960 | Py_INCREF(Py_None); resultobj = Py_None; | |
13961 | return resultobj; | |
13962 | fail: | |
13963 | return NULL; | |
13964 | } | |
13965 | ||
13966 | ||
13967 | static PyObject *_wrap_PyDrawnShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13968 | PyObject *resultobj; | |
13969 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13970 | double arg2 ; | |
13971 | double arg3 ; | |
13972 | PyObject * obj0 = 0 ; | |
13973 | char *kwnames[] = { | |
13974 | (char *) "self",(char *) "w",(char *) "h", NULL | |
13975 | }; | |
13976 | ||
13977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDrawnShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13979 | { | |
13980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13981 | (arg1)->base_OnBeginSize(arg2,arg3); | |
13982 | ||
13983 | wxPyEndAllowThreads(__tstate); | |
13984 | if (PyErr_Occurred()) SWIG_fail; | |
13985 | } | |
13986 | Py_INCREF(Py_None); resultobj = Py_None; | |
13987 | return resultobj; | |
13988 | fail: | |
13989 | return NULL; | |
13990 | } | |
13991 | ||
13992 | ||
13993 | static PyObject *_wrap_PyDrawnShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13994 | PyObject *resultobj; | |
13995 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
13996 | double arg2 ; | |
13997 | double arg3 ; | |
13998 | PyObject * obj0 = 0 ; | |
13999 | char *kwnames[] = { | |
14000 | (char *) "self",(char *) "w",(char *) "h", NULL | |
14001 | }; | |
14002 | ||
14003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDrawnShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDrawnShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14005 | { | |
14006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14007 | (arg1)->base_OnEndSize(arg2,arg3); | |
14008 | ||
14009 | wxPyEndAllowThreads(__tstate); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | } | |
14012 | Py_INCREF(Py_None); resultobj = Py_None; | |
14013 | return resultobj; | |
14014 | fail: | |
14015 | return NULL; | |
14016 | } | |
14017 | ||
14018 | ||
14019 | static PyObject * PyDrawnShape_swigregister(PyObject *self, PyObject *args) { | |
14020 | PyObject *obj; | |
14021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14022 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDrawnShape, obj); | |
14023 | Py_INCREF(obj); | |
14024 | return Py_BuildValue((char *)""); | |
14025 | } | |
14026 | static PyObject *_wrap_new_OGLConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14027 | PyObject *resultobj; | |
14028 | int arg1 ; | |
14029 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
14030 | PyObject *arg3 = (PyObject *) 0 ; | |
14031 | wxOGLConstraint *result; | |
14032 | PyObject * obj1 = 0 ; | |
14033 | PyObject * obj2 = 0 ; | |
14034 | char *kwnames[] = { | |
14035 | (char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
14036 | }; | |
14037 | ||
14038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOO:new_OGLConstraint",kwnames,&arg1,&obj1,&obj2)) goto fail; | |
14039 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14040 | arg3 = obj2; | |
14041 | { | |
14042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14043 | result = (wxOGLConstraint *)new_wxOGLConstraint(arg1,arg2,arg3); | |
14044 | ||
14045 | wxPyEndAllowThreads(__tstate); | |
14046 | if (PyErr_Occurred()) SWIG_fail; | |
14047 | } | |
14048 | { | |
14049 | resultobj = wxPyMake_wxObject(result); | |
14050 | } | |
14051 | return resultobj; | |
14052 | fail: | |
14053 | return NULL; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_OGLConstraint_Evaluate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14058 | PyObject *resultobj; | |
14059 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
14060 | bool result; | |
14061 | PyObject * obj0 = 0 ; | |
14062 | char *kwnames[] = { | |
14063 | (char *) "self", NULL | |
14064 | }; | |
14065 | ||
14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:OGLConstraint_Evaluate",kwnames,&obj0)) goto fail; | |
14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOGLConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14068 | { | |
14069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14070 | result = (bool)(arg1)->Evaluate(); | |
14071 | ||
14072 | wxPyEndAllowThreads(__tstate); | |
14073 | if (PyErr_Occurred()) SWIG_fail; | |
14074 | } | |
14075 | resultobj = PyInt_FromLong((long)result); | |
14076 | return resultobj; | |
14077 | fail: | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
14082 | static PyObject *_wrap_OGLConstraint_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14083 | PyObject *resultobj; | |
14084 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
14085 | double arg2 ; | |
14086 | double arg3 ; | |
14087 | PyObject * obj0 = 0 ; | |
14088 | char *kwnames[] = { | |
14089 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14090 | }; | |
14091 | ||
14092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:OGLConstraint_SetSpacing",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOGLConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14094 | { | |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | (arg1)->SetSpacing(arg2,arg3); | |
14097 | ||
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
14101 | Py_INCREF(Py_None); resultobj = Py_None; | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
14108 | static PyObject *_wrap_OGLConstraint_Equals(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14109 | PyObject *resultobj; | |
14110 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
14111 | double arg2 ; | |
14112 | double arg3 ; | |
14113 | bool result; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | char *kwnames[] = { | |
14116 | (char *) "self",(char *) "a",(char *) "b", NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:OGLConstraint_Equals",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOGLConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14121 | { | |
14122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14123 | result = (bool)(arg1)->Equals(arg2,arg3); | |
14124 | ||
14125 | wxPyEndAllowThreads(__tstate); | |
14126 | if (PyErr_Occurred()) SWIG_fail; | |
14127 | } | |
14128 | resultobj = PyInt_FromLong((long)result); | |
14129 | return resultobj; | |
14130 | fail: | |
14131 | return NULL; | |
14132 | } | |
14133 | ||
14134 | ||
14135 | static PyObject * OGLConstraint_swigregister(PyObject *self, PyObject *args) { | |
14136 | PyObject *obj; | |
14137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14138 | SWIG_TypeClientData(SWIGTYPE_p_wxOGLConstraint, obj); | |
14139 | Py_INCREF(obj); | |
14140 | return Py_BuildValue((char *)""); | |
14141 | } | |
14142 | static PyObject *_wrap_new_PyCompositeShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14143 | PyObject *resultobj; | |
14144 | wxPyCompositeShape *result; | |
14145 | char *kwnames[] = { | |
14146 | NULL | |
14147 | }; | |
14148 | ||
14149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyCompositeShape",kwnames)) goto fail; | |
14150 | { | |
14151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14152 | result = (wxPyCompositeShape *)new wxPyCompositeShape(); | |
14153 | ||
14154 | wxPyEndAllowThreads(__tstate); | |
14155 | if (PyErr_Occurred()) SWIG_fail; | |
14156 | } | |
14157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCompositeShape, 1); | |
14158 | return resultobj; | |
14159 | fail: | |
14160 | return NULL; | |
14161 | } | |
14162 | ||
14163 | ||
14164 | static PyObject *_wrap_PyCompositeShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14165 | PyObject *resultobj; | |
14166 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14167 | PyObject *arg2 = (PyObject *) 0 ; | |
14168 | PyObject *arg3 = (PyObject *) 0 ; | |
14169 | PyObject * obj0 = 0 ; | |
14170 | PyObject * obj1 = 0 ; | |
14171 | PyObject * obj2 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14178 | arg2 = obj1; | |
14179 | arg3 = obj2; | |
14180 | { | |
14181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14182 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14183 | ||
14184 | wxPyEndAllowThreads(__tstate); | |
14185 | if (PyErr_Occurred()) SWIG_fail; | |
14186 | } | |
14187 | Py_INCREF(Py_None); resultobj = Py_None; | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static PyObject *_wrap_PyCompositeShape_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14195 | PyObject *resultobj; | |
14196 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14197 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
14198 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
14199 | PyObject * obj0 = 0 ; | |
14200 | PyObject * obj1 = 0 ; | |
14201 | PyObject * obj2 = 0 ; | |
14202 | char *kwnames[] = { | |
14203 | (char *) "self",(char *) "child",(char *) "addAfter", NULL | |
14204 | }; | |
14205 | ||
14206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_AddChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14208 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14209 | if (obj2) { | |
14210 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14211 | } | |
14212 | { | |
14213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14214 | (arg1)->AddChild(arg2,arg3); | |
14215 | ||
14216 | wxPyEndAllowThreads(__tstate); | |
14217 | if (PyErr_Occurred()) SWIG_fail; | |
14218 | } | |
14219 | Py_INCREF(Py_None); resultobj = Py_None; | |
14220 | return resultobj; | |
14221 | fail: | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
14226 | static PyObject *_wrap_PyCompositeShape_AddConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14227 | PyObject *resultobj; | |
14228 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14229 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
14230 | wxOGLConstraint *result; | |
14231 | PyObject * obj0 = 0 ; | |
14232 | PyObject * obj1 = 0 ; | |
14233 | char *kwnames[] = { | |
14234 | (char *) "self",(char *) "constraint", NULL | |
14235 | }; | |
14236 | ||
14237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_AddConstraint",kwnames,&obj0,&obj1)) goto fail; | |
14238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxOGLConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14240 | { | |
14241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14242 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2); | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
14247 | { | |
14248 | resultobj = wxPyMake_wxObject(result); | |
14249 | } | |
14250 | return resultobj; | |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
14256 | static PyObject *_wrap_PyCompositeShape_AddConstrainedShapes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14257 | PyObject *resultobj; | |
14258 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14259 | int arg2 ; | |
14260 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
14261 | PyObject *arg4 = (PyObject *) 0 ; | |
14262 | wxOGLConstraint *result; | |
14263 | PyObject * obj0 = 0 ; | |
14264 | PyObject * obj2 = 0 ; | |
14265 | PyObject * obj3 = 0 ; | |
14266 | char *kwnames[] = { | |
14267 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
14268 | }; | |
14269 | ||
14270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:PyCompositeShape_AddConstrainedShapes",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14272 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14273 | arg4 = obj3; | |
14274 | { | |
14275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14276 | result = (wxOGLConstraint *)wxPyCompositeShape_AddConstrainedShapes(arg1,arg2,arg3,arg4); | |
14277 | ||
14278 | wxPyEndAllowThreads(__tstate); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
14281 | { | |
14282 | resultobj = wxPyMake_wxObject(result); | |
14283 | } | |
14284 | return resultobj; | |
14285 | fail: | |
14286 | return NULL; | |
14287 | } | |
14288 | ||
14289 | ||
14290 | static PyObject *_wrap_PyCompositeShape_AddSimpleConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14291 | PyObject *resultobj; | |
14292 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14293 | int arg2 ; | |
14294 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
14295 | wxPyShape *arg4 = (wxPyShape *) 0 ; | |
14296 | wxOGLConstraint *result; | |
14297 | PyObject * obj0 = 0 ; | |
14298 | PyObject * obj2 = 0 ; | |
14299 | PyObject * obj3 = 0 ; | |
14300 | char *kwnames[] = { | |
14301 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
14302 | }; | |
14303 | ||
14304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:PyCompositeShape_AddSimpleConstraint",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14306 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14307 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14308 | { | |
14309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14310 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2,arg3,arg4); | |
14311 | ||
14312 | wxPyEndAllowThreads(__tstate); | |
14313 | if (PyErr_Occurred()) SWIG_fail; | |
14314 | } | |
14315 | { | |
14316 | resultobj = wxPyMake_wxObject(result); | |
14317 | } | |
14318 | return resultobj; | |
14319 | fail: | |
14320 | return NULL; | |
14321 | } | |
14322 | ||
14323 | ||
14324 | static PyObject *_wrap_PyCompositeShape_CalculateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14325 | PyObject *resultobj; | |
14326 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14327 | PyObject * obj0 = 0 ; | |
14328 | char *kwnames[] = { | |
14329 | (char *) "self", NULL | |
14330 | }; | |
14331 | ||
14332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_CalculateSize",kwnames,&obj0)) goto fail; | |
14333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14334 | { | |
14335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14336 | (arg1)->CalculateSize(); | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | Py_INCREF(Py_None); resultobj = Py_None; | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject *_wrap_PyCompositeShape_ContainsDivision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14351 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
14352 | bool result; | |
14353 | PyObject * obj0 = 0 ; | |
14354 | PyObject * obj1 = 0 ; | |
14355 | char *kwnames[] = { | |
14356 | (char *) "self",(char *) "division", NULL | |
14357 | }; | |
14358 | ||
14359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_ContainsDivision",kwnames,&obj0,&obj1)) goto fail; | |
14360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14361 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14362 | { | |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (bool)(arg1)->ContainsDivision(arg2); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
14369 | resultobj = PyInt_FromLong((long)result); | |
14370 | return resultobj; | |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
14376 | static PyObject *_wrap_PyCompositeShape_DeleteConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14377 | PyObject *resultobj; | |
14378 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14379 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
14380 | PyObject * obj0 = 0 ; | |
14381 | PyObject * obj1 = 0 ; | |
14382 | char *kwnames[] = { | |
14383 | (char *) "self",(char *) "constraint", NULL | |
14384 | }; | |
14385 | ||
14386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraint",kwnames,&obj0,&obj1)) goto fail; | |
14387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14388 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxOGLConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14389 | { | |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | (arg1)->DeleteConstraint(arg2); | |
14392 | ||
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | Py_INCREF(Py_None); resultobj = Py_None; | |
14397 | return resultobj; | |
14398 | fail: | |
14399 | return NULL; | |
14400 | } | |
14401 | ||
14402 | ||
14403 | static PyObject *_wrap_PyCompositeShape_DeleteConstraintsInvolvingChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14404 | PyObject *resultobj; | |
14405 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14406 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
14407 | PyObject * obj0 = 0 ; | |
14408 | PyObject * obj1 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self",(char *) "child", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraintsInvolvingChild",kwnames,&obj0,&obj1)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14415 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | (arg1)->DeleteConstraintsInvolvingChild(arg2); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | Py_INCREF(Py_None); resultobj = Py_None; | |
14424 | return resultobj; | |
14425 | fail: | |
14426 | return NULL; | |
14427 | } | |
14428 | ||
14429 | ||
14430 | static PyObject *_wrap_PyCompositeShape_FindContainerImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14431 | PyObject *resultobj; | |
14432 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14433 | wxPyShape *result; | |
14434 | PyObject * obj0 = 0 ; | |
14435 | char *kwnames[] = { | |
14436 | (char *) "self", NULL | |
14437 | }; | |
14438 | ||
14439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_FindContainerImage",kwnames,&obj0)) goto fail; | |
14440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14441 | { | |
14442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14443 | result = (wxPyShape *)(arg1)->FindContainerImage(); | |
14444 | ||
14445 | wxPyEndAllowThreads(__tstate); | |
14446 | if (PyErr_Occurred()) SWIG_fail; | |
14447 | } | |
14448 | { | |
14449 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
14450 | } | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_PyCompositeShape_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14460 | PyObject *result; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetConstraints",kwnames,&obj0)) goto fail; | |
14467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = (PyObject *)wxPyCompositeShape_GetConstraints(arg1); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | resultobj = result; | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_PyCompositeShape_GetDivisions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14485 | PyObject *result; | |
14486 | PyObject * obj0 = 0 ; | |
14487 | char *kwnames[] = { | |
14488 | (char *) "self", NULL | |
14489 | }; | |
14490 | ||
14491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetDivisions",kwnames,&obj0)) goto fail; | |
14492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (PyObject *)wxPyCompositeShape_GetDivisions(arg1); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | resultobj = result; | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_PyCompositeShape_MakeContainer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_MakeContainer",kwnames,&obj0)) goto fail; | |
14516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14517 | { | |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | (arg1)->MakeContainer(); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | Py_INCREF(Py_None); resultobj = Py_None; | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject *_wrap_PyCompositeShape_Recompute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14532 | PyObject *resultobj; | |
14533 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14534 | bool result; | |
14535 | PyObject * obj0 = 0 ; | |
14536 | char *kwnames[] = { | |
14537 | (char *) "self", NULL | |
14538 | }; | |
14539 | ||
14540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_Recompute",kwnames,&obj0)) goto fail; | |
14541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14542 | { | |
14543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14544 | result = (bool)(arg1)->Recompute(); | |
14545 | ||
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = PyInt_FromLong((long)result); | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | static PyObject *_wrap_PyCompositeShape_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj; | |
14558 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14559 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
14560 | PyObject * obj0 = 0 ; | |
14561 | PyObject * obj1 = 0 ; | |
14562 | char *kwnames[] = { | |
14563 | (char *) "self",(char *) "child", NULL | |
14564 | }; | |
14565 | ||
14566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
14567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14568 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14569 | { | |
14570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14571 | (arg1)->RemoveChild(arg2); | |
14572 | ||
14573 | wxPyEndAllowThreads(__tstate); | |
14574 | if (PyErr_Occurred()) SWIG_fail; | |
14575 | } | |
14576 | Py_INCREF(Py_None); resultobj = Py_None; | |
14577 | return resultobj; | |
14578 | fail: | |
14579 | return NULL; | |
14580 | } | |
14581 | ||
14582 | ||
14583 | static PyObject *_wrap_PyCompositeShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14584 | PyObject *resultobj; | |
14585 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | (arg1)->base_OnDelete(); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | Py_INCREF(Py_None); resultobj = Py_None; | |
14601 | return resultobj; | |
14602 | fail: | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_PyCompositeShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14610 | wxDC *arg2 = 0 ; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | PyObject * obj1 = 0 ; | |
14613 | char *kwnames[] = { | |
14614 | (char *) "self",(char *) "dc", NULL | |
14615 | }; | |
14616 | ||
14617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
14618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14619 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14620 | if (arg2 == NULL) { | |
14621 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14622 | } | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | (arg1)->base_OnDraw(*arg2); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
14630 | Py_INCREF(Py_None); resultobj = Py_None; | |
14631 | return resultobj; | |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_PyCompositeShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj; | |
14639 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14640 | wxDC *arg2 = 0 ; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | PyObject * obj1 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self",(char *) "dc", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
14648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14649 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14650 | if (arg2 == NULL) { | |
14651 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14652 | } | |
14653 | { | |
14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14655 | (arg1)->base_OnDrawContents(*arg2); | |
14656 | ||
14657 | wxPyEndAllowThreads(__tstate); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | } | |
14660 | Py_INCREF(Py_None); resultobj = Py_None; | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | return NULL; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static PyObject *_wrap_PyCompositeShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14668 | PyObject *resultobj; | |
14669 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14670 | wxDC *arg2 = 0 ; | |
14671 | bool arg3 = (bool) FALSE ; | |
14672 | PyObject * obj0 = 0 ; | |
14673 | PyObject * obj1 = 0 ; | |
14674 | PyObject * obj2 = 0 ; | |
14675 | char *kwnames[] = { | |
14676 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
14677 | }; | |
14678 | ||
14679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14681 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14682 | if (arg2 == NULL) { | |
14683 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14684 | } | |
14685 | if (obj2) { | |
14686 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | Py_INCREF(Py_None); resultobj = Py_None; | |
14697 | return resultobj; | |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14704 | PyObject *resultobj; | |
14705 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14706 | wxDC *arg2 = 0 ; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | PyObject * obj1 = 0 ; | |
14709 | char *kwnames[] = { | |
14710 | (char *) "self",(char *) "dc", NULL | |
14711 | }; | |
14712 | ||
14713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
14714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14715 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14716 | if (arg2 == NULL) { | |
14717 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14718 | } | |
14719 | { | |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | (arg1)->base_OnMoveLinks(*arg2); | |
14722 | ||
14723 | wxPyEndAllowThreads(__tstate); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
14726 | Py_INCREF(Py_None); resultobj = Py_None; | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | return NULL; | |
14730 | } | |
14731 | ||
14732 | ||
14733 | static PyObject *_wrap_PyCompositeShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14734 | PyObject *resultobj; | |
14735 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14736 | wxDC *arg2 = 0 ; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | PyObject * obj1 = 0 ; | |
14739 | char *kwnames[] = { | |
14740 | (char *) "self",(char *) "dc", NULL | |
14741 | }; | |
14742 | ||
14743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
14744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14745 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14746 | if (arg2 == NULL) { | |
14747 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14748 | } | |
14749 | { | |
14750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14751 | (arg1)->base_OnErase(*arg2); | |
14752 | ||
14753 | wxPyEndAllowThreads(__tstate); | |
14754 | if (PyErr_Occurred()) SWIG_fail; | |
14755 | } | |
14756 | Py_INCREF(Py_None); resultobj = Py_None; | |
14757 | return resultobj; | |
14758 | fail: | |
14759 | return NULL; | |
14760 | } | |
14761 | ||
14762 | ||
14763 | static PyObject *_wrap_PyCompositeShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14764 | PyObject *resultobj; | |
14765 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14766 | wxDC *arg2 = 0 ; | |
14767 | PyObject * obj0 = 0 ; | |
14768 | PyObject * obj1 = 0 ; | |
14769 | char *kwnames[] = { | |
14770 | (char *) "self",(char *) "dc", NULL | |
14771 | }; | |
14772 | ||
14773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
14774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14775 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14776 | if (arg2 == NULL) { | |
14777 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14778 | } | |
14779 | { | |
14780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14781 | (arg1)->base_OnEraseContents(*arg2); | |
14782 | ||
14783 | wxPyEndAllowThreads(__tstate); | |
14784 | if (PyErr_Occurred()) SWIG_fail; | |
14785 | } | |
14786 | Py_INCREF(Py_None); resultobj = Py_None; | |
14787 | return resultobj; | |
14788 | fail: | |
14789 | return NULL; | |
14790 | } | |
14791 | ||
14792 | ||
14793 | static PyObject *_wrap_PyCompositeShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14794 | PyObject *resultobj; | |
14795 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14796 | wxDC *arg2 = 0 ; | |
14797 | PyObject * obj0 = 0 ; | |
14798 | PyObject * obj1 = 0 ; | |
14799 | char *kwnames[] = { | |
14800 | (char *) "self",(char *) "dc", NULL | |
14801 | }; | |
14802 | ||
14803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
14804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14805 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14806 | if (arg2 == NULL) { | |
14807 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14808 | } | |
14809 | { | |
14810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14811 | (arg1)->base_OnHighlight(*arg2); | |
14812 | ||
14813 | wxPyEndAllowThreads(__tstate); | |
14814 | if (PyErr_Occurred()) SWIG_fail; | |
14815 | } | |
14816 | Py_INCREF(Py_None); resultobj = Py_None; | |
14817 | return resultobj; | |
14818 | fail: | |
14819 | return NULL; | |
14820 | } | |
14821 | ||
14822 | ||
14823 | static PyObject *_wrap_PyCompositeShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14824 | PyObject *resultobj; | |
14825 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14826 | double arg2 ; | |
14827 | double arg3 ; | |
14828 | int arg4 = (int) 0 ; | |
14829 | int arg5 = (int) 0 ; | |
14830 | PyObject * obj0 = 0 ; | |
14831 | char *kwnames[] = { | |
14832 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14833 | }; | |
14834 | ||
14835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
14836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14837 | { | |
14838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14839 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
14840 | ||
14841 | wxPyEndAllowThreads(__tstate); | |
14842 | if (PyErr_Occurred()) SWIG_fail; | |
14843 | } | |
14844 | Py_INCREF(Py_None); resultobj = Py_None; | |
14845 | return resultobj; | |
14846 | fail: | |
14847 | return NULL; | |
14848 | } | |
14849 | ||
14850 | ||
14851 | static PyObject *_wrap_PyCompositeShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14852 | PyObject *resultobj; | |
14853 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14854 | double arg2 ; | |
14855 | double arg3 ; | |
14856 | int arg4 = (int) 0 ; | |
14857 | int arg5 = (int) 0 ; | |
14858 | PyObject * obj0 = 0 ; | |
14859 | char *kwnames[] = { | |
14860 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14861 | }; | |
14862 | ||
14863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
14864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14865 | { | |
14866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14867 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
14868 | ||
14869 | wxPyEndAllowThreads(__tstate); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | Py_INCREF(Py_None); resultobj = Py_None; | |
14873 | return resultobj; | |
14874 | fail: | |
14875 | return NULL; | |
14876 | } | |
14877 | ||
14878 | ||
14879 | static PyObject *_wrap_PyCompositeShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14880 | PyObject *resultobj; | |
14881 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14882 | double arg2 ; | |
14883 | double arg3 ; | |
14884 | int arg4 = (int) 0 ; | |
14885 | int arg5 = (int) 0 ; | |
14886 | PyObject * obj0 = 0 ; | |
14887 | char *kwnames[] = { | |
14888 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14889 | }; | |
14890 | ||
14891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
14892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14893 | { | |
14894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14895 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
14896 | ||
14897 | wxPyEndAllowThreads(__tstate); | |
14898 | if (PyErr_Occurred()) SWIG_fail; | |
14899 | } | |
14900 | Py_INCREF(Py_None); resultobj = Py_None; | |
14901 | return resultobj; | |
14902 | fail: | |
14903 | return NULL; | |
14904 | } | |
14905 | ||
14906 | ||
14907 | static PyObject *_wrap_PyCompositeShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14908 | PyObject *resultobj; | |
14909 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14910 | double arg2 ; | |
14911 | double arg3 ; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14915 | }; | |
14916 | ||
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCompositeShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | (arg1)->base_OnSize(arg2,arg3); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | Py_INCREF(Py_None); resultobj = Py_None; | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject *_wrap_PyCompositeShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14934 | PyObject *resultobj; | |
14935 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14936 | wxDC *arg2 = 0 ; | |
14937 | double arg3 ; | |
14938 | double arg4 ; | |
14939 | double arg5 ; | |
14940 | double arg6 ; | |
14941 | bool arg7 = (bool) True ; | |
14942 | bool result; | |
14943 | PyObject * obj0 = 0 ; | |
14944 | PyObject * obj1 = 0 ; | |
14945 | PyObject * obj6 = 0 ; | |
14946 | char *kwnames[] = { | |
14947 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14948 | }; | |
14949 | ||
14950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyCompositeShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14952 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14953 | if (arg2 == NULL) { | |
14954 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14955 | } | |
14956 | if (obj6) { | |
14957 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14958 | if (PyErr_Occurred()) SWIG_fail; | |
14959 | } | |
14960 | { | |
14961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14962 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
14963 | ||
14964 | wxPyEndAllowThreads(__tstate); | |
14965 | if (PyErr_Occurred()) SWIG_fail; | |
14966 | } | |
14967 | resultobj = PyInt_FromLong((long)result); | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | return NULL; | |
14971 | } | |
14972 | ||
14973 | ||
14974 | static PyObject *_wrap_PyCompositeShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14975 | PyObject *resultobj; | |
14976 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
14977 | wxDC *arg2 = 0 ; | |
14978 | double arg3 ; | |
14979 | double arg4 ; | |
14980 | double arg5 ; | |
14981 | double arg6 ; | |
14982 | bool arg7 = (bool) True ; | |
14983 | PyObject * obj0 = 0 ; | |
14984 | PyObject * obj1 = 0 ; | |
14985 | PyObject * obj6 = 0 ; | |
14986 | char *kwnames[] = { | |
14987 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14988 | }; | |
14989 | ||
14990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyCompositeShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14993 | if (arg2 == NULL) { | |
14994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14995 | } | |
14996 | if (obj6) { | |
14997 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14998 | if (PyErr_Occurred()) SWIG_fail; | |
14999 | } | |
15000 | { | |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
15003 | ||
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
15007 | Py_INCREF(Py_None); resultobj = Py_None; | |
15008 | return resultobj; | |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
15014 | static PyObject *_wrap_PyCompositeShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15015 | PyObject *resultobj; | |
15016 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15017 | bool arg2 ; | |
15018 | double arg3 ; | |
15019 | double arg4 ; | |
15020 | int arg5 = (int) 0 ; | |
15021 | int arg6 = (int) 0 ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | PyObject * obj1 = 0 ; | |
15024 | char *kwnames[] = { | |
15025 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15026 | }; | |
15027 | ||
15028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCompositeShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
15029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15030 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | { | |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
15035 | ||
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
15039 | Py_INCREF(Py_None); resultobj = Py_None; | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15049 | double arg2 ; | |
15050 | double arg3 ; | |
15051 | int arg4 = (int) 0 ; | |
15052 | int arg5 = (int) 0 ; | |
15053 | PyObject * obj0 = 0 ; | |
15054 | char *kwnames[] = { | |
15055 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15056 | }; | |
15057 | ||
15058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15060 | { | |
15061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15062 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
15063 | ||
15064 | wxPyEndAllowThreads(__tstate); | |
15065 | if (PyErr_Occurred()) SWIG_fail; | |
15066 | } | |
15067 | Py_INCREF(Py_None); resultobj = Py_None; | |
15068 | return resultobj; | |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
15074 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15075 | PyObject *resultobj; | |
15076 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15077 | double arg2 ; | |
15078 | double arg3 ; | |
15079 | int arg4 = (int) 0 ; | |
15080 | int arg5 = (int) 0 ; | |
15081 | PyObject * obj0 = 0 ; | |
15082 | char *kwnames[] = { | |
15083 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15084 | }; | |
15085 | ||
15086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15088 | { | |
15089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15090 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
15091 | ||
15092 | wxPyEndAllowThreads(__tstate); | |
15093 | if (PyErr_Occurred()) SWIG_fail; | |
15094 | } | |
15095 | Py_INCREF(Py_None); resultobj = Py_None; | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | return NULL; | |
15099 | } | |
15100 | ||
15101 | ||
15102 | static PyObject *_wrap_PyCompositeShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15103 | PyObject *resultobj; | |
15104 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15105 | bool arg2 ; | |
15106 | double arg3 ; | |
15107 | double arg4 ; | |
15108 | int arg5 = (int) 0 ; | |
15109 | int arg6 = (int) 0 ; | |
15110 | PyObject * obj0 = 0 ; | |
15111 | PyObject * obj1 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCompositeShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
15117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15118 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
15123 | ||
15124 | wxPyEndAllowThreads(__tstate); | |
15125 | if (PyErr_Occurred()) SWIG_fail; | |
15126 | } | |
15127 | Py_INCREF(Py_None); resultobj = Py_None; | |
15128 | return resultobj; | |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15137 | double arg2 ; | |
15138 | double arg3 ; | |
15139 | int arg4 = (int) 0 ; | |
15140 | int arg5 = (int) 0 ; | |
15141 | PyObject * obj0 = 0 ; | |
15142 | char *kwnames[] = { | |
15143 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15144 | }; | |
15145 | ||
15146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15148 | { | |
15149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15150 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
15151 | ||
15152 | wxPyEndAllowThreads(__tstate); | |
15153 | if (PyErr_Occurred()) SWIG_fail; | |
15154 | } | |
15155 | Py_INCREF(Py_None); resultobj = Py_None; | |
15156 | return resultobj; | |
15157 | fail: | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
15162 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15165 | double arg2 ; | |
15166 | double arg3 ; | |
15167 | int arg4 = (int) 0 ; | |
15168 | int arg5 = (int) 0 ; | |
15169 | PyObject * obj0 = 0 ; | |
15170 | char *kwnames[] = { | |
15171 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15172 | }; | |
15173 | ||
15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCompositeShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15176 | { | |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
15179 | ||
15180 | wxPyEndAllowThreads(__tstate); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | } | |
15183 | Py_INCREF(Py_None); resultobj = Py_None; | |
15184 | return resultobj; | |
15185 | fail: | |
15186 | return NULL; | |
15187 | } | |
15188 | ||
15189 | ||
15190 | static PyObject *_wrap_PyCompositeShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15191 | PyObject *resultobj; | |
15192 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15193 | wxDC *arg2 = 0 ; | |
15194 | double arg3 ; | |
15195 | double arg4 ; | |
15196 | double arg5 ; | |
15197 | double arg6 ; | |
15198 | PyObject * obj0 = 0 ; | |
15199 | PyObject * obj1 = 0 ; | |
15200 | char *kwnames[] = { | |
15201 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyCompositeShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
15205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15206 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15207 | if (arg2 == NULL) { | |
15208 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15209 | } | |
15210 | { | |
15211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15212 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
15213 | ||
15214 | wxPyEndAllowThreads(__tstate); | |
15215 | if (PyErr_Occurred()) SWIG_fail; | |
15216 | } | |
15217 | Py_INCREF(Py_None); resultobj = Py_None; | |
15218 | return resultobj; | |
15219 | fail: | |
15220 | return NULL; | |
15221 | } | |
15222 | ||
15223 | ||
15224 | static PyObject *_wrap_PyCompositeShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15225 | PyObject *resultobj; | |
15226 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15227 | wxDC *arg2 = 0 ; | |
15228 | PyObject * obj0 = 0 ; | |
15229 | PyObject * obj1 = 0 ; | |
15230 | char *kwnames[] = { | |
15231 | (char *) "self",(char *) "dc", NULL | |
15232 | }; | |
15233 | ||
15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
15235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15237 | if (arg2 == NULL) { | |
15238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15239 | } | |
15240 | { | |
15241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15242 | (arg1)->base_OnDrawControlPoints(*arg2); | |
15243 | ||
15244 | wxPyEndAllowThreads(__tstate); | |
15245 | if (PyErr_Occurred()) SWIG_fail; | |
15246 | } | |
15247 | Py_INCREF(Py_None); resultobj = Py_None; | |
15248 | return resultobj; | |
15249 | fail: | |
15250 | return NULL; | |
15251 | } | |
15252 | ||
15253 | ||
15254 | static PyObject *_wrap_PyCompositeShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15255 | PyObject *resultobj; | |
15256 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15257 | wxDC *arg2 = 0 ; | |
15258 | PyObject * obj0 = 0 ; | |
15259 | PyObject * obj1 = 0 ; | |
15260 | char *kwnames[] = { | |
15261 | (char *) "self",(char *) "dc", NULL | |
15262 | }; | |
15263 | ||
15264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
15265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15267 | if (arg2 == NULL) { | |
15268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15269 | } | |
15270 | { | |
15271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15272 | (arg1)->base_OnEraseControlPoints(*arg2); | |
15273 | ||
15274 | wxPyEndAllowThreads(__tstate); | |
15275 | if (PyErr_Occurred()) SWIG_fail; | |
15276 | } | |
15277 | Py_INCREF(Py_None); resultobj = Py_None; | |
15278 | return resultobj; | |
15279 | fail: | |
15280 | return NULL; | |
15281 | } | |
15282 | ||
15283 | ||
15284 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15285 | PyObject *resultobj; | |
15286 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15287 | wxDC *arg2 = 0 ; | |
15288 | bool arg3 = (bool) True ; | |
15289 | PyObject * obj0 = 0 ; | |
15290 | PyObject * obj1 = 0 ; | |
15291 | PyObject * obj2 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15298 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15299 | if (arg2 == NULL) { | |
15300 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15301 | } | |
15302 | if (obj2) { | |
15303 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15306 | { | |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
15309 | ||
15310 | wxPyEndAllowThreads(__tstate); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
15313 | Py_INCREF(Py_None); resultobj = Py_None; | |
15314 | return resultobj; | |
15315 | fail: | |
15316 | return NULL; | |
15317 | } | |
15318 | ||
15319 | ||
15320 | static PyObject *_wrap_PyCompositeShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15321 | PyObject *resultobj; | |
15322 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15323 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
15324 | bool arg3 ; | |
15325 | double arg4 ; | |
15326 | double arg5 ; | |
15327 | int arg6 = (int) 0 ; | |
15328 | int arg7 = (int) 0 ; | |
15329 | PyObject * obj0 = 0 ; | |
15330 | PyObject * obj1 = 0 ; | |
15331 | PyObject * obj2 = 0 ; | |
15332 | char *kwnames[] = { | |
15333 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15334 | }; | |
15335 | ||
15336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyCompositeShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
15337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15338 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15339 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | { | |
15342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15343 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
15344 | ||
15345 | wxPyEndAllowThreads(__tstate); | |
15346 | if (PyErr_Occurred()) SWIG_fail; | |
15347 | } | |
15348 | Py_INCREF(Py_None); resultobj = Py_None; | |
15349 | return resultobj; | |
15350 | fail: | |
15351 | return NULL; | |
15352 | } | |
15353 | ||
15354 | ||
15355 | static PyObject *_wrap_PyCompositeShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15356 | PyObject *resultobj; | |
15357 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15358 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
15359 | double arg3 ; | |
15360 | double arg4 ; | |
15361 | int arg5 = (int) 0 ; | |
15362 | int arg6 = (int) 0 ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | PyObject * obj1 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15367 | }; | |
15368 | ||
15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCompositeShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
15370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15371 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | Py_INCREF(Py_None); resultobj = Py_None; | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_PyCompositeShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15389 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
15390 | double arg3 ; | |
15391 | double arg4 ; | |
15392 | int arg5 = (int) 0 ; | |
15393 | int arg6 = (int) 0 ; | |
15394 | PyObject * obj0 = 0 ; | |
15395 | PyObject * obj1 = 0 ; | |
15396 | char *kwnames[] = { | |
15397 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15398 | }; | |
15399 | ||
15400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCompositeShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
15401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15403 | { | |
15404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15405 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
15406 | ||
15407 | wxPyEndAllowThreads(__tstate); | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | } | |
15410 | Py_INCREF(Py_None); resultobj = Py_None; | |
15411 | return resultobj; | |
15412 | fail: | |
15413 | return NULL; | |
15414 | } | |
15415 | ||
15416 | ||
15417 | static PyObject *_wrap_PyCompositeShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15418 | PyObject *resultobj; | |
15419 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15420 | double arg2 ; | |
15421 | double arg3 ; | |
15422 | PyObject * obj0 = 0 ; | |
15423 | char *kwnames[] = { | |
15424 | (char *) "self",(char *) "w",(char *) "h", NULL | |
15425 | }; | |
15426 | ||
15427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCompositeShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15429 | { | |
15430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15431 | (arg1)->base_OnBeginSize(arg2,arg3); | |
15432 | ||
15433 | wxPyEndAllowThreads(__tstate); | |
15434 | if (PyErr_Occurred()) SWIG_fail; | |
15435 | } | |
15436 | Py_INCREF(Py_None); resultobj = Py_None; | |
15437 | return resultobj; | |
15438 | fail: | |
15439 | return NULL; | |
15440 | } | |
15441 | ||
15442 | ||
15443 | static PyObject *_wrap_PyCompositeShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15444 | PyObject *resultobj; | |
15445 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
15446 | double arg2 ; | |
15447 | double arg3 ; | |
15448 | PyObject * obj0 = 0 ; | |
15449 | char *kwnames[] = { | |
15450 | (char *) "self",(char *) "w",(char *) "h", NULL | |
15451 | }; | |
15452 | ||
15453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCompositeShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCompositeShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15455 | { | |
15456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15457 | (arg1)->base_OnEndSize(arg2,arg3); | |
15458 | ||
15459 | wxPyEndAllowThreads(__tstate); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | Py_INCREF(Py_None); resultobj = Py_None; | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
15469 | static PyObject * PyCompositeShape_swigregister(PyObject *self, PyObject *args) { | |
15470 | PyObject *obj; | |
15471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15472 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCompositeShape, obj); | |
15473 | Py_INCREF(obj); | |
15474 | return Py_BuildValue((char *)""); | |
15475 | } | |
15476 | static PyObject *_wrap_new_PyDividedShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15477 | PyObject *resultobj; | |
15478 | double arg1 = (double) 0.0 ; | |
15479 | double arg2 = (double) 0.0 ; | |
15480 | wxPyDividedShape *result; | |
15481 | char *kwnames[] = { | |
15482 | (char *) "width",(char *) "height", NULL | |
15483 | }; | |
15484 | ||
15485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_PyDividedShape",kwnames,&arg1,&arg2)) goto fail; | |
15486 | { | |
15487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15488 | result = (wxPyDividedShape *)new wxPyDividedShape(arg1,arg2); | |
15489 | ||
15490 | wxPyEndAllowThreads(__tstate); | |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
15492 | } | |
15493 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDividedShape, 1); | |
15494 | return resultobj; | |
15495 | fail: | |
15496 | return NULL; | |
15497 | } | |
15498 | ||
15499 | ||
15500 | static PyObject *_wrap_PyDividedShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15501 | PyObject *resultobj; | |
15502 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15503 | PyObject *arg2 = (PyObject *) 0 ; | |
15504 | PyObject *arg3 = (PyObject *) 0 ; | |
15505 | PyObject * obj0 = 0 ; | |
15506 | PyObject * obj1 = 0 ; | |
15507 | PyObject * obj2 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15514 | arg2 = obj1; | |
15515 | arg3 = obj2; | |
15516 | { | |
15517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15518 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15519 | ||
15520 | wxPyEndAllowThreads(__tstate); | |
15521 | if (PyErr_Occurred()) SWIG_fail; | |
15522 | } | |
15523 | Py_INCREF(Py_None); resultobj = Py_None; | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | static PyObject *_wrap_PyDividedShape_EditRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj; | |
15532 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | char *kwnames[] = { | |
15535 | (char *) "self", NULL | |
15536 | }; | |
15537 | ||
15538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_EditRegions",kwnames,&obj0)) goto fail; | |
15539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15540 | { | |
15541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15542 | (arg1)->EditRegions(); | |
15543 | ||
15544 | wxPyEndAllowThreads(__tstate); | |
15545 | if (PyErr_Occurred()) SWIG_fail; | |
15546 | } | |
15547 | Py_INCREF(Py_None); resultobj = Py_None; | |
15548 | return resultobj; | |
15549 | fail: | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
15554 | static PyObject *_wrap_PyDividedShape_SetRegionSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15555 | PyObject *resultobj; | |
15556 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15557 | PyObject * obj0 = 0 ; | |
15558 | char *kwnames[] = { | |
15559 | (char *) "self", NULL | |
15560 | }; | |
15561 | ||
15562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_SetRegionSizes",kwnames,&obj0)) goto fail; | |
15563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15564 | { | |
15565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15566 | (arg1)->SetRegionSizes(); | |
15567 | ||
15568 | wxPyEndAllowThreads(__tstate); | |
15569 | if (PyErr_Occurred()) SWIG_fail; | |
15570 | } | |
15571 | Py_INCREF(Py_None); resultobj = Py_None; | |
15572 | return resultobj; | |
15573 | fail: | |
15574 | return NULL; | |
15575 | } | |
15576 | ||
15577 | ||
15578 | static PyObject *_wrap_PyDividedShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15579 | PyObject *resultobj; | |
15580 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15581 | PyObject * obj0 = 0 ; | |
15582 | char *kwnames[] = { | |
15583 | (char *) "self", NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
15587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15588 | { | |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | (arg1)->base_OnDelete(); | |
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 | ||
15602 | static PyObject *_wrap_PyDividedShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15603 | PyObject *resultobj; | |
15604 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15605 | wxDC *arg2 = 0 ; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | PyObject * obj1 = 0 ; | |
15608 | char *kwnames[] = { | |
15609 | (char *) "self",(char *) "dc", NULL | |
15610 | }; | |
15611 | ||
15612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
15613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15614 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15615 | if (arg2 == NULL) { | |
15616 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15617 | } | |
15618 | { | |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15620 | (arg1)->base_OnDraw(*arg2); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
15625 | Py_INCREF(Py_None); resultobj = Py_None; | |
15626 | return resultobj; | |
15627 | fail: | |
15628 | return NULL; | |
15629 | } | |
15630 | ||
15631 | ||
15632 | static PyObject *_wrap_PyDividedShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15633 | PyObject *resultobj; | |
15634 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15635 | wxDC *arg2 = 0 ; | |
15636 | PyObject * obj0 = 0 ; | |
15637 | PyObject * obj1 = 0 ; | |
15638 | char *kwnames[] = { | |
15639 | (char *) "self",(char *) "dc", NULL | |
15640 | }; | |
15641 | ||
15642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
15643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15645 | if (arg2 == NULL) { | |
15646 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15647 | } | |
15648 | { | |
15649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15650 | (arg1)->base_OnDrawContents(*arg2); | |
15651 | ||
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
15655 | Py_INCREF(Py_None); resultobj = Py_None; | |
15656 | return resultobj; | |
15657 | fail: | |
15658 | return NULL; | |
15659 | } | |
15660 | ||
15661 | ||
15662 | static PyObject *_wrap_PyDividedShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15663 | PyObject *resultobj; | |
15664 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15665 | wxDC *arg2 = 0 ; | |
15666 | bool arg3 = (bool) FALSE ; | |
15667 | PyObject * obj0 = 0 ; | |
15668 | PyObject * obj1 = 0 ; | |
15669 | PyObject * obj2 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15677 | if (arg2 == NULL) { | |
15678 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15679 | } | |
15680 | if (obj2) { | |
15681 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
15682 | if (PyErr_Occurred()) SWIG_fail; | |
15683 | } | |
15684 | { | |
15685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15686 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
15687 | ||
15688 | wxPyEndAllowThreads(__tstate); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | Py_INCREF(Py_None); resultobj = Py_None; | |
15692 | return resultobj; | |
15693 | fail: | |
15694 | return NULL; | |
15695 | } | |
15696 | ||
15697 | ||
15698 | static PyObject *_wrap_PyDividedShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15699 | PyObject *resultobj; | |
15700 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15701 | wxDC *arg2 = 0 ; | |
15702 | PyObject * obj0 = 0 ; | |
15703 | PyObject * obj1 = 0 ; | |
15704 | char *kwnames[] = { | |
15705 | (char *) "self",(char *) "dc", NULL | |
15706 | }; | |
15707 | ||
15708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
15709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15710 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15711 | if (arg2 == NULL) { | |
15712 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15713 | } | |
15714 | { | |
15715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15716 | (arg1)->base_OnMoveLinks(*arg2); | |
15717 | ||
15718 | wxPyEndAllowThreads(__tstate); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | Py_INCREF(Py_None); resultobj = Py_None; | |
15722 | return resultobj; | |
15723 | fail: | |
15724 | return NULL; | |
15725 | } | |
15726 | ||
15727 | ||
15728 | static PyObject *_wrap_PyDividedShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15729 | PyObject *resultobj; | |
15730 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15731 | wxDC *arg2 = 0 ; | |
15732 | PyObject * obj0 = 0 ; | |
15733 | PyObject * obj1 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self",(char *) "dc", NULL | |
15736 | }; | |
15737 | ||
15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
15739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15740 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15741 | if (arg2 == NULL) { | |
15742 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15743 | } | |
15744 | { | |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15746 | (arg1)->base_OnErase(*arg2); | |
15747 | ||
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | Py_INCREF(Py_None); resultobj = Py_None; | |
15752 | return resultobj; | |
15753 | fail: | |
15754 | return NULL; | |
15755 | } | |
15756 | ||
15757 | ||
15758 | static PyObject *_wrap_PyDividedShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15759 | PyObject *resultobj; | |
15760 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15761 | wxDC *arg2 = 0 ; | |
15762 | PyObject * obj0 = 0 ; | |
15763 | PyObject * obj1 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "self",(char *) "dc", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15770 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15771 | if (arg2 == NULL) { | |
15772 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15773 | } | |
15774 | { | |
15775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15776 | (arg1)->base_OnEraseContents(*arg2); | |
15777 | ||
15778 | wxPyEndAllowThreads(__tstate); | |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | Py_INCREF(Py_None); resultobj = Py_None; | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | static PyObject *_wrap_PyDividedShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj; | |
15790 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15791 | wxDC *arg2 = 0 ; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | PyObject * obj1 = 0 ; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "self",(char *) "dc", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
15799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15800 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15801 | if (arg2 == NULL) { | |
15802 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15803 | } | |
15804 | { | |
15805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15806 | (arg1)->base_OnHighlight(*arg2); | |
15807 | ||
15808 | wxPyEndAllowThreads(__tstate); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | } | |
15811 | Py_INCREF(Py_None); resultobj = Py_None; | |
15812 | return resultobj; | |
15813 | fail: | |
15814 | return NULL; | |
15815 | } | |
15816 | ||
15817 | ||
15818 | static PyObject *_wrap_PyDividedShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15819 | PyObject *resultobj; | |
15820 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15821 | double arg2 ; | |
15822 | double arg3 ; | |
15823 | int arg4 = (int) 0 ; | |
15824 | int arg5 = (int) 0 ; | |
15825 | PyObject * obj0 = 0 ; | |
15826 | char *kwnames[] = { | |
15827 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15828 | }; | |
15829 | ||
15830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15832 | { | |
15833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15834 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
15835 | ||
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | Py_INCREF(Py_None); resultobj = Py_None; | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | static PyObject *_wrap_PyDividedShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15847 | PyObject *resultobj; | |
15848 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15849 | double arg2 ; | |
15850 | double arg3 ; | |
15851 | int arg4 = (int) 0 ; | |
15852 | int arg5 = (int) 0 ; | |
15853 | PyObject * obj0 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15860 | { | |
15861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15862 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
15863 | ||
15864 | wxPyEndAllowThreads(__tstate); | |
15865 | if (PyErr_Occurred()) SWIG_fail; | |
15866 | } | |
15867 | Py_INCREF(Py_None); resultobj = Py_None; | |
15868 | return resultobj; | |
15869 | fail: | |
15870 | return NULL; | |
15871 | } | |
15872 | ||
15873 | ||
15874 | static PyObject *_wrap_PyDividedShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15875 | PyObject *resultobj; | |
15876 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15877 | double arg2 ; | |
15878 | double arg3 ; | |
15879 | int arg4 = (int) 0 ; | |
15880 | int arg5 = (int) 0 ; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
15887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15888 | { | |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
15891 | ||
15892 | wxPyEndAllowThreads(__tstate); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | } | |
15895 | Py_INCREF(Py_None); resultobj = Py_None; | |
15896 | return resultobj; | |
15897 | fail: | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_PyDividedShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15905 | double arg2 ; | |
15906 | double arg3 ; | |
15907 | PyObject * obj0 = 0 ; | |
15908 | char *kwnames[] = { | |
15909 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15910 | }; | |
15911 | ||
15912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDividedShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | (arg1)->base_OnSize(arg2,arg3); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | Py_INCREF(Py_None); resultobj = Py_None; | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | return NULL; | |
15925 | } | |
15926 | ||
15927 | ||
15928 | static PyObject *_wrap_PyDividedShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15929 | PyObject *resultobj; | |
15930 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15931 | wxDC *arg2 = 0 ; | |
15932 | double arg3 ; | |
15933 | double arg4 ; | |
15934 | double arg5 ; | |
15935 | double arg6 ; | |
15936 | bool arg7 = (bool) True ; | |
15937 | bool result; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | PyObject * obj1 = 0 ; | |
15940 | PyObject * obj6 = 0 ; | |
15941 | char *kwnames[] = { | |
15942 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
15943 | }; | |
15944 | ||
15945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDividedShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
15946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15947 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15948 | if (arg2 == NULL) { | |
15949 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15950 | } | |
15951 | if (obj6) { | |
15952 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
15953 | if (PyErr_Occurred()) SWIG_fail; | |
15954 | } | |
15955 | { | |
15956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15957 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
15958 | ||
15959 | wxPyEndAllowThreads(__tstate); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
15962 | resultobj = PyInt_FromLong((long)result); | |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
15969 | static PyObject *_wrap_PyDividedShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15970 | PyObject *resultobj; | |
15971 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
15972 | wxDC *arg2 = 0 ; | |
15973 | double arg3 ; | |
15974 | double arg4 ; | |
15975 | double arg5 ; | |
15976 | double arg6 ; | |
15977 | bool arg7 = (bool) True ; | |
15978 | PyObject * obj0 = 0 ; | |
15979 | PyObject * obj1 = 0 ; | |
15980 | PyObject * obj6 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDividedShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
15986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15987 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15988 | if (arg2 == NULL) { | |
15989 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15990 | } | |
15991 | if (obj6) { | |
15992 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | { | |
15996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15997 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
15998 | ||
15999 | wxPyEndAllowThreads(__tstate); | |
16000 | if (PyErr_Occurred()) SWIG_fail; | |
16001 | } | |
16002 | Py_INCREF(Py_None); resultobj = Py_None; | |
16003 | return resultobj; | |
16004 | fail: | |
16005 | return NULL; | |
16006 | } | |
16007 | ||
16008 | ||
16009 | static PyObject *_wrap_PyDividedShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16010 | PyObject *resultobj; | |
16011 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16012 | bool arg2 ; | |
16013 | double arg3 ; | |
16014 | double arg4 ; | |
16015 | int arg5 = (int) 0 ; | |
16016 | int arg6 = (int) 0 ; | |
16017 | PyObject * obj0 = 0 ; | |
16018 | PyObject * obj1 = 0 ; | |
16019 | char *kwnames[] = { | |
16020 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16021 | }; | |
16022 | ||
16023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDividedShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
16024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16025 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16026 | if (PyErr_Occurred()) SWIG_fail; | |
16027 | { | |
16028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16029 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16030 | ||
16031 | wxPyEndAllowThreads(__tstate); | |
16032 | if (PyErr_Occurred()) SWIG_fail; | |
16033 | } | |
16034 | Py_INCREF(Py_None); resultobj = Py_None; | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | return NULL; | |
16038 | } | |
16039 | ||
16040 | ||
16041 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16042 | PyObject *resultobj; | |
16043 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16044 | double arg2 ; | |
16045 | double arg3 ; | |
16046 | int arg4 = (int) 0 ; | |
16047 | int arg5 = (int) 0 ; | |
16048 | PyObject * obj0 = 0 ; | |
16049 | char *kwnames[] = { | |
16050 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16051 | }; | |
16052 | ||
16053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16055 | { | |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
16058 | ||
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | Py_INCREF(Py_None); resultobj = Py_None; | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | return NULL; | |
16066 | } | |
16067 | ||
16068 | ||
16069 | static PyObject *_wrap_PyDividedShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16070 | PyObject *resultobj; | |
16071 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16072 | double arg2 ; | |
16073 | double arg3 ; | |
16074 | int arg4 = (int) 0 ; | |
16075 | int arg5 = (int) 0 ; | |
16076 | PyObject * obj0 = 0 ; | |
16077 | char *kwnames[] = { | |
16078 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16079 | }; | |
16080 | ||
16081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | Py_INCREF(Py_None); resultobj = Py_None; | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject *_wrap_PyDividedShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16098 | PyObject *resultobj; | |
16099 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16100 | bool arg2 ; | |
16101 | double arg3 ; | |
16102 | double arg4 ; | |
16103 | int arg5 = (int) 0 ; | |
16104 | int arg6 = (int) 0 ; | |
16105 | PyObject * obj0 = 0 ; | |
16106 | PyObject * obj1 = 0 ; | |
16107 | char *kwnames[] = { | |
16108 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16109 | }; | |
16110 | ||
16111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDividedShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
16112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16113 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | { | |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
16118 | ||
16119 | wxPyEndAllowThreads(__tstate); | |
16120 | if (PyErr_Occurred()) SWIG_fail; | |
16121 | } | |
16122 | Py_INCREF(Py_None); resultobj = Py_None; | |
16123 | return resultobj; | |
16124 | fail: | |
16125 | return NULL; | |
16126 | } | |
16127 | ||
16128 | ||
16129 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16130 | PyObject *resultobj; | |
16131 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16132 | double arg2 ; | |
16133 | double arg3 ; | |
16134 | int arg4 = (int) 0 ; | |
16135 | int arg5 = (int) 0 ; | |
16136 | PyObject * obj0 = 0 ; | |
16137 | char *kwnames[] = { | |
16138 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16139 | }; | |
16140 | ||
16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16143 | { | |
16144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16145 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
16146 | ||
16147 | wxPyEndAllowThreads(__tstate); | |
16148 | if (PyErr_Occurred()) SWIG_fail; | |
16149 | } | |
16150 | Py_INCREF(Py_None); resultobj = Py_None; | |
16151 | return resultobj; | |
16152 | fail: | |
16153 | return NULL; | |
16154 | } | |
16155 | ||
16156 | ||
16157 | static PyObject *_wrap_PyDividedShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16158 | PyObject *resultobj; | |
16159 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16160 | double arg2 ; | |
16161 | double arg3 ; | |
16162 | int arg4 = (int) 0 ; | |
16163 | int arg5 = (int) 0 ; | |
16164 | PyObject * obj0 = 0 ; | |
16165 | char *kwnames[] = { | |
16166 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16167 | }; | |
16168 | ||
16169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDividedShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16171 | { | |
16172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16173 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
16174 | ||
16175 | wxPyEndAllowThreads(__tstate); | |
16176 | if (PyErr_Occurred()) SWIG_fail; | |
16177 | } | |
16178 | Py_INCREF(Py_None); resultobj = Py_None; | |
16179 | return resultobj; | |
16180 | fail: | |
16181 | return NULL; | |
16182 | } | |
16183 | ||
16184 | ||
16185 | static PyObject *_wrap_PyDividedShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16186 | PyObject *resultobj; | |
16187 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16188 | wxDC *arg2 = 0 ; | |
16189 | double arg3 ; | |
16190 | double arg4 ; | |
16191 | double arg5 ; | |
16192 | double arg6 ; | |
16193 | PyObject * obj0 = 0 ; | |
16194 | PyObject * obj1 = 0 ; | |
16195 | char *kwnames[] = { | |
16196 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
16197 | }; | |
16198 | ||
16199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyDividedShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
16200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16201 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16202 | if (arg2 == NULL) { | |
16203 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16207 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
16208 | ||
16209 | wxPyEndAllowThreads(__tstate); | |
16210 | if (PyErr_Occurred()) SWIG_fail; | |
16211 | } | |
16212 | Py_INCREF(Py_None); resultobj = Py_None; | |
16213 | return resultobj; | |
16214 | fail: | |
16215 | return NULL; | |
16216 | } | |
16217 | ||
16218 | ||
16219 | static PyObject *_wrap_PyDividedShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16220 | PyObject *resultobj; | |
16221 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16222 | wxDC *arg2 = 0 ; | |
16223 | PyObject * obj0 = 0 ; | |
16224 | PyObject * obj1 = 0 ; | |
16225 | char *kwnames[] = { | |
16226 | (char *) "self",(char *) "dc", NULL | |
16227 | }; | |
16228 | ||
16229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
16230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16232 | if (arg2 == NULL) { | |
16233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16234 | } | |
16235 | { | |
16236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16237 | (arg1)->base_OnDrawControlPoints(*arg2); | |
16238 | ||
16239 | wxPyEndAllowThreads(__tstate); | |
16240 | if (PyErr_Occurred()) SWIG_fail; | |
16241 | } | |
16242 | Py_INCREF(Py_None); resultobj = Py_None; | |
16243 | return resultobj; | |
16244 | fail: | |
16245 | return NULL; | |
16246 | } | |
16247 | ||
16248 | ||
16249 | static PyObject *_wrap_PyDividedShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16250 | PyObject *resultobj; | |
16251 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16252 | wxDC *arg2 = 0 ; | |
16253 | PyObject * obj0 = 0 ; | |
16254 | PyObject * obj1 = 0 ; | |
16255 | char *kwnames[] = { | |
16256 | (char *) "self",(char *) "dc", NULL | |
16257 | }; | |
16258 | ||
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16262 | if (arg2 == NULL) { | |
16263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16264 | } | |
16265 | { | |
16266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16267 | (arg1)->base_OnEraseControlPoints(*arg2); | |
16268 | ||
16269 | wxPyEndAllowThreads(__tstate); | |
16270 | if (PyErr_Occurred()) SWIG_fail; | |
16271 | } | |
16272 | Py_INCREF(Py_None); resultobj = Py_None; | |
16273 | return resultobj; | |
16274 | fail: | |
16275 | return NULL; | |
16276 | } | |
16277 | ||
16278 | ||
16279 | static PyObject *_wrap_PyDividedShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16280 | PyObject *resultobj; | |
16281 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16282 | wxDC *arg2 = 0 ; | |
16283 | bool arg3 = (bool) True ; | |
16284 | PyObject * obj0 = 0 ; | |
16285 | PyObject * obj1 = 0 ; | |
16286 | PyObject * obj2 = 0 ; | |
16287 | char *kwnames[] = { | |
16288 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
16289 | }; | |
16290 | ||
16291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16293 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16294 | if (arg2 == NULL) { | |
16295 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16296 | } | |
16297 | if (obj2) { | |
16298 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | { | |
16302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16303 | (arg1)->base_OnMoveLink(*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 | ||
16315 | static PyObject *_wrap_PyDividedShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16316 | PyObject *resultobj; | |
16317 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16318 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16319 | bool arg3 ; | |
16320 | double arg4 ; | |
16321 | double arg5 ; | |
16322 | int arg6 = (int) 0 ; | |
16323 | int arg7 = (int) 0 ; | |
16324 | PyObject * obj0 = 0 ; | |
16325 | PyObject * obj1 = 0 ; | |
16326 | PyObject * obj2 = 0 ; | |
16327 | char *kwnames[] = { | |
16328 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16329 | }; | |
16330 | ||
16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyDividedShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
16332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16333 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16334 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | { | |
16337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16338 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
16339 | ||
16340 | wxPyEndAllowThreads(__tstate); | |
16341 | if (PyErr_Occurred()) SWIG_fail; | |
16342 | } | |
16343 | Py_INCREF(Py_None); resultobj = Py_None; | |
16344 | return resultobj; | |
16345 | fail: | |
16346 | return NULL; | |
16347 | } | |
16348 | ||
16349 | ||
16350 | static PyObject *_wrap_PyDividedShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16351 | PyObject *resultobj; | |
16352 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16353 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16354 | double arg3 ; | |
16355 | double arg4 ; | |
16356 | int arg5 = (int) 0 ; | |
16357 | int arg6 = (int) 0 ; | |
16358 | PyObject * obj0 = 0 ; | |
16359 | PyObject * obj1 = 0 ; | |
16360 | char *kwnames[] = { | |
16361 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16362 | }; | |
16363 | ||
16364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDividedShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
16365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16366 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | Py_INCREF(Py_None); resultobj = Py_None; | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject *_wrap_PyDividedShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16382 | PyObject *resultobj; | |
16383 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16384 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16385 | double arg3 ; | |
16386 | double arg4 ; | |
16387 | int arg5 = (int) 0 ; | |
16388 | int arg6 = (int) 0 ; | |
16389 | PyObject * obj0 = 0 ; | |
16390 | PyObject * obj1 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDividedShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
16396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16398 | { | |
16399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16400 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16401 | ||
16402 | wxPyEndAllowThreads(__tstate); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
16405 | Py_INCREF(Py_None); resultobj = Py_None; | |
16406 | return resultobj; | |
16407 | fail: | |
16408 | return NULL; | |
16409 | } | |
16410 | ||
16411 | ||
16412 | static PyObject *_wrap_PyDividedShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16413 | PyObject *resultobj; | |
16414 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16415 | double arg2 ; | |
16416 | double arg3 ; | |
16417 | PyObject * obj0 = 0 ; | |
16418 | char *kwnames[] = { | |
16419 | (char *) "self",(char *) "w",(char *) "h", NULL | |
16420 | }; | |
16421 | ||
16422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDividedShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16424 | { | |
16425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16426 | (arg1)->base_OnBeginSize(arg2,arg3); | |
16427 | ||
16428 | wxPyEndAllowThreads(__tstate); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
16431 | Py_INCREF(Py_None); resultobj = Py_None; | |
16432 | return resultobj; | |
16433 | fail: | |
16434 | return NULL; | |
16435 | } | |
16436 | ||
16437 | ||
16438 | static PyObject *_wrap_PyDividedShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16439 | PyObject *resultobj; | |
16440 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
16441 | double arg2 ; | |
16442 | double arg3 ; | |
16443 | PyObject * obj0 = 0 ; | |
16444 | char *kwnames[] = { | |
16445 | (char *) "self",(char *) "w",(char *) "h", NULL | |
16446 | }; | |
16447 | ||
16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDividedShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDividedShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16450 | { | |
16451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16452 | (arg1)->base_OnEndSize(arg2,arg3); | |
16453 | ||
16454 | wxPyEndAllowThreads(__tstate); | |
16455 | if (PyErr_Occurred()) SWIG_fail; | |
16456 | } | |
16457 | Py_INCREF(Py_None); resultobj = Py_None; | |
16458 | return resultobj; | |
16459 | fail: | |
16460 | return NULL; | |
16461 | } | |
16462 | ||
16463 | ||
16464 | static PyObject * PyDividedShape_swigregister(PyObject *self, PyObject *args) { | |
16465 | PyObject *obj; | |
16466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16467 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDividedShape, obj); | |
16468 | Py_INCREF(obj); | |
16469 | return Py_BuildValue((char *)""); | |
16470 | } | |
16471 | static PyObject *_wrap_new_PyDivisionShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16472 | PyObject *resultobj; | |
16473 | wxPyDivisionShape *result; | |
16474 | char *kwnames[] = { | |
16475 | NULL | |
16476 | }; | |
16477 | ||
16478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDivisionShape",kwnames)) goto fail; | |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | result = (wxPyDivisionShape *)new wxPyDivisionShape(); | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | { | |
16487 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
16488 | } | |
16489 | return resultobj; | |
16490 | fail: | |
16491 | return NULL; | |
16492 | } | |
16493 | ||
16494 | ||
16495 | static PyObject *_wrap_PyDivisionShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16496 | PyObject *resultobj; | |
16497 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16498 | PyObject *arg2 = (PyObject *) 0 ; | |
16499 | PyObject *arg3 = (PyObject *) 0 ; | |
16500 | PyObject * obj0 = 0 ; | |
16501 | PyObject * obj1 = 0 ; | |
16502 | PyObject * obj2 = 0 ; | |
16503 | char *kwnames[] = { | |
16504 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16505 | }; | |
16506 | ||
16507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16509 | arg2 = obj1; | |
16510 | arg3 = obj2; | |
16511 | { | |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16513 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16514 | ||
16515 | wxPyEndAllowThreads(__tstate); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | } | |
16518 | Py_INCREF(Py_None); resultobj = Py_None; | |
16519 | return resultobj; | |
16520 | fail: | |
16521 | return NULL; | |
16522 | } | |
16523 | ||
16524 | ||
16525 | static PyObject *_wrap_PyDivisionShape_AdjustBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16526 | PyObject *resultobj; | |
16527 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16528 | double arg2 ; | |
16529 | bool arg3 ; | |
16530 | PyObject * obj0 = 0 ; | |
16531 | PyObject * obj2 = 0 ; | |
16532 | char *kwnames[] = { | |
16533 | (char *) "self",(char *) "bottom",(char *) "test", NULL | |
16534 | }; | |
16535 | ||
16536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO:PyDivisionShape_AdjustBottom",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
16537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16538 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | { | |
16541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16542 | (arg1)->AdjustBottom(arg2,arg3); | |
16543 | ||
16544 | wxPyEndAllowThreads(__tstate); | |
16545 | if (PyErr_Occurred()) SWIG_fail; | |
16546 | } | |
16547 | Py_INCREF(Py_None); resultobj = Py_None; | |
16548 | return resultobj; | |
16549 | fail: | |
16550 | return NULL; | |
16551 | } | |
16552 | ||
16553 | ||
16554 | static PyObject *_wrap_PyDivisionShape_AdjustLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16555 | PyObject *resultobj; | |
16556 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16557 | double arg2 ; | |
16558 | bool arg3 ; | |
16559 | PyObject * obj0 = 0 ; | |
16560 | PyObject * obj2 = 0 ; | |
16561 | char *kwnames[] = { | |
16562 | (char *) "self",(char *) "left",(char *) "test", NULL | |
16563 | }; | |
16564 | ||
16565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO:PyDivisionShape_AdjustLeft",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
16566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16567 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | { | |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16571 | (arg1)->AdjustLeft(arg2,arg3); | |
16572 | ||
16573 | wxPyEndAllowThreads(__tstate); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | } | |
16576 | Py_INCREF(Py_None); resultobj = Py_None; | |
16577 | return resultobj; | |
16578 | fail: | |
16579 | return NULL; | |
16580 | } | |
16581 | ||
16582 | ||
16583 | static PyObject *_wrap_PyDivisionShape_AdjustRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16584 | PyObject *resultobj; | |
16585 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16586 | double arg2 ; | |
16587 | bool arg3 ; | |
16588 | PyObject * obj0 = 0 ; | |
16589 | PyObject * obj2 = 0 ; | |
16590 | char *kwnames[] = { | |
16591 | (char *) "self",(char *) "right",(char *) "test", NULL | |
16592 | }; | |
16593 | ||
16594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO:PyDivisionShape_AdjustRight",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
16595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16596 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16597 | if (PyErr_Occurred()) SWIG_fail; | |
16598 | { | |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | (arg1)->AdjustRight(arg2,arg3); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | Py_INCREF(Py_None); resultobj = Py_None; | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_PyDivisionShape_AdjustTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16615 | double arg2 ; | |
16616 | bool arg3 ; | |
16617 | PyObject * obj0 = 0 ; | |
16618 | PyObject * obj2 = 0 ; | |
16619 | char *kwnames[] = { | |
16620 | (char *) "self",(char *) "top",(char *) "test", NULL | |
16621 | }; | |
16622 | ||
16623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO:PyDivisionShape_AdjustTop",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
16624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16625 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16626 | if (PyErr_Occurred()) SWIG_fail; | |
16627 | { | |
16628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16629 | (arg1)->AdjustTop(arg2,arg3); | |
16630 | ||
16631 | wxPyEndAllowThreads(__tstate); | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | } | |
16634 | Py_INCREF(Py_None); resultobj = Py_None; | |
16635 | return resultobj; | |
16636 | fail: | |
16637 | return NULL; | |
16638 | } | |
16639 | ||
16640 | ||
16641 | static PyObject *_wrap_PyDivisionShape_Divide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16642 | PyObject *resultobj; | |
16643 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16644 | int arg2 ; | |
16645 | PyObject * obj0 = 0 ; | |
16646 | char *kwnames[] = { | |
16647 | (char *) "self",(char *) "direction", NULL | |
16648 | }; | |
16649 | ||
16650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyDivisionShape_Divide",kwnames,&obj0,&arg2)) goto fail; | |
16651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16652 | { | |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | (arg1)->Divide(arg2); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | Py_INCREF(Py_None); resultobj = Py_None; | |
16660 | return resultobj; | |
16661 | fail: | |
16662 | return NULL; | |
16663 | } | |
16664 | ||
16665 | ||
16666 | static PyObject *_wrap_PyDivisionShape_EditEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16667 | PyObject *resultobj; | |
16668 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16669 | int arg2 ; | |
16670 | PyObject * obj0 = 0 ; | |
16671 | char *kwnames[] = { | |
16672 | (char *) "self",(char *) "side", NULL | |
16673 | }; | |
16674 | ||
16675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyDivisionShape_EditEdge",kwnames,&obj0,&arg2)) goto fail; | |
16676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | (arg1)->EditEdge(arg2); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | Py_INCREF(Py_None); resultobj = Py_None; | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject *_wrap_PyDivisionShape_GetBottomSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj; | |
16693 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16694 | wxPyDivisionShape *result; | |
16695 | PyObject * obj0 = 0 ; | |
16696 | char *kwnames[] = { | |
16697 | (char *) "self", NULL | |
16698 | }; | |
16699 | ||
16700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetBottomSide",kwnames,&obj0)) goto fail; | |
16701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16702 | { | |
16703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16704 | result = (wxPyDivisionShape *)(arg1)->GetBottomSide(); | |
16705 | ||
16706 | wxPyEndAllowThreads(__tstate); | |
16707 | if (PyErr_Occurred()) SWIG_fail; | |
16708 | } | |
16709 | { | |
16710 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
16711 | } | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
16718 | static PyObject *_wrap_PyDivisionShape_GetHandleSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16719 | PyObject *resultobj; | |
16720 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16721 | int result; | |
16722 | PyObject * obj0 = 0 ; | |
16723 | char *kwnames[] = { | |
16724 | (char *) "self", NULL | |
16725 | }; | |
16726 | ||
16727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetHandleSide",kwnames,&obj0)) goto fail; | |
16728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16729 | { | |
16730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16731 | result = (int)(arg1)->GetHandleSide(); | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | resultobj = PyInt_FromLong((long)result); | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | return NULL; | |
16740 | } | |
16741 | ||
16742 | ||
16743 | static PyObject *_wrap_PyDivisionShape_GetLeftSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16744 | PyObject *resultobj; | |
16745 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16746 | wxPyDivisionShape *result; | |
16747 | PyObject * obj0 = 0 ; | |
16748 | char *kwnames[] = { | |
16749 | (char *) "self", NULL | |
16750 | }; | |
16751 | ||
16752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSide",kwnames,&obj0)) goto fail; | |
16753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16754 | { | |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | result = (wxPyDivisionShape *)(arg1)->GetLeftSide(); | |
16757 | ||
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
16761 | { | |
16762 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
16763 | } | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_PyDivisionShape_GetLeftSideColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16773 | wxString result; | |
16774 | PyObject * obj0 = 0 ; | |
16775 | char *kwnames[] = { | |
16776 | (char *) "self", NULL | |
16777 | }; | |
16778 | ||
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSideColour",kwnames,&obj0)) goto fail; | |
16780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16781 | { | |
16782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16783 | result = (arg1)->GetLeftSideColour(); | |
16784 | ||
16785 | wxPyEndAllowThreads(__tstate); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
16788 | { | |
16789 | #if wxUSE_UNICODE | |
16790 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16791 | #else | |
16792 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16793 | #endif | |
16794 | } | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | return NULL; | |
16798 | } | |
16799 | ||
16800 | ||
16801 | static PyObject *_wrap_PyDivisionShape_GetLeftSidePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16802 | PyObject *resultobj; | |
16803 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16804 | wxPen *result; | |
16805 | PyObject * obj0 = 0 ; | |
16806 | char *kwnames[] = { | |
16807 | (char *) "self", NULL | |
16808 | }; | |
16809 | ||
16810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSidePen",kwnames,&obj0)) goto fail; | |
16811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | result = (wxPen *)(arg1)->GetLeftSidePen(); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16820 | return resultobj; | |
16821 | fail: | |
16822 | return NULL; | |
16823 | } | |
16824 | ||
16825 | ||
16826 | static PyObject *_wrap_PyDivisionShape_GetRightSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16827 | PyObject *resultobj; | |
16828 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16829 | wxPyDivisionShape *result; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetRightSide",kwnames,&obj0)) goto fail; | |
16836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16837 | { | |
16838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16839 | result = (wxPyDivisionShape *)(arg1)->GetRightSide(); | |
16840 | ||
16841 | wxPyEndAllowThreads(__tstate); | |
16842 | if (PyErr_Occurred()) SWIG_fail; | |
16843 | } | |
16844 | { | |
16845 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
16846 | } | |
16847 | return resultobj; | |
16848 | fail: | |
16849 | return NULL; | |
16850 | } | |
16851 | ||
16852 | ||
16853 | static PyObject *_wrap_PyDivisionShape_GetTopSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16854 | PyObject *resultobj; | |
16855 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16856 | wxPyDivisionShape *result; | |
16857 | PyObject * obj0 = 0 ; | |
16858 | char *kwnames[] = { | |
16859 | (char *) "self", NULL | |
16860 | }; | |
16861 | ||
16862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSide",kwnames,&obj0)) goto fail; | |
16863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16864 | { | |
16865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16866 | result = (wxPyDivisionShape *)(arg1)->GetTopSide(); | |
16867 | ||
16868 | wxPyEndAllowThreads(__tstate); | |
16869 | if (PyErr_Occurred()) SWIG_fail; | |
16870 | } | |
16871 | { | |
16872 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
16873 | } | |
16874 | return resultobj; | |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
16880 | static PyObject *_wrap_PyDivisionShape_GetTopSidePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16881 | PyObject *resultobj; | |
16882 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16883 | wxPen *result; | |
16884 | PyObject * obj0 = 0 ; | |
16885 | char *kwnames[] = { | |
16886 | (char *) "self", NULL | |
16887 | }; | |
16888 | ||
16889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSidePen",kwnames,&obj0)) goto fail; | |
16890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16891 | { | |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | result = (wxPen *)(arg1)->GetTopSidePen(); | |
16894 | ||
16895 | wxPyEndAllowThreads(__tstate); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | } | |
16898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16899 | return resultobj; | |
16900 | fail: | |
16901 | return NULL; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_PyDivisionShape_ResizeAdjoining(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16906 | PyObject *resultobj; | |
16907 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16908 | int arg2 ; | |
16909 | double arg3 ; | |
16910 | bool arg4 ; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | PyObject * obj3 = 0 ; | |
16913 | char *kwnames[] = { | |
16914 | (char *) "self",(char *) "side",(char *) "newPos",(char *) "test", NULL | |
16915 | }; | |
16916 | ||
16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OidO:PyDivisionShape_ResizeAdjoining",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
16918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16919 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | { | |
16922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16923 | (arg1)->ResizeAdjoining(arg2,arg3,arg4); | |
16924 | ||
16925 | wxPyEndAllowThreads(__tstate); | |
16926 | if (PyErr_Occurred()) SWIG_fail; | |
16927 | } | |
16928 | Py_INCREF(Py_None); resultobj = Py_None; | |
16929 | return resultobj; | |
16930 | fail: | |
16931 | return NULL; | |
16932 | } | |
16933 | ||
16934 | ||
16935 | static PyObject *_wrap_PyDivisionShape_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16936 | PyObject *resultobj; | |
16937 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16938 | double arg2 ; | |
16939 | double arg3 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | char *kwnames[] = { | |
16942 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16943 | }; | |
16944 | ||
16945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDivisionShape_PopupMenu",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | (arg1)->PopupMenu(arg2,arg3); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | Py_INCREF(Py_None); resultobj = Py_None; | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_PyDivisionShape_SetBottomSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16964 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | PyObject * obj1 = 0 ; | |
16967 | char *kwnames[] = { | |
16968 | (char *) "self",(char *) "shape", NULL | |
16969 | }; | |
16970 | ||
16971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetBottomSide",kwnames,&obj0,&obj1)) goto fail; | |
16972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16973 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16974 | { | |
16975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16976 | (arg1)->SetBottomSide(arg2); | |
16977 | ||
16978 | wxPyEndAllowThreads(__tstate); | |
16979 | if (PyErr_Occurred()) SWIG_fail; | |
16980 | } | |
16981 | Py_INCREF(Py_None); resultobj = Py_None; | |
16982 | return resultobj; | |
16983 | fail: | |
16984 | return NULL; | |
16985 | } | |
16986 | ||
16987 | ||
16988 | static PyObject *_wrap_PyDivisionShape_SetHandleSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16989 | PyObject *resultobj; | |
16990 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
16991 | int arg2 ; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | char *kwnames[] = { | |
16994 | (char *) "self",(char *) "side", NULL | |
16995 | }; | |
16996 | ||
16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyDivisionShape_SetHandleSide",kwnames,&obj0,&arg2)) goto fail; | |
16998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16999 | { | |
17000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17001 | (arg1)->SetHandleSide(arg2); | |
17002 | ||
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | Py_INCREF(Py_None); resultobj = Py_None; | |
17007 | return resultobj; | |
17008 | fail: | |
17009 | return NULL; | |
17010 | } | |
17011 | ||
17012 | ||
17013 | static PyObject *_wrap_PyDivisionShape_SetLeftSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17014 | PyObject *resultobj; | |
17015 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17016 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
17017 | PyObject * obj0 = 0 ; | |
17018 | PyObject * obj1 = 0 ; | |
17019 | char *kwnames[] = { | |
17020 | (char *) "self",(char *) "shape", NULL | |
17021 | }; | |
17022 | ||
17023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSide",kwnames,&obj0,&obj1)) goto fail; | |
17024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17025 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17026 | { | |
17027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17028 | (arg1)->SetLeftSide(arg2); | |
17029 | ||
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | Py_INCREF(Py_None); resultobj = Py_None; | |
17034 | return resultobj; | |
17035 | fail: | |
17036 | return NULL; | |
17037 | } | |
17038 | ||
17039 | ||
17040 | static PyObject *_wrap_PyDivisionShape_SetLeftSideColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17041 | PyObject *resultobj; | |
17042 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17043 | wxString *arg2 = 0 ; | |
17044 | bool temp2 = False ; | |
17045 | PyObject * obj0 = 0 ; | |
17046 | PyObject * obj1 = 0 ; | |
17047 | char *kwnames[] = { | |
17048 | (char *) "self",(char *) "colour", NULL | |
17049 | }; | |
17050 | ||
17051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSideColour",kwnames,&obj0,&obj1)) goto fail; | |
17052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17053 | { | |
17054 | arg2 = wxString_in_helper(obj1); | |
17055 | if (arg2 == NULL) SWIG_fail; | |
17056 | temp2 = True; | |
17057 | } | |
17058 | { | |
17059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17060 | (arg1)->SetLeftSideColour((wxString const &)*arg2); | |
17061 | ||
17062 | wxPyEndAllowThreads(__tstate); | |
17063 | if (PyErr_Occurred()) SWIG_fail; | |
17064 | } | |
17065 | Py_INCREF(Py_None); resultobj = Py_None; | |
17066 | { | |
17067 | if (temp2) | |
17068 | delete arg2; | |
17069 | } | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | { | |
17073 | if (temp2) | |
17074 | delete arg2; | |
17075 | } | |
17076 | return NULL; | |
17077 | } | |
17078 | ||
17079 | ||
17080 | static PyObject *_wrap_PyDivisionShape_SetLeftSidePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17081 | PyObject *resultobj; | |
17082 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17083 | wxPen *arg2 = (wxPen *) 0 ; | |
17084 | PyObject * obj0 = 0 ; | |
17085 | PyObject * obj1 = 0 ; | |
17086 | char *kwnames[] = { | |
17087 | (char *) "self",(char *) "pen", NULL | |
17088 | }; | |
17089 | ||
17090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSidePen",kwnames,&obj0,&obj1)) goto fail; | |
17091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17092 | { | |
17093 | wxPen* temp; | |
17094 | if (obj1) { | |
17095 | if (obj1 == Py_None) { | |
17096 | temp = NULL; | |
17097 | } | |
17098 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
17099 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
17100 | return NULL; | |
17101 | } | |
17102 | } | |
17103 | if (temp) | |
17104 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
17105 | temp->GetWidth(), | |
17106 | temp->GetStyle()); | |
17107 | else | |
17108 | arg2 = NULL; | |
17109 | } | |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | (arg1)->SetLeftSidePen(arg2); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | Py_INCREF(Py_None); resultobj = Py_None; | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_PyDivisionShape_SetRightSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17127 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | PyObject * obj1 = 0 ; | |
17130 | char *kwnames[] = { | |
17131 | (char *) "self",(char *) "shape", NULL | |
17132 | }; | |
17133 | ||
17134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetRightSide",kwnames,&obj0,&obj1)) goto fail; | |
17135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17136 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17137 | { | |
17138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17139 | (arg1)->SetRightSide(arg2); | |
17140 | ||
17141 | wxPyEndAllowThreads(__tstate); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | } | |
17144 | Py_INCREF(Py_None); resultobj = Py_None; | |
17145 | return resultobj; | |
17146 | fail: | |
17147 | return NULL; | |
17148 | } | |
17149 | ||
17150 | ||
17151 | static PyObject *_wrap_PyDivisionShape_SetTopSide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17152 | PyObject *resultobj; | |
17153 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17154 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
17155 | PyObject * obj0 = 0 ; | |
17156 | PyObject * obj1 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self",(char *) "shape", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSide",kwnames,&obj0,&obj1)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17163 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17164 | { | |
17165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17166 | (arg1)->SetTopSide(arg2); | |
17167 | ||
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | Py_INCREF(Py_None); resultobj = Py_None; | |
17172 | return resultobj; | |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static PyObject *_wrap_PyDivisionShape_SetTopSideColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17179 | PyObject *resultobj; | |
17180 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17181 | wxString *arg2 = 0 ; | |
17182 | bool temp2 = False ; | |
17183 | PyObject * obj0 = 0 ; | |
17184 | PyObject * obj1 = 0 ; | |
17185 | char *kwnames[] = { | |
17186 | (char *) "self",(char *) "colour", NULL | |
17187 | }; | |
17188 | ||
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSideColour",kwnames,&obj0,&obj1)) goto fail; | |
17190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17191 | { | |
17192 | arg2 = wxString_in_helper(obj1); | |
17193 | if (arg2 == NULL) SWIG_fail; | |
17194 | temp2 = True; | |
17195 | } | |
17196 | { | |
17197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17198 | (arg1)->SetTopSideColour((wxString const &)*arg2); | |
17199 | ||
17200 | wxPyEndAllowThreads(__tstate); | |
17201 | if (PyErr_Occurred()) SWIG_fail; | |
17202 | } | |
17203 | Py_INCREF(Py_None); resultobj = Py_None; | |
17204 | { | |
17205 | if (temp2) | |
17206 | delete arg2; | |
17207 | } | |
17208 | return resultobj; | |
17209 | fail: | |
17210 | { | |
17211 | if (temp2) | |
17212 | delete arg2; | |
17213 | } | |
17214 | return NULL; | |
17215 | } | |
17216 | ||
17217 | ||
17218 | static PyObject *_wrap_PyDivisionShape_SetTopSidePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17219 | PyObject *resultobj; | |
17220 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17221 | wxPen *arg2 = (wxPen *) 0 ; | |
17222 | PyObject * obj0 = 0 ; | |
17223 | PyObject * obj1 = 0 ; | |
17224 | char *kwnames[] = { | |
17225 | (char *) "self",(char *) "pen", NULL | |
17226 | }; | |
17227 | ||
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSidePen",kwnames,&obj0,&obj1)) goto fail; | |
17229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17230 | { | |
17231 | wxPen* temp; | |
17232 | if (obj1) { | |
17233 | if (obj1 == Py_None) { | |
17234 | temp = NULL; | |
17235 | } | |
17236 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
17237 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
17238 | return NULL; | |
17239 | } | |
17240 | } | |
17241 | if (temp) | |
17242 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
17243 | temp->GetWidth(), | |
17244 | temp->GetStyle()); | |
17245 | else | |
17246 | arg2 = NULL; | |
17247 | } | |
17248 | { | |
17249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17250 | (arg1)->SetTopSidePen(arg2); | |
17251 | ||
17252 | wxPyEndAllowThreads(__tstate); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | } | |
17255 | Py_INCREF(Py_None); resultobj = Py_None; | |
17256 | return resultobj; | |
17257 | fail: | |
17258 | return NULL; | |
17259 | } | |
17260 | ||
17261 | ||
17262 | static PyObject *_wrap_PyDivisionShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17263 | PyObject *resultobj; | |
17264 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17265 | PyObject * obj0 = 0 ; | |
17266 | char *kwnames[] = { | |
17267 | (char *) "self", NULL | |
17268 | }; | |
17269 | ||
17270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
17271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17272 | { | |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | (arg1)->base_OnDelete(); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
17279 | Py_INCREF(Py_None); resultobj = Py_None; | |
17280 | return resultobj; | |
17281 | fail: | |
17282 | return NULL; | |
17283 | } | |
17284 | ||
17285 | ||
17286 | static PyObject *_wrap_PyDivisionShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17287 | PyObject *resultobj; | |
17288 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17289 | wxDC *arg2 = 0 ; | |
17290 | PyObject * obj0 = 0 ; | |
17291 | PyObject * obj1 = 0 ; | |
17292 | char *kwnames[] = { | |
17293 | (char *) "self",(char *) "dc", NULL | |
17294 | }; | |
17295 | ||
17296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
17297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17298 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17299 | if (arg2 == NULL) { | |
17300 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17301 | } | |
17302 | { | |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | (arg1)->base_OnDraw(*arg2); | |
17305 | ||
17306 | wxPyEndAllowThreads(__tstate); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
17308 | } | |
17309 | Py_INCREF(Py_None); resultobj = Py_None; | |
17310 | return resultobj; | |
17311 | fail: | |
17312 | return NULL; | |
17313 | } | |
17314 | ||
17315 | ||
17316 | static PyObject *_wrap_PyDivisionShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17317 | PyObject *resultobj; | |
17318 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17319 | wxDC *arg2 = 0 ; | |
17320 | PyObject * obj0 = 0 ; | |
17321 | PyObject * obj1 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "self",(char *) "dc", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
17327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17328 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17329 | if (arg2 == NULL) { | |
17330 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17331 | } | |
17332 | { | |
17333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17334 | (arg1)->base_OnDrawContents(*arg2); | |
17335 | ||
17336 | wxPyEndAllowThreads(__tstate); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | } | |
17339 | Py_INCREF(Py_None); resultobj = Py_None; | |
17340 | return resultobj; | |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_PyDivisionShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
17348 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17349 | wxDC *arg2 = 0 ; | |
17350 | bool arg3 = (bool) FALSE ; | |
17351 | PyObject * obj0 = 0 ; | |
17352 | PyObject * obj1 = 0 ; | |
17353 | PyObject * obj2 = 0 ; | |
17354 | char *kwnames[] = { | |
17355 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
17356 | }; | |
17357 | ||
17358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17361 | if (arg2 == NULL) { | |
17362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17363 | } | |
17364 | if (obj2) { | |
17365 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
17368 | { | |
17369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17370 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
17371 | ||
17372 | wxPyEndAllowThreads(__tstate); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
17375 | Py_INCREF(Py_None); resultobj = Py_None; | |
17376 | return resultobj; | |
17377 | fail: | |
17378 | return NULL; | |
17379 | } | |
17380 | ||
17381 | ||
17382 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17383 | PyObject *resultobj; | |
17384 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17385 | wxDC *arg2 = 0 ; | |
17386 | PyObject * obj0 = 0 ; | |
17387 | PyObject * obj1 = 0 ; | |
17388 | char *kwnames[] = { | |
17389 | (char *) "self",(char *) "dc", NULL | |
17390 | }; | |
17391 | ||
17392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
17393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17394 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17395 | if (arg2 == NULL) { | |
17396 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17397 | } | |
17398 | { | |
17399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17400 | (arg1)->base_OnMoveLinks(*arg2); | |
17401 | ||
17402 | wxPyEndAllowThreads(__tstate); | |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
17404 | } | |
17405 | Py_INCREF(Py_None); resultobj = Py_None; | |
17406 | return resultobj; | |
17407 | fail: | |
17408 | return NULL; | |
17409 | } | |
17410 | ||
17411 | ||
17412 | static PyObject *_wrap_PyDivisionShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17413 | PyObject *resultobj; | |
17414 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17415 | wxDC *arg2 = 0 ; | |
17416 | PyObject * obj0 = 0 ; | |
17417 | PyObject * obj1 = 0 ; | |
17418 | char *kwnames[] = { | |
17419 | (char *) "self",(char *) "dc", NULL | |
17420 | }; | |
17421 | ||
17422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
17423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17425 | if (arg2 == NULL) { | |
17426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17427 | } | |
17428 | { | |
17429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17430 | (arg1)->base_OnErase(*arg2); | |
17431 | ||
17432 | wxPyEndAllowThreads(__tstate); | |
17433 | if (PyErr_Occurred()) SWIG_fail; | |
17434 | } | |
17435 | Py_INCREF(Py_None); resultobj = Py_None; | |
17436 | return resultobj; | |
17437 | fail: | |
17438 | return NULL; | |
17439 | } | |
17440 | ||
17441 | ||
17442 | static PyObject *_wrap_PyDivisionShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17443 | PyObject *resultobj; | |
17444 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17445 | wxDC *arg2 = 0 ; | |
17446 | PyObject * obj0 = 0 ; | |
17447 | PyObject * obj1 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self",(char *) "dc", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
17453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17455 | if (arg2 == NULL) { | |
17456 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17457 | } | |
17458 | { | |
17459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17460 | (arg1)->base_OnEraseContents(*arg2); | |
17461 | ||
17462 | wxPyEndAllowThreads(__tstate); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | Py_INCREF(Py_None); resultobj = Py_None; | |
17466 | return resultobj; | |
17467 | fail: | |
17468 | return NULL; | |
17469 | } | |
17470 | ||
17471 | ||
17472 | static PyObject *_wrap_PyDivisionShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17473 | PyObject *resultobj; | |
17474 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17475 | wxDC *arg2 = 0 ; | |
17476 | PyObject * obj0 = 0 ; | |
17477 | PyObject * obj1 = 0 ; | |
17478 | char *kwnames[] = { | |
17479 | (char *) "self",(char *) "dc", NULL | |
17480 | }; | |
17481 | ||
17482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
17483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17484 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17485 | if (arg2 == NULL) { | |
17486 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17487 | } | |
17488 | { | |
17489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17490 | (arg1)->base_OnHighlight(*arg2); | |
17491 | ||
17492 | wxPyEndAllowThreads(__tstate); | |
17493 | if (PyErr_Occurred()) SWIG_fail; | |
17494 | } | |
17495 | Py_INCREF(Py_None); resultobj = Py_None; | |
17496 | return resultobj; | |
17497 | fail: | |
17498 | return NULL; | |
17499 | } | |
17500 | ||
17501 | ||
17502 | static PyObject *_wrap_PyDivisionShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17503 | PyObject *resultobj; | |
17504 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17505 | double arg2 ; | |
17506 | double arg3 ; | |
17507 | int arg4 = (int) 0 ; | |
17508 | int arg5 = (int) 0 ; | |
17509 | PyObject * obj0 = 0 ; | |
17510 | char *kwnames[] = { | |
17511 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17512 | }; | |
17513 | ||
17514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
17519 | ||
17520 | wxPyEndAllowThreads(__tstate); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | } | |
17523 | Py_INCREF(Py_None); resultobj = Py_None; | |
17524 | return resultobj; | |
17525 | fail: | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_PyDivisionShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17533 | double arg2 ; | |
17534 | double arg3 ; | |
17535 | int arg4 = (int) 0 ; | |
17536 | int arg5 = (int) 0 ; | |
17537 | PyObject * obj0 = 0 ; | |
17538 | char *kwnames[] = { | |
17539 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17540 | }; | |
17541 | ||
17542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17544 | { | |
17545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17546 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
17547 | ||
17548 | wxPyEndAllowThreads(__tstate); | |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
17550 | } | |
17551 | Py_INCREF(Py_None); resultobj = Py_None; | |
17552 | return resultobj; | |
17553 | fail: | |
17554 | return NULL; | |
17555 | } | |
17556 | ||
17557 | ||
17558 | static PyObject *_wrap_PyDivisionShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17559 | PyObject *resultobj; | |
17560 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17561 | double arg2 ; | |
17562 | double arg3 ; | |
17563 | int arg4 = (int) 0 ; | |
17564 | int arg5 = (int) 0 ; | |
17565 | PyObject * obj0 = 0 ; | |
17566 | char *kwnames[] = { | |
17567 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17568 | }; | |
17569 | ||
17570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
17575 | ||
17576 | wxPyEndAllowThreads(__tstate); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | } | |
17579 | Py_INCREF(Py_None); resultobj = Py_None; | |
17580 | return resultobj; | |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject *_wrap_PyDivisionShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17589 | double arg2 ; | |
17590 | double arg3 ; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | char *kwnames[] = { | |
17593 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17594 | }; | |
17595 | ||
17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDivisionShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17598 | { | |
17599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17600 | (arg1)->base_OnSize(arg2,arg3); | |
17601 | ||
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
17605 | Py_INCREF(Py_None); resultobj = Py_None; | |
17606 | return resultobj; | |
17607 | fail: | |
17608 | return NULL; | |
17609 | } | |
17610 | ||
17611 | ||
17612 | static PyObject *_wrap_PyDivisionShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17613 | PyObject *resultobj; | |
17614 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17615 | wxDC *arg2 = 0 ; | |
17616 | double arg3 ; | |
17617 | double arg4 ; | |
17618 | double arg5 ; | |
17619 | double arg6 ; | |
17620 | bool arg7 = (bool) True ; | |
17621 | bool result; | |
17622 | PyObject * obj0 = 0 ; | |
17623 | PyObject * obj1 = 0 ; | |
17624 | PyObject * obj6 = 0 ; | |
17625 | char *kwnames[] = { | |
17626 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
17627 | }; | |
17628 | ||
17629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDivisionShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
17630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17632 | if (arg2 == NULL) { | |
17633 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17634 | } | |
17635 | if (obj6) { | |
17636 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | { | |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
17642 | ||
17643 | wxPyEndAllowThreads(__tstate); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | resultobj = PyInt_FromLong((long)result); | |
17647 | return resultobj; | |
17648 | fail: | |
17649 | return NULL; | |
17650 | } | |
17651 | ||
17652 | ||
17653 | static PyObject *_wrap_PyDivisionShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17654 | PyObject *resultobj; | |
17655 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17656 | wxDC *arg2 = 0 ; | |
17657 | double arg3 ; | |
17658 | double arg4 ; | |
17659 | double arg5 ; | |
17660 | double arg6 ; | |
17661 | bool arg7 = (bool) True ; | |
17662 | PyObject * obj0 = 0 ; | |
17663 | PyObject * obj1 = 0 ; | |
17664 | PyObject * obj6 = 0 ; | |
17665 | char *kwnames[] = { | |
17666 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
17667 | }; | |
17668 | ||
17669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyDivisionShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
17670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17671 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17672 | if (arg2 == NULL) { | |
17673 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17674 | } | |
17675 | if (obj6) { | |
17676 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
17677 | if (PyErr_Occurred()) SWIG_fail; | |
17678 | } | |
17679 | { | |
17680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17681 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
17682 | ||
17683 | wxPyEndAllowThreads(__tstate); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
17685 | } | |
17686 | Py_INCREF(Py_None); resultobj = Py_None; | |
17687 | return resultobj; | |
17688 | fail: | |
17689 | return NULL; | |
17690 | } | |
17691 | ||
17692 | ||
17693 | static PyObject *_wrap_PyDivisionShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17694 | PyObject *resultobj; | |
17695 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17696 | bool arg2 ; | |
17697 | double arg3 ; | |
17698 | double arg4 ; | |
17699 | int arg5 = (int) 0 ; | |
17700 | int arg6 = (int) 0 ; | |
17701 | PyObject * obj0 = 0 ; | |
17702 | PyObject * obj1 = 0 ; | |
17703 | char *kwnames[] = { | |
17704 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17705 | }; | |
17706 | ||
17707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDivisionShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
17708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17709 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | { | |
17712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17713 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
17718 | Py_INCREF(Py_None); resultobj = Py_None; | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17728 | double arg2 ; | |
17729 | double arg3 ; | |
17730 | int arg4 = (int) 0 ; | |
17731 | int arg5 = (int) 0 ; | |
17732 | PyObject * obj0 = 0 ; | |
17733 | char *kwnames[] = { | |
17734 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17735 | }; | |
17736 | ||
17737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17739 | { | |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
17742 | ||
17743 | wxPyEndAllowThreads(__tstate); | |
17744 | if (PyErr_Occurred()) SWIG_fail; | |
17745 | } | |
17746 | Py_INCREF(Py_None); resultobj = Py_None; | |
17747 | return resultobj; | |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
17753 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17754 | PyObject *resultobj; | |
17755 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17756 | double arg2 ; | |
17757 | double arg3 ; | |
17758 | int arg4 = (int) 0 ; | |
17759 | int arg5 = (int) 0 ; | |
17760 | PyObject * obj0 = 0 ; | |
17761 | char *kwnames[] = { | |
17762 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17763 | }; | |
17764 | ||
17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17767 | { | |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | Py_INCREF(Py_None); resultobj = Py_None; | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_PyDivisionShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17784 | bool arg2 ; | |
17785 | double arg3 ; | |
17786 | double arg4 ; | |
17787 | int arg5 = (int) 0 ; | |
17788 | int arg6 = (int) 0 ; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17793 | }; | |
17794 | ||
17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDivisionShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
17796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17797 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17798 | if (PyErr_Occurred()) SWIG_fail; | |
17799 | { | |
17800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17801 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
17802 | ||
17803 | wxPyEndAllowThreads(__tstate); | |
17804 | if (PyErr_Occurred()) SWIG_fail; | |
17805 | } | |
17806 | Py_INCREF(Py_None); resultobj = Py_None; | |
17807 | return resultobj; | |
17808 | fail: | |
17809 | return NULL; | |
17810 | } | |
17811 | ||
17812 | ||
17813 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17814 | PyObject *resultobj; | |
17815 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17816 | double arg2 ; | |
17817 | double arg3 ; | |
17818 | int arg4 = (int) 0 ; | |
17819 | int arg5 = (int) 0 ; | |
17820 | PyObject * obj0 = 0 ; | |
17821 | char *kwnames[] = { | |
17822 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17823 | }; | |
17824 | ||
17825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17827 | { | |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
17830 | ||
17831 | wxPyEndAllowThreads(__tstate); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
17834 | Py_INCREF(Py_None); resultobj = Py_None; | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | return NULL; | |
17838 | } | |
17839 | ||
17840 | ||
17841 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17842 | PyObject *resultobj; | |
17843 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17844 | double arg2 ; | |
17845 | double arg3 ; | |
17846 | int arg4 = (int) 0 ; | |
17847 | int arg5 = (int) 0 ; | |
17848 | PyObject * obj0 = 0 ; | |
17849 | char *kwnames[] = { | |
17850 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17851 | }; | |
17852 | ||
17853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyDivisionShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
17854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17855 | { | |
17856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17857 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
17858 | ||
17859 | wxPyEndAllowThreads(__tstate); | |
17860 | if (PyErr_Occurred()) SWIG_fail; | |
17861 | } | |
17862 | Py_INCREF(Py_None); resultobj = Py_None; | |
17863 | return resultobj; | |
17864 | fail: | |
17865 | return NULL; | |
17866 | } | |
17867 | ||
17868 | ||
17869 | static PyObject *_wrap_PyDivisionShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17870 | PyObject *resultobj; | |
17871 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17872 | wxDC *arg2 = 0 ; | |
17873 | double arg3 ; | |
17874 | double arg4 ; | |
17875 | double arg5 ; | |
17876 | double arg6 ; | |
17877 | PyObject * obj0 = 0 ; | |
17878 | PyObject * obj1 = 0 ; | |
17879 | char *kwnames[] = { | |
17880 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
17881 | }; | |
17882 | ||
17883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyDivisionShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
17884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17885 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17886 | if (arg2 == NULL) { | |
17887 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17888 | } | |
17889 | { | |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | Py_INCREF(Py_None); resultobj = Py_None; | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_PyDivisionShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17906 | wxDC *arg2 = 0 ; | |
17907 | PyObject * obj0 = 0 ; | |
17908 | PyObject * obj1 = 0 ; | |
17909 | char *kwnames[] = { | |
17910 | (char *) "self",(char *) "dc", NULL | |
17911 | }; | |
17912 | ||
17913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
17914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17916 | if (arg2 == NULL) { | |
17917 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17918 | } | |
17919 | { | |
17920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17921 | (arg1)->base_OnDrawControlPoints(*arg2); | |
17922 | ||
17923 | wxPyEndAllowThreads(__tstate); | |
17924 | if (PyErr_Occurred()) SWIG_fail; | |
17925 | } | |
17926 | Py_INCREF(Py_None); resultobj = Py_None; | |
17927 | return resultobj; | |
17928 | fail: | |
17929 | return NULL; | |
17930 | } | |
17931 | ||
17932 | ||
17933 | static PyObject *_wrap_PyDivisionShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17934 | PyObject *resultobj; | |
17935 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17936 | wxDC *arg2 = 0 ; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | PyObject * obj1 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "dc", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
17944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17945 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17946 | if (arg2 == NULL) { | |
17947 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17948 | } | |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | (arg1)->base_OnEraseControlPoints(*arg2); | |
17952 | ||
17953 | wxPyEndAllowThreads(__tstate); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
17956 | Py_INCREF(Py_None); resultobj = Py_None; | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
17963 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17964 | PyObject *resultobj; | |
17965 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
17966 | wxDC *arg2 = 0 ; | |
17967 | bool arg3 = (bool) True ; | |
17968 | PyObject * obj0 = 0 ; | |
17969 | PyObject * obj1 = 0 ; | |
17970 | PyObject * obj2 = 0 ; | |
17971 | char *kwnames[] = { | |
17972 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
17973 | }; | |
17974 | ||
17975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17978 | if (arg2 == NULL) { | |
17979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17980 | } | |
17981 | if (obj2) { | |
17982 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | { | |
17986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17987 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
17988 | ||
17989 | wxPyEndAllowThreads(__tstate); | |
17990 | if (PyErr_Occurred()) SWIG_fail; | |
17991 | } | |
17992 | Py_INCREF(Py_None); resultobj = Py_None; | |
17993 | return resultobj; | |
17994 | fail: | |
17995 | return NULL; | |
17996 | } | |
17997 | ||
17998 | ||
17999 | static PyObject *_wrap_PyDivisionShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18000 | PyObject *resultobj; | |
18001 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
18002 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18003 | bool arg3 ; | |
18004 | double arg4 ; | |
18005 | double arg5 ; | |
18006 | int arg6 = (int) 0 ; | |
18007 | int arg7 = (int) 0 ; | |
18008 | PyObject * obj0 = 0 ; | |
18009 | PyObject * obj1 = 0 ; | |
18010 | PyObject * obj2 = 0 ; | |
18011 | char *kwnames[] = { | |
18012 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18013 | }; | |
18014 | ||
18015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyDivisionShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
18016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18018 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18019 | if (PyErr_Occurred()) SWIG_fail; | |
18020 | { | |
18021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18022 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
18023 | ||
18024 | wxPyEndAllowThreads(__tstate); | |
18025 | if (PyErr_Occurred()) SWIG_fail; | |
18026 | } | |
18027 | Py_INCREF(Py_None); resultobj = Py_None; | |
18028 | return resultobj; | |
18029 | fail: | |
18030 | return NULL; | |
18031 | } | |
18032 | ||
18033 | ||
18034 | static PyObject *_wrap_PyDivisionShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18035 | PyObject *resultobj; | |
18036 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
18037 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18038 | double arg3 ; | |
18039 | double arg4 ; | |
18040 | int arg5 = (int) 0 ; | |
18041 | int arg6 = (int) 0 ; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | PyObject * obj1 = 0 ; | |
18044 | char *kwnames[] = { | |
18045 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18046 | }; | |
18047 | ||
18048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDivisionShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18050 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18051 | { | |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18054 | ||
18055 | wxPyEndAllowThreads(__tstate); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | Py_INCREF(Py_None); resultobj = Py_None; | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
18065 | static PyObject *_wrap_PyDivisionShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18066 | PyObject *resultobj; | |
18067 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
18068 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18069 | double arg3 ; | |
18070 | double arg4 ; | |
18071 | int arg5 = (int) 0 ; | |
18072 | int arg6 = (int) 0 ; | |
18073 | PyObject * obj0 = 0 ; | |
18074 | PyObject * obj1 = 0 ; | |
18075 | char *kwnames[] = { | |
18076 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18077 | }; | |
18078 | ||
18079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyDivisionShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18081 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18082 | { | |
18083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18084 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18085 | ||
18086 | wxPyEndAllowThreads(__tstate); | |
18087 | if (PyErr_Occurred()) SWIG_fail; | |
18088 | } | |
18089 | Py_INCREF(Py_None); resultobj = Py_None; | |
18090 | return resultobj; | |
18091 | fail: | |
18092 | return NULL; | |
18093 | } | |
18094 | ||
18095 | ||
18096 | static PyObject *_wrap_PyDivisionShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18097 | PyObject *resultobj; | |
18098 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
18099 | double arg2 ; | |
18100 | double arg3 ; | |
18101 | PyObject * obj0 = 0 ; | |
18102 | char *kwnames[] = { | |
18103 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18104 | }; | |
18105 | ||
18106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDivisionShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18108 | { | |
18109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18110 | (arg1)->base_OnBeginSize(arg2,arg3); | |
18111 | ||
18112 | wxPyEndAllowThreads(__tstate); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
18115 | Py_INCREF(Py_None); resultobj = Py_None; | |
18116 | return resultobj; | |
18117 | fail: | |
18118 | return NULL; | |
18119 | } | |
18120 | ||
18121 | ||
18122 | static PyObject *_wrap_PyDivisionShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18123 | PyObject *resultobj; | |
18124 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
18125 | double arg2 ; | |
18126 | double arg3 ; | |
18127 | PyObject * obj0 = 0 ; | |
18128 | char *kwnames[] = { | |
18129 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18130 | }; | |
18131 | ||
18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyDivisionShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDivisionShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | (arg1)->base_OnEndSize(arg2,arg3); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | Py_INCREF(Py_None); resultobj = Py_None; | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject * PyDivisionShape_swigregister(PyObject *self, PyObject *args) { | |
18149 | PyObject *obj; | |
18150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18151 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDivisionShape, obj); | |
18152 | Py_INCREF(obj); | |
18153 | return Py_BuildValue((char *)""); | |
18154 | } | |
18155 | static PyObject *_wrap_new_PyEllipseShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18156 | PyObject *resultobj; | |
18157 | double arg1 = (double) 0.0 ; | |
18158 | double arg2 = (double) 0.0 ; | |
18159 | wxPyEllipseShape *result; | |
18160 | char *kwnames[] = { | |
18161 | (char *) "width",(char *) "height", NULL | |
18162 | }; | |
18163 | ||
18164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_PyEllipseShape",kwnames,&arg1,&arg2)) goto fail; | |
18165 | { | |
18166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18167 | result = (wxPyEllipseShape *)new wxPyEllipseShape(arg1,arg2); | |
18168 | ||
18169 | wxPyEndAllowThreads(__tstate); | |
18170 | if (PyErr_Occurred()) SWIG_fail; | |
18171 | } | |
18172 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEllipseShape, 1); | |
18173 | return resultobj; | |
18174 | fail: | |
18175 | return NULL; | |
18176 | } | |
18177 | ||
18178 | ||
18179 | static PyObject *_wrap_PyEllipseShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18180 | PyObject *resultobj; | |
18181 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18182 | PyObject *arg2 = (PyObject *) 0 ; | |
18183 | PyObject *arg3 = (PyObject *) 0 ; | |
18184 | PyObject * obj0 = 0 ; | |
18185 | PyObject * obj1 = 0 ; | |
18186 | PyObject * obj2 = 0 ; | |
18187 | char *kwnames[] = { | |
18188 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18193 | arg2 = obj1; | |
18194 | arg3 = obj2; | |
18195 | { | |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18198 | ||
18199 | wxPyEndAllowThreads(__tstate); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
18202 | Py_INCREF(Py_None); resultobj = Py_None; | |
18203 | return resultobj; | |
18204 | fail: | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
18209 | static PyObject *_wrap_PyEllipseShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18210 | PyObject *resultobj; | |
18211 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18212 | wxDC *arg2 = 0 ; | |
18213 | PyObject * obj0 = 0 ; | |
18214 | PyObject * obj1 = 0 ; | |
18215 | char *kwnames[] = { | |
18216 | (char *) "self",(char *) "dc", NULL | |
18217 | }; | |
18218 | ||
18219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
18220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18222 | if (arg2 == NULL) { | |
18223 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18224 | } | |
18225 | { | |
18226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18227 | (arg1)->base_OnDraw(*arg2); | |
18228 | ||
18229 | wxPyEndAllowThreads(__tstate); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | } | |
18232 | Py_INCREF(Py_None); resultobj = Py_None; | |
18233 | return resultobj; | |
18234 | fail: | |
18235 | return NULL; | |
18236 | } | |
18237 | ||
18238 | ||
18239 | static PyObject *_wrap_PyEllipseShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18240 | PyObject *resultobj; | |
18241 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18242 | wxDC *arg2 = 0 ; | |
18243 | PyObject * obj0 = 0 ; | |
18244 | PyObject * obj1 = 0 ; | |
18245 | char *kwnames[] = { | |
18246 | (char *) "self",(char *) "dc", NULL | |
18247 | }; | |
18248 | ||
18249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
18250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18251 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18252 | if (arg2 == NULL) { | |
18253 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18254 | } | |
18255 | { | |
18256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18257 | (arg1)->base_OnDrawContents(*arg2); | |
18258 | ||
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | Py_INCREF(Py_None); resultobj = Py_None; | |
18263 | return resultobj; | |
18264 | fail: | |
18265 | return NULL; | |
18266 | } | |
18267 | ||
18268 | ||
18269 | static PyObject *_wrap_PyEllipseShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18270 | PyObject *resultobj; | |
18271 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18272 | wxDC *arg2 = 0 ; | |
18273 | bool arg3 = (bool) FALSE ; | |
18274 | PyObject * obj0 = 0 ; | |
18275 | PyObject * obj1 = 0 ; | |
18276 | PyObject * obj2 = 0 ; | |
18277 | char *kwnames[] = { | |
18278 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
18279 | }; | |
18280 | ||
18281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18283 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18284 | if (arg2 == NULL) { | |
18285 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18286 | } | |
18287 | if (obj2) { | |
18288 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18289 | if (PyErr_Occurred()) SWIG_fail; | |
18290 | } | |
18291 | { | |
18292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18293 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
18294 | ||
18295 | wxPyEndAllowThreads(__tstate); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
18298 | Py_INCREF(Py_None); resultobj = Py_None; | |
18299 | return resultobj; | |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
18305 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18306 | PyObject *resultobj; | |
18307 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18308 | wxDC *arg2 = 0 ; | |
18309 | PyObject * obj0 = 0 ; | |
18310 | PyObject * obj1 = 0 ; | |
18311 | char *kwnames[] = { | |
18312 | (char *) "self",(char *) "dc", NULL | |
18313 | }; | |
18314 | ||
18315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
18316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18318 | if (arg2 == NULL) { | |
18319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18320 | } | |
18321 | { | |
18322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18323 | (arg1)->base_OnMoveLinks(*arg2); | |
18324 | ||
18325 | wxPyEndAllowThreads(__tstate); | |
18326 | if (PyErr_Occurred()) SWIG_fail; | |
18327 | } | |
18328 | Py_INCREF(Py_None); resultobj = Py_None; | |
18329 | return resultobj; | |
18330 | fail: | |
18331 | return NULL; | |
18332 | } | |
18333 | ||
18334 | ||
18335 | static PyObject *_wrap_PyEllipseShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18336 | PyObject *resultobj; | |
18337 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18338 | wxDC *arg2 = 0 ; | |
18339 | PyObject * obj0 = 0 ; | |
18340 | PyObject * obj1 = 0 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "self",(char *) "dc", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
18346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18347 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18348 | if (arg2 == NULL) { | |
18349 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18350 | } | |
18351 | { | |
18352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18353 | (arg1)->base_OnErase(*arg2); | |
18354 | ||
18355 | wxPyEndAllowThreads(__tstate); | |
18356 | if (PyErr_Occurred()) SWIG_fail; | |
18357 | } | |
18358 | Py_INCREF(Py_None); resultobj = Py_None; | |
18359 | return resultobj; | |
18360 | fail: | |
18361 | return NULL; | |
18362 | } | |
18363 | ||
18364 | ||
18365 | static PyObject *_wrap_PyEllipseShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18366 | PyObject *resultobj; | |
18367 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18368 | wxDC *arg2 = 0 ; | |
18369 | PyObject * obj0 = 0 ; | |
18370 | PyObject * obj1 = 0 ; | |
18371 | char *kwnames[] = { | |
18372 | (char *) "self",(char *) "dc", NULL | |
18373 | }; | |
18374 | ||
18375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
18376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18377 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18378 | if (arg2 == NULL) { | |
18379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18380 | } | |
18381 | { | |
18382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18383 | (arg1)->base_OnEraseContents(*arg2); | |
18384 | ||
18385 | wxPyEndAllowThreads(__tstate); | |
18386 | if (PyErr_Occurred()) SWIG_fail; | |
18387 | } | |
18388 | Py_INCREF(Py_None); resultobj = Py_None; | |
18389 | return resultobj; | |
18390 | fail: | |
18391 | return NULL; | |
18392 | } | |
18393 | ||
18394 | ||
18395 | static PyObject *_wrap_PyEllipseShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18396 | PyObject *resultobj; | |
18397 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18398 | wxDC *arg2 = 0 ; | |
18399 | PyObject * obj0 = 0 ; | |
18400 | PyObject * obj1 = 0 ; | |
18401 | char *kwnames[] = { | |
18402 | (char *) "self",(char *) "dc", NULL | |
18403 | }; | |
18404 | ||
18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
18406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18408 | if (arg2 == NULL) { | |
18409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18410 | } | |
18411 | { | |
18412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18413 | (arg1)->base_OnHighlight(*arg2); | |
18414 | ||
18415 | wxPyEndAllowThreads(__tstate); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | } | |
18418 | Py_INCREF(Py_None); resultobj = Py_None; | |
18419 | return resultobj; | |
18420 | fail: | |
18421 | return NULL; | |
18422 | } | |
18423 | ||
18424 | ||
18425 | static PyObject *_wrap_PyEllipseShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18426 | PyObject *resultobj; | |
18427 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18428 | double arg2 ; | |
18429 | double arg3 ; | |
18430 | int arg4 = (int) 0 ; | |
18431 | int arg5 = (int) 0 ; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18439 | { | |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
18446 | Py_INCREF(Py_None); resultobj = Py_None; | |
18447 | return resultobj; | |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
18453 | static PyObject *_wrap_PyEllipseShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18454 | PyObject *resultobj; | |
18455 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18456 | double arg2 ; | |
18457 | double arg3 ; | |
18458 | int arg4 = (int) 0 ; | |
18459 | int arg5 = (int) 0 ; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | char *kwnames[] = { | |
18462 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18467 | { | |
18468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18469 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | Py_INCREF(Py_None); resultobj = Py_None; | |
18475 | return resultobj; | |
18476 | fail: | |
18477 | return NULL; | |
18478 | } | |
18479 | ||
18480 | ||
18481 | static PyObject *_wrap_PyEllipseShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18482 | PyObject *resultobj; | |
18483 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18484 | double arg2 ; | |
18485 | double arg3 ; | |
18486 | int arg4 = (int) 0 ; | |
18487 | int arg5 = (int) 0 ; | |
18488 | PyObject * obj0 = 0 ; | |
18489 | char *kwnames[] = { | |
18490 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18491 | }; | |
18492 | ||
18493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18495 | { | |
18496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18497 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
18498 | ||
18499 | wxPyEndAllowThreads(__tstate); | |
18500 | if (PyErr_Occurred()) SWIG_fail; | |
18501 | } | |
18502 | Py_INCREF(Py_None); resultobj = Py_None; | |
18503 | return resultobj; | |
18504 | fail: | |
18505 | return NULL; | |
18506 | } | |
18507 | ||
18508 | ||
18509 | static PyObject *_wrap_PyEllipseShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18510 | PyObject *resultobj; | |
18511 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18512 | double arg2 ; | |
18513 | double arg3 ; | |
18514 | PyObject * obj0 = 0 ; | |
18515 | char *kwnames[] = { | |
18516 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18517 | }; | |
18518 | ||
18519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyEllipseShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18521 | { | |
18522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18523 | (arg1)->base_OnSize(arg2,arg3); | |
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 | ||
18535 | static PyObject *_wrap_PyEllipseShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18536 | PyObject *resultobj; | |
18537 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18538 | wxDC *arg2 = 0 ; | |
18539 | double arg3 ; | |
18540 | double arg4 ; | |
18541 | double arg5 ; | |
18542 | double arg6 ; | |
18543 | bool arg7 = (bool) True ; | |
18544 | bool result; | |
18545 | PyObject * obj0 = 0 ; | |
18546 | PyObject * obj1 = 0 ; | |
18547 | PyObject * obj6 = 0 ; | |
18548 | char *kwnames[] = { | |
18549 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18550 | }; | |
18551 | ||
18552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyEllipseShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
18553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18554 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18555 | if (arg2 == NULL) { | |
18556 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18557 | } | |
18558 | if (obj6) { | |
18559 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
18560 | if (PyErr_Occurred()) SWIG_fail; | |
18561 | } | |
18562 | { | |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18565 | ||
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
18569 | resultobj = PyInt_FromLong((long)result); | |
18570 | return resultobj; | |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_PyEllipseShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18579 | wxDC *arg2 = 0 ; | |
18580 | double arg3 ; | |
18581 | double arg4 ; | |
18582 | double arg5 ; | |
18583 | double arg6 ; | |
18584 | bool arg7 = (bool) True ; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | PyObject * obj1 = 0 ; | |
18587 | PyObject * obj6 = 0 ; | |
18588 | char *kwnames[] = { | |
18589 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18590 | }; | |
18591 | ||
18592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyEllipseShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
18593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18594 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18595 | if (arg2 == NULL) { | |
18596 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18597 | } | |
18598 | if (obj6) { | |
18599 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
18600 | if (PyErr_Occurred()) SWIG_fail; | |
18601 | } | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18605 | ||
18606 | wxPyEndAllowThreads(__tstate); | |
18607 | if (PyErr_Occurred()) SWIG_fail; | |
18608 | } | |
18609 | Py_INCREF(Py_None); resultobj = Py_None; | |
18610 | return resultobj; | |
18611 | fail: | |
18612 | return NULL; | |
18613 | } | |
18614 | ||
18615 | ||
18616 | static PyObject *_wrap_PyEllipseShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18617 | PyObject *resultobj; | |
18618 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18619 | bool arg2 ; | |
18620 | double arg3 ; | |
18621 | double arg4 ; | |
18622 | int arg5 = (int) 0 ; | |
18623 | int arg6 = (int) 0 ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyEllipseShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18632 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | { | |
18635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18636 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18637 | ||
18638 | wxPyEndAllowThreads(__tstate); | |
18639 | if (PyErr_Occurred()) SWIG_fail; | |
18640 | } | |
18641 | Py_INCREF(Py_None); resultobj = Py_None; | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18649 | PyObject *resultobj; | |
18650 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18651 | double arg2 ; | |
18652 | double arg3 ; | |
18653 | int arg4 = (int) 0 ; | |
18654 | int arg5 = (int) 0 ; | |
18655 | PyObject * obj0 = 0 ; | |
18656 | char *kwnames[] = { | |
18657 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18658 | }; | |
18659 | ||
18660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | Py_INCREF(Py_None); resultobj = Py_None; | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
18676 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18677 | PyObject *resultobj; | |
18678 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18679 | double arg2 ; | |
18680 | double arg3 ; | |
18681 | int arg4 = (int) 0 ; | |
18682 | int arg5 = (int) 0 ; | |
18683 | PyObject * obj0 = 0 ; | |
18684 | char *kwnames[] = { | |
18685 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18686 | }; | |
18687 | ||
18688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18690 | { | |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | Py_INCREF(Py_None); resultobj = Py_None; | |
18698 | return resultobj; | |
18699 | fail: | |
18700 | return NULL; | |
18701 | } | |
18702 | ||
18703 | ||
18704 | static PyObject *_wrap_PyEllipseShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18705 | PyObject *resultobj; | |
18706 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18707 | bool arg2 ; | |
18708 | double arg3 ; | |
18709 | double arg4 ; | |
18710 | int arg5 = (int) 0 ; | |
18711 | int arg6 = (int) 0 ; | |
18712 | PyObject * obj0 = 0 ; | |
18713 | PyObject * obj1 = 0 ; | |
18714 | char *kwnames[] = { | |
18715 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18716 | }; | |
18717 | ||
18718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyEllipseShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18720 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18721 | if (PyErr_Occurred()) SWIG_fail; | |
18722 | { | |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
18725 | ||
18726 | wxPyEndAllowThreads(__tstate); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
18729 | Py_INCREF(Py_None); resultobj = Py_None; | |
18730 | return resultobj; | |
18731 | fail: | |
18732 | return NULL; | |
18733 | } | |
18734 | ||
18735 | ||
18736 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18737 | PyObject *resultobj; | |
18738 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18739 | double arg2 ; | |
18740 | double arg3 ; | |
18741 | int arg4 = (int) 0 ; | |
18742 | int arg5 = (int) 0 ; | |
18743 | PyObject * obj0 = 0 ; | |
18744 | char *kwnames[] = { | |
18745 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18746 | }; | |
18747 | ||
18748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
18753 | ||
18754 | wxPyEndAllowThreads(__tstate); | |
18755 | if (PyErr_Occurred()) SWIG_fail; | |
18756 | } | |
18757 | Py_INCREF(Py_None); resultobj = Py_None; | |
18758 | return resultobj; | |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
18764 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18765 | PyObject *resultobj; | |
18766 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18767 | double arg2 ; | |
18768 | double arg3 ; | |
18769 | int arg4 = (int) 0 ; | |
18770 | int arg5 = (int) 0 ; | |
18771 | PyObject * obj0 = 0 ; | |
18772 | char *kwnames[] = { | |
18773 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18774 | }; | |
18775 | ||
18776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyEllipseShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
18777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18778 | { | |
18779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18780 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
18781 | ||
18782 | wxPyEndAllowThreads(__tstate); | |
18783 | if (PyErr_Occurred()) SWIG_fail; | |
18784 | } | |
18785 | Py_INCREF(Py_None); resultobj = Py_None; | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | return NULL; | |
18789 | } | |
18790 | ||
18791 | ||
18792 | static PyObject *_wrap_PyEllipseShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18793 | PyObject *resultobj; | |
18794 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18795 | wxDC *arg2 = 0 ; | |
18796 | double arg3 ; | |
18797 | double arg4 ; | |
18798 | double arg5 ; | |
18799 | double arg6 ; | |
18800 | PyObject * obj0 = 0 ; | |
18801 | PyObject * obj1 = 0 ; | |
18802 | char *kwnames[] = { | |
18803 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
18804 | }; | |
18805 | ||
18806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyEllipseShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18808 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18809 | if (arg2 == NULL) { | |
18810 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18811 | } | |
18812 | { | |
18813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18814 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
18815 | ||
18816 | wxPyEndAllowThreads(__tstate); | |
18817 | if (PyErr_Occurred()) SWIG_fail; | |
18818 | } | |
18819 | Py_INCREF(Py_None); resultobj = Py_None; | |
18820 | return resultobj; | |
18821 | fail: | |
18822 | return NULL; | |
18823 | } | |
18824 | ||
18825 | ||
18826 | static PyObject *_wrap_PyEllipseShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18827 | PyObject *resultobj; | |
18828 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18829 | wxDC *arg2 = 0 ; | |
18830 | PyObject * obj0 = 0 ; | |
18831 | PyObject * obj1 = 0 ; | |
18832 | char *kwnames[] = { | |
18833 | (char *) "self",(char *) "dc", NULL | |
18834 | }; | |
18835 | ||
18836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
18837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18838 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18839 | if (arg2 == NULL) { | |
18840 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18841 | } | |
18842 | { | |
18843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18844 | (arg1)->base_OnDrawControlPoints(*arg2); | |
18845 | ||
18846 | wxPyEndAllowThreads(__tstate); | |
18847 | if (PyErr_Occurred()) SWIG_fail; | |
18848 | } | |
18849 | Py_INCREF(Py_None); resultobj = Py_None; | |
18850 | return resultobj; | |
18851 | fail: | |
18852 | return NULL; | |
18853 | } | |
18854 | ||
18855 | ||
18856 | static PyObject *_wrap_PyEllipseShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18857 | PyObject *resultobj; | |
18858 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18859 | wxDC *arg2 = 0 ; | |
18860 | PyObject * obj0 = 0 ; | |
18861 | PyObject * obj1 = 0 ; | |
18862 | char *kwnames[] = { | |
18863 | (char *) "self",(char *) "dc", NULL | |
18864 | }; | |
18865 | ||
18866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
18867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18868 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18869 | if (arg2 == NULL) { | |
18870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18871 | } | |
18872 | { | |
18873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18874 | (arg1)->base_OnEraseControlPoints(*arg2); | |
18875 | ||
18876 | wxPyEndAllowThreads(__tstate); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
18879 | Py_INCREF(Py_None); resultobj = Py_None; | |
18880 | return resultobj; | |
18881 | fail: | |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
18886 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18887 | PyObject *resultobj; | |
18888 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18889 | wxDC *arg2 = 0 ; | |
18890 | bool arg3 = (bool) True ; | |
18891 | PyObject * obj0 = 0 ; | |
18892 | PyObject * obj1 = 0 ; | |
18893 | PyObject * obj2 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18900 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18901 | if (arg2 == NULL) { | |
18902 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18903 | } | |
18904 | if (obj2) { | |
18905 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | Py_INCREF(Py_None); resultobj = Py_None; | |
18916 | return resultobj; | |
18917 | fail: | |
18918 | return NULL; | |
18919 | } | |
18920 | ||
18921 | ||
18922 | static PyObject *_wrap_PyEllipseShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18923 | PyObject *resultobj; | |
18924 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18925 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18926 | bool arg3 ; | |
18927 | double arg4 ; | |
18928 | double arg5 ; | |
18929 | int arg6 = (int) 0 ; | |
18930 | int arg7 = (int) 0 ; | |
18931 | PyObject * obj0 = 0 ; | |
18932 | PyObject * obj1 = 0 ; | |
18933 | PyObject * obj2 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyEllipseShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
18939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18941 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | { | |
18944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18945 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
18946 | ||
18947 | wxPyEndAllowThreads(__tstate); | |
18948 | if (PyErr_Occurred()) SWIG_fail; | |
18949 | } | |
18950 | Py_INCREF(Py_None); resultobj = Py_None; | |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | static PyObject *_wrap_PyEllipseShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18958 | PyObject *resultobj; | |
18959 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18960 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18961 | double arg3 ; | |
18962 | double arg4 ; | |
18963 | int arg5 = (int) 0 ; | |
18964 | int arg6 = (int) 0 ; | |
18965 | PyObject * obj0 = 0 ; | |
18966 | PyObject * obj1 = 0 ; | |
18967 | char *kwnames[] = { | |
18968 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18969 | }; | |
18970 | ||
18971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyEllipseShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
18972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18973 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18974 | { | |
18975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18976 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18977 | ||
18978 | wxPyEndAllowThreads(__tstate); | |
18979 | if (PyErr_Occurred()) SWIG_fail; | |
18980 | } | |
18981 | Py_INCREF(Py_None); resultobj = Py_None; | |
18982 | return resultobj; | |
18983 | fail: | |
18984 | return NULL; | |
18985 | } | |
18986 | ||
18987 | ||
18988 | static PyObject *_wrap_PyEllipseShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18989 | PyObject *resultobj; | |
18990 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
18991 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18992 | double arg3 ; | |
18993 | double arg4 ; | |
18994 | int arg5 = (int) 0 ; | |
18995 | int arg6 = (int) 0 ; | |
18996 | PyObject * obj0 = 0 ; | |
18997 | PyObject * obj1 = 0 ; | |
18998 | char *kwnames[] = { | |
18999 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19000 | }; | |
19001 | ||
19002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyEllipseShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19004 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19005 | { | |
19006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19007 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19008 | ||
19009 | wxPyEndAllowThreads(__tstate); | |
19010 | if (PyErr_Occurred()) SWIG_fail; | |
19011 | } | |
19012 | Py_INCREF(Py_None); resultobj = Py_None; | |
19013 | return resultobj; | |
19014 | fail: | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
19019 | static PyObject *_wrap_PyEllipseShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj; | |
19021 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
19022 | double arg2 ; | |
19023 | double arg3 ; | |
19024 | PyObject * obj0 = 0 ; | |
19025 | char *kwnames[] = { | |
19026 | (char *) "self",(char *) "w",(char *) "h", NULL | |
19027 | }; | |
19028 | ||
19029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyEllipseShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19031 | { | |
19032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19033 | (arg1)->base_OnBeginSize(arg2,arg3); | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | Py_INCREF(Py_None); resultobj = Py_None; | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_PyEllipseShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
19048 | double arg2 ; | |
19049 | double arg3 ; | |
19050 | PyObject * obj0 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self",(char *) "w",(char *) "h", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyEllipseShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEllipseShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19057 | { | |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | (arg1)->base_OnEndSize(arg2,arg3); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
19064 | Py_INCREF(Py_None); resultobj = Py_None; | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
19071 | static PyObject * PyEllipseShape_swigregister(PyObject *self, PyObject *args) { | |
19072 | PyObject *obj; | |
19073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19074 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEllipseShape, obj); | |
19075 | Py_INCREF(obj); | |
19076 | return Py_BuildValue((char *)""); | |
19077 | } | |
19078 | static PyObject *_wrap_new_PyCircleShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19079 | PyObject *resultobj; | |
19080 | double arg1 = (double) 0.0 ; | |
19081 | wxPyCircleShape *result; | |
19082 | char *kwnames[] = { | |
19083 | (char *) "width", NULL | |
19084 | }; | |
19085 | ||
19086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|d:new_PyCircleShape",kwnames,&arg1)) goto fail; | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (wxPyCircleShape *)new wxPyCircleShape(arg1); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
19094 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCircleShape, 1); | |
19095 | return resultobj; | |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
19101 | static PyObject *_wrap_PyCircleShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19102 | PyObject *resultobj; | |
19103 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19104 | PyObject *arg2 = (PyObject *) 0 ; | |
19105 | PyObject *arg3 = (PyObject *) 0 ; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | PyObject * obj1 = 0 ; | |
19108 | PyObject * obj2 = 0 ; | |
19109 | char *kwnames[] = { | |
19110 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19111 | }; | |
19112 | ||
19113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19115 | arg2 = obj1; | |
19116 | arg3 = obj2; | |
19117 | { | |
19118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19119 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19120 | ||
19121 | wxPyEndAllowThreads(__tstate); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
19124 | Py_INCREF(Py_None); resultobj = Py_None; | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
19131 | static PyObject *_wrap_PyCircleShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19132 | PyObject *resultobj; | |
19133 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19134 | wxDC *arg2 = 0 ; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | PyObject * obj1 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self",(char *) "dc", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
19142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19144 | if (arg2 == NULL) { | |
19145 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19146 | } | |
19147 | { | |
19148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19149 | (arg1)->base_OnDraw(*arg2); | |
19150 | ||
19151 | wxPyEndAllowThreads(__tstate); | |
19152 | if (PyErr_Occurred()) SWIG_fail; | |
19153 | } | |
19154 | Py_INCREF(Py_None); resultobj = Py_None; | |
19155 | return resultobj; | |
19156 | fail: | |
19157 | return NULL; | |
19158 | } | |
19159 | ||
19160 | ||
19161 | static PyObject *_wrap_PyCircleShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19162 | PyObject *resultobj; | |
19163 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19164 | wxDC *arg2 = 0 ; | |
19165 | PyObject * obj0 = 0 ; | |
19166 | PyObject * obj1 = 0 ; | |
19167 | char *kwnames[] = { | |
19168 | (char *) "self",(char *) "dc", NULL | |
19169 | }; | |
19170 | ||
19171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
19172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19173 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19174 | if (arg2 == NULL) { | |
19175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19176 | } | |
19177 | { | |
19178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19179 | (arg1)->base_OnDrawContents(*arg2); | |
19180 | ||
19181 | wxPyEndAllowThreads(__tstate); | |
19182 | if (PyErr_Occurred()) SWIG_fail; | |
19183 | } | |
19184 | Py_INCREF(Py_None); resultobj = Py_None; | |
19185 | return resultobj; | |
19186 | fail: | |
19187 | return NULL; | |
19188 | } | |
19189 | ||
19190 | ||
19191 | static PyObject *_wrap_PyCircleShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19192 | PyObject *resultobj; | |
19193 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19194 | wxDC *arg2 = 0 ; | |
19195 | bool arg3 = (bool) FALSE ; | |
19196 | PyObject * obj0 = 0 ; | |
19197 | PyObject * obj1 = 0 ; | |
19198 | PyObject * obj2 = 0 ; | |
19199 | char *kwnames[] = { | |
19200 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
19201 | }; | |
19202 | ||
19203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19205 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19206 | if (arg2 == NULL) { | |
19207 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19208 | } | |
19209 | if (obj2) { | |
19210 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19211 | if (PyErr_Occurred()) SWIG_fail; | |
19212 | } | |
19213 | { | |
19214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19215 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
19216 | ||
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
19220 | Py_INCREF(Py_None); resultobj = Py_None; | |
19221 | return resultobj; | |
19222 | fail: | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
19227 | static PyObject *_wrap_PyCircleShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19228 | PyObject *resultobj; | |
19229 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19230 | wxDC *arg2 = 0 ; | |
19231 | PyObject * obj0 = 0 ; | |
19232 | PyObject * obj1 = 0 ; | |
19233 | char *kwnames[] = { | |
19234 | (char *) "self",(char *) "dc", NULL | |
19235 | }; | |
19236 | ||
19237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
19238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19240 | if (arg2 == NULL) { | |
19241 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19242 | } | |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | (arg1)->base_OnMoveLinks(*arg2); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | Py_INCREF(Py_None); resultobj = Py_None; | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_PyCircleShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19260 | wxDC *arg2 = 0 ; | |
19261 | PyObject * obj0 = 0 ; | |
19262 | PyObject * obj1 = 0 ; | |
19263 | char *kwnames[] = { | |
19264 | (char *) "self",(char *) "dc", NULL | |
19265 | }; | |
19266 | ||
19267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
19268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19269 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19270 | if (arg2 == NULL) { | |
19271 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19272 | } | |
19273 | { | |
19274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19275 | (arg1)->base_OnErase(*arg2); | |
19276 | ||
19277 | wxPyEndAllowThreads(__tstate); | |
19278 | if (PyErr_Occurred()) SWIG_fail; | |
19279 | } | |
19280 | Py_INCREF(Py_None); resultobj = Py_None; | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | return NULL; | |
19284 | } | |
19285 | ||
19286 | ||
19287 | static PyObject *_wrap_PyCircleShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19288 | PyObject *resultobj; | |
19289 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19290 | wxDC *arg2 = 0 ; | |
19291 | PyObject * obj0 = 0 ; | |
19292 | PyObject * obj1 = 0 ; | |
19293 | char *kwnames[] = { | |
19294 | (char *) "self",(char *) "dc", NULL | |
19295 | }; | |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
19298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19299 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19300 | if (arg2 == NULL) { | |
19301 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19302 | } | |
19303 | { | |
19304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19305 | (arg1)->base_OnEraseContents(*arg2); | |
19306 | ||
19307 | wxPyEndAllowThreads(__tstate); | |
19308 | if (PyErr_Occurred()) SWIG_fail; | |
19309 | } | |
19310 | Py_INCREF(Py_None); resultobj = Py_None; | |
19311 | return resultobj; | |
19312 | fail: | |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
19317 | static PyObject *_wrap_PyCircleShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19318 | PyObject *resultobj; | |
19319 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19320 | wxDC *arg2 = 0 ; | |
19321 | PyObject * obj0 = 0 ; | |
19322 | PyObject * obj1 = 0 ; | |
19323 | char *kwnames[] = { | |
19324 | (char *) "self",(char *) "dc", NULL | |
19325 | }; | |
19326 | ||
19327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
19328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19329 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19330 | if (arg2 == NULL) { | |
19331 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19332 | } | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | (arg1)->base_OnHighlight(*arg2); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | Py_INCREF(Py_None); resultobj = Py_None; | |
19341 | return resultobj; | |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject *_wrap_PyCircleShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19348 | PyObject *resultobj; | |
19349 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19350 | double arg2 ; | |
19351 | double arg3 ; | |
19352 | int arg4 = (int) 0 ; | |
19353 | int arg5 = (int) 0 ; | |
19354 | PyObject * obj0 = 0 ; | |
19355 | char *kwnames[] = { | |
19356 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19357 | }; | |
19358 | ||
19359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19361 | { | |
19362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19363 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
19364 | ||
19365 | wxPyEndAllowThreads(__tstate); | |
19366 | if (PyErr_Occurred()) SWIG_fail; | |
19367 | } | |
19368 | Py_INCREF(Py_None); resultobj = Py_None; | |
19369 | return resultobj; | |
19370 | fail: | |
19371 | return NULL; | |
19372 | } | |
19373 | ||
19374 | ||
19375 | static PyObject *_wrap_PyCircleShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19376 | PyObject *resultobj; | |
19377 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19378 | double arg2 ; | |
19379 | double arg3 ; | |
19380 | int arg4 = (int) 0 ; | |
19381 | int arg5 = (int) 0 ; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19389 | { | |
19390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19391 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
19392 | ||
19393 | wxPyEndAllowThreads(__tstate); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
19395 | } | |
19396 | Py_INCREF(Py_None); resultobj = Py_None; | |
19397 | return resultobj; | |
19398 | fail: | |
19399 | return NULL; | |
19400 | } | |
19401 | ||
19402 | ||
19403 | static PyObject *_wrap_PyCircleShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19404 | PyObject *resultobj; | |
19405 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19406 | double arg2 ; | |
19407 | double arg3 ; | |
19408 | int arg4 = (int) 0 ; | |
19409 | int arg5 = (int) 0 ; | |
19410 | PyObject * obj0 = 0 ; | |
19411 | char *kwnames[] = { | |
19412 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19413 | }; | |
19414 | ||
19415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19417 | { | |
19418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19419 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
19420 | ||
19421 | wxPyEndAllowThreads(__tstate); | |
19422 | if (PyErr_Occurred()) SWIG_fail; | |
19423 | } | |
19424 | Py_INCREF(Py_None); resultobj = Py_None; | |
19425 | return resultobj; | |
19426 | fail: | |
19427 | return NULL; | |
19428 | } | |
19429 | ||
19430 | ||
19431 | static PyObject *_wrap_PyCircleShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19432 | PyObject *resultobj; | |
19433 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19434 | double arg2 ; | |
19435 | double arg3 ; | |
19436 | PyObject * obj0 = 0 ; | |
19437 | char *kwnames[] = { | |
19438 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19439 | }; | |
19440 | ||
19441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCircleShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19443 | { | |
19444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19445 | (arg1)->base_OnSize(arg2,arg3); | |
19446 | ||
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | Py_INCREF(Py_None); resultobj = Py_None; | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
19457 | static PyObject *_wrap_PyCircleShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19458 | PyObject *resultobj; | |
19459 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19460 | wxDC *arg2 = 0 ; | |
19461 | double arg3 ; | |
19462 | double arg4 ; | |
19463 | double arg5 ; | |
19464 | double arg6 ; | |
19465 | bool arg7 = (bool) True ; | |
19466 | bool result; | |
19467 | PyObject * obj0 = 0 ; | |
19468 | PyObject * obj1 = 0 ; | |
19469 | PyObject * obj6 = 0 ; | |
19470 | char *kwnames[] = { | |
19471 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19472 | }; | |
19473 | ||
19474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyCircleShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
19475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19476 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19477 | if (arg2 == NULL) { | |
19478 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19479 | } | |
19480 | if (obj6) { | |
19481 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | { | |
19485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19486 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19487 | ||
19488 | wxPyEndAllowThreads(__tstate); | |
19489 | if (PyErr_Occurred()) SWIG_fail; | |
19490 | } | |
19491 | resultobj = PyInt_FromLong((long)result); | |
19492 | return resultobj; | |
19493 | fail: | |
19494 | return NULL; | |
19495 | } | |
19496 | ||
19497 | ||
19498 | static PyObject *_wrap_PyCircleShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19499 | PyObject *resultobj; | |
19500 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19501 | wxDC *arg2 = 0 ; | |
19502 | double arg3 ; | |
19503 | double arg4 ; | |
19504 | double arg5 ; | |
19505 | double arg6 ; | |
19506 | bool arg7 = (bool) True ; | |
19507 | PyObject * obj0 = 0 ; | |
19508 | PyObject * obj1 = 0 ; | |
19509 | PyObject * obj6 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyCircleShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
19515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19517 | if (arg2 == NULL) { | |
19518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19519 | } | |
19520 | if (obj6) { | |
19521 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
19522 | if (PyErr_Occurred()) SWIG_fail; | |
19523 | } | |
19524 | { | |
19525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19526 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | Py_INCREF(Py_None); resultobj = Py_None; | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
19538 | static PyObject *_wrap_PyCircleShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19539 | PyObject *resultobj; | |
19540 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19541 | bool arg2 ; | |
19542 | double arg3 ; | |
19543 | double arg4 ; | |
19544 | int arg5 = (int) 0 ; | |
19545 | int arg6 = (int) 0 ; | |
19546 | PyObject * obj0 = 0 ; | |
19547 | PyObject * obj1 = 0 ; | |
19548 | char *kwnames[] = { | |
19549 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19550 | }; | |
19551 | ||
19552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCircleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19554 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | { | |
19557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19558 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19559 | ||
19560 | wxPyEndAllowThreads(__tstate); | |
19561 | if (PyErr_Occurred()) SWIG_fail; | |
19562 | } | |
19563 | Py_INCREF(Py_None); resultobj = Py_None; | |
19564 | return resultobj; | |
19565 | fail: | |
19566 | return NULL; | |
19567 | } | |
19568 | ||
19569 | ||
19570 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19571 | PyObject *resultobj; | |
19572 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19573 | double arg2 ; | |
19574 | double arg3 ; | |
19575 | int arg4 = (int) 0 ; | |
19576 | int arg5 = (int) 0 ; | |
19577 | PyObject * obj0 = 0 ; | |
19578 | char *kwnames[] = { | |
19579 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19580 | }; | |
19581 | ||
19582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
19587 | ||
19588 | wxPyEndAllowThreads(__tstate); | |
19589 | if (PyErr_Occurred()) SWIG_fail; | |
19590 | } | |
19591 | Py_INCREF(Py_None); resultobj = Py_None; | |
19592 | return resultobj; | |
19593 | fail: | |
19594 | return NULL; | |
19595 | } | |
19596 | ||
19597 | ||
19598 | static PyObject *_wrap_PyCircleShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19599 | PyObject *resultobj; | |
19600 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19601 | double arg2 ; | |
19602 | double arg3 ; | |
19603 | int arg4 = (int) 0 ; | |
19604 | int arg5 = (int) 0 ; | |
19605 | PyObject * obj0 = 0 ; | |
19606 | char *kwnames[] = { | |
19607 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19608 | }; | |
19609 | ||
19610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
19619 | Py_INCREF(Py_None); resultobj = Py_None; | |
19620 | return resultobj; | |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | static PyObject *_wrap_PyCircleShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj; | |
19628 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19629 | bool arg2 ; | |
19630 | double arg3 ; | |
19631 | double arg4 ; | |
19632 | int arg5 = (int) 0 ; | |
19633 | int arg6 = (int) 0 ; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | PyObject * obj1 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCircleShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19642 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | { | |
19645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19646 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
19647 | ||
19648 | wxPyEndAllowThreads(__tstate); | |
19649 | if (PyErr_Occurred()) SWIG_fail; | |
19650 | } | |
19651 | Py_INCREF(Py_None); resultobj = Py_None; | |
19652 | return resultobj; | |
19653 | fail: | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19659 | PyObject *resultobj; | |
19660 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19661 | double arg2 ; | |
19662 | double arg3 ; | |
19663 | int arg4 = (int) 0 ; | |
19664 | int arg5 = (int) 0 ; | |
19665 | PyObject * obj0 = 0 ; | |
19666 | char *kwnames[] = { | |
19667 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19668 | }; | |
19669 | ||
19670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19672 | { | |
19673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19674 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
19675 | ||
19676 | wxPyEndAllowThreads(__tstate); | |
19677 | if (PyErr_Occurred()) SWIG_fail; | |
19678 | } | |
19679 | Py_INCREF(Py_None); resultobj = Py_None; | |
19680 | return resultobj; | |
19681 | fail: | |
19682 | return NULL; | |
19683 | } | |
19684 | ||
19685 | ||
19686 | static PyObject *_wrap_PyCircleShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19687 | PyObject *resultobj; | |
19688 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19689 | double arg2 ; | |
19690 | double arg3 ; | |
19691 | int arg4 = (int) 0 ; | |
19692 | int arg5 = (int) 0 ; | |
19693 | PyObject * obj0 = 0 ; | |
19694 | char *kwnames[] = { | |
19695 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19696 | }; | |
19697 | ||
19698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyCircleShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
19699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19700 | { | |
19701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19702 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
19703 | ||
19704 | wxPyEndAllowThreads(__tstate); | |
19705 | if (PyErr_Occurred()) SWIG_fail; | |
19706 | } | |
19707 | Py_INCREF(Py_None); resultobj = Py_None; | |
19708 | return resultobj; | |
19709 | fail: | |
19710 | return NULL; | |
19711 | } | |
19712 | ||
19713 | ||
19714 | static PyObject *_wrap_PyCircleShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19715 | PyObject *resultobj; | |
19716 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19717 | wxDC *arg2 = 0 ; | |
19718 | double arg3 ; | |
19719 | double arg4 ; | |
19720 | double arg5 ; | |
19721 | double arg6 ; | |
19722 | PyObject * obj0 = 0 ; | |
19723 | PyObject * obj1 = 0 ; | |
19724 | char *kwnames[] = { | |
19725 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
19726 | }; | |
19727 | ||
19728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyCircleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19730 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19731 | if (arg2 == NULL) { | |
19732 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19733 | } | |
19734 | { | |
19735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19736 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
19737 | ||
19738 | wxPyEndAllowThreads(__tstate); | |
19739 | if (PyErr_Occurred()) SWIG_fail; | |
19740 | } | |
19741 | Py_INCREF(Py_None); resultobj = Py_None; | |
19742 | return resultobj; | |
19743 | fail: | |
19744 | return NULL; | |
19745 | } | |
19746 | ||
19747 | ||
19748 | static PyObject *_wrap_PyCircleShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19749 | PyObject *resultobj; | |
19750 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19751 | wxDC *arg2 = 0 ; | |
19752 | PyObject * obj0 = 0 ; | |
19753 | PyObject * obj1 = 0 ; | |
19754 | char *kwnames[] = { | |
19755 | (char *) "self",(char *) "dc", NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
19759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19760 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19761 | if (arg2 == NULL) { | |
19762 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19763 | } | |
19764 | { | |
19765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19766 | (arg1)->base_OnDrawControlPoints(*arg2); | |
19767 | ||
19768 | wxPyEndAllowThreads(__tstate); | |
19769 | if (PyErr_Occurred()) SWIG_fail; | |
19770 | } | |
19771 | Py_INCREF(Py_None); resultobj = Py_None; | |
19772 | return resultobj; | |
19773 | fail: | |
19774 | return NULL; | |
19775 | } | |
19776 | ||
19777 | ||
19778 | static PyObject *_wrap_PyCircleShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19779 | PyObject *resultobj; | |
19780 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19781 | wxDC *arg2 = 0 ; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | PyObject * obj1 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self",(char *) "dc", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
19789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19790 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19791 | if (arg2 == NULL) { | |
19792 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19793 | } | |
19794 | { | |
19795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19796 | (arg1)->base_OnEraseControlPoints(*arg2); | |
19797 | ||
19798 | wxPyEndAllowThreads(__tstate); | |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
19801 | Py_INCREF(Py_None); resultobj = Py_None; | |
19802 | return resultobj; | |
19803 | fail: | |
19804 | return NULL; | |
19805 | } | |
19806 | ||
19807 | ||
19808 | static PyObject *_wrap_PyCircleShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19809 | PyObject *resultobj; | |
19810 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19811 | wxDC *arg2 = 0 ; | |
19812 | bool arg3 = (bool) True ; | |
19813 | PyObject * obj0 = 0 ; | |
19814 | PyObject * obj1 = 0 ; | |
19815 | PyObject * obj2 = 0 ; | |
19816 | char *kwnames[] = { | |
19817 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
19818 | }; | |
19819 | ||
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19823 | if (arg2 == NULL) { | |
19824 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19825 | } | |
19826 | if (obj2) { | |
19827 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
19837 | Py_INCREF(Py_None); resultobj = Py_None; | |
19838 | return resultobj; | |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_PyCircleShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19847 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
19848 | bool arg3 ; | |
19849 | double arg4 ; | |
19850 | double arg5 ; | |
19851 | int arg6 = (int) 0 ; | |
19852 | int arg7 = (int) 0 ; | |
19853 | PyObject * obj0 = 0 ; | |
19854 | PyObject * obj1 = 0 ; | |
19855 | PyObject * obj2 = 0 ; | |
19856 | char *kwnames[] = { | |
19857 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19858 | }; | |
19859 | ||
19860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyCircleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
19861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19862 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19863 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19864 | if (PyErr_Occurred()) SWIG_fail; | |
19865 | { | |
19866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19867 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
19868 | ||
19869 | wxPyEndAllowThreads(__tstate); | |
19870 | if (PyErr_Occurred()) SWIG_fail; | |
19871 | } | |
19872 | Py_INCREF(Py_None); resultobj = Py_None; | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | return NULL; | |
19876 | } | |
19877 | ||
19878 | ||
19879 | static PyObject *_wrap_PyCircleShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19880 | PyObject *resultobj; | |
19881 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19882 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
19883 | double arg3 ; | |
19884 | double arg4 ; | |
19885 | int arg5 = (int) 0 ; | |
19886 | int arg6 = (int) 0 ; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj1 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCircleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19895 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19896 | { | |
19897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19898 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19899 | ||
19900 | wxPyEndAllowThreads(__tstate); | |
19901 | if (PyErr_Occurred()) SWIG_fail; | |
19902 | } | |
19903 | Py_INCREF(Py_None); resultobj = Py_None; | |
19904 | return resultobj; | |
19905 | fail: | |
19906 | return NULL; | |
19907 | } | |
19908 | ||
19909 | ||
19910 | static PyObject *_wrap_PyCircleShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19911 | PyObject *resultobj; | |
19912 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19913 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
19914 | double arg3 ; | |
19915 | double arg4 ; | |
19916 | int arg5 = (int) 0 ; | |
19917 | int arg6 = (int) 0 ; | |
19918 | PyObject * obj0 = 0 ; | |
19919 | PyObject * obj1 = 0 ; | |
19920 | char *kwnames[] = { | |
19921 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19922 | }; | |
19923 | ||
19924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyCircleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19927 | { | |
19928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19929 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19930 | ||
19931 | wxPyEndAllowThreads(__tstate); | |
19932 | if (PyErr_Occurred()) SWIG_fail; | |
19933 | } | |
19934 | Py_INCREF(Py_None); resultobj = Py_None; | |
19935 | return resultobj; | |
19936 | fail: | |
19937 | return NULL; | |
19938 | } | |
19939 | ||
19940 | ||
19941 | static PyObject *_wrap_PyCircleShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19942 | PyObject *resultobj; | |
19943 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19944 | double arg2 ; | |
19945 | double arg3 ; | |
19946 | PyObject * obj0 = 0 ; | |
19947 | char *kwnames[] = { | |
19948 | (char *) "self",(char *) "w",(char *) "h", NULL | |
19949 | }; | |
19950 | ||
19951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCircleShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19953 | { | |
19954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19955 | (arg1)->base_OnBeginSize(arg2,arg3); | |
19956 | ||
19957 | wxPyEndAllowThreads(__tstate); | |
19958 | if (PyErr_Occurred()) SWIG_fail; | |
19959 | } | |
19960 | Py_INCREF(Py_None); resultobj = Py_None; | |
19961 | return resultobj; | |
19962 | fail: | |
19963 | return NULL; | |
19964 | } | |
19965 | ||
19966 | ||
19967 | static PyObject *_wrap_PyCircleShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19968 | PyObject *resultobj; | |
19969 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
19970 | double arg2 ; | |
19971 | double arg3 ; | |
19972 | PyObject * obj0 = 0 ; | |
19973 | char *kwnames[] = { | |
19974 | (char *) "self",(char *) "w",(char *) "h", NULL | |
19975 | }; | |
19976 | ||
19977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyCircleShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCircleShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | (arg1)->base_OnEndSize(arg2,arg3); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
19986 | Py_INCREF(Py_None); resultobj = Py_None; | |
19987 | return resultobj; | |
19988 | fail: | |
19989 | return NULL; | |
19990 | } | |
19991 | ||
19992 | ||
19993 | static PyObject * PyCircleShape_swigregister(PyObject *self, PyObject *args) { | |
19994 | PyObject *obj; | |
19995 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19996 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCircleShape, obj); | |
19997 | Py_INCREF(obj); | |
19998 | return Py_BuildValue((char *)""); | |
19999 | } | |
20000 | static PyObject *_wrap_new_ArrowHead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20001 | PyObject *resultobj; | |
20002 | int arg1 = (int) 0 ; | |
20003 | int arg2 = (int) 0 ; | |
20004 | double arg3 = (double) 0.0 ; | |
20005 | double arg4 = (double) 0.0 ; | |
20006 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
20007 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
20008 | wxPseudoMetaFile *arg6 = (wxPseudoMetaFile *) NULL ; | |
20009 | long arg7 = (long) -1 ; | |
20010 | wxArrowHead *result; | |
20011 | bool temp5 = False ; | |
20012 | PyObject * obj4 = 0 ; | |
20013 | PyObject * obj5 = 0 ; | |
20014 | char *kwnames[] = { | |
20015 | (char *) "type",(char *) "end",(char *) "size",(char *) "dist",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
20016 | }; | |
20017 | ||
20018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiddOOl:new_ArrowHead",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
20019 | if (obj4) { | |
20020 | { | |
20021 | arg5 = wxString_in_helper(obj4); | |
20022 | if (arg5 == NULL) SWIG_fail; | |
20023 | temp5 = True; | |
20024 | } | |
20025 | } | |
20026 | if (obj5) { | |
20027 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20028 | } | |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (wxArrowHead *)new wxArrowHead(arg1,arg2,arg3,arg4,(wxString const &)*arg5,arg6,arg7); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | { | |
20037 | resultobj = wxPyMake_wxObject(result); | |
20038 | } | |
20039 | { | |
20040 | if (temp5) | |
20041 | delete arg5; | |
20042 | } | |
20043 | return resultobj; | |
20044 | fail: | |
20045 | { | |
20046 | if (temp5) | |
20047 | delete arg5; | |
20048 | } | |
20049 | return NULL; | |
20050 | } | |
20051 | ||
20052 | ||
20053 | static PyObject *_wrap_delete_ArrowHead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20054 | PyObject *resultobj; | |
20055 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20056 | PyObject * obj0 = 0 ; | |
20057 | char *kwnames[] = { | |
20058 | (char *) "self", NULL | |
20059 | }; | |
20060 | ||
20061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArrowHead",kwnames,&obj0)) goto fail; | |
20062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20063 | { | |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | delete arg1; | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
20070 | Py_INCREF(Py_None); resultobj = Py_None; | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | static PyObject *_wrap_ArrowHead__GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20078 | PyObject *resultobj; | |
20079 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20080 | int result; | |
20081 | PyObject * obj0 = 0 ; | |
20082 | char *kwnames[] = { | |
20083 | (char *) "self", NULL | |
20084 | }; | |
20085 | ||
20086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead__GetType",kwnames,&obj0)) goto fail; | |
20087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20088 | { | |
20089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20090 | result = (int)(arg1)->_GetType(); | |
20091 | ||
20092 | wxPyEndAllowThreads(__tstate); | |
20093 | if (PyErr_Occurred()) SWIG_fail; | |
20094 | } | |
20095 | resultobj = PyInt_FromLong((long)result); | |
20096 | return resultobj; | |
20097 | fail: | |
20098 | return NULL; | |
20099 | } | |
20100 | ||
20101 | ||
20102 | static PyObject *_wrap_ArrowHead_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20103 | PyObject *resultobj; | |
20104 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20105 | int result; | |
20106 | PyObject * obj0 = 0 ; | |
20107 | char *kwnames[] = { | |
20108 | (char *) "self", NULL | |
20109 | }; | |
20110 | ||
20111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetPosition",kwnames,&obj0)) goto fail; | |
20112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20113 | { | |
20114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20115 | result = (int)(arg1)->GetPosition(); | |
20116 | ||
20117 | wxPyEndAllowThreads(__tstate); | |
20118 | if (PyErr_Occurred()) SWIG_fail; | |
20119 | } | |
20120 | resultobj = PyInt_FromLong((long)result); | |
20121 | return resultobj; | |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
20127 | static PyObject *_wrap_ArrowHead_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20128 | PyObject *resultobj; | |
20129 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20130 | int arg2 ; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "self",(char *) "pos", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ArrowHead_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
20137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20138 | { | |
20139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20140 | (arg1)->SetPosition(arg2); | |
20141 | ||
20142 | wxPyEndAllowThreads(__tstate); | |
20143 | if (PyErr_Occurred()) SWIG_fail; | |
20144 | } | |
20145 | Py_INCREF(Py_None); resultobj = Py_None; | |
20146 | return resultobj; | |
20147 | fail: | |
20148 | return NULL; | |
20149 | } | |
20150 | ||
20151 | ||
20152 | static PyObject *_wrap_ArrowHead_GetXOffset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20153 | PyObject *resultobj; | |
20154 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20155 | double result; | |
20156 | PyObject * obj0 = 0 ; | |
20157 | char *kwnames[] = { | |
20158 | (char *) "self", NULL | |
20159 | }; | |
20160 | ||
20161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetXOffset",kwnames,&obj0)) goto fail; | |
20162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20163 | { | |
20164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20165 | result = (double)(arg1)->GetXOffset(); | |
20166 | ||
20167 | wxPyEndAllowThreads(__tstate); | |
20168 | if (PyErr_Occurred()) SWIG_fail; | |
20169 | } | |
20170 | resultobj = PyFloat_FromDouble(result); | |
20171 | return resultobj; | |
20172 | fail: | |
20173 | return NULL; | |
20174 | } | |
20175 | ||
20176 | ||
20177 | static PyObject *_wrap_ArrowHead_GetYOffset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20178 | PyObject *resultobj; | |
20179 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20180 | double result; | |
20181 | PyObject * obj0 = 0 ; | |
20182 | char *kwnames[] = { | |
20183 | (char *) "self", NULL | |
20184 | }; | |
20185 | ||
20186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetYOffset",kwnames,&obj0)) goto fail; | |
20187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | result = (double)(arg1)->GetYOffset(); | |
20191 | ||
20192 | wxPyEndAllowThreads(__tstate); | |
20193 | if (PyErr_Occurred()) SWIG_fail; | |
20194 | } | |
20195 | resultobj = PyFloat_FromDouble(result); | |
20196 | return resultobj; | |
20197 | fail: | |
20198 | return NULL; | |
20199 | } | |
20200 | ||
20201 | ||
20202 | static PyObject *_wrap_ArrowHead_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20203 | PyObject *resultobj; | |
20204 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20205 | double result; | |
20206 | PyObject * obj0 = 0 ; | |
20207 | char *kwnames[] = { | |
20208 | (char *) "self", NULL | |
20209 | }; | |
20210 | ||
20211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSpacing",kwnames,&obj0)) goto fail; | |
20212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20213 | { | |
20214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20215 | result = (double)(arg1)->GetSpacing(); | |
20216 | ||
20217 | wxPyEndAllowThreads(__tstate); | |
20218 | if (PyErr_Occurred()) SWIG_fail; | |
20219 | } | |
20220 | resultobj = PyFloat_FromDouble(result); | |
20221 | return resultobj; | |
20222 | fail: | |
20223 | return NULL; | |
20224 | } | |
20225 | ||
20226 | ||
20227 | static PyObject *_wrap_ArrowHead_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20228 | PyObject *resultobj; | |
20229 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20230 | double result; | |
20231 | PyObject * obj0 = 0 ; | |
20232 | char *kwnames[] = { | |
20233 | (char *) "self", NULL | |
20234 | }; | |
20235 | ||
20236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSize",kwnames,&obj0)) goto fail; | |
20237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20238 | { | |
20239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20240 | result = (double)(arg1)->GetSize(); | |
20241 | ||
20242 | wxPyEndAllowThreads(__tstate); | |
20243 | if (PyErr_Occurred()) SWIG_fail; | |
20244 | } | |
20245 | resultobj = PyFloat_FromDouble(result); | |
20246 | return resultobj; | |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
20252 | static PyObject *_wrap_ArrowHead_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20253 | PyObject *resultobj; | |
20254 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20255 | wxString result; | |
20256 | PyObject * obj0 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetName",kwnames,&obj0)) goto fail; | |
20262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20263 | { | |
20264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20265 | result = (arg1)->GetName(); | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | { | |
20271 | #if wxUSE_UNICODE | |
20272 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20273 | #else | |
20274 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20275 | #endif | |
20276 | } | |
20277 | return resultobj; | |
20278 | fail: | |
20279 | return NULL; | |
20280 | } | |
20281 | ||
20282 | ||
20283 | static PyObject *_wrap_ArrowHead_SetXOffset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20284 | PyObject *resultobj; | |
20285 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20286 | double arg2 ; | |
20287 | PyObject * obj0 = 0 ; | |
20288 | char *kwnames[] = { | |
20289 | (char *) "self",(char *) "x", NULL | |
20290 | }; | |
20291 | ||
20292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:ArrowHead_SetXOffset",kwnames,&obj0,&arg2)) goto fail; | |
20293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | (arg1)->SetXOffset(arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | Py_INCREF(Py_None); resultobj = Py_None; | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_ArrowHead_SetYOffset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20309 | PyObject *resultobj; | |
20310 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20311 | double arg2 ; | |
20312 | PyObject * obj0 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self",(char *) "y", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:ArrowHead_SetYOffset",kwnames,&obj0,&arg2)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | (arg1)->SetYOffset(arg2); | |
20322 | ||
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
20326 | Py_INCREF(Py_None); resultobj = Py_None; | |
20327 | return resultobj; | |
20328 | fail: | |
20329 | return NULL; | |
20330 | } | |
20331 | ||
20332 | ||
20333 | static PyObject *_wrap_ArrowHead_GetMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20334 | PyObject *resultobj; | |
20335 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20336 | wxPseudoMetaFile *result; | |
20337 | PyObject * obj0 = 0 ; | |
20338 | char *kwnames[] = { | |
20339 | (char *) "self", NULL | |
20340 | }; | |
20341 | ||
20342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetMetaFile",kwnames,&obj0)) goto fail; | |
20343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20344 | { | |
20345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20346 | result = (wxPseudoMetaFile *)(arg1)->GetMetaFile(); | |
20347 | ||
20348 | wxPyEndAllowThreads(__tstate); | |
20349 | if (PyErr_Occurred()) SWIG_fail; | |
20350 | } | |
20351 | { | |
20352 | resultobj = wxPyMake_wxObject(result); | |
20353 | } | |
20354 | return resultobj; | |
20355 | fail: | |
20356 | return NULL; | |
20357 | } | |
20358 | ||
20359 | ||
20360 | static PyObject *_wrap_ArrowHead_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20361 | PyObject *resultobj; | |
20362 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20363 | long result; | |
20364 | PyObject * obj0 = 0 ; | |
20365 | char *kwnames[] = { | |
20366 | (char *) "self", NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetId",kwnames,&obj0)) goto fail; | |
20370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20371 | { | |
20372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20373 | result = (long)(arg1)->GetId(); | |
20374 | ||
20375 | wxPyEndAllowThreads(__tstate); | |
20376 | if (PyErr_Occurred()) SWIG_fail; | |
20377 | } | |
20378 | resultobj = PyInt_FromLong((long)result); | |
20379 | return resultobj; | |
20380 | fail: | |
20381 | return NULL; | |
20382 | } | |
20383 | ||
20384 | ||
20385 | static PyObject *_wrap_ArrowHead_GetArrowEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20386 | PyObject *resultobj; | |
20387 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20388 | int result; | |
20389 | PyObject * obj0 = 0 ; | |
20390 | char *kwnames[] = { | |
20391 | (char *) "self", NULL | |
20392 | }; | |
20393 | ||
20394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowEnd",kwnames,&obj0)) goto fail; | |
20395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20396 | { | |
20397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20398 | result = (int)(arg1)->GetArrowEnd(); | |
20399 | ||
20400 | wxPyEndAllowThreads(__tstate); | |
20401 | if (PyErr_Occurred()) SWIG_fail; | |
20402 | } | |
20403 | resultobj = PyInt_FromLong((long)result); | |
20404 | return resultobj; | |
20405 | fail: | |
20406 | return NULL; | |
20407 | } | |
20408 | ||
20409 | ||
20410 | static PyObject *_wrap_ArrowHead_GetArrowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20411 | PyObject *resultobj; | |
20412 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20413 | double result; | |
20414 | PyObject * obj0 = 0 ; | |
20415 | char *kwnames[] = { | |
20416 | (char *) "self", NULL | |
20417 | }; | |
20418 | ||
20419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowSize",kwnames,&obj0)) goto fail; | |
20420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20421 | { | |
20422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20423 | result = (double)(arg1)->GetArrowSize(); | |
20424 | ||
20425 | wxPyEndAllowThreads(__tstate); | |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
20427 | } | |
20428 | resultobj = PyFloat_FromDouble(result); | |
20429 | return resultobj; | |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_ArrowHead_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20438 | double arg2 ; | |
20439 | PyObject * obj0 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self",(char *) "size", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:ArrowHead_SetSize",kwnames,&obj0,&arg2)) goto fail; | |
20445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20446 | { | |
20447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20448 | (arg1)->SetSize(arg2); | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | Py_INCREF(Py_None); resultobj = Py_None; | |
20454 | return resultobj; | |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
20460 | static PyObject *_wrap_ArrowHead_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20461 | PyObject *resultobj; | |
20462 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
20463 | double arg2 ; | |
20464 | PyObject * obj0 = 0 ; | |
20465 | char *kwnames[] = { | |
20466 | (char *) "self",(char *) "sp", NULL | |
20467 | }; | |
20468 | ||
20469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:ArrowHead_SetSpacing",kwnames,&obj0,&arg2)) goto fail; | |
20470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20471 | { | |
20472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20473 | (arg1)->SetSpacing(arg2); | |
20474 | ||
20475 | wxPyEndAllowThreads(__tstate); | |
20476 | if (PyErr_Occurred()) SWIG_fail; | |
20477 | } | |
20478 | Py_INCREF(Py_None); resultobj = Py_None; | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject * ArrowHead_swigregister(PyObject *self, PyObject *args) { | |
20486 | PyObject *obj; | |
20487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20488 | SWIG_TypeClientData(SWIGTYPE_p_wxArrowHead, obj); | |
20489 | Py_INCREF(obj); | |
20490 | return Py_BuildValue((char *)""); | |
20491 | } | |
20492 | static PyObject *_wrap_new_PyLineShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20493 | PyObject *resultobj; | |
20494 | wxPyLineShape *result; | |
20495 | char *kwnames[] = { | |
20496 | NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLineShape",kwnames)) goto fail; | |
20500 | { | |
20501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20502 | result = (wxPyLineShape *)new wxPyLineShape(); | |
20503 | ||
20504 | wxPyEndAllowThreads(__tstate); | |
20505 | if (PyErr_Occurred()) SWIG_fail; | |
20506 | } | |
20507 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLineShape, 1); | |
20508 | return resultobj; | |
20509 | fail: | |
20510 | return NULL; | |
20511 | } | |
20512 | ||
20513 | ||
20514 | static PyObject *_wrap_PyLineShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20515 | PyObject *resultobj; | |
20516 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20517 | PyObject *arg2 = (PyObject *) 0 ; | |
20518 | PyObject *arg3 = (PyObject *) 0 ; | |
20519 | PyObject * obj0 = 0 ; | |
20520 | PyObject * obj1 = 0 ; | |
20521 | PyObject * obj2 = 0 ; | |
20522 | char *kwnames[] = { | |
20523 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20524 | }; | |
20525 | ||
20526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20528 | arg2 = obj1; | |
20529 | arg3 = obj2; | |
20530 | { | |
20531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20532 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20533 | ||
20534 | wxPyEndAllowThreads(__tstate); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | } | |
20537 | Py_INCREF(Py_None); resultobj = Py_None; | |
20538 | return resultobj; | |
20539 | fail: | |
20540 | return NULL; | |
20541 | } | |
20542 | ||
20543 | ||
20544 | static PyObject *_wrap_PyLineShape_AddArrow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20545 | PyObject *resultobj; | |
20546 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20547 | int arg2 ; | |
20548 | int arg3 = (int) ARROW_POSITION_END ; | |
20549 | double arg4 = (double) 10.0 ; | |
20550 | double arg5 = (double) 0.0 ; | |
20551 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
20552 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20553 | wxPseudoMetaFile *arg7 = (wxPseudoMetaFile *) NULL ; | |
20554 | long arg8 = (long) -1 ; | |
20555 | bool temp6 = False ; | |
20556 | PyObject * obj0 = 0 ; | |
20557 | PyObject * obj5 = 0 ; | |
20558 | PyObject * obj6 = 0 ; | |
20559 | char *kwnames[] = { | |
20560 | (char *) "self",(char *) "type",(char *) "end",(char *) "arrowSize",(char *) "xOffset",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iddOOl:PyLineShape_AddArrow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
20564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20565 | if (obj5) { | |
20566 | { | |
20567 | arg6 = wxString_in_helper(obj5); | |
20568 | if (arg6 == NULL) SWIG_fail; | |
20569 | temp6 = True; | |
20570 | } | |
20571 | } | |
20572 | if (obj6) { | |
20573 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPseudoMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20574 | } | |
20575 | { | |
20576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20577 | (arg1)->AddArrow(arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7,arg8); | |
20578 | ||
20579 | wxPyEndAllowThreads(__tstate); | |
20580 | if (PyErr_Occurred()) SWIG_fail; | |
20581 | } | |
20582 | Py_INCREF(Py_None); resultobj = Py_None; | |
20583 | { | |
20584 | if (temp6) | |
20585 | delete arg6; | |
20586 | } | |
20587 | return resultobj; | |
20588 | fail: | |
20589 | { | |
20590 | if (temp6) | |
20591 | delete arg6; | |
20592 | } | |
20593 | return NULL; | |
20594 | } | |
20595 | ||
20596 | ||
20597 | static PyObject *_wrap_PyLineShape_AddArrowOrdered(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20598 | PyObject *resultobj; | |
20599 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20600 | wxArrowHead *arg2 = (wxArrowHead *) 0 ; | |
20601 | PyObject *arg3 = (PyObject *) 0 ; | |
20602 | int arg4 ; | |
20603 | PyObject * obj0 = 0 ; | |
20604 | PyObject * obj1 = 0 ; | |
20605 | PyObject * obj2 = 0 ; | |
20606 | char *kwnames[] = { | |
20607 | (char *) "self",(char *) "arrow",(char *) "referenceList",(char *) "end", NULL | |
20608 | }; | |
20609 | ||
20610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:PyLineShape_AddArrowOrdered",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
20611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20613 | arg3 = obj2; | |
20614 | { | |
20615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20616 | wxPyLineShape_AddArrowOrdered(arg1,arg2,arg3,arg4); | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | Py_INCREF(Py_None); resultobj = Py_None; | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_PyLineShape_ClearArrow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20631 | wxString *arg2 = 0 ; | |
20632 | bool result; | |
20633 | bool temp2 = False ; | |
20634 | PyObject * obj0 = 0 ; | |
20635 | PyObject * obj1 = 0 ; | |
20636 | char *kwnames[] = { | |
20637 | (char *) "self",(char *) "name", NULL | |
20638 | }; | |
20639 | ||
20640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_ClearArrow",kwnames,&obj0,&obj1)) goto fail; | |
20641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20642 | { | |
20643 | arg2 = wxString_in_helper(obj1); | |
20644 | if (arg2 == NULL) SWIG_fail; | |
20645 | temp2 = True; | |
20646 | } | |
20647 | { | |
20648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20649 | result = (bool)(arg1)->ClearArrow((wxString const &)*arg2); | |
20650 | ||
20651 | wxPyEndAllowThreads(__tstate); | |
20652 | if (PyErr_Occurred()) SWIG_fail; | |
20653 | } | |
20654 | resultobj = PyInt_FromLong((long)result); | |
20655 | { | |
20656 | if (temp2) | |
20657 | delete arg2; | |
20658 | } | |
20659 | return resultobj; | |
20660 | fail: | |
20661 | { | |
20662 | if (temp2) | |
20663 | delete arg2; | |
20664 | } | |
20665 | return NULL; | |
20666 | } | |
20667 | ||
20668 | ||
20669 | static PyObject *_wrap_PyLineShape_ClearArrowsAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20670 | PyObject *resultobj; | |
20671 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20672 | int arg2 = (int) -1 ; | |
20673 | PyObject * obj0 = 0 ; | |
20674 | char *kwnames[] = { | |
20675 | (char *) "self",(char *) "position", NULL | |
20676 | }; | |
20677 | ||
20678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyLineShape_ClearArrowsAtPosition",kwnames,&obj0,&arg2)) goto fail; | |
20679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | (arg1)->ClearArrowsAtPosition(arg2); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | Py_INCREF(Py_None); resultobj = Py_None; | |
20688 | return resultobj; | |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
20694 | static PyObject *_wrap_PyLineShape_DrawArrow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20695 | PyObject *resultobj; | |
20696 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20697 | wxDC *arg2 = 0 ; | |
20698 | wxArrowHead *arg3 = (wxArrowHead *) 0 ; | |
20699 | double arg4 ; | |
20700 | bool arg5 ; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | PyObject * obj1 = 0 ; | |
20703 | PyObject * obj2 = 0 ; | |
20704 | PyObject * obj4 = 0 ; | |
20705 | char *kwnames[] = { | |
20706 | (char *) "self",(char *) "dc",(char *) "arrow",(char *) "xOffset",(char *) "proportionalOffset", NULL | |
20707 | }; | |
20708 | ||
20709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdO:PyLineShape_DrawArrow",kwnames,&obj0,&obj1,&obj2,&arg4,&obj4)) goto fail; | |
20710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20712 | if (arg2 == NULL) { | |
20713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20714 | } | |
20715 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxArrowHead,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20716 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | { | |
20719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20720 | (arg1)->DrawArrow(*arg2,arg3,arg4,arg5); | |
20721 | ||
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
20725 | Py_INCREF(Py_None); resultobj = Py_None; | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | static PyObject *_wrap_PyLineShape_DeleteArrowHeadId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20735 | long arg2 ; | |
20736 | bool result; | |
20737 | PyObject * obj0 = 0 ; | |
20738 | char *kwnames[] = { | |
20739 | (char *) "self",(char *) "arrowId", NULL | |
20740 | }; | |
20741 | ||
20742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:PyLineShape_DeleteArrowHeadId",kwnames,&obj0,&arg2)) goto fail; | |
20743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20744 | { | |
20745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20746 | result = (bool)(arg1)->DeleteArrowHead(arg2); | |
20747 | ||
20748 | wxPyEndAllowThreads(__tstate); | |
20749 | if (PyErr_Occurred()) SWIG_fail; | |
20750 | } | |
20751 | resultobj = PyInt_FromLong((long)result); | |
20752 | return resultobj; | |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_PyLineShape_DeleteArrowHead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20761 | int arg2 ; | |
20762 | wxString *arg3 = 0 ; | |
20763 | bool result; | |
20764 | bool temp3 = False ; | |
20765 | PyObject * obj0 = 0 ; | |
20766 | PyObject * obj2 = 0 ; | |
20767 | char *kwnames[] = { | |
20768 | (char *) "self",(char *) "position",(char *) "name", NULL | |
20769 | }; | |
20770 | ||
20771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyLineShape_DeleteArrowHead",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
20772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20773 | { | |
20774 | arg3 = wxString_in_helper(obj2); | |
20775 | if (arg3 == NULL) SWIG_fail; | |
20776 | temp3 = True; | |
20777 | } | |
20778 | { | |
20779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20780 | result = (bool)(arg1)->DeleteArrowHead(arg2,(wxString const &)*arg3); | |
20781 | ||
20782 | wxPyEndAllowThreads(__tstate); | |
20783 | if (PyErr_Occurred()) SWIG_fail; | |
20784 | } | |
20785 | resultobj = PyInt_FromLong((long)result); | |
20786 | { | |
20787 | if (temp3) | |
20788 | delete arg3; | |
20789 | } | |
20790 | return resultobj; | |
20791 | fail: | |
20792 | { | |
20793 | if (temp3) | |
20794 | delete arg3; | |
20795 | } | |
20796 | return NULL; | |
20797 | } | |
20798 | ||
20799 | ||
20800 | static PyObject *_wrap_PyLineShape_DeleteLineControlPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20801 | PyObject *resultobj; | |
20802 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20803 | bool result; | |
20804 | PyObject * obj0 = 0 ; | |
20805 | char *kwnames[] = { | |
20806 | (char *) "self", NULL | |
20807 | }; | |
20808 | ||
20809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_DeleteLineControlPoint",kwnames,&obj0)) goto fail; | |
20810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | result = (bool)(arg1)->DeleteLineControlPoint(); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | resultobj = PyInt_FromLong((long)result); | |
20819 | return resultobj; | |
20820 | fail: | |
20821 | return NULL; | |
20822 | } | |
20823 | ||
20824 | ||
20825 | static PyObject *_wrap_PyLineShape_DrawArrows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20826 | PyObject *resultobj; | |
20827 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20828 | wxDC *arg2 = 0 ; | |
20829 | PyObject * obj0 = 0 ; | |
20830 | PyObject * obj1 = 0 ; | |
20831 | char *kwnames[] = { | |
20832 | (char *) "self",(char *) "dc", NULL | |
20833 | }; | |
20834 | ||
20835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_DrawArrows",kwnames,&obj0,&obj1)) goto fail; | |
20836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20838 | if (arg2 == NULL) { | |
20839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20840 | } | |
20841 | { | |
20842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20843 | (arg1)->DrawArrows(*arg2); | |
20844 | ||
20845 | wxPyEndAllowThreads(__tstate); | |
20846 | if (PyErr_Occurred()) SWIG_fail; | |
20847 | } | |
20848 | Py_INCREF(Py_None); resultobj = Py_None; | |
20849 | return resultobj; | |
20850 | fail: | |
20851 | return NULL; | |
20852 | } | |
20853 | ||
20854 | ||
20855 | static PyObject *_wrap_PyLineShape_DrawRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20856 | PyObject *resultobj; | |
20857 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20858 | wxDC *arg2 = 0 ; | |
20859 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
20860 | double arg4 ; | |
20861 | double arg5 ; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | PyObject * obj1 = 0 ; | |
20864 | PyObject * obj2 = 0 ; | |
20865 | char *kwnames[] = { | |
20866 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
20867 | }; | |
20868 | ||
20869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:PyLineShape_DrawRegion",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
20870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20872 | if (arg2 == NULL) { | |
20873 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20874 | } | |
20875 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20876 | { | |
20877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20878 | (arg1)->DrawRegion(*arg2,arg3,arg4,arg5); | |
20879 | ||
20880 | wxPyEndAllowThreads(__tstate); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
20883 | Py_INCREF(Py_None); resultobj = Py_None; | |
20884 | return resultobj; | |
20885 | fail: | |
20886 | return NULL; | |
20887 | } | |
20888 | ||
20889 | ||
20890 | static PyObject *_wrap_PyLineShape_EraseRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20891 | PyObject *resultobj; | |
20892 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20893 | wxDC *arg2 = 0 ; | |
20894 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
20895 | double arg4 ; | |
20896 | double arg5 ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | PyObject * obj1 = 0 ; | |
20899 | PyObject * obj2 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:PyLineShape_EraseRegion",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
20905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20906 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20907 | if (arg2 == NULL) { | |
20908 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20909 | } | |
20910 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20911 | { | |
20912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20913 | (arg1)->EraseRegion(*arg2,arg3,arg4,arg5); | |
20914 | ||
20915 | wxPyEndAllowThreads(__tstate); | |
20916 | if (PyErr_Occurred()) SWIG_fail; | |
20917 | } | |
20918 | Py_INCREF(Py_None); resultobj = Py_None; | |
20919 | return resultobj; | |
20920 | fail: | |
20921 | return NULL; | |
20922 | } | |
20923 | ||
20924 | ||
20925 | static PyObject *_wrap_PyLineShape_FindArrowHeadId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20926 | PyObject *resultobj; | |
20927 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20928 | long arg2 ; | |
20929 | wxArrowHead *result; | |
20930 | PyObject * obj0 = 0 ; | |
20931 | char *kwnames[] = { | |
20932 | (char *) "self",(char *) "arrowId", NULL | |
20933 | }; | |
20934 | ||
20935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:PyLineShape_FindArrowHeadId",kwnames,&obj0,&arg2)) goto fail; | |
20936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20937 | { | |
20938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20939 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2); | |
20940 | ||
20941 | wxPyEndAllowThreads(__tstate); | |
20942 | if (PyErr_Occurred()) SWIG_fail; | |
20943 | } | |
20944 | { | |
20945 | resultobj = wxPyMake_wxObject(result); | |
20946 | } | |
20947 | return resultobj; | |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_PyLineShape_FindArrowHead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
20956 | int arg2 ; | |
20957 | wxString *arg3 = 0 ; | |
20958 | wxArrowHead *result; | |
20959 | bool temp3 = False ; | |
20960 | PyObject * obj0 = 0 ; | |
20961 | PyObject * obj2 = 0 ; | |
20962 | char *kwnames[] = { | |
20963 | (char *) "self",(char *) "position",(char *) "name", NULL | |
20964 | }; | |
20965 | ||
20966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyLineShape_FindArrowHead",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
20967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20968 | { | |
20969 | arg3 = wxString_in_helper(obj2); | |
20970 | if (arg3 == NULL) SWIG_fail; | |
20971 | temp3 = True; | |
20972 | } | |
20973 | { | |
20974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20975 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2,(wxString const &)*arg3); | |
20976 | ||
20977 | wxPyEndAllowThreads(__tstate); | |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
20979 | } | |
20980 | { | |
20981 | resultobj = wxPyMake_wxObject(result); | |
20982 | } | |
20983 | { | |
20984 | if (temp3) | |
20985 | delete arg3; | |
20986 | } | |
20987 | return resultobj; | |
20988 | fail: | |
20989 | { | |
20990 | if (temp3) | |
20991 | delete arg3; | |
20992 | } | |
20993 | return NULL; | |
20994 | } | |
20995 | ||
20996 | ||
20997 | static PyObject *_wrap_PyLineShape_FindLineEndPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20998 | PyObject *resultobj; | |
20999 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21000 | double *arg2 = (double *) 0 ; | |
21001 | double *arg3 = (double *) 0 ; | |
21002 | double *arg4 = (double *) 0 ; | |
21003 | double *arg5 = (double *) 0 ; | |
21004 | double temp2 ; | |
21005 | double temp3 ; | |
21006 | double temp4 ; | |
21007 | double temp5 ; | |
21008 | PyObject * obj0 = 0 ; | |
21009 | char *kwnames[] = { | |
21010 | (char *) "self", NULL | |
21011 | }; | |
21012 | ||
21013 | arg2 = &temp2; | |
21014 | arg3 = &temp3; | |
21015 | arg4 = &temp4; | |
21016 | arg5 = &temp5; | |
21017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindLineEndPoints",kwnames,&obj0)) goto fail; | |
21018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21019 | { | |
21020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21021 | (arg1)->FindLineEndPoints(arg2,arg3,arg4,arg5); | |
21022 | ||
21023 | wxPyEndAllowThreads(__tstate); | |
21024 | if (PyErr_Occurred()) SWIG_fail; | |
21025 | } | |
21026 | Py_INCREF(Py_None); resultobj = Py_None; | |
21027 | { | |
21028 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
21029 | resultobj = t_output_helper(resultobj,o); | |
21030 | } | |
21031 | { | |
21032 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
21033 | resultobj = t_output_helper(resultobj,o); | |
21034 | } | |
21035 | { | |
21036 | PyObject *o = PyFloat_FromDouble((double) (*arg4)); | |
21037 | resultobj = t_output_helper(resultobj,o); | |
21038 | } | |
21039 | { | |
21040 | PyObject *o = PyFloat_FromDouble((double) (*arg5)); | |
21041 | resultobj = t_output_helper(resultobj,o); | |
21042 | } | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_PyLineShape_FindLinePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21050 | PyObject *resultobj; | |
21051 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21052 | double arg2 ; | |
21053 | double arg3 ; | |
21054 | int result; | |
21055 | PyObject * obj0 = 0 ; | |
21056 | char *kwnames[] = { | |
21057 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21058 | }; | |
21059 | ||
21060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyLineShape_FindLinePosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
21061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21062 | { | |
21063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21064 | result = (int)(arg1)->FindLinePosition(arg2,arg3); | |
21065 | ||
21066 | wxPyEndAllowThreads(__tstate); | |
21067 | if (PyErr_Occurred()) SWIG_fail; | |
21068 | } | |
21069 | resultobj = PyInt_FromLong((long)result); | |
21070 | return resultobj; | |
21071 | fail: | |
21072 | return NULL; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_PyLineShape_FindMinimumWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21079 | double result; | |
21080 | PyObject * obj0 = 0 ; | |
21081 | char *kwnames[] = { | |
21082 | (char *) "self", NULL | |
21083 | }; | |
21084 | ||
21085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindMinimumWidth",kwnames,&obj0)) goto fail; | |
21086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21087 | { | |
21088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21089 | result = (double)(arg1)->FindMinimumWidth(); | |
21090 | ||
21091 | wxPyEndAllowThreads(__tstate); | |
21092 | if (PyErr_Occurred()) SWIG_fail; | |
21093 | } | |
21094 | resultobj = PyFloat_FromDouble(result); | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
21101 | static PyObject *_wrap_PyLineShape_FindNth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21102 | PyObject *resultobj; | |
21103 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21104 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
21105 | int *arg3 = (int *) 0 ; | |
21106 | int *arg4 = (int *) 0 ; | |
21107 | bool arg5 ; | |
21108 | int temp3 ; | |
21109 | int temp4 ; | |
21110 | PyObject * obj0 = 0 ; | |
21111 | PyObject * obj1 = 0 ; | |
21112 | PyObject * obj2 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "self",(char *) "image",(char *) "incoming", NULL | |
21115 | }; | |
21116 | ||
21117 | arg3 = &temp3; | |
21118 | arg4 = &temp4; | |
21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindNth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21122 | arg5 = PyInt_AsLong(obj2) ? true : false; | |
21123 | if (PyErr_Occurred()) SWIG_fail; | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | (arg1)->FindNth(arg2,arg3,arg4,arg5); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | Py_INCREF(Py_None); resultobj = Py_None; | |
21132 | { | |
21133 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21134 | resultobj = t_output_helper(resultobj,o); | |
21135 | } | |
21136 | { | |
21137 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
21138 | resultobj = t_output_helper(resultobj,o); | |
21139 | } | |
21140 | return resultobj; | |
21141 | fail: | |
21142 | return NULL; | |
21143 | } | |
21144 | ||
21145 | ||
21146 | static PyObject *_wrap_PyLineShape_GetAttachmentFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21147 | PyObject *resultobj; | |
21148 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21149 | int result; | |
21150 | PyObject * obj0 = 0 ; | |
21151 | char *kwnames[] = { | |
21152 | (char *) "self", NULL | |
21153 | }; | |
21154 | ||
21155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentFrom",kwnames,&obj0)) goto fail; | |
21156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21157 | { | |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | result = (int)(arg1)->GetAttachmentFrom(); | |
21160 | ||
21161 | wxPyEndAllowThreads(__tstate); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
21164 | resultobj = PyInt_FromLong((long)result); | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
21171 | static PyObject *_wrap_PyLineShape_GetAttachmentTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21172 | PyObject *resultobj; | |
21173 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21174 | int result; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "self", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentTo",kwnames,&obj0)) goto fail; | |
21181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21182 | { | |
21183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21184 | result = (int)(arg1)->GetAttachmentTo(); | |
21185 | ||
21186 | wxPyEndAllowThreads(__tstate); | |
21187 | if (PyErr_Occurred()) SWIG_fail; | |
21188 | } | |
21189 | resultobj = PyInt_FromLong((long)result); | |
21190 | return resultobj; | |
21191 | fail: | |
21192 | return NULL; | |
21193 | } | |
21194 | ||
21195 | ||
21196 | static PyObject *_wrap_PyLineShape_GetEnds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21197 | PyObject *resultobj; | |
21198 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21199 | double *arg2 = (double *) 0 ; | |
21200 | double *arg3 = (double *) 0 ; | |
21201 | double *arg4 = (double *) 0 ; | |
21202 | double *arg5 = (double *) 0 ; | |
21203 | double temp2 ; | |
21204 | double temp3 ; | |
21205 | double temp4 ; | |
21206 | double temp5 ; | |
21207 | PyObject * obj0 = 0 ; | |
21208 | char *kwnames[] = { | |
21209 | (char *) "self", NULL | |
21210 | }; | |
21211 | ||
21212 | arg2 = &temp2; | |
21213 | arg3 = &temp3; | |
21214 | arg4 = &temp4; | |
21215 | arg5 = &temp5; | |
21216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetEnds",kwnames,&obj0)) goto fail; | |
21217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21218 | { | |
21219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21220 | (arg1)->GetEnds(arg2,arg3,arg4,arg5); | |
21221 | ||
21222 | wxPyEndAllowThreads(__tstate); | |
21223 | if (PyErr_Occurred()) SWIG_fail; | |
21224 | } | |
21225 | Py_INCREF(Py_None); resultobj = Py_None; | |
21226 | { | |
21227 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
21228 | resultobj = t_output_helper(resultobj,o); | |
21229 | } | |
21230 | { | |
21231 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
21232 | resultobj = t_output_helper(resultobj,o); | |
21233 | } | |
21234 | { | |
21235 | PyObject *o = PyFloat_FromDouble((double) (*arg4)); | |
21236 | resultobj = t_output_helper(resultobj,o); | |
21237 | } | |
21238 | { | |
21239 | PyObject *o = PyFloat_FromDouble((double) (*arg5)); | |
21240 | resultobj = t_output_helper(resultobj,o); | |
21241 | } | |
21242 | return resultobj; | |
21243 | fail: | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
21248 | static PyObject *_wrap_PyLineShape_GetFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21249 | PyObject *resultobj; | |
21250 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21251 | wxPyShape *result; | |
21252 | PyObject * obj0 = 0 ; | |
21253 | char *kwnames[] = { | |
21254 | (char *) "self", NULL | |
21255 | }; | |
21256 | ||
21257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetFrom",kwnames,&obj0)) goto fail; | |
21258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21259 | { | |
21260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21261 | result = (wxPyShape *)(arg1)->GetFrom(); | |
21262 | ||
21263 | wxPyEndAllowThreads(__tstate); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | { | |
21267 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
21268 | } | |
21269 | return resultobj; | |
21270 | fail: | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | static PyObject *_wrap_PyLineShape_GetLabelPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj; | |
21277 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21278 | int arg2 ; | |
21279 | double *arg3 = (double *) 0 ; | |
21280 | double *arg4 = (double *) 0 ; | |
21281 | double temp3 ; | |
21282 | double temp4 ; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | char *kwnames[] = { | |
21285 | (char *) "self",(char *) "position", NULL | |
21286 | }; | |
21287 | ||
21288 | arg3 = &temp3; | |
21289 | arg4 = &temp4; | |
21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyLineShape_GetLabelPosition",kwnames,&obj0,&arg2)) goto fail; | |
21291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21292 | { | |
21293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21294 | (arg1)->GetLabelPosition(arg2,arg3,arg4); | |
21295 | ||
21296 | wxPyEndAllowThreads(__tstate); | |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
21298 | } | |
21299 | Py_INCREF(Py_None); resultobj = Py_None; | |
21300 | { | |
21301 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
21302 | resultobj = t_output_helper(resultobj,o); | |
21303 | } | |
21304 | { | |
21305 | PyObject *o = PyFloat_FromDouble((double) (*arg4)); | |
21306 | resultobj = t_output_helper(resultobj,o); | |
21307 | } | |
21308 | return resultobj; | |
21309 | fail: | |
21310 | return NULL; | |
21311 | } | |
21312 | ||
21313 | ||
21314 | static PyObject *_wrap_PyLineShape_GetNextControlPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21315 | PyObject *resultobj; | |
21316 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21317 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
21318 | wxRealPoint *result; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | PyObject * obj1 = 0 ; | |
21321 | char *kwnames[] = { | |
21322 | (char *) "self",(char *) "shape", NULL | |
21323 | }; | |
21324 | ||
21325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetNextControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
21326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21328 | { | |
21329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21330 | result = (wxRealPoint *)(arg1)->GetNextControlPoint(arg2); | |
21331 | ||
21332 | wxPyEndAllowThreads(__tstate); | |
21333 | if (PyErr_Occurred()) SWIG_fail; | |
21334 | } | |
21335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 0); | |
21336 | return resultobj; | |
21337 | fail: | |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_PyLineShape_GetTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21345 | wxPyShape *result; | |
21346 | PyObject * obj0 = 0 ; | |
21347 | char *kwnames[] = { | |
21348 | (char *) "self", NULL | |
21349 | }; | |
21350 | ||
21351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetTo",kwnames,&obj0)) goto fail; | |
21352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21353 | { | |
21354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21355 | result = (wxPyShape *)(arg1)->GetTo(); | |
21356 | ||
21357 | wxPyEndAllowThreads(__tstate); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
21360 | { | |
21361 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
21362 | } | |
21363 | return resultobj; | |
21364 | fail: | |
21365 | return NULL; | |
21366 | } | |
21367 | ||
21368 | ||
21369 | static PyObject *_wrap_PyLineShape_Initialise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21370 | PyObject *resultobj; | |
21371 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21372 | PyObject * obj0 = 0 ; | |
21373 | char *kwnames[] = { | |
21374 | (char *) "self", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Initialise",kwnames,&obj0)) goto fail; | |
21378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21379 | { | |
21380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21381 | (arg1)->Initialise(); | |
21382 | ||
21383 | wxPyEndAllowThreads(__tstate); | |
21384 | if (PyErr_Occurred()) SWIG_fail; | |
21385 | } | |
21386 | Py_INCREF(Py_None); resultobj = Py_None; | |
21387 | return resultobj; | |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | static PyObject *_wrap_PyLineShape_InsertLineControlPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21394 | PyObject *resultobj; | |
21395 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21396 | wxDC *arg2 = (wxDC *) 0 ; | |
21397 | PyObject * obj0 = 0 ; | |
21398 | PyObject * obj1 = 0 ; | |
21399 | char *kwnames[] = { | |
21400 | (char *) "self",(char *) "dc", NULL | |
21401 | }; | |
21402 | ||
21403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_InsertLineControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
21404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21405 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | (arg1)->InsertLineControlPoint(arg2); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | Py_INCREF(Py_None); resultobj = Py_None; | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_PyLineShape_IsEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21423 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
21424 | bool result; | |
21425 | PyObject * obj0 = 0 ; | |
21426 | PyObject * obj1 = 0 ; | |
21427 | char *kwnames[] = { | |
21428 | (char *) "self",(char *) "shape", NULL | |
21429 | }; | |
21430 | ||
21431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_IsEnd",kwnames,&obj0,&obj1)) goto fail; | |
21432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21433 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21434 | { | |
21435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21436 | result = (bool)(arg1)->IsEnd(arg2); | |
21437 | ||
21438 | wxPyEndAllowThreads(__tstate); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | } | |
21441 | resultobj = PyInt_FromLong((long)result); | |
21442 | return resultobj; | |
21443 | fail: | |
21444 | return NULL; | |
21445 | } | |
21446 | ||
21447 | ||
21448 | static PyObject *_wrap_PyLineShape_IsSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21449 | PyObject *resultobj; | |
21450 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21451 | bool result; | |
21452 | PyObject * obj0 = 0 ; | |
21453 | char *kwnames[] = { | |
21454 | (char *) "self", NULL | |
21455 | }; | |
21456 | ||
21457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_IsSpline",kwnames,&obj0)) goto fail; | |
21458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21459 | { | |
21460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21461 | result = (bool)(arg1)->IsSpline(); | |
21462 | ||
21463 | wxPyEndAllowThreads(__tstate); | |
21464 | if (PyErr_Occurred()) SWIG_fail; | |
21465 | } | |
21466 | resultobj = PyInt_FromLong((long)result); | |
21467 | return resultobj; | |
21468 | fail: | |
21469 | return NULL; | |
21470 | } | |
21471 | ||
21472 | ||
21473 | static PyObject *_wrap_PyLineShape_MakeLineControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21474 | PyObject *resultobj; | |
21475 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21476 | int arg2 ; | |
21477 | PyObject * obj0 = 0 ; | |
21478 | char *kwnames[] = { | |
21479 | (char *) "self",(char *) "n", NULL | |
21480 | }; | |
21481 | ||
21482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyLineShape_MakeLineControlPoints",kwnames,&obj0,&arg2)) goto fail; | |
21483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21484 | { | |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | (arg1)->MakeLineControlPoints(arg2); | |
21487 | ||
21488 | wxPyEndAllowThreads(__tstate); | |
21489 | if (PyErr_Occurred()) SWIG_fail; | |
21490 | } | |
21491 | Py_INCREF(Py_None); resultobj = Py_None; | |
21492 | return resultobj; | |
21493 | fail: | |
21494 | return NULL; | |
21495 | } | |
21496 | ||
21497 | ||
21498 | static PyObject *_wrap_PyLineShape_GetLineControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21499 | PyObject *resultobj; | |
21500 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21501 | PyObject *result; | |
21502 | PyObject * obj0 = 0 ; | |
21503 | char *kwnames[] = { | |
21504 | (char *) "self", NULL | |
21505 | }; | |
21506 | ||
21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetLineControlPoints",kwnames,&obj0)) goto fail; | |
21508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21509 | { | |
21510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21511 | result = (PyObject *)wxPyLineShape_GetLineControlPoints(arg1); | |
21512 | ||
21513 | wxPyEndAllowThreads(__tstate); | |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
21515 | } | |
21516 | resultobj = result; | |
21517 | return resultobj; | |
21518 | fail: | |
21519 | return NULL; | |
21520 | } | |
21521 | ||
21522 | ||
21523 | static PyObject *_wrap_PyLineShape_SetAttachmentFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21524 | PyObject *resultobj; | |
21525 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21526 | int arg2 ; | |
21527 | PyObject * obj0 = 0 ; | |
21528 | char *kwnames[] = { | |
21529 | (char *) "self",(char *) "fromAttach", NULL | |
21530 | }; | |
21531 | ||
21532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyLineShape_SetAttachmentFrom",kwnames,&obj0,&arg2)) goto fail; | |
21533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21534 | { | |
21535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21536 | (arg1)->SetAttachmentFrom(arg2); | |
21537 | ||
21538 | wxPyEndAllowThreads(__tstate); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | } | |
21541 | Py_INCREF(Py_None); resultobj = Py_None; | |
21542 | return resultobj; | |
21543 | fail: | |
21544 | return NULL; | |
21545 | } | |
21546 | ||
21547 | ||
21548 | static PyObject *_wrap_PyLineShape_SetAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21549 | PyObject *resultobj; | |
21550 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21551 | int arg2 ; | |
21552 | int arg3 ; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | char *kwnames[] = { | |
21555 | (char *) "self",(char *) "fromAttach",(char *) "toAttach", NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyLineShape_SetAttachments",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
21559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21560 | { | |
21561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21562 | (arg1)->SetAttachments(arg2,arg3); | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | Py_INCREF(Py_None); resultobj = Py_None; | |
21568 | return resultobj; | |
21569 | fail: | |
21570 | return NULL; | |
21571 | } | |
21572 | ||
21573 | ||
21574 | static PyObject *_wrap_PyLineShape_SetAttachmentTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21575 | PyObject *resultobj; | |
21576 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21577 | int arg2 ; | |
21578 | PyObject * obj0 = 0 ; | |
21579 | char *kwnames[] = { | |
21580 | (char *) "self",(char *) "toAttach", NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyLineShape_SetAttachmentTo",kwnames,&obj0,&arg2)) goto fail; | |
21584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | (arg1)->SetAttachmentTo(arg2); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | Py_INCREF(Py_None); resultobj = Py_None; | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_PyLineShape_SetEnds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21602 | double arg2 ; | |
21603 | double arg3 ; | |
21604 | double arg4 ; | |
21605 | double arg5 ; | |
21606 | PyObject * obj0 = 0 ; | |
21607 | char *kwnames[] = { | |
21608 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
21609 | }; | |
21610 | ||
21611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odddd:PyLineShape_SetEnds",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
21612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21613 | { | |
21614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21615 | (arg1)->SetEnds(arg2,arg3,arg4,arg5); | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
21620 | Py_INCREF(Py_None); resultobj = Py_None; | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_PyLineShape_SetFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21630 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
21631 | PyObject * obj0 = 0 ; | |
21632 | PyObject * obj1 = 0 ; | |
21633 | char *kwnames[] = { | |
21634 | (char *) "self",(char *) "object", NULL | |
21635 | }; | |
21636 | ||
21637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetFrom",kwnames,&obj0,&obj1)) goto fail; | |
21638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21640 | { | |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | (arg1)->SetFrom(arg2); | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | Py_INCREF(Py_None); resultobj = Py_None; | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
21654 | static PyObject *_wrap_PyLineShape_SetIgnoreOffsets(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21655 | PyObject *resultobj; | |
21656 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21657 | bool arg2 ; | |
21658 | PyObject * obj0 = 0 ; | |
21659 | PyObject * obj1 = 0 ; | |
21660 | char *kwnames[] = { | |
21661 | (char *) "self",(char *) "ignore", NULL | |
21662 | }; | |
21663 | ||
21664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetIgnoreOffsets",kwnames,&obj0,&obj1)) goto fail; | |
21665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21666 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21667 | if (PyErr_Occurred()) SWIG_fail; | |
21668 | { | |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | (arg1)->SetIgnoreOffsets(arg2); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
21675 | Py_INCREF(Py_None); resultobj = Py_None; | |
21676 | return resultobj; | |
21677 | fail: | |
21678 | return NULL; | |
21679 | } | |
21680 | ||
21681 | ||
21682 | static PyObject *_wrap_PyLineShape_SetSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21683 | PyObject *resultobj; | |
21684 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21685 | bool arg2 ; | |
21686 | PyObject * obj0 = 0 ; | |
21687 | PyObject * obj1 = 0 ; | |
21688 | char *kwnames[] = { | |
21689 | (char *) "self",(char *) "spline", NULL | |
21690 | }; | |
21691 | ||
21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetSpline",kwnames,&obj0,&obj1)) goto fail; | |
21693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21694 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | { | |
21697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21698 | (arg1)->SetSpline(arg2); | |
21699 | ||
21700 | wxPyEndAllowThreads(__tstate); | |
21701 | if (PyErr_Occurred()) SWIG_fail; | |
21702 | } | |
21703 | Py_INCREF(Py_None); resultobj = Py_None; | |
21704 | return resultobj; | |
21705 | fail: | |
21706 | return NULL; | |
21707 | } | |
21708 | ||
21709 | ||
21710 | static PyObject *_wrap_PyLineShape_SetTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21711 | PyObject *resultobj; | |
21712 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21713 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
21714 | PyObject * obj0 = 0 ; | |
21715 | PyObject * obj1 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self",(char *) "object", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetTo",kwnames,&obj0,&obj1)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21723 | { | |
21724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21725 | (arg1)->SetTo(arg2); | |
21726 | ||
21727 | wxPyEndAllowThreads(__tstate); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
21730 | Py_INCREF(Py_None); resultobj = Py_None; | |
21731 | return resultobj; | |
21732 | fail: | |
21733 | return NULL; | |
21734 | } | |
21735 | ||
21736 | ||
21737 | static PyObject *_wrap_PyLineShape_Straighten(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21738 | PyObject *resultobj; | |
21739 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21740 | wxDC *arg2 = (wxDC *) NULL ; | |
21741 | PyObject * obj0 = 0 ; | |
21742 | PyObject * obj1 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self",(char *) "dc", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyLineShape_Straighten",kwnames,&obj0,&obj1)) goto fail; | |
21748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | if (obj1) { | |
21750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21751 | } | |
21752 | { | |
21753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21754 | (arg1)->Straighten(arg2); | |
21755 | ||
21756 | wxPyEndAllowThreads(__tstate); | |
21757 | if (PyErr_Occurred()) SWIG_fail; | |
21758 | } | |
21759 | Py_INCREF(Py_None); resultobj = Py_None; | |
21760 | return resultobj; | |
21761 | fail: | |
21762 | return NULL; | |
21763 | } | |
21764 | ||
21765 | ||
21766 | static PyObject *_wrap_PyLineShape_Unlink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21767 | PyObject *resultobj; | |
21768 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21769 | PyObject * obj0 = 0 ; | |
21770 | char *kwnames[] = { | |
21771 | (char *) "self", NULL | |
21772 | }; | |
21773 | ||
21774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Unlink",kwnames,&obj0)) goto fail; | |
21775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21776 | { | |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | (arg1)->Unlink(); | |
21779 | ||
21780 | wxPyEndAllowThreads(__tstate); | |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
21782 | } | |
21783 | Py_INCREF(Py_None); resultobj = Py_None; | |
21784 | return resultobj; | |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
30d215aa RD |
21790 | static PyObject *_wrap_PyLineShape_SetAlignmentOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
21791 | PyObject *resultobj; | |
21792 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21793 | bool arg2 ; | |
21794 | bool arg3 ; | |
21795 | PyObject * obj0 = 0 ; | |
21796 | PyObject * obj1 = 0 ; | |
21797 | PyObject * obj2 = 0 ; | |
21798 | char *kwnames[] = { | |
21799 | (char *) "self",(char *) "isEnd",(char *) "isHoriz", NULL | |
21800 | }; | |
21801 | ||
21802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAlignmentOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21804 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | { | |
21809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21810 | (arg1)->SetAlignmentOrientation(arg2,arg3); | |
21811 | ||
21812 | wxPyEndAllowThreads(__tstate); | |
21813 | if (PyErr_Occurred()) SWIG_fail; | |
21814 | } | |
21815 | Py_INCREF(Py_None); resultobj = Py_None; | |
21816 | return resultobj; | |
21817 | fail: | |
21818 | return NULL; | |
21819 | } | |
21820 | ||
21821 | ||
21822 | static PyObject *_wrap_PyLineShape_SetAlignmentType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21823 | PyObject *resultobj; | |
21824 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21825 | bool arg2 ; | |
21826 | int arg3 ; | |
21827 | PyObject * obj0 = 0 ; | |
21828 | PyObject * obj1 = 0 ; | |
21829 | char *kwnames[] = { | |
21830 | (char *) "self",(char *) "isEnd",(char *) "alignType", NULL | |
21831 | }; | |
21832 | ||
21833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyLineShape_SetAlignmentType",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21835 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21836 | if (PyErr_Occurred()) SWIG_fail; | |
21837 | { | |
21838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21839 | (arg1)->SetAlignmentType(arg2,arg3); | |
21840 | ||
21841 | wxPyEndAllowThreads(__tstate); | |
21842 | if (PyErr_Occurred()) SWIG_fail; | |
21843 | } | |
21844 | Py_INCREF(Py_None); resultobj = Py_None; | |
21845 | return resultobj; | |
21846 | fail: | |
21847 | return NULL; | |
21848 | } | |
21849 | ||
21850 | ||
21851 | static PyObject *_wrap_PyLineShape_GetAlignmentOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21852 | PyObject *resultobj; | |
21853 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21854 | bool arg2 ; | |
21855 | bool result; | |
21856 | PyObject * obj0 = 0 ; | |
21857 | PyObject * obj1 = 0 ; | |
21858 | char *kwnames[] = { | |
21859 | (char *) "self",(char *) "isEnd", NULL | |
21860 | }; | |
21861 | ||
21862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentOrientation",kwnames,&obj0,&obj1)) goto fail; | |
21863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21864 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21865 | if (PyErr_Occurred()) SWIG_fail; | |
21866 | { | |
21867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21868 | result = (bool)(arg1)->GetAlignmentOrientation(arg2); | |
21869 | ||
21870 | wxPyEndAllowThreads(__tstate); | |
21871 | if (PyErr_Occurred()) SWIG_fail; | |
21872 | } | |
21873 | resultobj = PyInt_FromLong((long)result); | |
21874 | return resultobj; | |
21875 | fail: | |
21876 | return NULL; | |
21877 | } | |
21878 | ||
21879 | ||
21880 | static PyObject *_wrap_PyLineShape_GetAlignmentType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21881 | PyObject *resultobj; | |
21882 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21883 | bool arg2 ; | |
21884 | int result; | |
21885 | PyObject * obj0 = 0 ; | |
21886 | PyObject * obj1 = 0 ; | |
21887 | char *kwnames[] = { | |
21888 | (char *) "self",(char *) "isEnd", NULL | |
21889 | }; | |
21890 | ||
21891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentType",kwnames,&obj0,&obj1)) goto fail; | |
21892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21893 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | { | |
21896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21897 | result = (int)(arg1)->GetAlignmentType(arg2); | |
21898 | ||
21899 | wxPyEndAllowThreads(__tstate); | |
21900 | if (PyErr_Occurred()) SWIG_fail; | |
21901 | } | |
21902 | resultobj = PyInt_FromLong((long)result); | |
21903 | return resultobj; | |
21904 | fail: | |
21905 | return NULL; | |
21906 | } | |
21907 | ||
21908 | ||
21909 | static PyObject *_wrap_PyLineShape_GetAlignmentStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21910 | PyObject *resultobj; | |
21911 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21912 | int result; | |
21913 | PyObject * obj0 = 0 ; | |
21914 | char *kwnames[] = { | |
21915 | (char *) "self", NULL | |
21916 | }; | |
21917 | ||
21918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentStart",kwnames,&obj0)) goto fail; | |
21919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21920 | { | |
21921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21922 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentStart(); | |
21923 | ||
21924 | wxPyEndAllowThreads(__tstate); | |
21925 | if (PyErr_Occurred()) SWIG_fail; | |
21926 | } | |
21927 | resultobj = PyInt_FromLong((long)result); | |
21928 | return resultobj; | |
21929 | fail: | |
21930 | return NULL; | |
21931 | } | |
21932 | ||
21933 | ||
21934 | static PyObject *_wrap_PyLineShape_GetAlignmentEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21935 | PyObject *resultobj; | |
21936 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21937 | int result; | |
21938 | PyObject * obj0 = 0 ; | |
21939 | char *kwnames[] = { | |
21940 | (char *) "self", NULL | |
21941 | }; | |
21942 | ||
21943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentEnd",kwnames,&obj0)) goto fail; | |
21944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21945 | { | |
21946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21947 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentEnd(); | |
21948 | ||
21949 | wxPyEndAllowThreads(__tstate); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
21951 | } | |
21952 | resultobj = PyInt_FromLong((long)result); | |
21953 | return resultobj; | |
21954 | fail: | |
21955 | return NULL; | |
21956 | } | |
21957 | ||
21958 | ||
44127b65 RD |
21959 | static PyObject *_wrap_PyLineShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21960 | PyObject *resultobj; | |
21961 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21962 | wxDC *arg2 = 0 ; | |
21963 | PyObject * obj0 = 0 ; | |
21964 | PyObject * obj1 = 0 ; | |
21965 | char *kwnames[] = { | |
21966 | (char *) "self",(char *) "dc", NULL | |
21967 | }; | |
21968 | ||
21969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
21970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21972 | if (arg2 == NULL) { | |
21973 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21974 | } | |
21975 | { | |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21977 | (arg1)->base_OnDraw(*arg2); | |
21978 | ||
21979 | wxPyEndAllowThreads(__tstate); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | Py_INCREF(Py_None); resultobj = Py_None; | |
21983 | return resultobj; | |
21984 | fail: | |
21985 | return NULL; | |
21986 | } | |
21987 | ||
21988 | ||
21989 | static PyObject *_wrap_PyLineShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21990 | PyObject *resultobj; | |
21991 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
21992 | wxDC *arg2 = 0 ; | |
21993 | PyObject * obj0 = 0 ; | |
21994 | PyObject * obj1 = 0 ; | |
21995 | char *kwnames[] = { | |
21996 | (char *) "self",(char *) "dc", NULL | |
21997 | }; | |
21998 | ||
21999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
22000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22001 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22002 | if (arg2 == NULL) { | |
22003 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22004 | } | |
22005 | { | |
22006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22007 | (arg1)->base_OnDrawContents(*arg2); | |
22008 | ||
22009 | wxPyEndAllowThreads(__tstate); | |
22010 | if (PyErr_Occurred()) SWIG_fail; | |
22011 | } | |
22012 | Py_INCREF(Py_None); resultobj = Py_None; | |
22013 | return resultobj; | |
22014 | fail: | |
22015 | return NULL; | |
22016 | } | |
22017 | ||
22018 | ||
22019 | static PyObject *_wrap_PyLineShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22020 | PyObject *resultobj; | |
22021 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22022 | wxDC *arg2 = 0 ; | |
22023 | bool arg3 = (bool) FALSE ; | |
22024 | PyObject * obj0 = 0 ; | |
22025 | PyObject * obj1 = 0 ; | |
22026 | PyObject * obj2 = 0 ; | |
22027 | char *kwnames[] = { | |
22028 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
22029 | }; | |
22030 | ||
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22033 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22034 | if (arg2 == NULL) { | |
22035 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22036 | } | |
22037 | if (obj2) { | |
22038 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | { | |
22042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22043 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
22044 | ||
22045 | wxPyEndAllowThreads(__tstate); | |
22046 | if (PyErr_Occurred()) SWIG_fail; | |
22047 | } | |
22048 | Py_INCREF(Py_None); resultobj = Py_None; | |
22049 | return resultobj; | |
22050 | fail: | |
22051 | return NULL; | |
22052 | } | |
22053 | ||
22054 | ||
22055 | static PyObject *_wrap_PyLineShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22056 | PyObject *resultobj; | |
22057 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22058 | wxDC *arg2 = 0 ; | |
22059 | PyObject * obj0 = 0 ; | |
22060 | PyObject * obj1 = 0 ; | |
22061 | char *kwnames[] = { | |
22062 | (char *) "self",(char *) "dc", NULL | |
22063 | }; | |
22064 | ||
22065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
22066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22068 | if (arg2 == NULL) { | |
22069 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | (arg1)->base_OnMoveLinks(*arg2); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
22078 | Py_INCREF(Py_None); resultobj = Py_None; | |
22079 | return resultobj; | |
22080 | fail: | |
22081 | return NULL; | |
22082 | } | |
22083 | ||
22084 | ||
22085 | static PyObject *_wrap_PyLineShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22086 | PyObject *resultobj; | |
22087 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22088 | wxDC *arg2 = 0 ; | |
22089 | PyObject * obj0 = 0 ; | |
22090 | PyObject * obj1 = 0 ; | |
22091 | char *kwnames[] = { | |
22092 | (char *) "self",(char *) "dc", NULL | |
22093 | }; | |
22094 | ||
22095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
22096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22097 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22098 | if (arg2 == NULL) { | |
22099 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22100 | } | |
22101 | { | |
22102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22103 | (arg1)->base_OnErase(*arg2); | |
22104 | ||
22105 | wxPyEndAllowThreads(__tstate); | |
22106 | if (PyErr_Occurred()) SWIG_fail; | |
22107 | } | |
22108 | Py_INCREF(Py_None); resultobj = Py_None; | |
22109 | return resultobj; | |
22110 | fail: | |
22111 | return NULL; | |
22112 | } | |
22113 | ||
22114 | ||
22115 | static PyObject *_wrap_PyLineShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22116 | PyObject *resultobj; | |
22117 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22118 | wxDC *arg2 = 0 ; | |
22119 | PyObject * obj0 = 0 ; | |
22120 | PyObject * obj1 = 0 ; | |
22121 | char *kwnames[] = { | |
22122 | (char *) "self",(char *) "dc", NULL | |
22123 | }; | |
22124 | ||
22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
22126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22127 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22128 | if (arg2 == NULL) { | |
22129 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22130 | } | |
22131 | { | |
22132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22133 | (arg1)->base_OnEraseContents(*arg2); | |
22134 | ||
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
22138 | Py_INCREF(Py_None); resultobj = Py_None; | |
22139 | return resultobj; | |
22140 | fail: | |
22141 | return NULL; | |
22142 | } | |
22143 | ||
22144 | ||
22145 | static PyObject *_wrap_PyLineShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22146 | PyObject *resultobj; | |
22147 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22148 | wxDC *arg2 = 0 ; | |
22149 | PyObject * obj0 = 0 ; | |
22150 | PyObject * obj1 = 0 ; | |
22151 | char *kwnames[] = { | |
22152 | (char *) "self",(char *) "dc", NULL | |
22153 | }; | |
22154 | ||
22155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
22156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22157 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22158 | if (arg2 == NULL) { | |
22159 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22160 | } | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | (arg1)->base_OnHighlight(*arg2); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | Py_INCREF(Py_None); resultobj = Py_None; | |
22169 | return resultobj; | |
22170 | fail: | |
22171 | return NULL; | |
22172 | } | |
22173 | ||
22174 | ||
22175 | static PyObject *_wrap_PyLineShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22176 | PyObject *resultobj; | |
22177 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22178 | double arg2 ; | |
22179 | double arg3 ; | |
22180 | int arg4 = (int) 0 ; | |
22181 | int arg5 = (int) 0 ; | |
22182 | PyObject * obj0 = 0 ; | |
22183 | char *kwnames[] = { | |
22184 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22185 | }; | |
22186 | ||
22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22189 | { | |
22190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22191 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
22192 | ||
22193 | wxPyEndAllowThreads(__tstate); | |
22194 | if (PyErr_Occurred()) SWIG_fail; | |
22195 | } | |
22196 | Py_INCREF(Py_None); resultobj = Py_None; | |
22197 | return resultobj; | |
22198 | fail: | |
22199 | return NULL; | |
22200 | } | |
22201 | ||
22202 | ||
22203 | static PyObject *_wrap_PyLineShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22204 | PyObject *resultobj; | |
22205 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22206 | double arg2 ; | |
22207 | double arg3 ; | |
22208 | int arg4 = (int) 0 ; | |
22209 | int arg5 = (int) 0 ; | |
22210 | PyObject * obj0 = 0 ; | |
22211 | char *kwnames[] = { | |
22212 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22213 | }; | |
22214 | ||
22215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22217 | { | |
22218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22219 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
22220 | ||
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
22224 | Py_INCREF(Py_None); resultobj = Py_None; | |
22225 | return resultobj; | |
22226 | fail: | |
22227 | return NULL; | |
22228 | } | |
22229 | ||
22230 | ||
22231 | static PyObject *_wrap_PyLineShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22232 | PyObject *resultobj; | |
22233 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22234 | double arg2 ; | |
22235 | double arg3 ; | |
22236 | int arg4 = (int) 0 ; | |
22237 | int arg5 = (int) 0 ; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22245 | { | |
22246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22247 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
22248 | ||
22249 | wxPyEndAllowThreads(__tstate); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
22251 | } | |
22252 | Py_INCREF(Py_None); resultobj = Py_None; | |
22253 | return resultobj; | |
22254 | fail: | |
22255 | return NULL; | |
22256 | } | |
22257 | ||
22258 | ||
22259 | static PyObject *_wrap_PyLineShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22260 | PyObject *resultobj; | |
22261 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22262 | double arg2 ; | |
22263 | double arg3 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | char *kwnames[] = { | |
22266 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22267 | }; | |
22268 | ||
22269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyLineShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22271 | { | |
22272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22273 | (arg1)->base_OnSize(arg2,arg3); | |
22274 | ||
22275 | wxPyEndAllowThreads(__tstate); | |
22276 | if (PyErr_Occurred()) SWIG_fail; | |
22277 | } | |
22278 | Py_INCREF(Py_None); resultobj = Py_None; | |
22279 | return resultobj; | |
22280 | fail: | |
22281 | return NULL; | |
22282 | } | |
22283 | ||
22284 | ||
22285 | static PyObject *_wrap_PyLineShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22286 | PyObject *resultobj; | |
22287 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22288 | wxDC *arg2 = 0 ; | |
22289 | double arg3 ; | |
22290 | double arg4 ; | |
22291 | double arg5 ; | |
22292 | double arg6 ; | |
22293 | bool arg7 = (bool) True ; | |
22294 | bool result; | |
22295 | PyObject * obj0 = 0 ; | |
22296 | PyObject * obj1 = 0 ; | |
22297 | PyObject * obj6 = 0 ; | |
22298 | char *kwnames[] = { | |
22299 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22300 | }; | |
22301 | ||
22302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyLineShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
22303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22304 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22305 | if (arg2 == NULL) { | |
22306 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22307 | } | |
22308 | if (obj6) { | |
22309 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
22310 | if (PyErr_Occurred()) SWIG_fail; | |
22311 | } | |
22312 | { | |
22313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22314 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22315 | ||
22316 | wxPyEndAllowThreads(__tstate); | |
22317 | if (PyErr_Occurred()) SWIG_fail; | |
22318 | } | |
22319 | resultobj = PyInt_FromLong((long)result); | |
22320 | return resultobj; | |
22321 | fail: | |
22322 | return NULL; | |
22323 | } | |
22324 | ||
22325 | ||
22326 | static PyObject *_wrap_PyLineShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22327 | PyObject *resultobj; | |
22328 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22329 | wxDC *arg2 = 0 ; | |
22330 | double arg3 ; | |
22331 | double arg4 ; | |
22332 | double arg5 ; | |
22333 | double arg6 ; | |
22334 | bool arg7 = (bool) True ; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | PyObject * obj1 = 0 ; | |
22337 | PyObject * obj6 = 0 ; | |
22338 | char *kwnames[] = { | |
22339 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22340 | }; | |
22341 | ||
22342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyLineShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
22343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22345 | if (arg2 == NULL) { | |
22346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22347 | } | |
22348 | if (obj6) { | |
22349 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | Py_INCREF(Py_None); resultobj = Py_None; | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_PyLineShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22369 | bool arg2 ; | |
22370 | double arg3 ; | |
22371 | double arg4 ; | |
22372 | int arg5 = (int) 0 ; | |
22373 | int arg6 = (int) 0 ; | |
22374 | PyObject * obj0 = 0 ; | |
22375 | PyObject * obj1 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22378 | }; | |
22379 | ||
22380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyLineShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
22381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22382 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | { | |
22385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22386 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22387 | ||
22388 | wxPyEndAllowThreads(__tstate); | |
22389 | if (PyErr_Occurred()) SWIG_fail; | |
22390 | } | |
22391 | Py_INCREF(Py_None); resultobj = Py_None; | |
22392 | return resultobj; | |
22393 | fail: | |
22394 | return NULL; | |
22395 | } | |
22396 | ||
22397 | ||
22398 | static PyObject *_wrap_PyLineShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22399 | PyObject *resultobj; | |
22400 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22401 | double arg2 ; | |
22402 | double arg3 ; | |
22403 | int arg4 = (int) 0 ; | |
22404 | int arg5 = (int) 0 ; | |
22405 | PyObject * obj0 = 0 ; | |
22406 | char *kwnames[] = { | |
22407 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22408 | }; | |
22409 | ||
22410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22412 | { | |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
22419 | Py_INCREF(Py_None); resultobj = Py_None; | |
22420 | return resultobj; | |
22421 | fail: | |
22422 | return NULL; | |
22423 | } | |
22424 | ||
22425 | ||
22426 | static PyObject *_wrap_PyLineShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22427 | PyObject *resultobj; | |
22428 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22429 | double arg2 ; | |
22430 | double arg3 ; | |
22431 | int arg4 = (int) 0 ; | |
22432 | int arg5 = (int) 0 ; | |
22433 | PyObject * obj0 = 0 ; | |
22434 | char *kwnames[] = { | |
22435 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22436 | }; | |
22437 | ||
22438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
22447 | Py_INCREF(Py_None); resultobj = Py_None; | |
22448 | return resultobj; | |
22449 | fail: | |
22450 | return NULL; | |
22451 | } | |
22452 | ||
22453 | ||
22454 | static PyObject *_wrap_PyLineShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22455 | PyObject *resultobj; | |
22456 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22457 | bool arg2 ; | |
22458 | double arg3 ; | |
22459 | double arg4 ; | |
22460 | int arg5 = (int) 0 ; | |
22461 | int arg6 = (int) 0 ; | |
22462 | PyObject * obj0 = 0 ; | |
22463 | PyObject * obj1 = 0 ; | |
22464 | char *kwnames[] = { | |
22465 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22466 | }; | |
22467 | ||
22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyLineShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
22469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22470 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
22471 | if (PyErr_Occurred()) SWIG_fail; | |
22472 | { | |
22473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22474 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
22475 | ||
22476 | wxPyEndAllowThreads(__tstate); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
22478 | } | |
22479 | Py_INCREF(Py_None); resultobj = Py_None; | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | static PyObject *_wrap_PyLineShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22487 | PyObject *resultobj; | |
22488 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22489 | double arg2 ; | |
22490 | double arg3 ; | |
22491 | int arg4 = (int) 0 ; | |
22492 | int arg5 = (int) 0 ; | |
22493 | PyObject * obj0 = 0 ; | |
22494 | char *kwnames[] = { | |
22495 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22496 | }; | |
22497 | ||
22498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22500 | { | |
22501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22502 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
22503 | ||
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | Py_INCREF(Py_None); resultobj = Py_None; | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject *_wrap_PyLineShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj; | |
22516 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22517 | double arg2 ; | |
22518 | double arg3 ; | |
22519 | int arg4 = (int) 0 ; | |
22520 | int arg5 = (int) 0 ; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22524 | }; | |
22525 | ||
22526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyLineShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22528 | { | |
22529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22530 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
22531 | ||
22532 | wxPyEndAllowThreads(__tstate); | |
22533 | if (PyErr_Occurred()) SWIG_fail; | |
22534 | } | |
22535 | Py_INCREF(Py_None); resultobj = Py_None; | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_PyLineShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22545 | wxDC *arg2 = 0 ; | |
22546 | double arg3 ; | |
22547 | double arg4 ; | |
22548 | double arg5 ; | |
22549 | double arg6 ; | |
22550 | PyObject * obj0 = 0 ; | |
22551 | PyObject * obj1 = 0 ; | |
22552 | char *kwnames[] = { | |
22553 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
22554 | }; | |
22555 | ||
22556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyLineShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
22557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22558 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22559 | if (arg2 == NULL) { | |
22560 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22561 | } | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | Py_INCREF(Py_None); resultobj = Py_None; | |
22570 | return resultobj; | |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
22576 | static PyObject *_wrap_PyLineShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22577 | PyObject *resultobj; | |
22578 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22579 | wxDC *arg2 = 0 ; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | PyObject * obj1 = 0 ; | |
22582 | char *kwnames[] = { | |
22583 | (char *) "self",(char *) "dc", NULL | |
22584 | }; | |
22585 | ||
22586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
22587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22588 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22589 | if (arg2 == NULL) { | |
22590 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | (arg1)->base_OnDrawControlPoints(*arg2); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | Py_INCREF(Py_None); resultobj = Py_None; | |
22600 | return resultobj; | |
22601 | fail: | |
22602 | return NULL; | |
22603 | } | |
22604 | ||
22605 | ||
22606 | static PyObject *_wrap_PyLineShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22607 | PyObject *resultobj; | |
22608 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22609 | wxDC *arg2 = 0 ; | |
22610 | PyObject * obj0 = 0 ; | |
22611 | PyObject * obj1 = 0 ; | |
22612 | char *kwnames[] = { | |
22613 | (char *) "self",(char *) "dc", NULL | |
22614 | }; | |
22615 | ||
22616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
22617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22619 | if (arg2 == NULL) { | |
22620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22621 | } | |
22622 | { | |
22623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22624 | (arg1)->base_OnEraseControlPoints(*arg2); | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | Py_INCREF(Py_None); resultobj = Py_None; | |
22630 | return resultobj; | |
22631 | fail: | |
22632 | return NULL; | |
22633 | } | |
22634 | ||
22635 | ||
22636 | static PyObject *_wrap_PyLineShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22637 | PyObject *resultobj; | |
22638 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22639 | wxDC *arg2 = 0 ; | |
22640 | bool arg3 = (bool) True ; | |
22641 | PyObject * obj0 = 0 ; | |
22642 | PyObject * obj1 = 0 ; | |
22643 | PyObject * obj2 = 0 ; | |
22644 | char *kwnames[] = { | |
22645 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
22646 | }; | |
22647 | ||
22648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22650 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22651 | if (arg2 == NULL) { | |
22652 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22653 | } | |
22654 | if (obj2) { | |
22655 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
22661 | ||
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | Py_INCREF(Py_None); resultobj = Py_None; | |
22666 | return resultobj; | |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject *_wrap_PyLineShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22675 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22676 | bool arg3 ; | |
22677 | double arg4 ; | |
22678 | double arg5 ; | |
22679 | int arg6 = (int) 0 ; | |
22680 | int arg7 = (int) 0 ; | |
22681 | PyObject * obj0 = 0 ; | |
22682 | PyObject * obj1 = 0 ; | |
22683 | PyObject * obj2 = 0 ; | |
22684 | char *kwnames[] = { | |
22685 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22686 | }; | |
22687 | ||
22688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyLineShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
22689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22690 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22691 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | { | |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
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 | ||
22707 | static PyObject *_wrap_PyLineShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22708 | PyObject *resultobj; | |
22709 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22710 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22711 | double arg3 ; | |
22712 | double arg4 ; | |
22713 | int arg5 = (int) 0 ; | |
22714 | int arg6 = (int) 0 ; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | PyObject * obj1 = 0 ; | |
22717 | char *kwnames[] = { | |
22718 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22719 | }; | |
22720 | ||
22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyLineShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
22722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | Py_INCREF(Py_None); resultobj = Py_None; | |
22732 | return resultobj; | |
22733 | fail: | |
22734 | return NULL; | |
22735 | } | |
22736 | ||
22737 | ||
22738 | static PyObject *_wrap_PyLineShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22739 | PyObject *resultobj; | |
22740 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22741 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22742 | double arg3 ; | |
22743 | double arg4 ; | |
22744 | int arg5 = (int) 0 ; | |
22745 | int arg6 = (int) 0 ; | |
22746 | PyObject * obj0 = 0 ; | |
22747 | PyObject * obj1 = 0 ; | |
22748 | char *kwnames[] = { | |
22749 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22750 | }; | |
22751 | ||
22752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyLineShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
22753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22754 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22755 | { | |
22756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22757 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22758 | ||
22759 | wxPyEndAllowThreads(__tstate); | |
22760 | if (PyErr_Occurred()) SWIG_fail; | |
22761 | } | |
22762 | Py_INCREF(Py_None); resultobj = Py_None; | |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | static PyObject *_wrap_PyLineShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj; | |
22771 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22772 | double arg2 ; | |
22773 | double arg3 ; | |
22774 | PyObject * obj0 = 0 ; | |
22775 | char *kwnames[] = { | |
22776 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22777 | }; | |
22778 | ||
22779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyLineShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22781 | { | |
22782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22783 | (arg1)->base_OnBeginSize(arg2,arg3); | |
22784 | ||
22785 | wxPyEndAllowThreads(__tstate); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | } | |
22788 | Py_INCREF(Py_None); resultobj = Py_None; | |
22789 | return resultobj; | |
22790 | fail: | |
22791 | return NULL; | |
22792 | } | |
22793 | ||
22794 | ||
22795 | static PyObject *_wrap_PyLineShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22796 | PyObject *resultobj; | |
22797 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
22798 | double arg2 ; | |
22799 | double arg3 ; | |
22800 | PyObject * obj0 = 0 ; | |
22801 | char *kwnames[] = { | |
22802 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyLineShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLineShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | (arg1)->base_OnEndSize(arg2,arg3); | |
22810 | ||
22811 | wxPyEndAllowThreads(__tstate); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
22814 | Py_INCREF(Py_None); resultobj = Py_None; | |
22815 | return resultobj; | |
22816 | fail: | |
22817 | return NULL; | |
22818 | } | |
22819 | ||
22820 | ||
22821 | static PyObject * PyLineShape_swigregister(PyObject *self, PyObject *args) { | |
22822 | PyObject *obj; | |
22823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22824 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLineShape, obj); | |
22825 | Py_INCREF(obj); | |
22826 | return Py_BuildValue((char *)""); | |
22827 | } | |
22828 | static PyObject *_wrap_new_PyPolygonShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22829 | PyObject *resultobj; | |
22830 | wxPyPolygonShape *result; | |
22831 | char *kwnames[] = { | |
22832 | NULL | |
22833 | }; | |
22834 | ||
22835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyPolygonShape",kwnames)) goto fail; | |
22836 | { | |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | result = (wxPyPolygonShape *)new wxPyPolygonShape(); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPolygonShape, 1); | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
22850 | static PyObject *_wrap_PyPolygonShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22851 | PyObject *resultobj; | |
22852 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22853 | PyObject *arg2 = (PyObject *) 0 ; | |
22854 | PyObject *arg3 = (PyObject *) 0 ; | |
22855 | PyObject * obj0 = 0 ; | |
22856 | PyObject * obj1 = 0 ; | |
22857 | PyObject * obj2 = 0 ; | |
22858 | char *kwnames[] = { | |
22859 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22860 | }; | |
22861 | ||
22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22864 | arg2 = obj1; | |
22865 | arg3 = obj2; | |
22866 | { | |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22868 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | Py_INCREF(Py_None); resultobj = Py_None; | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_PyPolygonShape_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj; | |
22882 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22883 | PyObject *arg2 = (PyObject *) 0 ; | |
22884 | PyObject *result; | |
22885 | PyObject * obj0 = 0 ; | |
22886 | PyObject * obj1 = 0 ; | |
22887 | char *kwnames[] = { | |
22888 | (char *) "self",(char *) "points", NULL | |
22889 | }; | |
22890 | ||
22891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_Create",kwnames,&obj0,&obj1)) goto fail; | |
22892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22893 | arg2 = obj1; | |
22894 | { | |
22895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22896 | result = (PyObject *)wxPyPolygonShape_Create(arg1,arg2); | |
22897 | ||
22898 | wxPyEndAllowThreads(__tstate); | |
22899 | if (PyErr_Occurred()) SWIG_fail; | |
22900 | } | |
22901 | resultobj = result; | |
22902 | return resultobj; | |
22903 | fail: | |
22904 | return NULL; | |
22905 | } | |
22906 | ||
22907 | ||
22908 | static PyObject *_wrap_PyPolygonShape_AddPolygonPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22909 | PyObject *resultobj; | |
22910 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22911 | int arg2 = (int) 0 ; | |
22912 | PyObject * obj0 = 0 ; | |
22913 | char *kwnames[] = { | |
22914 | (char *) "self",(char *) "pos", NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyPolygonShape_AddPolygonPoint",kwnames,&obj0,&arg2)) goto fail; | |
22918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22919 | { | |
22920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22921 | (arg1)->AddPolygonPoint(arg2); | |
22922 | ||
22923 | wxPyEndAllowThreads(__tstate); | |
22924 | if (PyErr_Occurred()) SWIG_fail; | |
22925 | } | |
22926 | Py_INCREF(Py_None); resultobj = Py_None; | |
22927 | return resultobj; | |
22928 | fail: | |
22929 | return NULL; | |
22930 | } | |
22931 | ||
22932 | ||
22933 | static PyObject *_wrap_PyPolygonShape_CalculatePolygonCentre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22934 | PyObject *resultobj; | |
22935 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22936 | PyObject * obj0 = 0 ; | |
22937 | char *kwnames[] = { | |
22938 | (char *) "self", NULL | |
22939 | }; | |
22940 | ||
22941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_CalculatePolygonCentre",kwnames,&obj0)) goto fail; | |
22942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | (arg1)->CalculatePolygonCentre(); | |
22946 | ||
22947 | wxPyEndAllowThreads(__tstate); | |
22948 | if (PyErr_Occurred()) SWIG_fail; | |
22949 | } | |
22950 | Py_INCREF(Py_None); resultobj = Py_None; | |
22951 | return resultobj; | |
22952 | fail: | |
22953 | return NULL; | |
22954 | } | |
22955 | ||
22956 | ||
22957 | static PyObject *_wrap_PyPolygonShape_DeletePolygonPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22958 | PyObject *resultobj; | |
22959 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22960 | int arg2 = (int) 0 ; | |
22961 | PyObject * obj0 = 0 ; | |
22962 | char *kwnames[] = { | |
22963 | (char *) "self",(char *) "pos", NULL | |
22964 | }; | |
22965 | ||
22966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:PyPolygonShape_DeletePolygonPoint",kwnames,&obj0,&arg2)) goto fail; | |
22967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22968 | { | |
22969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22970 | (arg1)->DeletePolygonPoint(arg2); | |
22971 | ||
22972 | wxPyEndAllowThreads(__tstate); | |
22973 | if (PyErr_Occurred()) SWIG_fail; | |
22974 | } | |
22975 | Py_INCREF(Py_None); resultobj = Py_None; | |
22976 | return resultobj; | |
22977 | fail: | |
22978 | return NULL; | |
22979 | } | |
22980 | ||
22981 | ||
22982 | static PyObject *_wrap_PyPolygonShape_GetPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22983 | PyObject *resultobj; | |
22984 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
22985 | PyObject *result; | |
22986 | PyObject * obj0 = 0 ; | |
22987 | char *kwnames[] = { | |
22988 | (char *) "self", NULL | |
22989 | }; | |
22990 | ||
22991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetPoints",kwnames,&obj0)) goto fail; | |
22992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22993 | { | |
22994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22995 | result = (PyObject *)wxPyPolygonShape_GetPoints(arg1); | |
22996 | ||
22997 | wxPyEndAllowThreads(__tstate); | |
22998 | if (PyErr_Occurred()) SWIG_fail; | |
22999 | } | |
23000 | resultobj = result; | |
23001 | return resultobj; | |
23002 | fail: | |
23003 | return NULL; | |
23004 | } | |
23005 | ||
23006 | ||
30d215aa RD |
23007 | static PyObject *_wrap_PyPolygonShape_GetOriginalPoints(PyObject *self, PyObject *args, PyObject *kwargs) { |
23008 | PyObject *resultobj; | |
23009 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23010 | PyObject *result; | |
23011 | PyObject * obj0 = 0 ; | |
23012 | char *kwnames[] = { | |
23013 | (char *) "self", NULL | |
23014 | }; | |
23015 | ||
23016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalPoints",kwnames,&obj0)) goto fail; | |
23017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23018 | { | |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | result = (PyObject *)wxPyPolygonShape_GetOriginalPoints(arg1); | |
23021 | ||
23022 | wxPyEndAllowThreads(__tstate); | |
23023 | if (PyErr_Occurred()) SWIG_fail; | |
23024 | } | |
23025 | resultobj = result; | |
23026 | return resultobj; | |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
23032 | static PyObject *_wrap_PyPolygonShape_GetOriginalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23033 | PyObject *resultobj; | |
23034 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23035 | double result; | |
23036 | PyObject * obj0 = 0 ; | |
23037 | char *kwnames[] = { | |
23038 | (char *) "self", NULL | |
23039 | }; | |
23040 | ||
23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalWidth",kwnames,&obj0)) goto fail; | |
23042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23043 | { | |
23044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23045 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalWidth(); | |
23046 | ||
23047 | wxPyEndAllowThreads(__tstate); | |
23048 | if (PyErr_Occurred()) SWIG_fail; | |
23049 | } | |
23050 | resultobj = PyFloat_FromDouble(result); | |
23051 | return resultobj; | |
23052 | fail: | |
23053 | return NULL; | |
23054 | } | |
23055 | ||
23056 | ||
23057 | static PyObject *_wrap_PyPolygonShape_GetOriginalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23058 | PyObject *resultobj; | |
23059 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23060 | double result; | |
23061 | PyObject * obj0 = 0 ; | |
23062 | char *kwnames[] = { | |
23063 | (char *) "self", NULL | |
23064 | }; | |
23065 | ||
23066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalHeight",kwnames,&obj0)) goto fail; | |
23067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23068 | { | |
23069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23070 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalHeight(); | |
23071 | ||
23072 | wxPyEndAllowThreads(__tstate); | |
23073 | if (PyErr_Occurred()) SWIG_fail; | |
23074 | } | |
23075 | resultobj = PyFloat_FromDouble(result); | |
23076 | return resultobj; | |
23077 | fail: | |
23078 | return NULL; | |
23079 | } | |
23080 | ||
23081 | ||
23082 | static PyObject *_wrap_PyPolygonShape_SetOriginalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23083 | PyObject *resultobj; | |
23084 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23085 | double arg2 ; | |
23086 | PyObject * obj0 = 0 ; | |
23087 | char *kwnames[] = { | |
23088 | (char *) "self",(char *) "w", NULL | |
23089 | }; | |
23090 | ||
23091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyPolygonShape_SetOriginalWidth",kwnames,&obj0,&arg2)) goto fail; | |
23092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23093 | { | |
23094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23095 | (arg1)->SetOriginalWidth(arg2); | |
23096 | ||
23097 | wxPyEndAllowThreads(__tstate); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
23099 | } | |
23100 | Py_INCREF(Py_None); resultobj = Py_None; | |
23101 | return resultobj; | |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
23107 | static PyObject *_wrap_PyPolygonShape_SetOriginalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23108 | PyObject *resultobj; | |
23109 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23110 | double arg2 ; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | char *kwnames[] = { | |
23113 | (char *) "self",(char *) "h", NULL | |
23114 | }; | |
23115 | ||
23116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:PyPolygonShape_SetOriginalHeight",kwnames,&obj0,&arg2)) goto fail; | |
23117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | (arg1)->SetOriginalHeight(arg2); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
23125 | Py_INCREF(Py_None); resultobj = Py_None; | |
23126 | return resultobj; | |
23127 | fail: | |
23128 | return NULL; | |
23129 | } | |
23130 | ||
23131 | ||
44127b65 RD |
23132 | static PyObject *_wrap_PyPolygonShape_UpdateOriginalPoints(PyObject *self, PyObject *args, PyObject *kwargs) { |
23133 | PyObject *resultobj; | |
23134 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23135 | PyObject * obj0 = 0 ; | |
23136 | char *kwnames[] = { | |
23137 | (char *) "self", NULL | |
23138 | }; | |
23139 | ||
23140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_UpdateOriginalPoints",kwnames,&obj0)) goto fail; | |
23141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | (arg1)->UpdateOriginalPoints(); | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
23149 | Py_INCREF(Py_None); resultobj = Py_None; | |
23150 | return resultobj; | |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
23156 | static PyObject *_wrap_PyPolygonShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23157 | PyObject *resultobj; | |
23158 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23159 | wxDC *arg2 = 0 ; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | PyObject * obj1 = 0 ; | |
23162 | char *kwnames[] = { | |
23163 | (char *) "self",(char *) "dc", NULL | |
23164 | }; | |
23165 | ||
23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
23167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23168 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23169 | if (arg2 == NULL) { | |
23170 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23171 | } | |
23172 | { | |
23173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23174 | (arg1)->base_OnDraw(*arg2); | |
23175 | ||
23176 | wxPyEndAllowThreads(__tstate); | |
23177 | if (PyErr_Occurred()) SWIG_fail; | |
23178 | } | |
23179 | Py_INCREF(Py_None); resultobj = Py_None; | |
23180 | return resultobj; | |
23181 | fail: | |
23182 | return NULL; | |
23183 | } | |
23184 | ||
23185 | ||
23186 | static PyObject *_wrap_PyPolygonShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23187 | PyObject *resultobj; | |
23188 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23189 | wxDC *arg2 = 0 ; | |
23190 | PyObject * obj0 = 0 ; | |
23191 | PyObject * obj1 = 0 ; | |
23192 | char *kwnames[] = { | |
23193 | (char *) "self",(char *) "dc", NULL | |
23194 | }; | |
23195 | ||
23196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
23197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23198 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23199 | if (arg2 == NULL) { | |
23200 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23201 | } | |
23202 | { | |
23203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23204 | (arg1)->base_OnDrawContents(*arg2); | |
23205 | ||
23206 | wxPyEndAllowThreads(__tstate); | |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
23208 | } | |
23209 | Py_INCREF(Py_None); resultobj = Py_None; | |
23210 | return resultobj; | |
23211 | fail: | |
23212 | return NULL; | |
23213 | } | |
23214 | ||
23215 | ||
23216 | static PyObject *_wrap_PyPolygonShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23217 | PyObject *resultobj; | |
23218 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23219 | wxDC *arg2 = 0 ; | |
23220 | bool arg3 = (bool) FALSE ; | |
23221 | PyObject * obj0 = 0 ; | |
23222 | PyObject * obj1 = 0 ; | |
23223 | PyObject * obj2 = 0 ; | |
23224 | char *kwnames[] = { | |
23225 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
23226 | }; | |
23227 | ||
23228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23231 | if (arg2 == NULL) { | |
23232 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23233 | } | |
23234 | if (obj2) { | |
23235 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | { | |
23239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23240 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
23241 | ||
23242 | wxPyEndAllowThreads(__tstate); | |
23243 | if (PyErr_Occurred()) SWIG_fail; | |
23244 | } | |
23245 | Py_INCREF(Py_None); resultobj = Py_None; | |
23246 | return resultobj; | |
23247 | fail: | |
23248 | return NULL; | |
23249 | } | |
23250 | ||
23251 | ||
23252 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23253 | PyObject *resultobj; | |
23254 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23255 | wxDC *arg2 = 0 ; | |
23256 | PyObject * obj0 = 0 ; | |
23257 | PyObject * obj1 = 0 ; | |
23258 | char *kwnames[] = { | |
23259 | (char *) "self",(char *) "dc", NULL | |
23260 | }; | |
23261 | ||
23262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
23263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23264 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23265 | if (arg2 == NULL) { | |
23266 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23267 | } | |
23268 | { | |
23269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23270 | (arg1)->base_OnMoveLinks(*arg2); | |
23271 | ||
23272 | wxPyEndAllowThreads(__tstate); | |
23273 | if (PyErr_Occurred()) SWIG_fail; | |
23274 | } | |
23275 | Py_INCREF(Py_None); resultobj = Py_None; | |
23276 | return resultobj; | |
23277 | fail: | |
23278 | return NULL; | |
23279 | } | |
23280 | ||
23281 | ||
23282 | static PyObject *_wrap_PyPolygonShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23283 | PyObject *resultobj; | |
23284 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23285 | wxDC *arg2 = 0 ; | |
23286 | PyObject * obj0 = 0 ; | |
23287 | PyObject * obj1 = 0 ; | |
23288 | char *kwnames[] = { | |
23289 | (char *) "self",(char *) "dc", NULL | |
23290 | }; | |
23291 | ||
23292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
23293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23294 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23295 | if (arg2 == NULL) { | |
23296 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23297 | } | |
23298 | { | |
23299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23300 | (arg1)->base_OnErase(*arg2); | |
23301 | ||
23302 | wxPyEndAllowThreads(__tstate); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
23304 | } | |
23305 | Py_INCREF(Py_None); resultobj = Py_None; | |
23306 | return resultobj; | |
23307 | fail: | |
23308 | return NULL; | |
23309 | } | |
23310 | ||
23311 | ||
23312 | static PyObject *_wrap_PyPolygonShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23313 | PyObject *resultobj; | |
23314 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23315 | wxDC *arg2 = 0 ; | |
23316 | PyObject * obj0 = 0 ; | |
23317 | PyObject * obj1 = 0 ; | |
23318 | char *kwnames[] = { | |
23319 | (char *) "self",(char *) "dc", NULL | |
23320 | }; | |
23321 | ||
23322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
23323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23325 | if (arg2 == NULL) { | |
23326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23327 | } | |
23328 | { | |
23329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23330 | (arg1)->base_OnEraseContents(*arg2); | |
23331 | ||
23332 | wxPyEndAllowThreads(__tstate); | |
23333 | if (PyErr_Occurred()) SWIG_fail; | |
23334 | } | |
23335 | Py_INCREF(Py_None); resultobj = Py_None; | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
23342 | static PyObject *_wrap_PyPolygonShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23343 | PyObject *resultobj; | |
23344 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23345 | wxDC *arg2 = 0 ; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | PyObject * obj1 = 0 ; | |
23348 | char *kwnames[] = { | |
23349 | (char *) "self",(char *) "dc", NULL | |
23350 | }; | |
23351 | ||
23352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
23353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23355 | if (arg2 == NULL) { | |
23356 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23357 | } | |
23358 | { | |
23359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23360 | (arg1)->base_OnHighlight(*arg2); | |
23361 | ||
23362 | wxPyEndAllowThreads(__tstate); | |
23363 | if (PyErr_Occurred()) SWIG_fail; | |
23364 | } | |
23365 | Py_INCREF(Py_None); resultobj = Py_None; | |
23366 | return resultobj; | |
23367 | fail: | |
23368 | return NULL; | |
23369 | } | |
23370 | ||
23371 | ||
23372 | static PyObject *_wrap_PyPolygonShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23373 | PyObject *resultobj; | |
23374 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23375 | double arg2 ; | |
23376 | double arg3 ; | |
23377 | int arg4 = (int) 0 ; | |
23378 | int arg5 = (int) 0 ; | |
23379 | PyObject * obj0 = 0 ; | |
23380 | char *kwnames[] = { | |
23381 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23382 | }; | |
23383 | ||
23384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23386 | { | |
23387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23388 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
23389 | ||
23390 | wxPyEndAllowThreads(__tstate); | |
23391 | if (PyErr_Occurred()) SWIG_fail; | |
23392 | } | |
23393 | Py_INCREF(Py_None); resultobj = Py_None; | |
23394 | return resultobj; | |
23395 | fail: | |
23396 | return NULL; | |
23397 | } | |
23398 | ||
23399 | ||
23400 | static PyObject *_wrap_PyPolygonShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23401 | PyObject *resultobj; | |
23402 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23403 | double arg2 ; | |
23404 | double arg3 ; | |
23405 | int arg4 = (int) 0 ; | |
23406 | int arg5 = (int) 0 ; | |
23407 | PyObject * obj0 = 0 ; | |
23408 | char *kwnames[] = { | |
23409 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23410 | }; | |
23411 | ||
23412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23414 | { | |
23415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23416 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
23417 | ||
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | Py_INCREF(Py_None); resultobj = Py_None; | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | static PyObject *_wrap_PyPolygonShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj; | |
23430 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23431 | double arg2 ; | |
23432 | double arg3 ; | |
23433 | int arg4 = (int) 0 ; | |
23434 | int arg5 = (int) 0 ; | |
23435 | PyObject * obj0 = 0 ; | |
23436 | char *kwnames[] = { | |
23437 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23438 | }; | |
23439 | ||
23440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23442 | { | |
23443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23444 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
23445 | ||
23446 | wxPyEndAllowThreads(__tstate); | |
23447 | if (PyErr_Occurred()) SWIG_fail; | |
23448 | } | |
23449 | Py_INCREF(Py_None); resultobj = Py_None; | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | static PyObject *_wrap_PyPolygonShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23457 | PyObject *resultobj; | |
23458 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23459 | double arg2 ; | |
23460 | double arg3 ; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyPolygonShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23468 | { | |
23469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23470 | (arg1)->base_OnSize(arg2,arg3); | |
23471 | ||
23472 | wxPyEndAllowThreads(__tstate); | |
23473 | if (PyErr_Occurred()) SWIG_fail; | |
23474 | } | |
23475 | Py_INCREF(Py_None); resultobj = Py_None; | |
23476 | return resultobj; | |
23477 | fail: | |
23478 | return NULL; | |
23479 | } | |
23480 | ||
23481 | ||
23482 | static PyObject *_wrap_PyPolygonShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23483 | PyObject *resultobj; | |
23484 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23485 | wxDC *arg2 = 0 ; | |
23486 | double arg3 ; | |
23487 | double arg4 ; | |
23488 | double arg5 ; | |
23489 | double arg6 ; | |
23490 | bool arg7 = (bool) True ; | |
23491 | bool result; | |
23492 | PyObject * obj0 = 0 ; | |
23493 | PyObject * obj1 = 0 ; | |
23494 | PyObject * obj6 = 0 ; | |
23495 | char *kwnames[] = { | |
23496 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
23497 | }; | |
23498 | ||
23499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyPolygonShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
23500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23501 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23502 | if (arg2 == NULL) { | |
23503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23504 | } | |
23505 | if (obj6) { | |
23506 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
23507 | if (PyErr_Occurred()) SWIG_fail; | |
23508 | } | |
23509 | { | |
23510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23511 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
23512 | ||
23513 | wxPyEndAllowThreads(__tstate); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | } | |
23516 | resultobj = PyInt_FromLong((long)result); | |
23517 | return resultobj; | |
23518 | fail: | |
23519 | return NULL; | |
23520 | } | |
23521 | ||
23522 | ||
23523 | static PyObject *_wrap_PyPolygonShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23524 | PyObject *resultobj; | |
23525 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23526 | wxDC *arg2 = 0 ; | |
23527 | double arg3 ; | |
23528 | double arg4 ; | |
23529 | double arg5 ; | |
23530 | double arg6 ; | |
23531 | bool arg7 = (bool) True ; | |
23532 | PyObject * obj0 = 0 ; | |
23533 | PyObject * obj1 = 0 ; | |
23534 | PyObject * obj6 = 0 ; | |
23535 | char *kwnames[] = { | |
23536 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
23537 | }; | |
23538 | ||
23539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyPolygonShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
23540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23542 | if (arg2 == NULL) { | |
23543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23544 | } | |
23545 | if (obj6) { | |
23546 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
23547 | if (PyErr_Occurred()) SWIG_fail; | |
23548 | } | |
23549 | { | |
23550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23551 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
23552 | ||
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
23556 | Py_INCREF(Py_None); resultobj = Py_None; | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | static PyObject *_wrap_PyPolygonShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23564 | PyObject *resultobj; | |
23565 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23566 | bool arg2 ; | |
23567 | double arg3 ; | |
23568 | double arg4 ; | |
23569 | int arg5 = (int) 0 ; | |
23570 | int arg6 = (int) 0 ; | |
23571 | PyObject * obj0 = 0 ; | |
23572 | PyObject * obj1 = 0 ; | |
23573 | char *kwnames[] = { | |
23574 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23575 | }; | |
23576 | ||
23577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyPolygonShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23579 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | { | |
23582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23583 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23584 | ||
23585 | wxPyEndAllowThreads(__tstate); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | } | |
23588 | Py_INCREF(Py_None); resultobj = Py_None; | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
23595 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23596 | PyObject *resultobj; | |
23597 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23598 | double arg2 ; | |
23599 | double arg3 ; | |
23600 | int arg4 = (int) 0 ; | |
23601 | int arg5 = (int) 0 ; | |
23602 | PyObject * obj0 = 0 ; | |
23603 | char *kwnames[] = { | |
23604 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23605 | }; | |
23606 | ||
23607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23609 | { | |
23610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23611 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
23612 | ||
23613 | wxPyEndAllowThreads(__tstate); | |
23614 | if (PyErr_Occurred()) SWIG_fail; | |
23615 | } | |
23616 | Py_INCREF(Py_None); resultobj = Py_None; | |
23617 | return resultobj; | |
23618 | fail: | |
23619 | return NULL; | |
23620 | } | |
23621 | ||
23622 | ||
23623 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23624 | PyObject *resultobj; | |
23625 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23626 | double arg2 ; | |
23627 | double arg3 ; | |
23628 | int arg4 = (int) 0 ; | |
23629 | int arg5 = (int) 0 ; | |
23630 | PyObject * obj0 = 0 ; | |
23631 | char *kwnames[] = { | |
23632 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23633 | }; | |
23634 | ||
23635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23637 | { | |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23639 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
23640 | ||
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | Py_INCREF(Py_None); resultobj = Py_None; | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | static PyObject *_wrap_PyPolygonShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23652 | PyObject *resultobj; | |
23653 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23654 | bool arg2 ; | |
23655 | double arg3 ; | |
23656 | double arg4 ; | |
23657 | int arg5 = (int) 0 ; | |
23658 | int arg6 = (int) 0 ; | |
23659 | PyObject * obj0 = 0 ; | |
23660 | PyObject * obj1 = 0 ; | |
23661 | char *kwnames[] = { | |
23662 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyPolygonShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23667 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | { | |
23670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23671 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
23672 | ||
23673 | wxPyEndAllowThreads(__tstate); | |
23674 | if (PyErr_Occurred()) SWIG_fail; | |
23675 | } | |
23676 | Py_INCREF(Py_None); resultobj = Py_None; | |
23677 | return resultobj; | |
23678 | fail: | |
23679 | return NULL; | |
23680 | } | |
23681 | ||
23682 | ||
23683 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23684 | PyObject *resultobj; | |
23685 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23686 | double arg2 ; | |
23687 | double arg3 ; | |
23688 | int arg4 = (int) 0 ; | |
23689 | int arg5 = (int) 0 ; | |
23690 | PyObject * obj0 = 0 ; | |
23691 | char *kwnames[] = { | |
23692 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23693 | }; | |
23694 | ||
23695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | Py_INCREF(Py_None); resultobj = Py_None; | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23714 | double arg2 ; | |
23715 | double arg3 ; | |
23716 | int arg4 = (int) 0 ; | |
23717 | int arg5 = (int) 0 ; | |
23718 | PyObject * obj0 = 0 ; | |
23719 | char *kwnames[] = { | |
23720 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23721 | }; | |
23722 | ||
23723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyPolygonShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23725 | { | |
23726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23727 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
23728 | ||
23729 | wxPyEndAllowThreads(__tstate); | |
23730 | if (PyErr_Occurred()) SWIG_fail; | |
23731 | } | |
23732 | Py_INCREF(Py_None); resultobj = Py_None; | |
23733 | return resultobj; | |
23734 | fail: | |
23735 | return NULL; | |
23736 | } | |
23737 | ||
23738 | ||
23739 | static PyObject *_wrap_PyPolygonShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23740 | PyObject *resultobj; | |
23741 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23742 | wxDC *arg2 = 0 ; | |
23743 | double arg3 ; | |
23744 | double arg4 ; | |
23745 | double arg5 ; | |
23746 | double arg6 ; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | PyObject * obj1 = 0 ; | |
23749 | char *kwnames[] = { | |
23750 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
23751 | }; | |
23752 | ||
23753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyPolygonShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23756 | if (arg2 == NULL) { | |
23757 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23758 | } | |
23759 | { | |
23760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23761 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
23766 | Py_INCREF(Py_None); resultobj = Py_None; | |
23767 | return resultobj; | |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
23773 | static PyObject *_wrap_PyPolygonShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23774 | PyObject *resultobj; | |
23775 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23776 | wxDC *arg2 = 0 ; | |
23777 | PyObject * obj0 = 0 ; | |
23778 | PyObject * obj1 = 0 ; | |
23779 | char *kwnames[] = { | |
23780 | (char *) "self",(char *) "dc", NULL | |
23781 | }; | |
23782 | ||
23783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
23784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23785 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23786 | if (arg2 == NULL) { | |
23787 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23788 | } | |
23789 | { | |
23790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23791 | (arg1)->base_OnDrawControlPoints(*arg2); | |
23792 | ||
23793 | wxPyEndAllowThreads(__tstate); | |
23794 | if (PyErr_Occurred()) SWIG_fail; | |
23795 | } | |
23796 | Py_INCREF(Py_None); resultobj = Py_None; | |
23797 | return resultobj; | |
23798 | fail: | |
23799 | return NULL; | |
23800 | } | |
23801 | ||
23802 | ||
23803 | static PyObject *_wrap_PyPolygonShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23804 | PyObject *resultobj; | |
23805 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23806 | wxDC *arg2 = 0 ; | |
23807 | PyObject * obj0 = 0 ; | |
23808 | PyObject * obj1 = 0 ; | |
23809 | char *kwnames[] = { | |
23810 | (char *) "self",(char *) "dc", NULL | |
23811 | }; | |
23812 | ||
23813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
23814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23816 | if (arg2 == NULL) { | |
23817 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23818 | } | |
23819 | { | |
23820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23821 | (arg1)->base_OnEraseControlPoints(*arg2); | |
23822 | ||
23823 | wxPyEndAllowThreads(__tstate); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
23826 | Py_INCREF(Py_None); resultobj = Py_None; | |
23827 | return resultobj; | |
23828 | fail: | |
23829 | return NULL; | |
23830 | } | |
23831 | ||
23832 | ||
23833 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23834 | PyObject *resultobj; | |
23835 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23836 | wxDC *arg2 = 0 ; | |
23837 | bool arg3 = (bool) True ; | |
23838 | PyObject * obj0 = 0 ; | |
23839 | PyObject * obj1 = 0 ; | |
23840 | PyObject * obj2 = 0 ; | |
23841 | char *kwnames[] = { | |
23842 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23847 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23848 | if (arg2 == NULL) { | |
23849 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23850 | } | |
23851 | if (obj2) { | |
23852 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | { | |
23856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23857 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
23858 | ||
23859 | wxPyEndAllowThreads(__tstate); | |
23860 | if (PyErr_Occurred()) SWIG_fail; | |
23861 | } | |
23862 | Py_INCREF(Py_None); resultobj = Py_None; | |
23863 | return resultobj; | |
23864 | fail: | |
23865 | return NULL; | |
23866 | } | |
23867 | ||
23868 | ||
23869 | static PyObject *_wrap_PyPolygonShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23870 | PyObject *resultobj; | |
23871 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23872 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23873 | bool arg3 ; | |
23874 | double arg4 ; | |
23875 | double arg5 ; | |
23876 | int arg6 = (int) 0 ; | |
23877 | int arg7 = (int) 0 ; | |
23878 | PyObject * obj0 = 0 ; | |
23879 | PyObject * obj1 = 0 ; | |
23880 | PyObject * obj2 = 0 ; | |
23881 | char *kwnames[] = { | |
23882 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23883 | }; | |
23884 | ||
23885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyPolygonShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
23886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23887 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23888 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | { | |
23891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23892 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
23893 | ||
23894 | wxPyEndAllowThreads(__tstate); | |
23895 | if (PyErr_Occurred()) SWIG_fail; | |
23896 | } | |
23897 | Py_INCREF(Py_None); resultobj = Py_None; | |
23898 | return resultobj; | |
23899 | fail: | |
23900 | return NULL; | |
23901 | } | |
23902 | ||
23903 | ||
23904 | static PyObject *_wrap_PyPolygonShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23905 | PyObject *resultobj; | |
23906 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23907 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23908 | double arg3 ; | |
23909 | double arg4 ; | |
23910 | int arg5 = (int) 0 ; | |
23911 | int arg6 = (int) 0 ; | |
23912 | PyObject * obj0 = 0 ; | |
23913 | PyObject * obj1 = 0 ; | |
23914 | char *kwnames[] = { | |
23915 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23916 | }; | |
23917 | ||
23918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyPolygonShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23920 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23921 | { | |
23922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23923 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23924 | ||
23925 | wxPyEndAllowThreads(__tstate); | |
23926 | if (PyErr_Occurred()) SWIG_fail; | |
23927 | } | |
23928 | Py_INCREF(Py_None); resultobj = Py_None; | |
23929 | return resultobj; | |
23930 | fail: | |
23931 | return NULL; | |
23932 | } | |
23933 | ||
23934 | ||
23935 | static PyObject *_wrap_PyPolygonShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23936 | PyObject *resultobj; | |
23937 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23938 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23939 | double arg3 ; | |
23940 | double arg4 ; | |
23941 | int arg5 = (int) 0 ; | |
23942 | int arg6 = (int) 0 ; | |
23943 | PyObject * obj0 = 0 ; | |
23944 | PyObject * obj1 = 0 ; | |
23945 | char *kwnames[] = { | |
23946 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23947 | }; | |
23948 | ||
23949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyPolygonShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23952 | { | |
23953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23954 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23955 | ||
23956 | wxPyEndAllowThreads(__tstate); | |
23957 | if (PyErr_Occurred()) SWIG_fail; | |
23958 | } | |
23959 | Py_INCREF(Py_None); resultobj = Py_None; | |
23960 | return resultobj; | |
23961 | fail: | |
23962 | return NULL; | |
23963 | } | |
23964 | ||
23965 | ||
23966 | static PyObject *_wrap_PyPolygonShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23967 | PyObject *resultobj; | |
23968 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23969 | double arg2 ; | |
23970 | double arg3 ; | |
23971 | PyObject * obj0 = 0 ; | |
23972 | char *kwnames[] = { | |
23973 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23974 | }; | |
23975 | ||
23976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyPolygonShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23978 | { | |
23979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23980 | (arg1)->base_OnBeginSize(arg2,arg3); | |
23981 | ||
23982 | wxPyEndAllowThreads(__tstate); | |
23983 | if (PyErr_Occurred()) SWIG_fail; | |
23984 | } | |
23985 | Py_INCREF(Py_None); resultobj = Py_None; | |
23986 | return resultobj; | |
23987 | fail: | |
23988 | return NULL; | |
23989 | } | |
23990 | ||
23991 | ||
23992 | static PyObject *_wrap_PyPolygonShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23993 | PyObject *resultobj; | |
23994 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
23995 | double arg2 ; | |
23996 | double arg3 ; | |
23997 | PyObject * obj0 = 0 ; | |
23998 | char *kwnames[] = { | |
23999 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24000 | }; | |
24001 | ||
24002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyPolygonShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPolygonShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24004 | { | |
24005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24006 | (arg1)->base_OnEndSize(arg2,arg3); | |
24007 | ||
24008 | wxPyEndAllowThreads(__tstate); | |
24009 | if (PyErr_Occurred()) SWIG_fail; | |
24010 | } | |
24011 | Py_INCREF(Py_None); resultobj = Py_None; | |
24012 | return resultobj; | |
24013 | fail: | |
24014 | return NULL; | |
24015 | } | |
24016 | ||
24017 | ||
24018 | static PyObject * PyPolygonShape_swigregister(PyObject *self, PyObject *args) { | |
24019 | PyObject *obj; | |
24020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24021 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPolygonShape, obj); | |
24022 | Py_INCREF(obj); | |
24023 | return Py_BuildValue((char *)""); | |
24024 | } | |
24025 | static PyObject *_wrap_new_PyTextShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24026 | PyObject *resultobj; | |
24027 | double arg1 = (double) 0.0 ; | |
24028 | double arg2 = (double) 0.0 ; | |
24029 | wxPyTextShape *result; | |
24030 | char *kwnames[] = { | |
24031 | (char *) "width",(char *) "height", NULL | |
24032 | }; | |
24033 | ||
24034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_PyTextShape",kwnames,&arg1,&arg2)) goto fail; | |
24035 | { | |
24036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24037 | result = (wxPyTextShape *)new wxPyTextShape(arg1,arg2); | |
24038 | ||
24039 | wxPyEndAllowThreads(__tstate); | |
24040 | if (PyErr_Occurred()) SWIG_fail; | |
24041 | } | |
24042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextShape, 1); | |
24043 | return resultobj; | |
24044 | fail: | |
24045 | return NULL; | |
24046 | } | |
24047 | ||
24048 | ||
24049 | static PyObject *_wrap_PyTextShape__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24050 | PyObject *resultobj; | |
24051 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24052 | PyObject *arg2 = (PyObject *) 0 ; | |
24053 | PyObject *arg3 = (PyObject *) 0 ; | |
24054 | PyObject * obj0 = 0 ; | |
24055 | PyObject * obj1 = 0 ; | |
24056 | PyObject * obj2 = 0 ; | |
24057 | char *kwnames[] = { | |
24058 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24059 | }; | |
24060 | ||
24061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24063 | arg2 = obj1; | |
24064 | arg3 = obj2; | |
24065 | { | |
24066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24067 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24068 | ||
24069 | wxPyEndAllowThreads(__tstate); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | } | |
24072 | Py_INCREF(Py_None); resultobj = Py_None; | |
24073 | return resultobj; | |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | static PyObject *_wrap_PyTextShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24080 | PyObject *resultobj; | |
24081 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | char *kwnames[] = { | |
24084 | (char *) "self", NULL | |
24085 | }; | |
24086 | ||
24087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyTextShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
24088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24089 | { | |
24090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24091 | (arg1)->base_OnDelete(); | |
24092 | ||
24093 | wxPyEndAllowThreads(__tstate); | |
24094 | if (PyErr_Occurred()) SWIG_fail; | |
24095 | } | |
24096 | Py_INCREF(Py_None); resultobj = Py_None; | |
24097 | return resultobj; | |
24098 | fail: | |
24099 | return NULL; | |
24100 | } | |
24101 | ||
24102 | ||
24103 | static PyObject *_wrap_PyTextShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24104 | PyObject *resultobj; | |
24105 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24106 | wxDC *arg2 = 0 ; | |
24107 | PyObject * obj0 = 0 ; | |
24108 | PyObject * obj1 = 0 ; | |
24109 | char *kwnames[] = { | |
24110 | (char *) "self",(char *) "dc", NULL | |
24111 | }; | |
24112 | ||
24113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
24114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24115 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24116 | if (arg2 == NULL) { | |
24117 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24118 | } | |
24119 | { | |
24120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24121 | (arg1)->base_OnDraw(*arg2); | |
24122 | ||
24123 | wxPyEndAllowThreads(__tstate); | |
24124 | if (PyErr_Occurred()) SWIG_fail; | |
24125 | } | |
24126 | Py_INCREF(Py_None); resultobj = Py_None; | |
24127 | return resultobj; | |
24128 | fail: | |
24129 | return NULL; | |
24130 | } | |
24131 | ||
24132 | ||
24133 | static PyObject *_wrap_PyTextShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24134 | PyObject *resultobj; | |
24135 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24136 | wxDC *arg2 = 0 ; | |
24137 | PyObject * obj0 = 0 ; | |
24138 | PyObject * obj1 = 0 ; | |
24139 | char *kwnames[] = { | |
24140 | (char *) "self",(char *) "dc", NULL | |
24141 | }; | |
24142 | ||
24143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
24144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24145 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24146 | if (arg2 == NULL) { | |
24147 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24148 | } | |
24149 | { | |
24150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24151 | (arg1)->base_OnDrawContents(*arg2); | |
24152 | ||
24153 | wxPyEndAllowThreads(__tstate); | |
24154 | if (PyErr_Occurred()) SWIG_fail; | |
24155 | } | |
24156 | Py_INCREF(Py_None); resultobj = Py_None; | |
24157 | return resultobj; | |
24158 | fail: | |
24159 | return NULL; | |
24160 | } | |
24161 | ||
24162 | ||
24163 | static PyObject *_wrap_PyTextShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24164 | PyObject *resultobj; | |
24165 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24166 | wxDC *arg2 = 0 ; | |
24167 | bool arg3 = (bool) FALSE ; | |
24168 | PyObject * obj0 = 0 ; | |
24169 | PyObject * obj1 = 0 ; | |
24170 | PyObject * obj2 = 0 ; | |
24171 | char *kwnames[] = { | |
24172 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24178 | if (arg2 == NULL) { | |
24179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24180 | } | |
24181 | if (obj2) { | |
24182 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | { | |
24186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24187 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
24188 | ||
24189 | wxPyEndAllowThreads(__tstate); | |
24190 | if (PyErr_Occurred()) SWIG_fail; | |
24191 | } | |
24192 | Py_INCREF(Py_None); resultobj = Py_None; | |
24193 | return resultobj; | |
24194 | fail: | |
24195 | return NULL; | |
24196 | } | |
24197 | ||
24198 | ||
24199 | static PyObject *_wrap_PyTextShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24200 | PyObject *resultobj; | |
24201 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24202 | wxDC *arg2 = 0 ; | |
24203 | PyObject * obj0 = 0 ; | |
24204 | PyObject * obj1 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self",(char *) "dc", NULL | |
24207 | }; | |
24208 | ||
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
24210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24211 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24212 | if (arg2 == NULL) { | |
24213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24214 | } | |
24215 | { | |
24216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24217 | (arg1)->base_OnMoveLinks(*arg2); | |
24218 | ||
24219 | wxPyEndAllowThreads(__tstate); | |
24220 | if (PyErr_Occurred()) SWIG_fail; | |
24221 | } | |
24222 | Py_INCREF(Py_None); resultobj = Py_None; | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
24226 | } | |
24227 | ||
24228 | ||
24229 | static PyObject *_wrap_PyTextShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24230 | PyObject *resultobj; | |
24231 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24232 | wxDC *arg2 = 0 ; | |
24233 | PyObject * obj0 = 0 ; | |
24234 | PyObject * obj1 = 0 ; | |
24235 | char *kwnames[] = { | |
24236 | (char *) "self",(char *) "dc", NULL | |
24237 | }; | |
24238 | ||
24239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
24240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24241 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24242 | if (arg2 == NULL) { | |
24243 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24244 | } | |
24245 | { | |
24246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24247 | (arg1)->base_OnErase(*arg2); | |
24248 | ||
24249 | wxPyEndAllowThreads(__tstate); | |
24250 | if (PyErr_Occurred()) SWIG_fail; | |
24251 | } | |
24252 | Py_INCREF(Py_None); resultobj = Py_None; | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_PyTextShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24262 | wxDC *arg2 = 0 ; | |
24263 | PyObject * obj0 = 0 ; | |
24264 | PyObject * obj1 = 0 ; | |
24265 | char *kwnames[] = { | |
24266 | (char *) "self",(char *) "dc", NULL | |
24267 | }; | |
24268 | ||
24269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
24270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24272 | if (arg2 == NULL) { | |
24273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24274 | } | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | (arg1)->base_OnEraseContents(*arg2); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | Py_INCREF(Py_None); resultobj = Py_None; | |
24283 | return resultobj; | |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject *_wrap_PyTextShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24290 | PyObject *resultobj; | |
24291 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24292 | wxDC *arg2 = 0 ; | |
24293 | PyObject * obj0 = 0 ; | |
24294 | PyObject * obj1 = 0 ; | |
24295 | char *kwnames[] = { | |
24296 | (char *) "self",(char *) "dc", NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
24300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24301 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24302 | if (arg2 == NULL) { | |
24303 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24304 | } | |
24305 | { | |
24306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24307 | (arg1)->base_OnHighlight(*arg2); | |
24308 | ||
24309 | wxPyEndAllowThreads(__tstate); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | } | |
24312 | Py_INCREF(Py_None); resultobj = Py_None; | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
24319 | static PyObject *_wrap_PyTextShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24320 | PyObject *resultobj; | |
24321 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24322 | double arg2 ; | |
24323 | double arg3 ; | |
24324 | int arg4 = (int) 0 ; | |
24325 | int arg5 = (int) 0 ; | |
24326 | PyObject * obj0 = 0 ; | |
24327 | char *kwnames[] = { | |
24328 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24329 | }; | |
24330 | ||
24331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24333 | { | |
24334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24335 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
24336 | ||
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
24340 | Py_INCREF(Py_None); resultobj = Py_None; | |
24341 | return resultobj; | |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | static PyObject *_wrap_PyTextShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24348 | PyObject *resultobj; | |
24349 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24350 | double arg2 ; | |
24351 | double arg3 ; | |
24352 | int arg4 = (int) 0 ; | |
24353 | int arg5 = (int) 0 ; | |
24354 | PyObject * obj0 = 0 ; | |
24355 | char *kwnames[] = { | |
24356 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24357 | }; | |
24358 | ||
24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnLeftDoubleClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | Py_INCREF(Py_None); resultobj = Py_None; | |
24369 | return resultobj; | |
24370 | fail: | |
24371 | return NULL; | |
24372 | } | |
24373 | ||
24374 | ||
24375 | static PyObject *_wrap_PyTextShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24376 | PyObject *resultobj; | |
24377 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24378 | double arg2 ; | |
24379 | double arg3 ; | |
24380 | int arg4 = (int) 0 ; | |
24381 | int arg5 = (int) 0 ; | |
24382 | PyObject * obj0 = 0 ; | |
24383 | char *kwnames[] = { | |
24384 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24385 | }; | |
24386 | ||
24387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24389 | { | |
24390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24391 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | Py_INCREF(Py_None); resultobj = Py_None; | |
24397 | return resultobj; | |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
24403 | static PyObject *_wrap_PyTextShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24404 | PyObject *resultobj; | |
24405 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24406 | double arg2 ; | |
24407 | double arg3 ; | |
24408 | PyObject * obj0 = 0 ; | |
24409 | char *kwnames[] = { | |
24410 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24411 | }; | |
24412 | ||
24413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyTextShape_base_OnSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24415 | { | |
24416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24417 | (arg1)->base_OnSize(arg2,arg3); | |
24418 | ||
24419 | wxPyEndAllowThreads(__tstate); | |
24420 | if (PyErr_Occurred()) SWIG_fail; | |
24421 | } | |
24422 | Py_INCREF(Py_None); resultobj = Py_None; | |
24423 | return resultobj; | |
24424 | fail: | |
24425 | return NULL; | |
24426 | } | |
24427 | ||
24428 | ||
24429 | static PyObject *_wrap_PyTextShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24430 | PyObject *resultobj; | |
24431 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24432 | wxDC *arg2 = 0 ; | |
24433 | double arg3 ; | |
24434 | double arg4 ; | |
24435 | double arg5 ; | |
24436 | double arg6 ; | |
24437 | bool arg7 = (bool) True ; | |
24438 | bool result; | |
24439 | PyObject * obj0 = 0 ; | |
24440 | PyObject * obj1 = 0 ; | |
24441 | PyObject * obj6 = 0 ; | |
24442 | char *kwnames[] = { | |
24443 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24444 | }; | |
24445 | ||
24446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyTextShape_base_OnMovePre",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
24447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24449 | if (arg2 == NULL) { | |
24450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24451 | } | |
24452 | if (obj6) { | |
24453 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | { | |
24457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24458 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24459 | ||
24460 | wxPyEndAllowThreads(__tstate); | |
24461 | if (PyErr_Occurred()) SWIG_fail; | |
24462 | } | |
24463 | resultobj = PyInt_FromLong((long)result); | |
24464 | return resultobj; | |
24465 | fail: | |
24466 | return NULL; | |
24467 | } | |
24468 | ||
24469 | ||
24470 | static PyObject *_wrap_PyTextShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24471 | PyObject *resultobj; | |
24472 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24473 | wxDC *arg2 = 0 ; | |
24474 | double arg3 ; | |
24475 | double arg4 ; | |
24476 | double arg5 ; | |
24477 | double arg6 ; | |
24478 | bool arg7 = (bool) True ; | |
24479 | PyObject * obj0 = 0 ; | |
24480 | PyObject * obj1 = 0 ; | |
24481 | PyObject * obj6 = 0 ; | |
24482 | char *kwnames[] = { | |
24483 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24484 | }; | |
24485 | ||
24486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd|O:PyTextShape_base_OnMovePost",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
24487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24489 | if (arg2 == NULL) { | |
24490 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24491 | } | |
24492 | if (obj6) { | |
24493 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
24494 | if (PyErr_Occurred()) SWIG_fail; | |
24495 | } | |
24496 | { | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24499 | ||
24500 | wxPyEndAllowThreads(__tstate); | |
24501 | if (PyErr_Occurred()) SWIG_fail; | |
24502 | } | |
24503 | Py_INCREF(Py_None); resultobj = Py_None; | |
24504 | return resultobj; | |
24505 | fail: | |
24506 | return NULL; | |
24507 | } | |
24508 | ||
24509 | ||
24510 | static PyObject *_wrap_PyTextShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24511 | PyObject *resultobj; | |
24512 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24513 | bool arg2 ; | |
24514 | double arg3 ; | |
24515 | double arg4 ; | |
24516 | int arg5 = (int) 0 ; | |
24517 | int arg6 = (int) 0 ; | |
24518 | PyObject * obj0 = 0 ; | |
24519 | PyObject * obj1 = 0 ; | |
24520 | char *kwnames[] = { | |
24521 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24522 | }; | |
24523 | ||
24524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyTextShape_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24526 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24527 | if (PyErr_Occurred()) SWIG_fail; | |
24528 | { | |
24529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24530 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
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 | ||
24542 | static PyObject *_wrap_PyTextShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24543 | PyObject *resultobj; | |
24544 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24545 | double arg2 ; | |
24546 | double arg3 ; | |
24547 | int arg4 = (int) 0 ; | |
24548 | int arg5 = (int) 0 ; | |
24549 | PyObject * obj0 = 0 ; | |
24550 | char *kwnames[] = { | |
24551 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24552 | }; | |
24553 | ||
24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24556 | { | |
24557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24558 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
24559 | ||
24560 | wxPyEndAllowThreads(__tstate); | |
24561 | if (PyErr_Occurred()) SWIG_fail; | |
24562 | } | |
24563 | Py_INCREF(Py_None); resultobj = Py_None; | |
24564 | return resultobj; | |
24565 | fail: | |
24566 | return NULL; | |
24567 | } | |
24568 | ||
24569 | ||
24570 | static PyObject *_wrap_PyTextShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24571 | PyObject *resultobj; | |
24572 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24573 | double arg2 ; | |
24574 | double arg3 ; | |
24575 | int arg4 = (int) 0 ; | |
24576 | int arg5 = (int) 0 ; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24584 | { | |
24585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24586 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
24587 | ||
24588 | wxPyEndAllowThreads(__tstate); | |
24589 | if (PyErr_Occurred()) SWIG_fail; | |
24590 | } | |
24591 | Py_INCREF(Py_None); resultobj = Py_None; | |
24592 | return resultobj; | |
24593 | fail: | |
24594 | return NULL; | |
24595 | } | |
24596 | ||
24597 | ||
24598 | static PyObject *_wrap_PyTextShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24599 | PyObject *resultobj; | |
24600 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24601 | bool arg2 ; | |
24602 | double arg3 ; | |
24603 | double arg4 ; | |
24604 | int arg5 = (int) 0 ; | |
24605 | int arg6 = (int) 0 ; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | PyObject * obj1 = 0 ; | |
24608 | char *kwnames[] = { | |
24609 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24610 | }; | |
24611 | ||
24612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyTextShape_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24614 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24615 | if (PyErr_Occurred()) SWIG_fail; | |
24616 | { | |
24617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24618 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
24619 | ||
24620 | wxPyEndAllowThreads(__tstate); | |
24621 | if (PyErr_Occurred()) SWIG_fail; | |
24622 | } | |
24623 | Py_INCREF(Py_None); resultobj = Py_None; | |
24624 | return resultobj; | |
24625 | fail: | |
24626 | return NULL; | |
24627 | } | |
24628 | ||
24629 | ||
24630 | static PyObject *_wrap_PyTextShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24631 | PyObject *resultobj; | |
24632 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24633 | double arg2 ; | |
24634 | double arg3 ; | |
24635 | int arg4 = (int) 0 ; | |
24636 | int arg5 = (int) 0 ; | |
24637 | PyObject * obj0 = 0 ; | |
24638 | char *kwnames[] = { | |
24639 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24640 | }; | |
24641 | ||
24642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24644 | { | |
24645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24646 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
24647 | ||
24648 | wxPyEndAllowThreads(__tstate); | |
24649 | if (PyErr_Occurred()) SWIG_fail; | |
24650 | } | |
24651 | Py_INCREF(Py_None); resultobj = Py_None; | |
24652 | return resultobj; | |
24653 | fail: | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
24658 | static PyObject *_wrap_PyTextShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24659 | PyObject *resultobj; | |
24660 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24661 | double arg2 ; | |
24662 | double arg3 ; | |
24663 | int arg4 = (int) 0 ; | |
24664 | int arg5 = (int) 0 ; | |
24665 | PyObject * obj0 = 0 ; | |
24666 | char *kwnames[] = { | |
24667 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24668 | }; | |
24669 | ||
24670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|ii:PyTextShape_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24672 | { | |
24673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24674 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
24675 | ||
24676 | wxPyEndAllowThreads(__tstate); | |
24677 | if (PyErr_Occurred()) SWIG_fail; | |
24678 | } | |
24679 | Py_INCREF(Py_None); resultobj = Py_None; | |
24680 | return resultobj; | |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
24686 | static PyObject *_wrap_PyTextShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24687 | PyObject *resultobj; | |
24688 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24689 | wxDC *arg2 = 0 ; | |
24690 | double arg3 ; | |
24691 | double arg4 ; | |
24692 | double arg5 ; | |
24693 | double arg6 ; | |
24694 | PyObject * obj0 = 0 ; | |
24695 | PyObject * obj1 = 0 ; | |
24696 | char *kwnames[] = { | |
24697 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24698 | }; | |
24699 | ||
24700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:PyTextShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24702 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24703 | if (arg2 == NULL) { | |
24704 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24705 | } | |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
24713 | Py_INCREF(Py_None); resultobj = Py_None; | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_PyTextShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24723 | wxDC *arg2 = 0 ; | |
24724 | PyObject * obj0 = 0 ; | |
24725 | PyObject * obj1 = 0 ; | |
24726 | char *kwnames[] = { | |
24727 | (char *) "self",(char *) "dc", NULL | |
24728 | }; | |
24729 | ||
24730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
24731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24733 | if (arg2 == NULL) { | |
24734 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24735 | } | |
24736 | { | |
24737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24738 | (arg1)->base_OnDrawControlPoints(*arg2); | |
24739 | ||
24740 | wxPyEndAllowThreads(__tstate); | |
24741 | if (PyErr_Occurred()) SWIG_fail; | |
24742 | } | |
24743 | Py_INCREF(Py_None); resultobj = Py_None; | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | return NULL; | |
24747 | } | |
24748 | ||
24749 | ||
24750 | static PyObject *_wrap_PyTextShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24751 | PyObject *resultobj; | |
24752 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24753 | wxDC *arg2 = 0 ; | |
24754 | PyObject * obj0 = 0 ; | |
24755 | PyObject * obj1 = 0 ; | |
24756 | char *kwnames[] = { | |
24757 | (char *) "self",(char *) "dc", NULL | |
24758 | }; | |
24759 | ||
24760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
24761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24763 | if (arg2 == NULL) { | |
24764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24765 | } | |
24766 | { | |
24767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24768 | (arg1)->base_OnEraseControlPoints(*arg2); | |
24769 | ||
24770 | wxPyEndAllowThreads(__tstate); | |
24771 | if (PyErr_Occurred()) SWIG_fail; | |
24772 | } | |
24773 | Py_INCREF(Py_None); resultobj = Py_None; | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
24777 | } | |
24778 | ||
24779 | ||
24780 | static PyObject *_wrap_PyTextShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24781 | PyObject *resultobj; | |
24782 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24783 | wxDC *arg2 = 0 ; | |
24784 | bool arg3 = (bool) True ; | |
24785 | PyObject * obj0 = 0 ; | |
24786 | PyObject * obj1 = 0 ; | |
24787 | PyObject * obj2 = 0 ; | |
24788 | char *kwnames[] = { | |
24789 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
24790 | }; | |
24791 | ||
24792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24794 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24795 | if (arg2 == NULL) { | |
24796 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24797 | } | |
24798 | if (obj2) { | |
24799 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
24801 | } | |
24802 | { | |
24803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24804 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
24805 | ||
24806 | wxPyEndAllowThreads(__tstate); | |
24807 | if (PyErr_Occurred()) SWIG_fail; | |
24808 | } | |
24809 | Py_INCREF(Py_None); resultobj = Py_None; | |
24810 | return resultobj; | |
24811 | fail: | |
24812 | return NULL; | |
24813 | } | |
24814 | ||
24815 | ||
24816 | static PyObject *_wrap_PyTextShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24817 | PyObject *resultobj; | |
24818 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24819 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24820 | bool arg3 ; | |
24821 | double arg4 ; | |
24822 | double arg5 ; | |
24823 | int arg6 = (int) 0 ; | |
24824 | int arg7 = (int) 0 ; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | PyObject * obj1 = 0 ; | |
24827 | PyObject * obj2 = 0 ; | |
24828 | char *kwnames[] = { | |
24829 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24830 | }; | |
24831 | ||
24832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd|ii:PyTextShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
24833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24834 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24835 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24836 | if (PyErr_Occurred()) SWIG_fail; | |
24837 | { | |
24838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24839 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
24840 | ||
24841 | wxPyEndAllowThreads(__tstate); | |
24842 | if (PyErr_Occurred()) SWIG_fail; | |
24843 | } | |
24844 | Py_INCREF(Py_None); resultobj = Py_None; | |
24845 | return resultobj; | |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | static PyObject *_wrap_PyTextShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24852 | PyObject *resultobj; | |
24853 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24854 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24855 | double arg3 ; | |
24856 | double arg4 ; | |
24857 | int arg5 = (int) 0 ; | |
24858 | int arg6 = (int) 0 ; | |
24859 | PyObject * obj0 = 0 ; | |
24860 | PyObject * obj1 = 0 ; | |
24861 | char *kwnames[] = { | |
24862 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24863 | }; | |
24864 | ||
24865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyTextShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24868 | { | |
24869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24870 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24871 | ||
24872 | wxPyEndAllowThreads(__tstate); | |
24873 | if (PyErr_Occurred()) SWIG_fail; | |
24874 | } | |
24875 | Py_INCREF(Py_None); resultobj = Py_None; | |
24876 | return resultobj; | |
24877 | fail: | |
24878 | return NULL; | |
24879 | } | |
24880 | ||
24881 | ||
24882 | static PyObject *_wrap_PyTextShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24883 | PyObject *resultobj; | |
24884 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24885 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24886 | double arg3 ; | |
24887 | double arg4 ; | |
24888 | int arg5 = (int) 0 ; | |
24889 | int arg6 = (int) 0 ; | |
24890 | PyObject * obj0 = 0 ; | |
24891 | PyObject * obj1 = 0 ; | |
24892 | char *kwnames[] = { | |
24893 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24894 | }; | |
24895 | ||
24896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|ii:PyTextShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24898 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyControlPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24899 | { | |
24900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24901 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24902 | ||
24903 | wxPyEndAllowThreads(__tstate); | |
24904 | if (PyErr_Occurred()) SWIG_fail; | |
24905 | } | |
24906 | Py_INCREF(Py_None); resultobj = Py_None; | |
24907 | return resultobj; | |
24908 | fail: | |
24909 | return NULL; | |
24910 | } | |
24911 | ||
24912 | ||
24913 | static PyObject *_wrap_PyTextShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24914 | PyObject *resultobj; | |
24915 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24916 | double arg2 ; | |
24917 | double arg3 ; | |
24918 | PyObject * obj0 = 0 ; | |
24919 | char *kwnames[] = { | |
24920 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24921 | }; | |
24922 | ||
24923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyTextShape_base_OnBeginSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24925 | { | |
24926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24927 | (arg1)->base_OnBeginSize(arg2,arg3); | |
24928 | ||
24929 | wxPyEndAllowThreads(__tstate); | |
24930 | if (PyErr_Occurred()) SWIG_fail; | |
24931 | } | |
24932 | Py_INCREF(Py_None); resultobj = Py_None; | |
24933 | return resultobj; | |
24934 | fail: | |
24935 | return NULL; | |
24936 | } | |
24937 | ||
24938 | ||
24939 | static PyObject *_wrap_PyTextShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24940 | PyObject *resultobj; | |
24941 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
24942 | double arg2 ; | |
24943 | double arg3 ; | |
24944 | PyObject * obj0 = 0 ; | |
24945 | char *kwnames[] = { | |
24946 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24947 | }; | |
24948 | ||
24949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:PyTextShape_base_OnEndSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24951 | { | |
24952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24953 | (arg1)->base_OnEndSize(arg2,arg3); | |
24954 | ||
24955 | wxPyEndAllowThreads(__tstate); | |
24956 | if (PyErr_Occurred()) SWIG_fail; | |
24957 | } | |
24958 | Py_INCREF(Py_None); resultobj = Py_None; | |
24959 | return resultobj; | |
24960 | fail: | |
24961 | return NULL; | |
24962 | } | |
24963 | ||
24964 | ||
24965 | static PyObject * PyTextShape_swigregister(PyObject *self, PyObject *args) { | |
24966 | PyObject *obj; | |
24967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24968 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextShape, obj); | |
24969 | Py_INCREF(obj); | |
24970 | return Py_BuildValue((char *)""); | |
24971 | } | |
24972 | static PyObject *_wrap_new_Diagram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24973 | PyObject *resultobj; | |
24974 | wxDiagram *result; | |
24975 | char *kwnames[] = { | |
24976 | NULL | |
24977 | }; | |
24978 | ||
24979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Diagram",kwnames)) goto fail; | |
24980 | { | |
24981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24982 | result = (wxDiagram *)new wxDiagram(); | |
24983 | ||
24984 | wxPyEndAllowThreads(__tstate); | |
24985 | if (PyErr_Occurred()) SWIG_fail; | |
24986 | } | |
24987 | { | |
24988 | resultobj = wxPyMake_wxObject(result); | |
24989 | } | |
24990 | return resultobj; | |
24991 | fail: | |
24992 | return NULL; | |
24993 | } | |
24994 | ||
24995 | ||
24996 | static PyObject *_wrap_Diagram_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24997 | PyObject *resultobj; | |
24998 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
24999 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
25000 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
25001 | PyObject * obj0 = 0 ; | |
25002 | PyObject * obj1 = 0 ; | |
25003 | PyObject * obj2 = 0 ; | |
25004 | char *kwnames[] = { | |
25005 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
25006 | }; | |
25007 | ||
25008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Diagram_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25010 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25011 | if (obj2) { | |
25012 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25013 | } | |
25014 | { | |
25015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25016 | (arg1)->AddShape(arg2,arg3); | |
25017 | ||
25018 | wxPyEndAllowThreads(__tstate); | |
25019 | if (PyErr_Occurred()) SWIG_fail; | |
25020 | } | |
25021 | Py_INCREF(Py_None); resultobj = Py_None; | |
25022 | return resultobj; | |
25023 | fail: | |
25024 | return NULL; | |
25025 | } | |
25026 | ||
25027 | ||
25028 | static PyObject *_wrap_Diagram_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25029 | PyObject *resultobj; | |
25030 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25031 | wxDC *arg2 = 0 ; | |
25032 | PyObject * obj0 = 0 ; | |
25033 | PyObject * obj1 = 0 ; | |
25034 | char *kwnames[] = { | |
25035 | (char *) "self",(char *) "dc", NULL | |
25036 | }; | |
25037 | ||
25038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Clear",kwnames,&obj0,&obj1)) goto fail; | |
25039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25040 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25041 | if (arg2 == NULL) { | |
25042 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25043 | } | |
25044 | { | |
25045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25046 | (arg1)->Clear(*arg2); | |
25047 | ||
25048 | wxPyEndAllowThreads(__tstate); | |
25049 | if (PyErr_Occurred()) SWIG_fail; | |
25050 | } | |
25051 | Py_INCREF(Py_None); resultobj = Py_None; | |
25052 | return resultobj; | |
25053 | fail: | |
25054 | return NULL; | |
25055 | } | |
25056 | ||
25057 | ||
25058 | static PyObject *_wrap_Diagram_DeleteAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25059 | PyObject *resultobj; | |
25060 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25061 | PyObject * obj0 = 0 ; | |
25062 | char *kwnames[] = { | |
25063 | (char *) "self", NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_DeleteAllShapes",kwnames,&obj0)) goto fail; | |
25067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25068 | { | |
25069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25070 | (arg1)->DeleteAllShapes(); | |
25071 | ||
25072 | wxPyEndAllowThreads(__tstate); | |
25073 | if (PyErr_Occurred()) SWIG_fail; | |
25074 | } | |
25075 | Py_INCREF(Py_None); resultobj = Py_None; | |
25076 | return resultobj; | |
25077 | fail: | |
25078 | return NULL; | |
25079 | } | |
25080 | ||
25081 | ||
25082 | static PyObject *_wrap_Diagram_DrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25083 | PyObject *resultobj; | |
25084 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25085 | wxDC *arg2 = 0 ; | |
25086 | double arg3 ; | |
25087 | double arg4 ; | |
25088 | double arg5 ; | |
25089 | double arg6 ; | |
25090 | PyObject * obj0 = 0 ; | |
25091 | PyObject * obj1 = 0 ; | |
25092 | char *kwnames[] = { | |
25093 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
25094 | }; | |
25095 | ||
25096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdddd:Diagram_DrawOutline",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
25097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25099 | if (arg2 == NULL) { | |
25100 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25101 | } | |
25102 | { | |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25104 | (arg1)->DrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
25105 | ||
25106 | wxPyEndAllowThreads(__tstate); | |
25107 | if (PyErr_Occurred()) SWIG_fail; | |
25108 | } | |
25109 | Py_INCREF(Py_None); resultobj = Py_None; | |
25110 | return resultobj; | |
25111 | fail: | |
25112 | return NULL; | |
25113 | } | |
25114 | ||
25115 | ||
25116 | static PyObject *_wrap_Diagram_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25117 | PyObject *resultobj; | |
25118 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25119 | long arg2 ; | |
25120 | wxPyShape *result; | |
25121 | PyObject * obj0 = 0 ; | |
25122 | char *kwnames[] = { | |
25123 | (char *) "self",(char *) "id", NULL | |
25124 | }; | |
25125 | ||
25126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Diagram_FindShape",kwnames,&obj0,&arg2)) goto fail; | |
25127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | result = (wxPyShape *)(arg1)->FindShape(arg2); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | { | |
25136 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
25137 | } | |
25138 | return resultobj; | |
25139 | fail: | |
25140 | return NULL; | |
25141 | } | |
25142 | ||
25143 | ||
25144 | static PyObject *_wrap_Diagram_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25145 | PyObject *resultobj; | |
25146 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25147 | wxPyShapeCanvas *result; | |
25148 | PyObject * obj0 = 0 ; | |
25149 | char *kwnames[] = { | |
25150 | (char *) "self", NULL | |
25151 | }; | |
25152 | ||
25153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCanvas",kwnames,&obj0)) goto fail; | |
25154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25155 | { | |
25156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25157 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
25158 | ||
25159 | wxPyEndAllowThreads(__tstate); | |
25160 | if (PyErr_Occurred()) SWIG_fail; | |
25161 | } | |
25162 | { | |
25163 | resultobj = wxPyMake_wxObject(result); | |
25164 | } | |
25165 | return resultobj; | |
25166 | fail: | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_Diagram_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25174 | int result; | |
25175 | PyObject * obj0 = 0 ; | |
25176 | char *kwnames[] = { | |
25177 | (char *) "self", NULL | |
25178 | }; | |
25179 | ||
25180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCount",kwnames,&obj0)) goto fail; | |
25181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (int)(arg1)->GetCount(); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | resultobj = PyInt_FromLong((long)result); | |
25190 | return resultobj; | |
25191 | fail: | |
25192 | return NULL; | |
25193 | } | |
25194 | ||
25195 | ||
25196 | static PyObject *_wrap_Diagram_GetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25197 | PyObject *resultobj; | |
25198 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25199 | double result; | |
25200 | PyObject * obj0 = 0 ; | |
25201 | char *kwnames[] = { | |
25202 | (char *) "self", NULL | |
25203 | }; | |
25204 | ||
25205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetGridSpacing",kwnames,&obj0)) goto fail; | |
25206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25207 | { | |
25208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25209 | result = (double)(arg1)->GetGridSpacing(); | |
25210 | ||
25211 | wxPyEndAllowThreads(__tstate); | |
25212 | if (PyErr_Occurred()) SWIG_fail; | |
25213 | } | |
25214 | resultobj = PyFloat_FromDouble(result); | |
25215 | return resultobj; | |
25216 | fail: | |
25217 | return NULL; | |
25218 | } | |
25219 | ||
25220 | ||
25221 | static PyObject *_wrap_Diagram_GetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25222 | PyObject *resultobj; | |
25223 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25224 | int result; | |
25225 | PyObject * obj0 = 0 ; | |
25226 | char *kwnames[] = { | |
25227 | (char *) "self", NULL | |
25228 | }; | |
25229 | ||
25230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetMouseTolerance",kwnames,&obj0)) goto fail; | |
25231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25232 | { | |
25233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25234 | result = (int)(arg1)->GetMouseTolerance(); | |
25235 | ||
25236 | wxPyEndAllowThreads(__tstate); | |
25237 | if (PyErr_Occurred()) SWIG_fail; | |
25238 | } | |
25239 | resultobj = PyInt_FromLong((long)result); | |
25240 | return resultobj; | |
25241 | fail: | |
25242 | return NULL; | |
25243 | } | |
25244 | ||
25245 | ||
25246 | static PyObject *_wrap_Diagram_GetShapeList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25247 | PyObject *resultobj; | |
25248 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25249 | PyObject *result; | |
25250 | PyObject * obj0 = 0 ; | |
25251 | char *kwnames[] = { | |
25252 | (char *) "self", NULL | |
25253 | }; | |
25254 | ||
25255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetShapeList",kwnames,&obj0)) goto fail; | |
25256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | result = (PyObject *)wxDiagram_GetShapeList(arg1); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | resultobj = result; | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
25268 | } | |
25269 | ||
25270 | ||
25271 | static PyObject *_wrap_Diagram_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25272 | PyObject *resultobj; | |
25273 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25274 | bool result; | |
25275 | PyObject * obj0 = 0 ; | |
25276 | char *kwnames[] = { | |
25277 | (char *) "self", NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
25281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | result = (bool)(arg1)->GetQuickEditMode(); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
25289 | resultobj = PyInt_FromLong((long)result); | |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject *_wrap_Diagram_GetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25297 | PyObject *resultobj; | |
25298 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25299 | bool result; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | char *kwnames[] = { | |
25302 | (char *) "self", NULL | |
25303 | }; | |
25304 | ||
25305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetSnapToGrid",kwnames,&obj0)) goto fail; | |
25306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | result = (bool)(arg1)->GetSnapToGrid(); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | resultobj = PyInt_FromLong((long)result); | |
25315 | return resultobj; | |
25316 | fail: | |
25317 | return NULL; | |
25318 | } | |
25319 | ||
25320 | ||
25321 | static PyObject *_wrap_Diagram_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25322 | PyObject *resultobj; | |
25323 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25324 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
25325 | PyObject * obj0 = 0 ; | |
25326 | PyObject * obj1 = 0 ; | |
25327 | char *kwnames[] = { | |
25328 | (char *) "self",(char *) "shape", NULL | |
25329 | }; | |
25330 | ||
25331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
25332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25333 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25334 | { | |
25335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25336 | (arg1)->InsertShape(arg2); | |
25337 | ||
25338 | wxPyEndAllowThreads(__tstate); | |
25339 | if (PyErr_Occurred()) SWIG_fail; | |
25340 | } | |
25341 | Py_INCREF(Py_None); resultobj = Py_None; | |
25342 | return resultobj; | |
25343 | fail: | |
25344 | return NULL; | |
25345 | } | |
25346 | ||
25347 | ||
25348 | static PyObject *_wrap_Diagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25349 | PyObject *resultobj; | |
25350 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25351 | wxDC *arg2 = 0 ; | |
25352 | PyObject * obj0 = 0 ; | |
25353 | PyObject * obj1 = 0 ; | |
25354 | char *kwnames[] = { | |
25355 | (char *) "self",(char *) "dc", NULL | |
25356 | }; | |
25357 | ||
25358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RecentreAll",kwnames,&obj0,&obj1)) goto fail; | |
25359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25361 | if (arg2 == NULL) { | |
25362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25363 | } | |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | (arg1)->RecentreAll(*arg2); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | Py_INCREF(Py_None); resultobj = Py_None; | |
25372 | return resultobj; | |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
25378 | static PyObject *_wrap_Diagram_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25379 | PyObject *resultobj; | |
25380 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25381 | wxDC *arg2 = 0 ; | |
25382 | PyObject * obj0 = 0 ; | |
25383 | PyObject * obj1 = 0 ; | |
25384 | char *kwnames[] = { | |
25385 | (char *) "self",(char *) "dc", NULL | |
25386 | }; | |
25387 | ||
25388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
25389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25391 | if (arg2 == NULL) { | |
25392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25393 | } | |
25394 | { | |
25395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25396 | (arg1)->Redraw(*arg2); | |
25397 | ||
25398 | wxPyEndAllowThreads(__tstate); | |
25399 | if (PyErr_Occurred()) SWIG_fail; | |
25400 | } | |
25401 | Py_INCREF(Py_None); resultobj = Py_None; | |
25402 | return resultobj; | |
25403 | fail: | |
25404 | return NULL; | |
25405 | } | |
25406 | ||
25407 | ||
25408 | static PyObject *_wrap_Diagram_RemoveAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25409 | PyObject *resultobj; | |
25410 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25411 | PyObject * obj0 = 0 ; | |
25412 | char *kwnames[] = { | |
25413 | (char *) "self", NULL | |
25414 | }; | |
25415 | ||
25416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_RemoveAllShapes",kwnames,&obj0)) goto fail; | |
25417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25418 | { | |
25419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25420 | (arg1)->RemoveAllShapes(); | |
25421 | ||
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
25425 | Py_INCREF(Py_None); resultobj = Py_None; | |
25426 | return resultobj; | |
25427 | fail: | |
25428 | return NULL; | |
25429 | } | |
25430 | ||
25431 | ||
25432 | static PyObject *_wrap_Diagram_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25433 | PyObject *resultobj; | |
25434 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25435 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
25436 | PyObject * obj0 = 0 ; | |
25437 | PyObject * obj1 = 0 ; | |
25438 | char *kwnames[] = { | |
25439 | (char *) "self",(char *) "shape", NULL | |
25440 | }; | |
25441 | ||
25442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
25443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25444 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25445 | { | |
25446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25447 | (arg1)->RemoveShape(arg2); | |
25448 | ||
25449 | wxPyEndAllowThreads(__tstate); | |
25450 | if (PyErr_Occurred()) SWIG_fail; | |
25451 | } | |
25452 | Py_INCREF(Py_None); resultobj = Py_None; | |
25453 | return resultobj; | |
25454 | fail: | |
25455 | return NULL; | |
25456 | } | |
25457 | ||
25458 | ||
25459 | static PyObject *_wrap_Diagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25460 | PyObject *resultobj; | |
25461 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25462 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
25463 | PyObject * obj0 = 0 ; | |
25464 | PyObject * obj1 = 0 ; | |
25465 | char *kwnames[] = { | |
25466 | (char *) "self",(char *) "canvas", NULL | |
25467 | }; | |
25468 | ||
25469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
25470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25471 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | (arg1)->SetCanvas(arg2); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | Py_INCREF(Py_None); resultobj = Py_None; | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_Diagram_SetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25489 | double arg2 ; | |
25490 | PyObject * obj0 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "spacing", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Diagram_SetGridSpacing",kwnames,&obj0,&arg2)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25497 | { | |
25498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25499 | (arg1)->SetGridSpacing(arg2); | |
25500 | ||
25501 | wxPyEndAllowThreads(__tstate); | |
25502 | if (PyErr_Occurred()) SWIG_fail; | |
25503 | } | |
25504 | Py_INCREF(Py_None); resultobj = Py_None; | |
25505 | return resultobj; | |
25506 | fail: | |
25507 | return NULL; | |
25508 | } | |
25509 | ||
25510 | ||
25511 | static PyObject *_wrap_Diagram_SetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25512 | PyObject *resultobj; | |
25513 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25514 | int arg2 ; | |
25515 | PyObject * obj0 = 0 ; | |
25516 | char *kwnames[] = { | |
25517 | (char *) "self",(char *) "tolerance", NULL | |
25518 | }; | |
25519 | ||
25520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Diagram_SetMouseTolerance",kwnames,&obj0,&arg2)) goto fail; | |
25521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25522 | { | |
25523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25524 | (arg1)->SetMouseTolerance(arg2); | |
25525 | ||
25526 | wxPyEndAllowThreads(__tstate); | |
25527 | if (PyErr_Occurred()) SWIG_fail; | |
25528 | } | |
25529 | Py_INCREF(Py_None); resultobj = Py_None; | |
25530 | return resultobj; | |
25531 | fail: | |
25532 | return NULL; | |
25533 | } | |
25534 | ||
25535 | ||
25536 | static PyObject *_wrap_Diagram_SetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25537 | PyObject *resultobj; | |
25538 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25539 | bool arg2 ; | |
25540 | PyObject * obj0 = 0 ; | |
25541 | PyObject * obj1 = 0 ; | |
25542 | char *kwnames[] = { | |
25543 | (char *) "self",(char *) "mode", NULL | |
25544 | }; | |
25545 | ||
25546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetQuickEditMode",kwnames,&obj0,&obj1)) goto fail; | |
25547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25548 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | { | |
25551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25552 | (arg1)->SetQuickEditMode(arg2); | |
25553 | ||
25554 | wxPyEndAllowThreads(__tstate); | |
25555 | if (PyErr_Occurred()) SWIG_fail; | |
25556 | } | |
25557 | Py_INCREF(Py_None); resultobj = Py_None; | |
25558 | return resultobj; | |
25559 | fail: | |
25560 | return NULL; | |
25561 | } | |
25562 | ||
25563 | ||
25564 | static PyObject *_wrap_Diagram_SetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25565 | PyObject *resultobj; | |
25566 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25567 | bool arg2 ; | |
25568 | PyObject * obj0 = 0 ; | |
25569 | PyObject * obj1 = 0 ; | |
25570 | char *kwnames[] = { | |
25571 | (char *) "self",(char *) "snap", NULL | |
25572 | }; | |
25573 | ||
25574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetSnapToGrid",kwnames,&obj0,&obj1)) goto fail; | |
25575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25576 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
25577 | if (PyErr_Occurred()) SWIG_fail; | |
25578 | { | |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25580 | (arg1)->SetSnapToGrid(arg2); | |
25581 | ||
25582 | wxPyEndAllowThreads(__tstate); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
25585 | Py_INCREF(Py_None); resultobj = Py_None; | |
25586 | return resultobj; | |
25587 | fail: | |
25588 | return NULL; | |
25589 | } | |
25590 | ||
25591 | ||
25592 | static PyObject *_wrap_Diagram_ShowAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25593 | PyObject *resultobj; | |
25594 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25595 | bool arg2 ; | |
25596 | PyObject * obj0 = 0 ; | |
25597 | PyObject * obj1 = 0 ; | |
25598 | char *kwnames[] = { | |
25599 | (char *) "self",(char *) "show", NULL | |
25600 | }; | |
25601 | ||
25602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_ShowAll",kwnames,&obj0,&obj1)) goto fail; | |
25603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25604 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | { | |
25607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25608 | (arg1)->ShowAll(arg2); | |
25609 | ||
25610 | wxPyEndAllowThreads(__tstate); | |
25611 | if (PyErr_Occurred()) SWIG_fail; | |
25612 | } | |
25613 | Py_INCREF(Py_None); resultobj = Py_None; | |
25614 | return resultobj; | |
25615 | fail: | |
25616 | return NULL; | |
25617 | } | |
25618 | ||
25619 | ||
25620 | static PyObject *_wrap_Diagram_Snap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25621 | PyObject *resultobj; | |
25622 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
25623 | double *arg2 = (double *) 0 ; | |
25624 | double *arg3 = (double *) 0 ; | |
25625 | double temp2 ; | |
25626 | double temp3 ; | |
25627 | PyObject * obj0 = 0 ; | |
25628 | PyObject * obj1 = 0 ; | |
25629 | PyObject * obj2 = 0 ; | |
25630 | char *kwnames[] = { | |
25631 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25632 | }; | |
25633 | ||
25634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Diagram_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25636 | { | |
25637 | temp2 = PyFloat_AsDouble(obj1); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | arg2 = &temp2; | |
25640 | } | |
25641 | { | |
25642 | temp3 = PyFloat_AsDouble(obj2); | |
25643 | if (PyErr_Occurred()) SWIG_fail; | |
25644 | arg3 = &temp3; | |
25645 | } | |
25646 | { | |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | (arg1)->Snap(arg2,arg3); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
25653 | Py_INCREF(Py_None); resultobj = Py_None; | |
25654 | { | |
25655 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
25656 | resultobj = t_output_helper(resultobj,o); | |
25657 | } | |
25658 | { | |
25659 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
25660 | resultobj = t_output_helper(resultobj,o); | |
25661 | } | |
25662 | return resultobj; | |
25663 | fail: | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject * Diagram_swigregister(PyObject *self, PyObject *args) { | |
25669 | PyObject *obj; | |
25670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25671 | SWIG_TypeClientData(SWIGTYPE_p_wxDiagram, obj); | |
25672 | Py_INCREF(obj); | |
25673 | return Py_BuildValue((char *)""); | |
25674 | } | |
25675 | static PyObject *_wrap_new_PyShapeCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25676 | PyObject *resultobj; | |
25677 | wxWindow *arg1 = (wxWindow *) NULL ; | |
25678 | int arg2 = (int) -1 ; | |
25679 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25680 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25681 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25682 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25683 | long arg5 = (long) wxBORDER ; | |
25684 | wxString const &arg6_defvalue = wxPyShapeCanvasNameStr ; | |
25685 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25686 | wxPyShapeCanvas *result; | |
25687 | wxPoint temp3 ; | |
25688 | wxSize temp4 ; | |
25689 | bool temp6 = False ; | |
25690 | PyObject * obj0 = 0 ; | |
25691 | PyObject * obj2 = 0 ; | |
25692 | PyObject * obj3 = 0 ; | |
25693 | PyObject * obj5 = 0 ; | |
25694 | char *kwnames[] = { | |
25695 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25696 | }; | |
25697 | ||
25698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiOOlO:new_PyShapeCanvas",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
25699 | if (obj0) { | |
25700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25701 | } | |
25702 | if (obj2) { | |
25703 | { | |
25704 | arg3 = &temp3; | |
25705 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25706 | } | |
25707 | } | |
25708 | if (obj3) { | |
25709 | { | |
25710 | arg4 = &temp4; | |
25711 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25712 | } | |
25713 | } | |
25714 | if (obj5) { | |
25715 | { | |
25716 | arg6 = wxString_in_helper(obj5); | |
25717 | if (arg6 == NULL) SWIG_fail; | |
25718 | temp6 = True; | |
25719 | } | |
25720 | } | |
25721 | { | |
25722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25723 | result = (wxPyShapeCanvas *)new wxPyShapeCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
25724 | ||
25725 | wxPyEndAllowThreads(__tstate); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | { | |
25729 | resultobj = wxPyMake_wxObject(result); | |
25730 | } | |
25731 | { | |
25732 | if (temp6) | |
25733 | delete arg6; | |
25734 | } | |
25735 | return resultobj; | |
25736 | fail: | |
25737 | { | |
25738 | if (temp6) | |
25739 | delete arg6; | |
25740 | } | |
25741 | return NULL; | |
25742 | } | |
25743 | ||
25744 | ||
25745 | static PyObject *_wrap_PyShapeCanvas__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25746 | PyObject *resultobj; | |
25747 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25748 | PyObject *arg2 = (PyObject *) 0 ; | |
25749 | PyObject *arg3 = (PyObject *) 0 ; | |
25750 | PyObject * obj0 = 0 ; | |
25751 | PyObject * obj1 = 0 ; | |
25752 | PyObject * obj2 = 0 ; | |
25753 | char *kwnames[] = { | |
25754 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25755 | }; | |
25756 | ||
25757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25759 | arg2 = obj1; | |
25760 | arg3 = obj2; | |
25761 | { | |
25762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25763 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25764 | ||
25765 | wxPyEndAllowThreads(__tstate); | |
25766 | if (PyErr_Occurred()) SWIG_fail; | |
25767 | } | |
25768 | Py_INCREF(Py_None); resultobj = Py_None; | |
25769 | return resultobj; | |
25770 | fail: | |
25771 | return NULL; | |
25772 | } | |
25773 | ||
25774 | ||
25775 | static PyObject *_wrap_PyShapeCanvas_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25776 | PyObject *resultobj; | |
25777 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25778 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
25779 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
25780 | PyObject * obj0 = 0 ; | |
25781 | PyObject * obj1 = 0 ; | |
25782 | PyObject * obj2 = 0 ; | |
25783 | char *kwnames[] = { | |
25784 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
25785 | }; | |
25786 | ||
25787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeCanvas_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25789 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25790 | if (obj2) { | |
25791 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25792 | } | |
25793 | { | |
25794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25795 | (arg1)->AddShape(arg2,arg3); | |
25796 | ||
25797 | wxPyEndAllowThreads(__tstate); | |
25798 | if (PyErr_Occurred()) SWIG_fail; | |
25799 | } | |
25800 | Py_INCREF(Py_None); resultobj = Py_None; | |
25801 | return resultobj; | |
25802 | fail: | |
25803 | return NULL; | |
25804 | } | |
25805 | ||
25806 | ||
25807 | static PyObject *_wrap_PyShapeCanvas_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25808 | PyObject *resultobj; | |
25809 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25810 | double arg2 ; | |
25811 | double arg3 ; | |
25812 | int *arg4 = (int *) 0 ; | |
25813 | wxClassInfo *arg5 = (wxClassInfo *) NULL ; | |
25814 | wxPyShape *arg6 = (wxPyShape *) NULL ; | |
25815 | wxPyShape *result; | |
25816 | int temp4 ; | |
25817 | PyObject * obj0 = 0 ; | |
25818 | PyObject * obj3 = 0 ; | |
25819 | PyObject * obj4 = 0 ; | |
25820 | char *kwnames[] = { | |
25821 | (char *) "self",(char *) "x1",(char *) "y",(char *) "info",(char *) "notImage", NULL | |
25822 | }; | |
25823 | ||
25824 | arg4 = &temp4; | |
25825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|OO:PyShapeCanvas_FindShape",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4)) goto fail; | |
25826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25827 | if (obj3) { | |
25828 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxClassInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25829 | } | |
25830 | if (obj4) { | |
25831 | if ((SWIG_ConvertPtr(obj4,(void **) &arg6, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25832 | } | |
25833 | { | |
25834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25835 | result = (wxPyShape *)(arg1)->FindShape(arg2,arg3,arg4,arg5,arg6); | |
25836 | ||
25837 | wxPyEndAllowThreads(__tstate); | |
25838 | if (PyErr_Occurred()) SWIG_fail; | |
25839 | } | |
25840 | { | |
25841 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
25842 | } | |
25843 | { | |
25844 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25845 | resultobj = t_output_helper(resultobj,o); | |
25846 | } | |
25847 | return resultobj; | |
25848 | fail: | |
25849 | return NULL; | |
25850 | } | |
25851 | ||
25852 | ||
25853 | static PyObject *_wrap_PyShapeCanvas_FindFirstSensitiveShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25854 | PyObject *resultobj; | |
25855 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25856 | double arg2 ; | |
25857 | double arg3 ; | |
25858 | int *arg4 = (int *) 0 ; | |
25859 | int arg5 ; | |
25860 | wxPyShape *result; | |
25861 | int temp4 ; | |
25862 | PyObject * obj0 = 0 ; | |
25863 | char *kwnames[] = { | |
25864 | (char *) "self",(char *) "x1",(char *) "y",(char *) "op", NULL | |
25865 | }; | |
25866 | ||
25867 | arg4 = &temp4; | |
25868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oddi:PyShapeCanvas_FindFirstSensitiveShape",kwnames,&obj0,&arg2,&arg3,&arg5)) goto fail; | |
25869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25870 | { | |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25872 | result = (wxPyShape *)(arg1)->FindFirstSensitiveShape(arg2,arg3,arg4,arg5); | |
25873 | ||
25874 | wxPyEndAllowThreads(__tstate); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | { | |
25878 | resultobj = wxPyMake_wxShapeEvtHandler(result); | |
25879 | } | |
25880 | { | |
25881 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25882 | resultobj = t_output_helper(resultobj,o); | |
25883 | } | |
25884 | return resultobj; | |
25885 | fail: | |
25886 | return NULL; | |
25887 | } | |
25888 | ||
25889 | ||
25890 | static PyObject *_wrap_PyShapeCanvas_GetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25891 | PyObject *resultobj; | |
25892 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25893 | wxDiagram *result; | |
25894 | PyObject * obj0 = 0 ; | |
25895 | char *kwnames[] = { | |
25896 | (char *) "self", NULL | |
25897 | }; | |
25898 | ||
25899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetDiagram",kwnames,&obj0)) goto fail; | |
25900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25901 | { | |
25902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25903 | result = (wxDiagram *)(arg1)->GetDiagram(); | |
25904 | ||
25905 | wxPyEndAllowThreads(__tstate); | |
25906 | if (PyErr_Occurred()) SWIG_fail; | |
25907 | } | |
25908 | { | |
25909 | resultobj = wxPyMake_wxObject(result); | |
25910 | } | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
25917 | static PyObject *_wrap_PyShapeCanvas_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25918 | PyObject *resultobj; | |
25919 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25920 | bool result; | |
25921 | PyObject * obj0 = 0 ; | |
25922 | char *kwnames[] = { | |
25923 | (char *) "self", NULL | |
25924 | }; | |
25925 | ||
25926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
25927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25928 | { | |
25929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25930 | result = (bool)(arg1)->GetQuickEditMode(); | |
25931 | ||
25932 | wxPyEndAllowThreads(__tstate); | |
25933 | if (PyErr_Occurred()) SWIG_fail; | |
25934 | } | |
25935 | resultobj = PyInt_FromLong((long)result); | |
25936 | return resultobj; | |
25937 | fail: | |
25938 | return NULL; | |
25939 | } | |
25940 | ||
25941 | ||
25942 | static PyObject *_wrap_PyShapeCanvas_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25943 | PyObject *resultobj; | |
25944 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25945 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
25946 | PyObject * obj0 = 0 ; | |
25947 | PyObject * obj1 = 0 ; | |
25948 | char *kwnames[] = { | |
25949 | (char *) "self",(char *) "shape", NULL | |
25950 | }; | |
25951 | ||
25952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
25953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25955 | { | |
25956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25957 | (arg1)->InsertShape(arg2); | |
25958 | ||
25959 | wxPyEndAllowThreads(__tstate); | |
25960 | if (PyErr_Occurred()) SWIG_fail; | |
25961 | } | |
25962 | Py_INCREF(Py_None); resultobj = Py_None; | |
25963 | return resultobj; | |
25964 | fail: | |
25965 | return NULL; | |
25966 | } | |
25967 | ||
25968 | ||
25969 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25970 | PyObject *resultobj; | |
25971 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25972 | double arg2 ; | |
25973 | double arg3 ; | |
25974 | int arg4 = (int) 0 ; | |
25975 | PyObject * obj0 = 0 ; | |
25976 | char *kwnames[] = { | |
25977 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
25978 | }; | |
25979 | ||
25980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnBeginDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
25981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25982 | { | |
25983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25984 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4); | |
25985 | ||
25986 | wxPyEndAllowThreads(__tstate); | |
25987 | if (PyErr_Occurred()) SWIG_fail; | |
25988 | } | |
25989 | Py_INCREF(Py_None); resultobj = Py_None; | |
25990 | return resultobj; | |
25991 | fail: | |
25992 | return NULL; | |
25993 | } | |
25994 | ||
25995 | ||
25996 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25997 | PyObject *resultobj; | |
25998 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
25999 | double arg2 ; | |
26000 | double arg3 ; | |
26001 | int arg4 = (int) 0 ; | |
26002 | PyObject * obj0 = 0 ; | |
26003 | char *kwnames[] = { | |
26004 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26005 | }; | |
26006 | ||
26007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnBeginDragRight",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
26008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26009 | { | |
26010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26011 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4); | |
26012 | ||
26013 | wxPyEndAllowThreads(__tstate); | |
26014 | if (PyErr_Occurred()) SWIG_fail; | |
26015 | } | |
26016 | Py_INCREF(Py_None); resultobj = Py_None; | |
26017 | return resultobj; | |
26018 | fail: | |
26019 | return NULL; | |
26020 | } | |
26021 | ||
26022 | ||
26023 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26024 | PyObject *resultobj; | |
26025 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26026 | double arg2 ; | |
26027 | double arg3 ; | |
26028 | int arg4 = (int) 0 ; | |
26029 | PyObject * obj0 = 0 ; | |
26030 | char *kwnames[] = { | |
26031 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26032 | }; | |
26033 | ||
26034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnEndDragLeft",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
26035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26036 | { | |
26037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26038 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4); | |
26039 | ||
26040 | wxPyEndAllowThreads(__tstate); | |
26041 | if (PyErr_Occurred()) SWIG_fail; | |
26042 | } | |
26043 | Py_INCREF(Py_None); resultobj = Py_None; | |
26044 | return resultobj; | |
26045 | fail: | |
26046 | return NULL; | |
26047 | } | |
26048 | ||
26049 | ||
26050 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26051 | PyObject *resultobj; | |
26052 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26053 | double arg2 ; | |
26054 | double arg3 ; | |
26055 | int arg4 = (int) 0 ; | |
26056 | PyObject * obj0 = 0 ; | |
26057 | char *kwnames[] = { | |
26058 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26059 | }; | |
26060 | ||
26061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnEndDragRight",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
26062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26063 | { | |
26064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26065 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4); | |
26066 | ||
26067 | wxPyEndAllowThreads(__tstate); | |
26068 | if (PyErr_Occurred()) SWIG_fail; | |
26069 | } | |
26070 | Py_INCREF(Py_None); resultobj = Py_None; | |
26071 | return resultobj; | |
26072 | fail: | |
26073 | return NULL; | |
26074 | } | |
26075 | ||
26076 | ||
26077 | static PyObject *_wrap_PyShapeCanvas_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26078 | PyObject *resultobj; | |
26079 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26080 | bool arg2 ; | |
26081 | double arg3 ; | |
26082 | double arg4 ; | |
26083 | int arg5 = (int) 0 ; | |
26084 | PyObject * obj0 = 0 ; | |
26085 | PyObject * obj1 = 0 ; | |
26086 | char *kwnames[] = { | |
26087 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26088 | }; | |
26089 | ||
26090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|i:PyShapeCanvas_base_OnDragLeft",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
26091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26092 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
26093 | if (PyErr_Occurred()) SWIG_fail; | |
26094 | { | |
26095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26096 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5); | |
26097 | ||
26098 | wxPyEndAllowThreads(__tstate); | |
26099 | if (PyErr_Occurred()) SWIG_fail; | |
26100 | } | |
26101 | Py_INCREF(Py_None); resultobj = Py_None; | |
26102 | return resultobj; | |
26103 | fail: | |
26104 | return NULL; | |
26105 | } | |
26106 | ||
26107 | ||
26108 | static PyObject *_wrap_PyShapeCanvas_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26109 | PyObject *resultobj; | |
26110 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26111 | bool arg2 ; | |
26112 | double arg3 ; | |
26113 | double arg4 ; | |
26114 | int arg5 = (int) 0 ; | |
26115 | PyObject * obj0 = 0 ; | |
26116 | PyObject * obj1 = 0 ; | |
26117 | char *kwnames[] = { | |
26118 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26119 | }; | |
26120 | ||
26121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOdd|i:PyShapeCanvas_base_OnDragRight",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
26122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26123 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
26124 | if (PyErr_Occurred()) SWIG_fail; | |
26125 | { | |
26126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26127 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5); | |
26128 | ||
26129 | wxPyEndAllowThreads(__tstate); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | } | |
26132 | Py_INCREF(Py_None); resultobj = Py_None; | |
26133 | return resultobj; | |
26134 | fail: | |
26135 | return NULL; | |
26136 | } | |
26137 | ||
26138 | ||
26139 | static PyObject *_wrap_PyShapeCanvas_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26140 | PyObject *resultobj; | |
26141 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26142 | double arg2 ; | |
26143 | double arg3 ; | |
26144 | int arg4 = (int) 0 ; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | char *kwnames[] = { | |
26147 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26148 | }; | |
26149 | ||
26150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnLeftClick",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
26151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26152 | { | |
26153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26154 | (arg1)->base_OnLeftClick(arg2,arg3,arg4); | |
26155 | ||
26156 | wxPyEndAllowThreads(__tstate); | |
26157 | if (PyErr_Occurred()) SWIG_fail; | |
26158 | } | |
26159 | Py_INCREF(Py_None); resultobj = Py_None; | |
26160 | return resultobj; | |
26161 | fail: | |
26162 | return NULL; | |
26163 | } | |
26164 | ||
26165 | ||
26166 | static PyObject *_wrap_PyShapeCanvas_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26167 | PyObject *resultobj; | |
26168 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26169 | double arg2 ; | |
26170 | double arg3 ; | |
26171 | int arg4 = (int) 0 ; | |
26172 | PyObject * obj0 = 0 ; | |
26173 | char *kwnames[] = { | |
26174 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd|i:PyShapeCanvas_base_OnRightClick",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
26178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26179 | { | |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | (arg1)->base_OnRightClick(arg2,arg3,arg4); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
26186 | Py_INCREF(Py_None); resultobj = Py_None; | |
26187 | return resultobj; | |
26188 | fail: | |
26189 | return NULL; | |
26190 | } | |
26191 | ||
26192 | ||
26193 | static PyObject *_wrap_PyShapeCanvas_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26194 | PyObject *resultobj; | |
26195 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26196 | wxDC *arg2 = 0 ; | |
26197 | PyObject * obj0 = 0 ; | |
26198 | PyObject * obj1 = 0 ; | |
26199 | char *kwnames[] = { | |
26200 | (char *) "self",(char *) "dc", NULL | |
26201 | }; | |
26202 | ||
26203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
26204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26205 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26206 | if (arg2 == NULL) { | |
26207 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26208 | } | |
26209 | { | |
26210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26211 | (arg1)->Redraw(*arg2); | |
26212 | ||
26213 | wxPyEndAllowThreads(__tstate); | |
26214 | if (PyErr_Occurred()) SWIG_fail; | |
26215 | } | |
26216 | Py_INCREF(Py_None); resultobj = Py_None; | |
26217 | return resultobj; | |
26218 | fail: | |
26219 | return NULL; | |
26220 | } | |
26221 | ||
26222 | ||
26223 | static PyObject *_wrap_PyShapeCanvas_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26224 | PyObject *resultobj; | |
26225 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26226 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26227 | PyObject * obj0 = 0 ; | |
26228 | PyObject * obj1 = 0 ; | |
26229 | char *kwnames[] = { | |
26230 | (char *) "self",(char *) "shape", NULL | |
26231 | }; | |
26232 | ||
26233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
26234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyShape,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26236 | { | |
26237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26238 | (arg1)->RemoveShape(arg2); | |
26239 | ||
26240 | wxPyEndAllowThreads(__tstate); | |
26241 | if (PyErr_Occurred()) SWIG_fail; | |
26242 | } | |
26243 | Py_INCREF(Py_None); resultobj = Py_None; | |
26244 | return resultobj; | |
26245 | fail: | |
26246 | return NULL; | |
26247 | } | |
26248 | ||
26249 | ||
26250 | static PyObject *_wrap_PyShapeCanvas_SetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26251 | PyObject *resultobj; | |
26252 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26253 | wxDiagram *arg2 = (wxDiagram *) 0 ; | |
26254 | PyObject * obj0 = 0 ; | |
26255 | PyObject * obj1 = 0 ; | |
26256 | char *kwnames[] = { | |
26257 | (char *) "self",(char *) "diagram", NULL | |
26258 | }; | |
26259 | ||
26260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_SetDiagram",kwnames,&obj0,&obj1)) goto fail; | |
26261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26262 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDiagram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26263 | { | |
26264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26265 | (arg1)->SetDiagram(arg2); | |
26266 | ||
26267 | wxPyEndAllowThreads(__tstate); | |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
26269 | } | |
26270 | Py_INCREF(Py_None); resultobj = Py_None; | |
26271 | return resultobj; | |
26272 | fail: | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
26277 | static PyObject *_wrap_PyShapeCanvas_Snap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26278 | PyObject *resultobj; | |
26279 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
26280 | double *arg2 = (double *) 0 ; | |
26281 | double *arg3 = (double *) 0 ; | |
26282 | double temp2 ; | |
26283 | double temp3 ; | |
26284 | PyObject * obj0 = 0 ; | |
26285 | PyObject * obj1 = 0 ; | |
26286 | PyObject * obj2 = 0 ; | |
26287 | char *kwnames[] = { | |
26288 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26289 | }; | |
26290 | ||
26291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyShapeCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26293 | { | |
26294 | temp2 = PyFloat_AsDouble(obj1); | |
26295 | if (PyErr_Occurred()) SWIG_fail; | |
26296 | arg2 = &temp2; | |
26297 | } | |
26298 | { | |
26299 | temp3 = PyFloat_AsDouble(obj2); | |
26300 | if (PyErr_Occurred()) SWIG_fail; | |
26301 | arg3 = &temp3; | |
26302 | } | |
26303 | { | |
26304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26305 | (arg1)->Snap(arg2,arg3); | |
26306 | ||
26307 | wxPyEndAllowThreads(__tstate); | |
26308 | if (PyErr_Occurred()) SWIG_fail; | |
26309 | } | |
26310 | Py_INCREF(Py_None); resultobj = Py_None; | |
26311 | { | |
26312 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
26313 | resultobj = t_output_helper(resultobj,o); | |
26314 | } | |
26315 | { | |
26316 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
26317 | resultobj = t_output_helper(resultobj,o); | |
26318 | } | |
26319 | return resultobj; | |
26320 | fail: | |
26321 | return NULL; | |
26322 | } | |
26323 | ||
26324 | ||
26325 | static PyObject * PyShapeCanvas_swigregister(PyObject *self, PyObject *args) { | |
26326 | PyObject *obj; | |
26327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26328 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeCanvas, obj); | |
26329 | Py_INCREF(obj); | |
26330 | return Py_BuildValue((char *)""); | |
26331 | } | |
26332 | static PyObject *_wrap_OGLInitialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26333 | PyObject *resultobj; | |
26334 | char *kwnames[] = { | |
26335 | NULL | |
26336 | }; | |
26337 | ||
26338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLInitialize",kwnames)) goto fail; | |
26339 | { | |
26340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26341 | wxOGLInitialize(); | |
26342 | ||
26343 | wxPyEndAllowThreads(__tstate); | |
26344 | if (PyErr_Occurred()) SWIG_fail; | |
26345 | } | |
26346 | Py_INCREF(Py_None); resultobj = Py_None; | |
26347 | return resultobj; | |
26348 | fail: | |
26349 | return NULL; | |
26350 | } | |
26351 | ||
26352 | ||
26353 | static PyObject *_wrap_OGLCleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26354 | PyObject *resultobj; | |
26355 | char *kwnames[] = { | |
26356 | NULL | |
26357 | }; | |
26358 | ||
26359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLCleanUp",kwnames)) goto fail; | |
26360 | { | |
26361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26362 | wxOGLCleanUp(); | |
26363 | ||
26364 | wxPyEndAllowThreads(__tstate); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | } | |
26367 | Py_INCREF(Py_None); resultobj = Py_None; | |
26368 | return resultobj; | |
26369 | fail: | |
26370 | return NULL; | |
26371 | } | |
26372 | ||
26373 | ||
26374 | static PyMethodDef SwigMethods[] = { | |
26375 | { (char *)"new_ShapeRegion", (PyCFunction) _wrap_new_ShapeRegion, METH_VARARGS | METH_KEYWORDS }, | |
26376 | { (char *)"ShapeRegion_SetText", (PyCFunction) _wrap_ShapeRegion_SetText, METH_VARARGS | METH_KEYWORDS }, | |
26377 | { (char *)"ShapeRegion_SetFont", (PyCFunction) _wrap_ShapeRegion_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26378 | { (char *)"ShapeRegion_SetMinSize", (PyCFunction) _wrap_ShapeRegion_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
26379 | { (char *)"ShapeRegion_SetSize", (PyCFunction) _wrap_ShapeRegion_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26380 | { (char *)"ShapeRegion_SetPosition", (PyCFunction) _wrap_ShapeRegion_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26381 | { (char *)"ShapeRegion_SetProportions", (PyCFunction) _wrap_ShapeRegion_SetProportions, METH_VARARGS | METH_KEYWORDS }, | |
26382 | { (char *)"ShapeRegion_SetFormatMode", (PyCFunction) _wrap_ShapeRegion_SetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
26383 | { (char *)"ShapeRegion_SetName", (PyCFunction) _wrap_ShapeRegion_SetName, METH_VARARGS | METH_KEYWORDS }, | |
26384 | { (char *)"ShapeRegion_SetColour", (PyCFunction) _wrap_ShapeRegion_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
26385 | { (char *)"ShapeRegion_GetText", (PyCFunction) _wrap_ShapeRegion_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26386 | { (char *)"ShapeRegion_GetFont", (PyCFunction) _wrap_ShapeRegion_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26387 | { (char *)"ShapeRegion_GetMinSize", (PyCFunction) _wrap_ShapeRegion_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
26388 | { (char *)"ShapeRegion_GetProportion", (PyCFunction) _wrap_ShapeRegion_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
26389 | { (char *)"ShapeRegion_GetSize", (PyCFunction) _wrap_ShapeRegion_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
26390 | { (char *)"ShapeRegion_GetPosition", (PyCFunction) _wrap_ShapeRegion_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26391 | { (char *)"ShapeRegion_GetFormatMode", (PyCFunction) _wrap_ShapeRegion_GetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
26392 | { (char *)"ShapeRegion_GetName", (PyCFunction) _wrap_ShapeRegion_GetName, METH_VARARGS | METH_KEYWORDS }, | |
26393 | { (char *)"ShapeRegion_GetColour", (PyCFunction) _wrap_ShapeRegion_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
26394 | { (char *)"ShapeRegion_GetActualColourObject", (PyCFunction) _wrap_ShapeRegion_GetActualColourObject, METH_VARARGS | METH_KEYWORDS }, | |
26395 | { (char *)"ShapeRegion_GetFormattedText", (PyCFunction) _wrap_ShapeRegion_GetFormattedText, METH_VARARGS | METH_KEYWORDS }, | |
26396 | { (char *)"ShapeRegion_GetPenColour", (PyCFunction) _wrap_ShapeRegion_GetPenColour, METH_VARARGS | METH_KEYWORDS }, | |
26397 | { (char *)"ShapeRegion_GetPenStyle", (PyCFunction) _wrap_ShapeRegion_GetPenStyle, METH_VARARGS | METH_KEYWORDS }, | |
26398 | { (char *)"ShapeRegion_SetPenStyle", (PyCFunction) _wrap_ShapeRegion_SetPenStyle, METH_VARARGS | METH_KEYWORDS }, | |
26399 | { (char *)"ShapeRegion_SetPenColour", (PyCFunction) _wrap_ShapeRegion_SetPenColour, METH_VARARGS | METH_KEYWORDS }, | |
26400 | { (char *)"ShapeRegion_GetActualPen", (PyCFunction) _wrap_ShapeRegion_GetActualPen, METH_VARARGS | METH_KEYWORDS }, | |
26401 | { (char *)"ShapeRegion_GetWidth", (PyCFunction) _wrap_ShapeRegion_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26402 | { (char *)"ShapeRegion_GetHeight", (PyCFunction) _wrap_ShapeRegion_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
26403 | { (char *)"ShapeRegion_ClearText", (PyCFunction) _wrap_ShapeRegion_ClearText, METH_VARARGS | METH_KEYWORDS }, | |
26404 | { (char *)"ShapeRegion_swigregister", ShapeRegion_swigregister, METH_VARARGS }, | |
30d215aa RD |
26405 | { (char *)"new_AttachmentPoint", (PyCFunction) _wrap_new_AttachmentPoint, METH_VARARGS | METH_KEYWORDS }, |
26406 | { (char *)"AttachmentPoint_m_id_set", (PyCFunction) _wrap_AttachmentPoint_m_id_set, METH_VARARGS | METH_KEYWORDS }, | |
26407 | { (char *)"AttachmentPoint_m_id_get", (PyCFunction) _wrap_AttachmentPoint_m_id_get, METH_VARARGS | METH_KEYWORDS }, | |
26408 | { (char *)"AttachmentPoint_m_x_set", (PyCFunction) _wrap_AttachmentPoint_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
26409 | { (char *)"AttachmentPoint_m_x_get", (PyCFunction) _wrap_AttachmentPoint_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
26410 | { (char *)"AttachmentPoint_m_y_set", (PyCFunction) _wrap_AttachmentPoint_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
26411 | { (char *)"AttachmentPoint_m_y_get", (PyCFunction) _wrap_AttachmentPoint_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
26412 | { (char *)"AttachmentPoint_swigregister", AttachmentPoint_swigregister, METH_VARARGS }, | |
44127b65 RD |
26413 | { (char *)"new_PyShapeEvtHandler", (PyCFunction) _wrap_new_PyShapeEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
26414 | { (char *)"PyShapeEvtHandler__setCallbackInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26415 | { (char *)"PyShapeEvtHandler__setOORInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
26416 | { (char *)"PyShapeEvtHandler_SetShape", (PyCFunction) _wrap_PyShapeEvtHandler_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
26417 | { (char *)"PyShapeEvtHandler_GetShape", (PyCFunction) _wrap_PyShapeEvtHandler_GetShape, METH_VARARGS | METH_KEYWORDS }, | |
26418 | { (char *)"PyShapeEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
26419 | { (char *)"PyShapeEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
26420 | { (char *)"PyShapeEvtHandler_CreateNewCopy", (PyCFunction) _wrap_PyShapeEvtHandler_CreateNewCopy, METH_VARARGS | METH_KEYWORDS }, | |
26421 | { (char *)"PyShapeEvtHandler_base_OnDelete", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26422 | { (char *)"PyShapeEvtHandler_base_OnDraw", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26423 | { (char *)"PyShapeEvtHandler_base_OnDrawContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26424 | { (char *)"PyShapeEvtHandler_base_OnDrawBranches", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26425 | { (char *)"PyShapeEvtHandler_base_OnMoveLinks", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26426 | { (char *)"PyShapeEvtHandler_base_OnErase", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26427 | { (char *)"PyShapeEvtHandler_base_OnEraseContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26428 | { (char *)"PyShapeEvtHandler_base_OnHighlight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26429 | { (char *)"PyShapeEvtHandler_base_OnLeftClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26430 | { (char *)"PyShapeEvtHandler_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26431 | { (char *)"PyShapeEvtHandler_base_OnRightClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"PyShapeEvtHandler_base_OnSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"PyShapeEvtHandler_base_OnMovePre", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26434 | { (char *)"PyShapeEvtHandler_base_OnMovePost", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26435 | { (char *)"PyShapeEvtHandler_base_OnDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26436 | { (char *)"PyShapeEvtHandler_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"PyShapeEvtHandler_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"PyShapeEvtHandler_base_OnDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"PyShapeEvtHandler_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"PyShapeEvtHandler_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26441 | { (char *)"PyShapeEvtHandler_base_OnDrawOutline", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"PyShapeEvtHandler_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26443 | { (char *)"PyShapeEvtHandler_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"PyShapeEvtHandler_base_OnMoveLink", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"PyShapeEvtHandler_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"PyShapeEvtHandler_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"PyShapeEvtHandler_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26448 | { (char *)"PyShapeEvtHandler_base_OnBeginSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"PyShapeEvtHandler_base_OnEndSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"PyShapeEvtHandler_swigregister", PyShapeEvtHandler_swigregister, METH_VARARGS }, | |
26451 | { (char *)"new_PyShape", (PyCFunction) _wrap_new_PyShape, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"PyShape__setCallbackInfo", (PyCFunction) _wrap_PyShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26453 | { (char *)"PyShape_GetBoundingBoxMax", (PyCFunction) _wrap_PyShape_GetBoundingBoxMax, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"PyShape_GetBoundingBoxMin", (PyCFunction) _wrap_PyShape_GetBoundingBoxMin, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"PyShape_GetPerimeterPoint", (PyCFunction) _wrap_PyShape_GetPerimeterPoint, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"PyShape_GetCanvas", (PyCFunction) _wrap_PyShape_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
26457 | { (char *)"PyShape_SetCanvas", (PyCFunction) _wrap_PyShape_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"PyShape_AddToCanvas", (PyCFunction) _wrap_PyShape_AddToCanvas, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"PyShape_InsertInCanvas", (PyCFunction) _wrap_PyShape_InsertInCanvas, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"PyShape_RemoveFromCanvas", (PyCFunction) _wrap_PyShape_RemoveFromCanvas, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"PyShape_GetX", (PyCFunction) _wrap_PyShape_GetX, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"PyShape_GetY", (PyCFunction) _wrap_PyShape_GetY, METH_VARARGS | METH_KEYWORDS }, | |
26463 | { (char *)"PyShape_SetX", (PyCFunction) _wrap_PyShape_SetX, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"PyShape_SetY", (PyCFunction) _wrap_PyShape_SetY, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"PyShape_GetParent", (PyCFunction) _wrap_PyShape_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"PyShape_SetParent", (PyCFunction) _wrap_PyShape_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
26467 | { (char *)"PyShape_GetTopAncestor", (PyCFunction) _wrap_PyShape_GetTopAncestor, METH_VARARGS | METH_KEYWORDS }, | |
26468 | { (char *)"PyShape_GetChildren", (PyCFunction) _wrap_PyShape_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"PyShape_Unlink", (PyCFunction) _wrap_PyShape_Unlink, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"PyShape_SetDrawHandles", (PyCFunction) _wrap_PyShape_SetDrawHandles, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"PyShape_GetDrawHandles", (PyCFunction) _wrap_PyShape_GetDrawHandles, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"PyShape_MakeControlPoints", (PyCFunction) _wrap_PyShape_MakeControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"PyShape_DeleteControlPoints", (PyCFunction) _wrap_PyShape_DeleteControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"PyShape_ResetControlPoints", (PyCFunction) _wrap_PyShape_ResetControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"PyShape_GetEventHandler", (PyCFunction) _wrap_PyShape_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"PyShape_SetEventHandler", (PyCFunction) _wrap_PyShape_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"PyShape_MakeMandatoryControlPoints", (PyCFunction) _wrap_PyShape_MakeMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"PyShape_ResetMandatoryControlPoints", (PyCFunction) _wrap_PyShape_ResetMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"PyShape_Recompute", (PyCFunction) _wrap_PyShape_Recompute, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"PyShape_CalculateSize", (PyCFunction) _wrap_PyShape_CalculateSize, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"PyShape_Select", (PyCFunction) _wrap_PyShape_Select, METH_VARARGS | METH_KEYWORDS }, | |
26482 | { (char *)"PyShape_SetHighlight", (PyCFunction) _wrap_PyShape_SetHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26483 | { (char *)"PyShape_IsHighlighted", (PyCFunction) _wrap_PyShape_IsHighlighted, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"PyShape_Selected", (PyCFunction) _wrap_PyShape_Selected, METH_VARARGS | METH_KEYWORDS }, | |
26485 | { (char *)"PyShape_AncestorSelected", (PyCFunction) _wrap_PyShape_AncestorSelected, METH_VARARGS | METH_KEYWORDS }, | |
26486 | { (char *)"PyShape_SetSensitivityFilter", (PyCFunction) _wrap_PyShape_SetSensitivityFilter, METH_VARARGS | METH_KEYWORDS }, | |
26487 | { (char *)"PyShape_GetSensitivityFilter", (PyCFunction) _wrap_PyShape_GetSensitivityFilter, METH_VARARGS | METH_KEYWORDS }, | |
26488 | { (char *)"PyShape_SetDraggable", (PyCFunction) _wrap_PyShape_SetDraggable, METH_VARARGS | METH_KEYWORDS }, | |
26489 | { (char *)"PyShape_SetFixedSize", (PyCFunction) _wrap_PyShape_SetFixedSize, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"PyShape_GetFixedSize", (PyCFunction) _wrap_PyShape_GetFixedSize, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"PyShape_GetFixedWidth", (PyCFunction) _wrap_PyShape_GetFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"PyShape_GetFixedHeight", (PyCFunction) _wrap_PyShape_GetFixedHeight, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"PyShape_SetSpaceAttachments", (PyCFunction) _wrap_PyShape_SetSpaceAttachments, METH_VARARGS | METH_KEYWORDS }, | |
26494 | { (char *)"PyShape_GetSpaceAttachments", (PyCFunction) _wrap_PyShape_GetSpaceAttachments, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"PyShape_SetShadowMode", (PyCFunction) _wrap_PyShape_SetShadowMode, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"PyShape_GetShadowMode", (PyCFunction) _wrap_PyShape_GetShadowMode, METH_VARARGS | METH_KEYWORDS }, | |
26497 | { (char *)"PyShape_HitTest", (PyCFunction) _wrap_PyShape_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"PyShape_SetCentreResize", (PyCFunction) _wrap_PyShape_SetCentreResize, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"PyShape_GetCentreResize", (PyCFunction) _wrap_PyShape_GetCentreResize, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"PyShape_SetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_SetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"PyShape_GetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_GetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS }, | |
26502 | { (char *)"PyShape_GetLines", (PyCFunction) _wrap_PyShape_GetLines, METH_VARARGS | METH_KEYWORDS }, | |
26503 | { (char *)"PyShape_SetDisableLabel", (PyCFunction) _wrap_PyShape_SetDisableLabel, METH_VARARGS | METH_KEYWORDS }, | |
26504 | { (char *)"PyShape_GetDisableLabel", (PyCFunction) _wrap_PyShape_GetDisableLabel, METH_VARARGS | METH_KEYWORDS }, | |
26505 | { (char *)"PyShape_SetAttachmentMode", (PyCFunction) _wrap_PyShape_SetAttachmentMode, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"PyShape_GetAttachmentMode", (PyCFunction) _wrap_PyShape_GetAttachmentMode, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"PyShape_SetId", (PyCFunction) _wrap_PyShape_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"PyShape_GetId", (PyCFunction) _wrap_PyShape_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"PyShape_SetPen", (PyCFunction) _wrap_PyShape_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"PyShape_SetBrush", (PyCFunction) _wrap_PyShape_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
26511 | { (char *)"PyShape_Show", (PyCFunction) _wrap_PyShape_Show, METH_VARARGS | METH_KEYWORDS }, | |
26512 | { (char *)"PyShape_IsShown", (PyCFunction) _wrap_PyShape_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"PyShape_Move", (PyCFunction) _wrap_PyShape_Move, METH_VARARGS | METH_KEYWORDS }, | |
26514 | { (char *)"PyShape_Erase", (PyCFunction) _wrap_PyShape_Erase, METH_VARARGS | METH_KEYWORDS }, | |
26515 | { (char *)"PyShape_EraseContents", (PyCFunction) _wrap_PyShape_EraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"PyShape_Draw", (PyCFunction) _wrap_PyShape_Draw, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"PyShape_Flash", (PyCFunction) _wrap_PyShape_Flash, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"PyShape_MoveLinks", (PyCFunction) _wrap_PyShape_MoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"PyShape_DrawContents", (PyCFunction) _wrap_PyShape_DrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26520 | { (char *)"PyShape_SetSize", (PyCFunction) _wrap_PyShape_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"PyShape_SetAttachmentSize", (PyCFunction) _wrap_PyShape_SetAttachmentSize, METH_VARARGS | METH_KEYWORDS }, | |
26522 | { (char *)"PyShape_Attach", (PyCFunction) _wrap_PyShape_Attach, METH_VARARGS | METH_KEYWORDS }, | |
26523 | { (char *)"PyShape_Detach", (PyCFunction) _wrap_PyShape_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"PyShape_Constrain", (PyCFunction) _wrap_PyShape_Constrain, METH_VARARGS | METH_KEYWORDS }, | |
26525 | { (char *)"PyShape_AddLine", (PyCFunction) _wrap_PyShape_AddLine, METH_VARARGS | METH_KEYWORDS }, | |
26526 | { (char *)"PyShape_GetLinePosition", (PyCFunction) _wrap_PyShape_GetLinePosition, METH_VARARGS | METH_KEYWORDS }, | |
26527 | { (char *)"PyShape_AddText", (PyCFunction) _wrap_PyShape_AddText, METH_VARARGS | METH_KEYWORDS }, | |
26528 | { (char *)"PyShape_GetPen", (PyCFunction) _wrap_PyShape_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
26529 | { (char *)"PyShape_GetBrush", (PyCFunction) _wrap_PyShape_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
26530 | { (char *)"PyShape_SetDefaultRegionSize", (PyCFunction) _wrap_PyShape_SetDefaultRegionSize, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"PyShape_FormatText", (PyCFunction) _wrap_PyShape_FormatText, METH_VARARGS | METH_KEYWORDS }, | |
26532 | { (char *)"PyShape_SetFormatMode", (PyCFunction) _wrap_PyShape_SetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
26533 | { (char *)"PyShape_GetFormatMode", (PyCFunction) _wrap_PyShape_GetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
26534 | { (char *)"PyShape_SetFont", (PyCFunction) _wrap_PyShape_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26535 | { (char *)"PyShape_GetFont", (PyCFunction) _wrap_PyShape_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26536 | { (char *)"PyShape_SetTextColour", (PyCFunction) _wrap_PyShape_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26537 | { (char *)"PyShape_GetTextColour", (PyCFunction) _wrap_PyShape_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26538 | { (char *)"PyShape_GetNumberOfTextRegions", (PyCFunction) _wrap_PyShape_GetNumberOfTextRegions, METH_VARARGS | METH_KEYWORDS }, | |
26539 | { (char *)"PyShape_SetRegionName", (PyCFunction) _wrap_PyShape_SetRegionName, METH_VARARGS | METH_KEYWORDS }, | |
26540 | { (char *)"PyShape_GetRegionName", (PyCFunction) _wrap_PyShape_GetRegionName, METH_VARARGS | METH_KEYWORDS }, | |
26541 | { (char *)"PyShape_GetRegionId", (PyCFunction) _wrap_PyShape_GetRegionId, METH_VARARGS | METH_KEYWORDS }, | |
26542 | { (char *)"PyShape_NameRegions", (PyCFunction) _wrap_PyShape_NameRegions, METH_VARARGS | METH_KEYWORDS }, | |
26543 | { (char *)"PyShape_GetRegions", (PyCFunction) _wrap_PyShape_GetRegions, METH_VARARGS | METH_KEYWORDS }, | |
26544 | { (char *)"PyShape_AddRegion", (PyCFunction) _wrap_PyShape_AddRegion, METH_VARARGS | METH_KEYWORDS }, | |
26545 | { (char *)"PyShape_ClearRegions", (PyCFunction) _wrap_PyShape_ClearRegions, METH_VARARGS | METH_KEYWORDS }, | |
26546 | { (char *)"PyShape_AssignNewIds", (PyCFunction) _wrap_PyShape_AssignNewIds, METH_VARARGS | METH_KEYWORDS }, | |
26547 | { (char *)"PyShape_FindRegion", (PyCFunction) _wrap_PyShape_FindRegion, METH_VARARGS | METH_KEYWORDS }, | |
26548 | { (char *)"PyShape_FindRegionNames", (PyCFunction) _wrap_PyShape_FindRegionNames, METH_VARARGS | METH_KEYWORDS }, | |
26549 | { (char *)"PyShape_ClearText", (PyCFunction) _wrap_PyShape_ClearText, METH_VARARGS | METH_KEYWORDS }, | |
26550 | { (char *)"PyShape_RemoveLine", (PyCFunction) _wrap_PyShape_RemoveLine, METH_VARARGS | METH_KEYWORDS }, | |
26551 | { (char *)"PyShape_GetAttachmentPosition", (PyCFunction) _wrap_PyShape_GetAttachmentPosition, METH_VARARGS | METH_KEYWORDS }, | |
26552 | { (char *)"PyShape_GetNumberOfAttachments", (PyCFunction) _wrap_PyShape_GetNumberOfAttachments, METH_VARARGS | METH_KEYWORDS }, | |
26553 | { (char *)"PyShape_AttachmentIsValid", (PyCFunction) _wrap_PyShape_AttachmentIsValid, METH_VARARGS | METH_KEYWORDS }, | |
30d215aa | 26554 | { (char *)"PyShape_GetAttachments", (PyCFunction) _wrap_PyShape_GetAttachments, METH_VARARGS | METH_KEYWORDS }, |
44127b65 RD |
26555 | { (char *)"PyShape_GetAttachmentPositionEdge", (PyCFunction) _wrap_PyShape_GetAttachmentPositionEdge, METH_VARARGS | METH_KEYWORDS }, |
26556 | { (char *)"PyShape_CalcSimpleAttachment", (PyCFunction) _wrap_PyShape_CalcSimpleAttachment, METH_VARARGS | METH_KEYWORDS }, | |
26557 | { (char *)"PyShape_AttachmentSortTest", (PyCFunction) _wrap_PyShape_AttachmentSortTest, METH_VARARGS | METH_KEYWORDS }, | |
26558 | { (char *)"PyShape_EraseLinks", (PyCFunction) _wrap_PyShape_EraseLinks, METH_VARARGS | METH_KEYWORDS }, | |
26559 | { (char *)"PyShape_DrawLinks", (PyCFunction) _wrap_PyShape_DrawLinks, METH_VARARGS | METH_KEYWORDS }, | |
26560 | { (char *)"PyShape_MoveLineToNewAttachment", (PyCFunction) _wrap_PyShape_MoveLineToNewAttachment, METH_VARARGS | METH_KEYWORDS }, | |
26561 | { (char *)"PyShape_ApplyAttachmentOrdering", (PyCFunction) _wrap_PyShape_ApplyAttachmentOrdering, METH_VARARGS | METH_KEYWORDS }, | |
26562 | { (char *)"PyShape_GetBranchingAttachmentRoot", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentRoot, METH_VARARGS | METH_KEYWORDS }, | |
26563 | { (char *)"PyShape_GetBranchingAttachmentInfo", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentInfo, METH_VARARGS | METH_KEYWORDS }, | |
26564 | { (char *)"PyShape_GetBranchingAttachmentPoint", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentPoint, METH_VARARGS | METH_KEYWORDS }, | |
26565 | { (char *)"PyShape_GetAttachmentLineCount", (PyCFunction) _wrap_PyShape_GetAttachmentLineCount, METH_VARARGS | METH_KEYWORDS }, | |
26566 | { (char *)"PyShape_SetBranchNeckLength", (PyCFunction) _wrap_PyShape_SetBranchNeckLength, METH_VARARGS | METH_KEYWORDS }, | |
26567 | { (char *)"PyShape_GetBranchNeckLength", (PyCFunction) _wrap_PyShape_GetBranchNeckLength, METH_VARARGS | METH_KEYWORDS }, | |
26568 | { (char *)"PyShape_SetBranchStemLength", (PyCFunction) _wrap_PyShape_SetBranchStemLength, METH_VARARGS | METH_KEYWORDS }, | |
26569 | { (char *)"PyShape_GetBranchStemLength", (PyCFunction) _wrap_PyShape_GetBranchStemLength, METH_VARARGS | METH_KEYWORDS }, | |
26570 | { (char *)"PyShape_SetBranchSpacing", (PyCFunction) _wrap_PyShape_SetBranchSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26571 | { (char *)"PyShape_GetBranchSpacing", (PyCFunction) _wrap_PyShape_GetBranchSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26572 | { (char *)"PyShape_SetBranchStyle", (PyCFunction) _wrap_PyShape_SetBranchStyle, METH_VARARGS | METH_KEYWORDS }, | |
26573 | { (char *)"PyShape_GetBranchStyle", (PyCFunction) _wrap_PyShape_GetBranchStyle, METH_VARARGS | METH_KEYWORDS }, | |
26574 | { (char *)"PyShape_PhysicalToLogicalAttachment", (PyCFunction) _wrap_PyShape_PhysicalToLogicalAttachment, METH_VARARGS | METH_KEYWORDS }, | |
26575 | { (char *)"PyShape_LogicalToPhysicalAttachment", (PyCFunction) _wrap_PyShape_LogicalToPhysicalAttachment, METH_VARARGS | METH_KEYWORDS }, | |
26576 | { (char *)"PyShape_Draggable", (PyCFunction) _wrap_PyShape_Draggable, METH_VARARGS | METH_KEYWORDS }, | |
26577 | { (char *)"PyShape_HasDescendant", (PyCFunction) _wrap_PyShape_HasDescendant, METH_VARARGS | METH_KEYWORDS }, | |
26578 | { (char *)"PyShape_CreateNewCopy", (PyCFunction) _wrap_PyShape_CreateNewCopy, METH_VARARGS | METH_KEYWORDS }, | |
26579 | { (char *)"PyShape_Copy", (PyCFunction) _wrap_PyShape_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26580 | { (char *)"PyShape_CopyWithHandler", (PyCFunction) _wrap_PyShape_CopyWithHandler, METH_VARARGS | METH_KEYWORDS }, | |
26581 | { (char *)"PyShape_Rotate", (PyCFunction) _wrap_PyShape_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
26582 | { (char *)"PyShape_GetRotation", (PyCFunction) _wrap_PyShape_GetRotation, METH_VARARGS | METH_KEYWORDS }, | |
30d215aa | 26583 | { (char *)"PyShape_SetRotation", (PyCFunction) _wrap_PyShape_SetRotation, METH_VARARGS | METH_KEYWORDS }, |
44127b65 RD |
26584 | { (char *)"PyShape_ClearAttachments", (PyCFunction) _wrap_PyShape_ClearAttachments, METH_VARARGS | METH_KEYWORDS }, |
26585 | { (char *)"PyShape_Recentre", (PyCFunction) _wrap_PyShape_Recentre, METH_VARARGS | METH_KEYWORDS }, | |
26586 | { (char *)"PyShape_ClearPointList", (PyCFunction) _wrap_PyShape_ClearPointList, METH_VARARGS | METH_KEYWORDS }, | |
26587 | { (char *)"PyShape_GetBackgroundPen", (PyCFunction) _wrap_PyShape_GetBackgroundPen, METH_VARARGS | METH_KEYWORDS }, | |
26588 | { (char *)"PyShape_GetBackgroundBrush", (PyCFunction) _wrap_PyShape_GetBackgroundBrush, METH_VARARGS | METH_KEYWORDS }, | |
26589 | { (char *)"PyShape_base_OnDelete", (PyCFunction) _wrap_PyShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26590 | { (char *)"PyShape_base_OnDraw", (PyCFunction) _wrap_PyShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26591 | { (char *)"PyShape_base_OnDrawContents", (PyCFunction) _wrap_PyShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26592 | { (char *)"PyShape_base_OnDrawBranches", (PyCFunction) _wrap_PyShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26593 | { (char *)"PyShape_base_OnMoveLinks", (PyCFunction) _wrap_PyShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26594 | { (char *)"PyShape_base_OnErase", (PyCFunction) _wrap_PyShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26595 | { (char *)"PyShape_base_OnEraseContents", (PyCFunction) _wrap_PyShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26596 | { (char *)"PyShape_base_OnHighlight", (PyCFunction) _wrap_PyShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26597 | { (char *)"PyShape_base_OnLeftClick", (PyCFunction) _wrap_PyShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26598 | { (char *)"PyShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26599 | { (char *)"PyShape_base_OnRightClick", (PyCFunction) _wrap_PyShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26600 | { (char *)"PyShape_base_OnSize", (PyCFunction) _wrap_PyShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26601 | { (char *)"PyShape_base_OnMovePre", (PyCFunction) _wrap_PyShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26602 | { (char *)"PyShape_base_OnMovePost", (PyCFunction) _wrap_PyShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26603 | { (char *)"PyShape_base_OnDragLeft", (PyCFunction) _wrap_PyShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26604 | { (char *)"PyShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26605 | { (char *)"PyShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26606 | { (char *)"PyShape_base_OnDragRight", (PyCFunction) _wrap_PyShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26607 | { (char *)"PyShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26608 | { (char *)"PyShape_base_OnEndDragRight", (PyCFunction) _wrap_PyShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26609 | { (char *)"PyShape_base_OnDrawOutline", (PyCFunction) _wrap_PyShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26610 | { (char *)"PyShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26611 | { (char *)"PyShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26612 | { (char *)"PyShape_base_OnMoveLink", (PyCFunction) _wrap_PyShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26613 | { (char *)"PyShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26614 | { (char *)"PyShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26615 | { (char *)"PyShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26616 | { (char *)"PyShape_base_OnBeginSize", (PyCFunction) _wrap_PyShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26617 | { (char *)"PyShape_base_OnEndSize", (PyCFunction) _wrap_PyShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26618 | { (char *)"PyShape_swigregister", PyShape_swigregister, METH_VARARGS }, | |
26619 | { (char *)"new_PseudoMetaFile", (PyCFunction) _wrap_new_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
26620 | { (char *)"delete_PseudoMetaFile", (PyCFunction) _wrap_delete_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
26621 | { (char *)"PseudoMetaFile_Draw", (PyCFunction) _wrap_PseudoMetaFile_Draw, METH_VARARGS | METH_KEYWORDS }, | |
26622 | { (char *)"PseudoMetaFile_Clear", (PyCFunction) _wrap_PseudoMetaFile_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26623 | { (char *)"PseudoMetaFile_Copy", (PyCFunction) _wrap_PseudoMetaFile_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26624 | { (char *)"PseudoMetaFile_Scale", (PyCFunction) _wrap_PseudoMetaFile_Scale, METH_VARARGS | METH_KEYWORDS }, | |
26625 | { (char *)"PseudoMetaFile_ScaleTo", (PyCFunction) _wrap_PseudoMetaFile_ScaleTo, METH_VARARGS | METH_KEYWORDS }, | |
26626 | { (char *)"PseudoMetaFile_Translate", (PyCFunction) _wrap_PseudoMetaFile_Translate, METH_VARARGS | METH_KEYWORDS }, | |
26627 | { (char *)"PseudoMetaFile_Rotate", (PyCFunction) _wrap_PseudoMetaFile_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
26628 | { (char *)"PseudoMetaFile_LoadFromMetaFile", (PyCFunction) _wrap_PseudoMetaFile_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
26629 | { (char *)"PseudoMetaFile_GetBounds", (PyCFunction) _wrap_PseudoMetaFile_GetBounds, METH_VARARGS | METH_KEYWORDS }, | |
26630 | { (char *)"PseudoMetaFile_CalculateSize", (PyCFunction) _wrap_PseudoMetaFile_CalculateSize, METH_VARARGS | METH_KEYWORDS }, | |
26631 | { (char *)"PseudoMetaFile_SetRotateable", (PyCFunction) _wrap_PseudoMetaFile_SetRotateable, METH_VARARGS | METH_KEYWORDS }, | |
26632 | { (char *)"PseudoMetaFile_GetRotateable", (PyCFunction) _wrap_PseudoMetaFile_GetRotateable, METH_VARARGS | METH_KEYWORDS }, | |
26633 | { (char *)"PseudoMetaFile_SetSize", (PyCFunction) _wrap_PseudoMetaFile_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26634 | { (char *)"PseudoMetaFile_SetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_SetFillBrush, METH_VARARGS | METH_KEYWORDS }, | |
26635 | { (char *)"PseudoMetaFile_GetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_GetFillBrush, METH_VARARGS | METH_KEYWORDS }, | |
26636 | { (char *)"PseudoMetaFile_SetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_SetOutlinePen, METH_VARARGS | METH_KEYWORDS }, | |
26637 | { (char *)"PseudoMetaFile_GetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_GetOutlinePen, METH_VARARGS | METH_KEYWORDS }, | |
26638 | { (char *)"PseudoMetaFile_SetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_SetOutlineOp, METH_VARARGS | METH_KEYWORDS }, | |
26639 | { (char *)"PseudoMetaFile_GetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_GetOutlineOp, METH_VARARGS | METH_KEYWORDS }, | |
26640 | { (char *)"PseudoMetaFile_IsValid", (PyCFunction) _wrap_PseudoMetaFile_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
26641 | { (char *)"PseudoMetaFile_DrawLine", (PyCFunction) _wrap_PseudoMetaFile_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
26642 | { (char *)"PseudoMetaFile_DrawRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
26643 | { (char *)"PseudoMetaFile_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
26644 | { (char *)"PseudoMetaFile_DrawArc", (PyCFunction) _wrap_PseudoMetaFile_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
26645 | { (char *)"PseudoMetaFile_DrawEllipticArc", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
26646 | { (char *)"PseudoMetaFile_DrawEllipse", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
26647 | { (char *)"PseudoMetaFile_DrawPoint", (PyCFunction) _wrap_PseudoMetaFile_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
26648 | { (char *)"PseudoMetaFile_DrawText", (PyCFunction) _wrap_PseudoMetaFile_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
26649 | { (char *)"PseudoMetaFile_DrawLines", (PyCFunction) _wrap_PseudoMetaFile_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
26650 | { (char *)"PseudoMetaFile_DrawPolygon", (PyCFunction) _wrap_PseudoMetaFile_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
26651 | { (char *)"PseudoMetaFile_DrawSpline", (PyCFunction) _wrap_PseudoMetaFile_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
26652 | { (char *)"PseudoMetaFile_SetClippingRect", (PyCFunction) _wrap_PseudoMetaFile_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
26653 | { (char *)"PseudoMetaFile_DestroyClippingRect", (PyCFunction) _wrap_PseudoMetaFile_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
26654 | { (char *)"PseudoMetaFile_SetPen", (PyCFunction) _wrap_PseudoMetaFile_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
26655 | { (char *)"PseudoMetaFile_SetBrush", (PyCFunction) _wrap_PseudoMetaFile_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
26656 | { (char *)"PseudoMetaFile_SetFont", (PyCFunction) _wrap_PseudoMetaFile_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26657 | { (char *)"PseudoMetaFile_SetTextColour", (PyCFunction) _wrap_PseudoMetaFile_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26658 | { (char *)"PseudoMetaFile_SetBackgroundColour", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26659 | { (char *)"PseudoMetaFile_SetBackgroundMode", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
26660 | { (char *)"PseudoMetaFile_swigregister", PseudoMetaFile_swigregister, METH_VARARGS }, | |
26661 | { (char *)"new_PyRectangleShape", (PyCFunction) _wrap_new_PyRectangleShape, METH_VARARGS | METH_KEYWORDS }, | |
26662 | { (char *)"PyRectangleShape__setCallbackInfo", (PyCFunction) _wrap_PyRectangleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26663 | { (char *)"PyRectangleShape_SetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_SetCornerRadius, METH_VARARGS | METH_KEYWORDS }, | |
30d215aa | 26664 | { (char *)"PyRectangleShape_GetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_GetCornerRadius, METH_VARARGS | METH_KEYWORDS }, |
44127b65 RD |
26665 | { (char *)"PyRectangleShape_base_OnDelete", (PyCFunction) _wrap_PyRectangleShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, |
26666 | { (char *)"PyRectangleShape_base_OnDraw", (PyCFunction) _wrap_PyRectangleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26667 | { (char *)"PyRectangleShape_base_OnDrawContents", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26668 | { (char *)"PyRectangleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26669 | { (char *)"PyRectangleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26670 | { (char *)"PyRectangleShape_base_OnErase", (PyCFunction) _wrap_PyRectangleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26671 | { (char *)"PyRectangleShape_base_OnEraseContents", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26672 | { (char *)"PyRectangleShape_base_OnHighlight", (PyCFunction) _wrap_PyRectangleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26673 | { (char *)"PyRectangleShape_base_OnLeftClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"PyRectangleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"PyRectangleShape_base_OnRightClick", (PyCFunction) _wrap_PyRectangleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"PyRectangleShape_base_OnSize", (PyCFunction) _wrap_PyRectangleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26677 | { (char *)"PyRectangleShape_base_OnMovePre", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"PyRectangleShape_base_OnMovePost", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26679 | { (char *)"PyRectangleShape_base_OnDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"PyRectangleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26681 | { (char *)"PyRectangleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26682 | { (char *)"PyRectangleShape_base_OnDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26683 | { (char *)"PyRectangleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"PyRectangleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"PyRectangleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"PyRectangleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"PyRectangleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"PyRectangleShape_base_OnMoveLink", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"PyRectangleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"PyRectangleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"PyRectangleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"PyRectangleShape_base_OnBeginSize", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"PyRectangleShape_base_OnEndSize", (PyCFunction) _wrap_PyRectangleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"PyRectangleShape_swigregister", PyRectangleShape_swigregister, METH_VARARGS }, | |
26695 | { (char *)"new_PyControlPoint", (PyCFunction) _wrap_new_PyControlPoint, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"PyControlPoint__setCallbackInfo", (PyCFunction) _wrap_PyControlPoint__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"PyControlPoint_SetCornerRadius", (PyCFunction) _wrap_PyControlPoint_SetCornerRadius, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"PyControlPoint_base_OnDelete", (PyCFunction) _wrap_PyControlPoint_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"PyControlPoint_base_OnDraw", (PyCFunction) _wrap_PyControlPoint_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"PyControlPoint_base_OnDrawContents", (PyCFunction) _wrap_PyControlPoint_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"PyControlPoint_base_OnDrawBranches", (PyCFunction) _wrap_PyControlPoint_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"PyControlPoint_base_OnMoveLinks", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"PyControlPoint_base_OnErase", (PyCFunction) _wrap_PyControlPoint_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"PyControlPoint_base_OnEraseContents", (PyCFunction) _wrap_PyControlPoint_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26705 | { (char *)"PyControlPoint_base_OnHighlight", (PyCFunction) _wrap_PyControlPoint_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"PyControlPoint_base_OnLeftClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"PyControlPoint_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"PyControlPoint_base_OnRightClick", (PyCFunction) _wrap_PyControlPoint_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"PyControlPoint_base_OnSize", (PyCFunction) _wrap_PyControlPoint_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"PyControlPoint_base_OnMovePre", (PyCFunction) _wrap_PyControlPoint_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"PyControlPoint_base_OnMovePost", (PyCFunction) _wrap_PyControlPoint_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"PyControlPoint_base_OnDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"PyControlPoint_base_OnBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"PyControlPoint_base_OnEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"PyControlPoint_base_OnDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"PyControlPoint_base_OnBeginDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"PyControlPoint_base_OnEndDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"PyControlPoint_base_OnDrawOutline", (PyCFunction) _wrap_PyControlPoint_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"PyControlPoint_base_OnDrawControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26720 | { (char *)"PyControlPoint_base_OnEraseControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"PyControlPoint_base_OnMoveLink", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"PyControlPoint_base_OnSizingDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"PyControlPoint_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"PyControlPoint_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"PyControlPoint_base_OnBeginSize", (PyCFunction) _wrap_PyControlPoint_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"PyControlPoint_base_OnEndSize", (PyCFunction) _wrap_PyControlPoint_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"PyControlPoint_swigregister", PyControlPoint_swigregister, METH_VARARGS }, | |
26728 | { (char *)"new_PyBitmapShape", (PyCFunction) _wrap_new_PyBitmapShape, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"PyBitmapShape__setCallbackInfo", (PyCFunction) _wrap_PyBitmapShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"PyBitmapShape_GetBitmap", (PyCFunction) _wrap_PyBitmapShape_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"PyBitmapShape_GetFilename", (PyCFunction) _wrap_PyBitmapShape_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"PyBitmapShape_SetBitmap", (PyCFunction) _wrap_PyBitmapShape_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"PyBitmapShape_SetFilename", (PyCFunction) _wrap_PyBitmapShape_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"PyBitmapShape_base_OnDelete", (PyCFunction) _wrap_PyBitmapShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"PyBitmapShape_base_OnDraw", (PyCFunction) _wrap_PyBitmapShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"PyBitmapShape_base_OnDrawContents", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"PyBitmapShape_base_OnDrawBranches", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"PyBitmapShape_base_OnMoveLinks", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"PyBitmapShape_base_OnErase", (PyCFunction) _wrap_PyBitmapShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"PyBitmapShape_base_OnEraseContents", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"PyBitmapShape_base_OnHighlight", (PyCFunction) _wrap_PyBitmapShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"PyBitmapShape_base_OnLeftClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"PyBitmapShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"PyBitmapShape_base_OnRightClick", (PyCFunction) _wrap_PyBitmapShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"PyBitmapShape_base_OnSize", (PyCFunction) _wrap_PyBitmapShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"PyBitmapShape_base_OnMovePre", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"PyBitmapShape_base_OnMovePost", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"PyBitmapShape_base_OnDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26749 | { (char *)"PyBitmapShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"PyBitmapShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"PyBitmapShape_base_OnDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"PyBitmapShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"PyBitmapShape_base_OnEndDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"PyBitmapShape_base_OnDrawOutline", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26755 | { (char *)"PyBitmapShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"PyBitmapShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"PyBitmapShape_base_OnMoveLink", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"PyBitmapShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26759 | { (char *)"PyBitmapShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"PyBitmapShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"PyBitmapShape_base_OnBeginSize", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"PyBitmapShape_base_OnEndSize", (PyCFunction) _wrap_PyBitmapShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"PyBitmapShape_swigregister", PyBitmapShape_swigregister, METH_VARARGS }, | |
26764 | { (char *)"new_PyDrawnShape", (PyCFunction) _wrap_new_PyDrawnShape, METH_VARARGS | METH_KEYWORDS }, | |
26765 | { (char *)"PyDrawnShape__setCallbackInfo", (PyCFunction) _wrap_PyDrawnShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26766 | { (char *)"PyDrawnShape_CalculateSize", (PyCFunction) _wrap_PyDrawnShape_CalculateSize, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"PyDrawnShape_DestroyClippingRect", (PyCFunction) _wrap_PyDrawnShape_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"PyDrawnShape_DrawArc", (PyCFunction) _wrap_PyDrawnShape_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
26769 | { (char *)"PyDrawnShape_DrawAtAngle", (PyCFunction) _wrap_PyDrawnShape_DrawAtAngle, METH_VARARGS | METH_KEYWORDS }, | |
26770 | { (char *)"PyDrawnShape_DrawEllipticArc", (PyCFunction) _wrap_PyDrawnShape_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
26771 | { (char *)"PyDrawnShape_DrawLine", (PyCFunction) _wrap_PyDrawnShape_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"PyDrawnShape_DrawLines", (PyCFunction) _wrap_PyDrawnShape_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"PyDrawnShape_DrawPoint", (PyCFunction) _wrap_PyDrawnShape_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
26774 | { (char *)"PyDrawnShape_DrawPolygon", (PyCFunction) _wrap_PyDrawnShape_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"PyDrawnShape_DrawRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"PyDrawnShape_DrawRoundedRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"PyDrawnShape_DrawSpline", (PyCFunction) _wrap_PyDrawnShape_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"PyDrawnShape_DrawText", (PyCFunction) _wrap_PyDrawnShape_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"PyDrawnShape_GetAngle", (PyCFunction) _wrap_PyDrawnShape_GetAngle, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"PyDrawnShape_GetMetaFile", (PyCFunction) _wrap_PyDrawnShape_GetMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
26781 | { (char *)"PyDrawnShape_GetRotation", (PyCFunction) _wrap_PyDrawnShape_GetRotation, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"PyDrawnShape_LoadFromMetaFile", (PyCFunction) _wrap_PyDrawnShape_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"PyDrawnShape_Rotate", (PyCFunction) _wrap_PyDrawnShape_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"PyDrawnShape_SetClippingRect", (PyCFunction) _wrap_PyDrawnShape_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"PyDrawnShape_SetDrawnBackgroundColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"PyDrawnShape_SetDrawnBackgroundMode", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"PyDrawnShape_SetDrawnBrush", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBrush, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"PyDrawnShape_SetDrawnFont", (PyCFunction) _wrap_PyDrawnShape_SetDrawnFont, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"PyDrawnShape_SetDrawnPen", (PyCFunction) _wrap_PyDrawnShape_SetDrawnPen, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"PyDrawnShape_SetDrawnTextColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"PyDrawnShape_Scale", (PyCFunction) _wrap_PyDrawnShape_Scale, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"PyDrawnShape_SetSaveToFile", (PyCFunction) _wrap_PyDrawnShape_SetSaveToFile, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"PyDrawnShape_Translate", (PyCFunction) _wrap_PyDrawnShape_Translate, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"PyDrawnShape_base_OnDelete", (PyCFunction) _wrap_PyDrawnShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"PyDrawnShape_base_OnDraw", (PyCFunction) _wrap_PyDrawnShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"PyDrawnShape_base_OnDrawContents", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"PyDrawnShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"PyDrawnShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"PyDrawnShape_base_OnErase", (PyCFunction) _wrap_PyDrawnShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"PyDrawnShape_base_OnEraseContents", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"PyDrawnShape_base_OnHighlight", (PyCFunction) _wrap_PyDrawnShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"PyDrawnShape_base_OnLeftClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"PyDrawnShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"PyDrawnShape_base_OnRightClick", (PyCFunction) _wrap_PyDrawnShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"PyDrawnShape_base_OnSize", (PyCFunction) _wrap_PyDrawnShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"PyDrawnShape_base_OnMovePre", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"PyDrawnShape_base_OnMovePost", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"PyDrawnShape_base_OnDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"PyDrawnShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"PyDrawnShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26811 | { (char *)"PyDrawnShape_base_OnDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"PyDrawnShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"PyDrawnShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"PyDrawnShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"PyDrawnShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"PyDrawnShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"PyDrawnShape_base_OnMoveLink", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26818 | { (char *)"PyDrawnShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"PyDrawnShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26820 | { (char *)"PyDrawnShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"PyDrawnShape_base_OnBeginSize", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"PyDrawnShape_base_OnEndSize", (PyCFunction) _wrap_PyDrawnShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"PyDrawnShape_swigregister", PyDrawnShape_swigregister, METH_VARARGS }, | |
26824 | { (char *)"new_OGLConstraint", (PyCFunction) _wrap_new_OGLConstraint, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"OGLConstraint_Evaluate", (PyCFunction) _wrap_OGLConstraint_Evaluate, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"OGLConstraint_SetSpacing", (PyCFunction) _wrap_OGLConstraint_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"OGLConstraint_Equals", (PyCFunction) _wrap_OGLConstraint_Equals, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"OGLConstraint_swigregister", OGLConstraint_swigregister, METH_VARARGS }, | |
26829 | { (char *)"new_PyCompositeShape", (PyCFunction) _wrap_new_PyCompositeShape, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"PyCompositeShape__setCallbackInfo", (PyCFunction) _wrap_PyCompositeShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"PyCompositeShape_AddChild", (PyCFunction) _wrap_PyCompositeShape_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"PyCompositeShape_AddConstraint", (PyCFunction) _wrap_PyCompositeShape_AddConstraint, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"PyCompositeShape_AddConstrainedShapes", (PyCFunction) _wrap_PyCompositeShape_AddConstrainedShapes, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"PyCompositeShape_AddSimpleConstraint", (PyCFunction) _wrap_PyCompositeShape_AddSimpleConstraint, METH_VARARGS | METH_KEYWORDS }, | |
26835 | { (char *)"PyCompositeShape_CalculateSize", (PyCFunction) _wrap_PyCompositeShape_CalculateSize, METH_VARARGS | METH_KEYWORDS }, | |
26836 | { (char *)"PyCompositeShape_ContainsDivision", (PyCFunction) _wrap_PyCompositeShape_ContainsDivision, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"PyCompositeShape_DeleteConstraint", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraint, METH_VARARGS | METH_KEYWORDS }, | |
26838 | { (char *)"PyCompositeShape_DeleteConstraintsInvolvingChild", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraintsInvolvingChild, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"PyCompositeShape_FindContainerImage", (PyCFunction) _wrap_PyCompositeShape_FindContainerImage, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"PyCompositeShape_GetConstraints", (PyCFunction) _wrap_PyCompositeShape_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"PyCompositeShape_GetDivisions", (PyCFunction) _wrap_PyCompositeShape_GetDivisions, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"PyCompositeShape_MakeContainer", (PyCFunction) _wrap_PyCompositeShape_MakeContainer, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"PyCompositeShape_Recompute", (PyCFunction) _wrap_PyCompositeShape_Recompute, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"PyCompositeShape_RemoveChild", (PyCFunction) _wrap_PyCompositeShape_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"PyCompositeShape_base_OnDelete", (PyCFunction) _wrap_PyCompositeShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"PyCompositeShape_base_OnDraw", (PyCFunction) _wrap_PyCompositeShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"PyCompositeShape_base_OnDrawContents", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"PyCompositeShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"PyCompositeShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"PyCompositeShape_base_OnErase", (PyCFunction) _wrap_PyCompositeShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"PyCompositeShape_base_OnEraseContents", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"PyCompositeShape_base_OnHighlight", (PyCFunction) _wrap_PyCompositeShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"PyCompositeShape_base_OnLeftClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"PyCompositeShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"PyCompositeShape_base_OnRightClick", (PyCFunction) _wrap_PyCompositeShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"PyCompositeShape_base_OnSize", (PyCFunction) _wrap_PyCompositeShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"PyCompositeShape_base_OnMovePre", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"PyCompositeShape_base_OnMovePost", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"PyCompositeShape_base_OnDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"PyCompositeShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"PyCompositeShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"PyCompositeShape_base_OnDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26863 | { (char *)"PyCompositeShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26864 | { (char *)"PyCompositeShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"PyCompositeShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"PyCompositeShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"PyCompositeShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"PyCompositeShape_base_OnMoveLink", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"PyCompositeShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26870 | { (char *)"PyCompositeShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"PyCompositeShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"PyCompositeShape_base_OnBeginSize", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"PyCompositeShape_base_OnEndSize", (PyCFunction) _wrap_PyCompositeShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"PyCompositeShape_swigregister", PyCompositeShape_swigregister, METH_VARARGS }, | |
26875 | { (char *)"new_PyDividedShape", (PyCFunction) _wrap_new_PyDividedShape, METH_VARARGS | METH_KEYWORDS }, | |
26876 | { (char *)"PyDividedShape__setCallbackInfo", (PyCFunction) _wrap_PyDividedShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"PyDividedShape_EditRegions", (PyCFunction) _wrap_PyDividedShape_EditRegions, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"PyDividedShape_SetRegionSizes", (PyCFunction) _wrap_PyDividedShape_SetRegionSizes, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"PyDividedShape_base_OnDelete", (PyCFunction) _wrap_PyDividedShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"PyDividedShape_base_OnDraw", (PyCFunction) _wrap_PyDividedShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26881 | { (char *)"PyDividedShape_base_OnDrawContents", (PyCFunction) _wrap_PyDividedShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"PyDividedShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDividedShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"PyDividedShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"PyDividedShape_base_OnErase", (PyCFunction) _wrap_PyDividedShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"PyDividedShape_base_OnEraseContents", (PyCFunction) _wrap_PyDividedShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"PyDividedShape_base_OnHighlight", (PyCFunction) _wrap_PyDividedShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"PyDividedShape_base_OnLeftClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"PyDividedShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"PyDividedShape_base_OnRightClick", (PyCFunction) _wrap_PyDividedShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"PyDividedShape_base_OnSize", (PyCFunction) _wrap_PyDividedShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"PyDividedShape_base_OnMovePre", (PyCFunction) _wrap_PyDividedShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"PyDividedShape_base_OnMovePost", (PyCFunction) _wrap_PyDividedShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"PyDividedShape_base_OnDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"PyDividedShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"PyDividedShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"PyDividedShape_base_OnDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"PyDividedShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"PyDividedShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"PyDividedShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDividedShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"PyDividedShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"PyDividedShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"PyDividedShape_base_OnMoveLink", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"PyDividedShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26904 | { (char *)"PyDividedShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26905 | { (char *)"PyDividedShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26906 | { (char *)"PyDividedShape_base_OnBeginSize", (PyCFunction) _wrap_PyDividedShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26907 | { (char *)"PyDividedShape_base_OnEndSize", (PyCFunction) _wrap_PyDividedShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"PyDividedShape_swigregister", PyDividedShape_swigregister, METH_VARARGS }, | |
26909 | { (char *)"new_PyDivisionShape", (PyCFunction) _wrap_new_PyDivisionShape, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"PyDivisionShape__setCallbackInfo", (PyCFunction) _wrap_PyDivisionShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26911 | { (char *)"PyDivisionShape_AdjustBottom", (PyCFunction) _wrap_PyDivisionShape_AdjustBottom, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"PyDivisionShape_AdjustLeft", (PyCFunction) _wrap_PyDivisionShape_AdjustLeft, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"PyDivisionShape_AdjustRight", (PyCFunction) _wrap_PyDivisionShape_AdjustRight, METH_VARARGS | METH_KEYWORDS }, | |
26914 | { (char *)"PyDivisionShape_AdjustTop", (PyCFunction) _wrap_PyDivisionShape_AdjustTop, METH_VARARGS | METH_KEYWORDS }, | |
26915 | { (char *)"PyDivisionShape_Divide", (PyCFunction) _wrap_PyDivisionShape_Divide, METH_VARARGS | METH_KEYWORDS }, | |
26916 | { (char *)"PyDivisionShape_EditEdge", (PyCFunction) _wrap_PyDivisionShape_EditEdge, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"PyDivisionShape_GetBottomSide", (PyCFunction) _wrap_PyDivisionShape_GetBottomSide, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"PyDivisionShape_GetHandleSide", (PyCFunction) _wrap_PyDivisionShape_GetHandleSide, METH_VARARGS | METH_KEYWORDS }, | |
26919 | { (char *)"PyDivisionShape_GetLeftSide", (PyCFunction) _wrap_PyDivisionShape_GetLeftSide, METH_VARARGS | METH_KEYWORDS }, | |
26920 | { (char *)"PyDivisionShape_GetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_GetLeftSideColour, METH_VARARGS | METH_KEYWORDS }, | |
26921 | { (char *)"PyDivisionShape_GetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_GetLeftSidePen, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"PyDivisionShape_GetRightSide", (PyCFunction) _wrap_PyDivisionShape_GetRightSide, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"PyDivisionShape_GetTopSide", (PyCFunction) _wrap_PyDivisionShape_GetTopSide, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"PyDivisionShape_GetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_GetTopSidePen, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"PyDivisionShape_ResizeAdjoining", (PyCFunction) _wrap_PyDivisionShape_ResizeAdjoining, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"PyDivisionShape_PopupMenu", (PyCFunction) _wrap_PyDivisionShape_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"PyDivisionShape_SetBottomSide", (PyCFunction) _wrap_PyDivisionShape_SetBottomSide, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"PyDivisionShape_SetHandleSide", (PyCFunction) _wrap_PyDivisionShape_SetHandleSide, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"PyDivisionShape_SetLeftSide", (PyCFunction) _wrap_PyDivisionShape_SetLeftSide, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"PyDivisionShape_SetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_SetLeftSideColour, METH_VARARGS | METH_KEYWORDS }, | |
26931 | { (char *)"PyDivisionShape_SetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_SetLeftSidePen, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"PyDivisionShape_SetRightSide", (PyCFunction) _wrap_PyDivisionShape_SetRightSide, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"PyDivisionShape_SetTopSide", (PyCFunction) _wrap_PyDivisionShape_SetTopSide, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"PyDivisionShape_SetTopSideColour", (PyCFunction) _wrap_PyDivisionShape_SetTopSideColour, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"PyDivisionShape_SetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_SetTopSidePen, METH_VARARGS | METH_KEYWORDS }, | |
26936 | { (char *)"PyDivisionShape_base_OnDelete", (PyCFunction) _wrap_PyDivisionShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"PyDivisionShape_base_OnDraw", (PyCFunction) _wrap_PyDivisionShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"PyDivisionShape_base_OnDrawContents", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26939 | { (char *)"PyDivisionShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"PyDivisionShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"PyDivisionShape_base_OnErase", (PyCFunction) _wrap_PyDivisionShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26942 | { (char *)"PyDivisionShape_base_OnEraseContents", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"PyDivisionShape_base_OnHighlight", (PyCFunction) _wrap_PyDivisionShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26944 | { (char *)"PyDivisionShape_base_OnLeftClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26945 | { (char *)"PyDivisionShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"PyDivisionShape_base_OnRightClick", (PyCFunction) _wrap_PyDivisionShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26947 | { (char *)"PyDivisionShape_base_OnSize", (PyCFunction) _wrap_PyDivisionShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"PyDivisionShape_base_OnMovePre", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26949 | { (char *)"PyDivisionShape_base_OnMovePost", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26950 | { (char *)"PyDivisionShape_base_OnDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"PyDivisionShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26952 | { (char *)"PyDivisionShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26953 | { (char *)"PyDivisionShape_base_OnDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"PyDivisionShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26955 | { (char *)"PyDivisionShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"PyDivisionShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26957 | { (char *)"PyDivisionShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"PyDivisionShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"PyDivisionShape_base_OnMoveLink", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"PyDivisionShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"PyDivisionShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"PyDivisionShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"PyDivisionShape_base_OnBeginSize", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"PyDivisionShape_base_OnEndSize", (PyCFunction) _wrap_PyDivisionShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26965 | { (char *)"PyDivisionShape_swigregister", PyDivisionShape_swigregister, METH_VARARGS }, | |
26966 | { (char *)"new_PyEllipseShape", (PyCFunction) _wrap_new_PyEllipseShape, METH_VARARGS | METH_KEYWORDS }, | |
26967 | { (char *)"PyEllipseShape__setCallbackInfo", (PyCFunction) _wrap_PyEllipseShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26968 | { (char *)"PyEllipseShape_base_OnDraw", (PyCFunction) _wrap_PyEllipseShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
26969 | { (char *)"PyEllipseShape_base_OnDrawContents", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
26970 | { (char *)"PyEllipseShape_base_OnDrawBranches", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
26971 | { (char *)"PyEllipseShape_base_OnMoveLinks", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
26972 | { (char *)"PyEllipseShape_base_OnErase", (PyCFunction) _wrap_PyEllipseShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
26973 | { (char *)"PyEllipseShape_base_OnEraseContents", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
26974 | { (char *)"PyEllipseShape_base_OnHighlight", (PyCFunction) _wrap_PyEllipseShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"PyEllipseShape_base_OnLeftClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"PyEllipseShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"PyEllipseShape_base_OnRightClick", (PyCFunction) _wrap_PyEllipseShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"PyEllipseShape_base_OnSize", (PyCFunction) _wrap_PyEllipseShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"PyEllipseShape_base_OnMovePre", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"PyEllipseShape_base_OnMovePost", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"PyEllipseShape_base_OnDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"PyEllipseShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"PyEllipseShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26984 | { (char *)"PyEllipseShape_base_OnDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26985 | { (char *)"PyEllipseShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26986 | { (char *)"PyEllipseShape_base_OnEndDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
26987 | { (char *)"PyEllipseShape_base_OnDrawOutline", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
26988 | { (char *)"PyEllipseShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26989 | { (char *)"PyEllipseShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
26990 | { (char *)"PyEllipseShape_base_OnMoveLink", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
26991 | { (char *)"PyEllipseShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26992 | { (char *)"PyEllipseShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26993 | { (char *)"PyEllipseShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
26994 | { (char *)"PyEllipseShape_base_OnBeginSize", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
26995 | { (char *)"PyEllipseShape_base_OnEndSize", (PyCFunction) _wrap_PyEllipseShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
26996 | { (char *)"PyEllipseShape_swigregister", PyEllipseShape_swigregister, METH_VARARGS }, | |
26997 | { (char *)"new_PyCircleShape", (PyCFunction) _wrap_new_PyCircleShape, METH_VARARGS | METH_KEYWORDS }, | |
26998 | { (char *)"PyCircleShape__setCallbackInfo", (PyCFunction) _wrap_PyCircleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26999 | { (char *)"PyCircleShape_base_OnDraw", (PyCFunction) _wrap_PyCircleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
27000 | { (char *)"PyCircleShape_base_OnDrawContents", (PyCFunction) _wrap_PyCircleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
27001 | { (char *)"PyCircleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCircleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
27002 | { (char *)"PyCircleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
27003 | { (char *)"PyCircleShape_base_OnErase", (PyCFunction) _wrap_PyCircleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
27004 | { (char *)"PyCircleShape_base_OnEraseContents", (PyCFunction) _wrap_PyCircleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
27005 | { (char *)"PyCircleShape_base_OnHighlight", (PyCFunction) _wrap_PyCircleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
27006 | { (char *)"PyCircleShape_base_OnLeftClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
27007 | { (char *)"PyCircleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
27008 | { (char *)"PyCircleShape_base_OnRightClick", (PyCFunction) _wrap_PyCircleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
27009 | { (char *)"PyCircleShape_base_OnSize", (PyCFunction) _wrap_PyCircleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
27010 | { (char *)"PyCircleShape_base_OnMovePre", (PyCFunction) _wrap_PyCircleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
27011 | { (char *)"PyCircleShape_base_OnMovePost", (PyCFunction) _wrap_PyCircleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
27012 | { (char *)"PyCircleShape_base_OnDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27013 | { (char *)"PyCircleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27014 | { (char *)"PyCircleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27015 | { (char *)"PyCircleShape_base_OnDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27016 | { (char *)"PyCircleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27017 | { (char *)"PyCircleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27018 | { (char *)"PyCircleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCircleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
27019 | { (char *)"PyCircleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27020 | { (char *)"PyCircleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27021 | { (char *)"PyCircleShape_base_OnMoveLink", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
27022 | { (char *)"PyCircleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27023 | { (char *)"PyCircleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27024 | { (char *)"PyCircleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27025 | { (char *)"PyCircleShape_base_OnBeginSize", (PyCFunction) _wrap_PyCircleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
27026 | { (char *)"PyCircleShape_base_OnEndSize", (PyCFunction) _wrap_PyCircleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
27027 | { (char *)"PyCircleShape_swigregister", PyCircleShape_swigregister, METH_VARARGS }, | |
27028 | { (char *)"new_ArrowHead", (PyCFunction) _wrap_new_ArrowHead, METH_VARARGS | METH_KEYWORDS }, | |
27029 | { (char *)"delete_ArrowHead", (PyCFunction) _wrap_delete_ArrowHead, METH_VARARGS | METH_KEYWORDS }, | |
27030 | { (char *)"ArrowHead__GetType", (PyCFunction) _wrap_ArrowHead__GetType, METH_VARARGS | METH_KEYWORDS }, | |
27031 | { (char *)"ArrowHead_GetPosition", (PyCFunction) _wrap_ArrowHead_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27032 | { (char *)"ArrowHead_SetPosition", (PyCFunction) _wrap_ArrowHead_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27033 | { (char *)"ArrowHead_GetXOffset", (PyCFunction) _wrap_ArrowHead_GetXOffset, METH_VARARGS | METH_KEYWORDS }, | |
27034 | { (char *)"ArrowHead_GetYOffset", (PyCFunction) _wrap_ArrowHead_GetYOffset, METH_VARARGS | METH_KEYWORDS }, | |
27035 | { (char *)"ArrowHead_GetSpacing", (PyCFunction) _wrap_ArrowHead_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27036 | { (char *)"ArrowHead_GetSize", (PyCFunction) _wrap_ArrowHead_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
27037 | { (char *)"ArrowHead_GetName", (PyCFunction) _wrap_ArrowHead_GetName, METH_VARARGS | METH_KEYWORDS }, | |
27038 | { (char *)"ArrowHead_SetXOffset", (PyCFunction) _wrap_ArrowHead_SetXOffset, METH_VARARGS | METH_KEYWORDS }, | |
27039 | { (char *)"ArrowHead_SetYOffset", (PyCFunction) _wrap_ArrowHead_SetYOffset, METH_VARARGS | METH_KEYWORDS }, | |
27040 | { (char *)"ArrowHead_GetMetaFile", (PyCFunction) _wrap_ArrowHead_GetMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
27041 | { (char *)"ArrowHead_GetId", (PyCFunction) _wrap_ArrowHead_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27042 | { (char *)"ArrowHead_GetArrowEnd", (PyCFunction) _wrap_ArrowHead_GetArrowEnd, METH_VARARGS | METH_KEYWORDS }, | |
27043 | { (char *)"ArrowHead_GetArrowSize", (PyCFunction) _wrap_ArrowHead_GetArrowSize, METH_VARARGS | METH_KEYWORDS }, | |
27044 | { (char *)"ArrowHead_SetSize", (PyCFunction) _wrap_ArrowHead_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
27045 | { (char *)"ArrowHead_SetSpacing", (PyCFunction) _wrap_ArrowHead_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27046 | { (char *)"ArrowHead_swigregister", ArrowHead_swigregister, METH_VARARGS }, | |
27047 | { (char *)"new_PyLineShape", (PyCFunction) _wrap_new_PyLineShape, METH_VARARGS | METH_KEYWORDS }, | |
27048 | { (char *)"PyLineShape__setCallbackInfo", (PyCFunction) _wrap_PyLineShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27049 | { (char *)"PyLineShape_AddArrow", (PyCFunction) _wrap_PyLineShape_AddArrow, METH_VARARGS | METH_KEYWORDS }, | |
27050 | { (char *)"PyLineShape_AddArrowOrdered", (PyCFunction) _wrap_PyLineShape_AddArrowOrdered, METH_VARARGS | METH_KEYWORDS }, | |
27051 | { (char *)"PyLineShape_ClearArrow", (PyCFunction) _wrap_PyLineShape_ClearArrow, METH_VARARGS | METH_KEYWORDS }, | |
27052 | { (char *)"PyLineShape_ClearArrowsAtPosition", (PyCFunction) _wrap_PyLineShape_ClearArrowsAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
27053 | { (char *)"PyLineShape_DrawArrow", (PyCFunction) _wrap_PyLineShape_DrawArrow, METH_VARARGS | METH_KEYWORDS }, | |
27054 | { (char *)"PyLineShape_DeleteArrowHeadId", (PyCFunction) _wrap_PyLineShape_DeleteArrowHeadId, METH_VARARGS | METH_KEYWORDS }, | |
27055 | { (char *)"PyLineShape_DeleteArrowHead", (PyCFunction) _wrap_PyLineShape_DeleteArrowHead, METH_VARARGS | METH_KEYWORDS }, | |
27056 | { (char *)"PyLineShape_DeleteLineControlPoint", (PyCFunction) _wrap_PyLineShape_DeleteLineControlPoint, METH_VARARGS | METH_KEYWORDS }, | |
27057 | { (char *)"PyLineShape_DrawArrows", (PyCFunction) _wrap_PyLineShape_DrawArrows, METH_VARARGS | METH_KEYWORDS }, | |
27058 | { (char *)"PyLineShape_DrawRegion", (PyCFunction) _wrap_PyLineShape_DrawRegion, METH_VARARGS | METH_KEYWORDS }, | |
27059 | { (char *)"PyLineShape_EraseRegion", (PyCFunction) _wrap_PyLineShape_EraseRegion, METH_VARARGS | METH_KEYWORDS }, | |
27060 | { (char *)"PyLineShape_FindArrowHeadId", (PyCFunction) _wrap_PyLineShape_FindArrowHeadId, METH_VARARGS | METH_KEYWORDS }, | |
27061 | { (char *)"PyLineShape_FindArrowHead", (PyCFunction) _wrap_PyLineShape_FindArrowHead, METH_VARARGS | METH_KEYWORDS }, | |
27062 | { (char *)"PyLineShape_FindLineEndPoints", (PyCFunction) _wrap_PyLineShape_FindLineEndPoints, METH_VARARGS | METH_KEYWORDS }, | |
27063 | { (char *)"PyLineShape_FindLinePosition", (PyCFunction) _wrap_PyLineShape_FindLinePosition, METH_VARARGS | METH_KEYWORDS }, | |
27064 | { (char *)"PyLineShape_FindMinimumWidth", (PyCFunction) _wrap_PyLineShape_FindMinimumWidth, METH_VARARGS | METH_KEYWORDS }, | |
27065 | { (char *)"PyLineShape_FindNth", (PyCFunction) _wrap_PyLineShape_FindNth, METH_VARARGS | METH_KEYWORDS }, | |
27066 | { (char *)"PyLineShape_GetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_GetAttachmentFrom, METH_VARARGS | METH_KEYWORDS }, | |
27067 | { (char *)"PyLineShape_GetAttachmentTo", (PyCFunction) _wrap_PyLineShape_GetAttachmentTo, METH_VARARGS | METH_KEYWORDS }, | |
27068 | { (char *)"PyLineShape_GetEnds", (PyCFunction) _wrap_PyLineShape_GetEnds, METH_VARARGS | METH_KEYWORDS }, | |
27069 | { (char *)"PyLineShape_GetFrom", (PyCFunction) _wrap_PyLineShape_GetFrom, METH_VARARGS | METH_KEYWORDS }, | |
27070 | { (char *)"PyLineShape_GetLabelPosition", (PyCFunction) _wrap_PyLineShape_GetLabelPosition, METH_VARARGS | METH_KEYWORDS }, | |
27071 | { (char *)"PyLineShape_GetNextControlPoint", (PyCFunction) _wrap_PyLineShape_GetNextControlPoint, METH_VARARGS | METH_KEYWORDS }, | |
27072 | { (char *)"PyLineShape_GetTo", (PyCFunction) _wrap_PyLineShape_GetTo, METH_VARARGS | METH_KEYWORDS }, | |
27073 | { (char *)"PyLineShape_Initialise", (PyCFunction) _wrap_PyLineShape_Initialise, METH_VARARGS | METH_KEYWORDS }, | |
27074 | { (char *)"PyLineShape_InsertLineControlPoint", (PyCFunction) _wrap_PyLineShape_InsertLineControlPoint, METH_VARARGS | METH_KEYWORDS }, | |
27075 | { (char *)"PyLineShape_IsEnd", (PyCFunction) _wrap_PyLineShape_IsEnd, METH_VARARGS | METH_KEYWORDS }, | |
27076 | { (char *)"PyLineShape_IsSpline", (PyCFunction) _wrap_PyLineShape_IsSpline, METH_VARARGS | METH_KEYWORDS }, | |
27077 | { (char *)"PyLineShape_MakeLineControlPoints", (PyCFunction) _wrap_PyLineShape_MakeLineControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27078 | { (char *)"PyLineShape_GetLineControlPoints", (PyCFunction) _wrap_PyLineShape_GetLineControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27079 | { (char *)"PyLineShape_SetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_SetAttachmentFrom, METH_VARARGS | METH_KEYWORDS }, | |
27080 | { (char *)"PyLineShape_SetAttachments", (PyCFunction) _wrap_PyLineShape_SetAttachments, METH_VARARGS | METH_KEYWORDS }, | |
27081 | { (char *)"PyLineShape_SetAttachmentTo", (PyCFunction) _wrap_PyLineShape_SetAttachmentTo, METH_VARARGS | METH_KEYWORDS }, | |
27082 | { (char *)"PyLineShape_SetEnds", (PyCFunction) _wrap_PyLineShape_SetEnds, METH_VARARGS | METH_KEYWORDS }, | |
27083 | { (char *)"PyLineShape_SetFrom", (PyCFunction) _wrap_PyLineShape_SetFrom, METH_VARARGS | METH_KEYWORDS }, | |
27084 | { (char *)"PyLineShape_SetIgnoreOffsets", (PyCFunction) _wrap_PyLineShape_SetIgnoreOffsets, METH_VARARGS | METH_KEYWORDS }, | |
27085 | { (char *)"PyLineShape_SetSpline", (PyCFunction) _wrap_PyLineShape_SetSpline, METH_VARARGS | METH_KEYWORDS }, | |
27086 | { (char *)"PyLineShape_SetTo", (PyCFunction) _wrap_PyLineShape_SetTo, METH_VARARGS | METH_KEYWORDS }, | |
27087 | { (char *)"PyLineShape_Straighten", (PyCFunction) _wrap_PyLineShape_Straighten, METH_VARARGS | METH_KEYWORDS }, | |
27088 | { (char *)"PyLineShape_Unlink", (PyCFunction) _wrap_PyLineShape_Unlink, METH_VARARGS | METH_KEYWORDS }, | |
30d215aa RD |
27089 | { (char *)"PyLineShape_SetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_SetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS }, |
27090 | { (char *)"PyLineShape_SetAlignmentType", (PyCFunction) _wrap_PyLineShape_SetAlignmentType, METH_VARARGS | METH_KEYWORDS }, | |
27091 | { (char *)"PyLineShape_GetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_GetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS }, | |
27092 | { (char *)"PyLineShape_GetAlignmentType", (PyCFunction) _wrap_PyLineShape_GetAlignmentType, METH_VARARGS | METH_KEYWORDS }, | |
27093 | { (char *)"PyLineShape_GetAlignmentStart", (PyCFunction) _wrap_PyLineShape_GetAlignmentStart, METH_VARARGS | METH_KEYWORDS }, | |
27094 | { (char *)"PyLineShape_GetAlignmentEnd", (PyCFunction) _wrap_PyLineShape_GetAlignmentEnd, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 RD |
27095 | { (char *)"PyLineShape_base_OnDraw", (PyCFunction) _wrap_PyLineShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, |
27096 | { (char *)"PyLineShape_base_OnDrawContents", (PyCFunction) _wrap_PyLineShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
27097 | { (char *)"PyLineShape_base_OnDrawBranches", (PyCFunction) _wrap_PyLineShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
27098 | { (char *)"PyLineShape_base_OnMoveLinks", (PyCFunction) _wrap_PyLineShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
27099 | { (char *)"PyLineShape_base_OnErase", (PyCFunction) _wrap_PyLineShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
27100 | { (char *)"PyLineShape_base_OnEraseContents", (PyCFunction) _wrap_PyLineShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
27101 | { (char *)"PyLineShape_base_OnHighlight", (PyCFunction) _wrap_PyLineShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
27102 | { (char *)"PyLineShape_base_OnLeftClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
27103 | { (char *)"PyLineShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
27104 | { (char *)"PyLineShape_base_OnRightClick", (PyCFunction) _wrap_PyLineShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
27105 | { (char *)"PyLineShape_base_OnSize", (PyCFunction) _wrap_PyLineShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
27106 | { (char *)"PyLineShape_base_OnMovePre", (PyCFunction) _wrap_PyLineShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
27107 | { (char *)"PyLineShape_base_OnMovePost", (PyCFunction) _wrap_PyLineShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
27108 | { (char *)"PyLineShape_base_OnDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27109 | { (char *)"PyLineShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27110 | { (char *)"PyLineShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27111 | { (char *)"PyLineShape_base_OnDragRight", (PyCFunction) _wrap_PyLineShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27112 | { (char *)"PyLineShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27113 | { (char *)"PyLineShape_base_OnEndDragRight", (PyCFunction) _wrap_PyLineShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27114 | { (char *)"PyLineShape_base_OnDrawOutline", (PyCFunction) _wrap_PyLineShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
27115 | { (char *)"PyLineShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27116 | { (char *)"PyLineShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27117 | { (char *)"PyLineShape_base_OnMoveLink", (PyCFunction) _wrap_PyLineShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
27118 | { (char *)"PyLineShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27119 | { (char *)"PyLineShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27120 | { (char *)"PyLineShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27121 | { (char *)"PyLineShape_base_OnBeginSize", (PyCFunction) _wrap_PyLineShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
27122 | { (char *)"PyLineShape_base_OnEndSize", (PyCFunction) _wrap_PyLineShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
27123 | { (char *)"PyLineShape_swigregister", PyLineShape_swigregister, METH_VARARGS }, | |
27124 | { (char *)"new_PyPolygonShape", (PyCFunction) _wrap_new_PyPolygonShape, METH_VARARGS | METH_KEYWORDS }, | |
27125 | { (char *)"PyPolygonShape__setCallbackInfo", (PyCFunction) _wrap_PyPolygonShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27126 | { (char *)"PyPolygonShape_Create", (PyCFunction) _wrap_PyPolygonShape_Create, METH_VARARGS | METH_KEYWORDS }, | |
27127 | { (char *)"PyPolygonShape_AddPolygonPoint", (PyCFunction) _wrap_PyPolygonShape_AddPolygonPoint, METH_VARARGS | METH_KEYWORDS }, | |
27128 | { (char *)"PyPolygonShape_CalculatePolygonCentre", (PyCFunction) _wrap_PyPolygonShape_CalculatePolygonCentre, METH_VARARGS | METH_KEYWORDS }, | |
27129 | { (char *)"PyPolygonShape_DeletePolygonPoint", (PyCFunction) _wrap_PyPolygonShape_DeletePolygonPoint, METH_VARARGS | METH_KEYWORDS }, | |
27130 | { (char *)"PyPolygonShape_GetPoints", (PyCFunction) _wrap_PyPolygonShape_GetPoints, METH_VARARGS | METH_KEYWORDS }, | |
30d215aa RD |
27131 | { (char *)"PyPolygonShape_GetOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_GetOriginalPoints, METH_VARARGS | METH_KEYWORDS }, |
27132 | { (char *)"PyPolygonShape_GetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_GetOriginalWidth, METH_VARARGS | METH_KEYWORDS }, | |
27133 | { (char *)"PyPolygonShape_GetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_GetOriginalHeight, METH_VARARGS | METH_KEYWORDS }, | |
27134 | { (char *)"PyPolygonShape_SetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_SetOriginalWidth, METH_VARARGS | METH_KEYWORDS }, | |
27135 | { (char *)"PyPolygonShape_SetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_SetOriginalHeight, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 RD |
27136 | { (char *)"PyPolygonShape_UpdateOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_UpdateOriginalPoints, METH_VARARGS | METH_KEYWORDS }, |
27137 | { (char *)"PyPolygonShape_base_OnDraw", (PyCFunction) _wrap_PyPolygonShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
27138 | { (char *)"PyPolygonShape_base_OnDrawContents", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
27139 | { (char *)"PyPolygonShape_base_OnDrawBranches", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
27140 | { (char *)"PyPolygonShape_base_OnMoveLinks", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
27141 | { (char *)"PyPolygonShape_base_OnErase", (PyCFunction) _wrap_PyPolygonShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
27142 | { (char *)"PyPolygonShape_base_OnEraseContents", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
27143 | { (char *)"PyPolygonShape_base_OnHighlight", (PyCFunction) _wrap_PyPolygonShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
27144 | { (char *)"PyPolygonShape_base_OnLeftClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
27145 | { (char *)"PyPolygonShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
27146 | { (char *)"PyPolygonShape_base_OnRightClick", (PyCFunction) _wrap_PyPolygonShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
27147 | { (char *)"PyPolygonShape_base_OnSize", (PyCFunction) _wrap_PyPolygonShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
27148 | { (char *)"PyPolygonShape_base_OnMovePre", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
27149 | { (char *)"PyPolygonShape_base_OnMovePost", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
27150 | { (char *)"PyPolygonShape_base_OnDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27151 | { (char *)"PyPolygonShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27152 | { (char *)"PyPolygonShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27153 | { (char *)"PyPolygonShape_base_OnDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27154 | { (char *)"PyPolygonShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27155 | { (char *)"PyPolygonShape_base_OnEndDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27156 | { (char *)"PyPolygonShape_base_OnDrawOutline", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
27157 | { (char *)"PyPolygonShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27158 | { (char *)"PyPolygonShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27159 | { (char *)"PyPolygonShape_base_OnMoveLink", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
27160 | { (char *)"PyPolygonShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27161 | { (char *)"PyPolygonShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27162 | { (char *)"PyPolygonShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27163 | { (char *)"PyPolygonShape_base_OnBeginSize", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
27164 | { (char *)"PyPolygonShape_base_OnEndSize", (PyCFunction) _wrap_PyPolygonShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
27165 | { (char *)"PyPolygonShape_swigregister", PyPolygonShape_swigregister, METH_VARARGS }, | |
27166 | { (char *)"new_PyTextShape", (PyCFunction) _wrap_new_PyTextShape, METH_VARARGS | METH_KEYWORDS }, | |
27167 | { (char *)"PyTextShape__setCallbackInfo", (PyCFunction) _wrap_PyTextShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27168 | { (char *)"PyTextShape_base_OnDelete", (PyCFunction) _wrap_PyTextShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
27169 | { (char *)"PyTextShape_base_OnDraw", (PyCFunction) _wrap_PyTextShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
27170 | { (char *)"PyTextShape_base_OnDrawContents", (PyCFunction) _wrap_PyTextShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
27171 | { (char *)"PyTextShape_base_OnDrawBranches", (PyCFunction) _wrap_PyTextShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
27172 | { (char *)"PyTextShape_base_OnMoveLinks", (PyCFunction) _wrap_PyTextShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
27173 | { (char *)"PyTextShape_base_OnErase", (PyCFunction) _wrap_PyTextShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
27174 | { (char *)"PyTextShape_base_OnEraseContents", (PyCFunction) _wrap_PyTextShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
27175 | { (char *)"PyTextShape_base_OnHighlight", (PyCFunction) _wrap_PyTextShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
27176 | { (char *)"PyTextShape_base_OnLeftClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
27177 | { (char *)"PyTextShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
27178 | { (char *)"PyTextShape_base_OnRightClick", (PyCFunction) _wrap_PyTextShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
27179 | { (char *)"PyTextShape_base_OnSize", (PyCFunction) _wrap_PyTextShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
27180 | { (char *)"PyTextShape_base_OnMovePre", (PyCFunction) _wrap_PyTextShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
27181 | { (char *)"PyTextShape_base_OnMovePost", (PyCFunction) _wrap_PyTextShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
27182 | { (char *)"PyTextShape_base_OnDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27183 | { (char *)"PyTextShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27184 | { (char *)"PyTextShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27185 | { (char *)"PyTextShape_base_OnDragRight", (PyCFunction) _wrap_PyTextShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27186 | { (char *)"PyTextShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27187 | { (char *)"PyTextShape_base_OnEndDragRight", (PyCFunction) _wrap_PyTextShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27188 | { (char *)"PyTextShape_base_OnDrawOutline", (PyCFunction) _wrap_PyTextShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
27189 | { (char *)"PyTextShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27190 | { (char *)"PyTextShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
27191 | { (char *)"PyTextShape_base_OnMoveLink", (PyCFunction) _wrap_PyTextShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
27192 | { (char *)"PyTextShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27193 | { (char *)"PyTextShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27194 | { (char *)"PyTextShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27195 | { (char *)"PyTextShape_base_OnBeginSize", (PyCFunction) _wrap_PyTextShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
27196 | { (char *)"PyTextShape_base_OnEndSize", (PyCFunction) _wrap_PyTextShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
27197 | { (char *)"PyTextShape_swigregister", PyTextShape_swigregister, METH_VARARGS }, | |
27198 | { (char *)"new_Diagram", (PyCFunction) _wrap_new_Diagram, METH_VARARGS | METH_KEYWORDS }, | |
27199 | { (char *)"Diagram_AddShape", (PyCFunction) _wrap_Diagram_AddShape, METH_VARARGS | METH_KEYWORDS }, | |
27200 | { (char *)"Diagram_Clear", (PyCFunction) _wrap_Diagram_Clear, METH_VARARGS | METH_KEYWORDS }, | |
27201 | { (char *)"Diagram_DeleteAllShapes", (PyCFunction) _wrap_Diagram_DeleteAllShapes, METH_VARARGS | METH_KEYWORDS }, | |
27202 | { (char *)"Diagram_DrawOutline", (PyCFunction) _wrap_Diagram_DrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
27203 | { (char *)"Diagram_FindShape", (PyCFunction) _wrap_Diagram_FindShape, METH_VARARGS | METH_KEYWORDS }, | |
27204 | { (char *)"Diagram_GetCanvas", (PyCFunction) _wrap_Diagram_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
27205 | { (char *)"Diagram_GetCount", (PyCFunction) _wrap_Diagram_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
27206 | { (char *)"Diagram_GetGridSpacing", (PyCFunction) _wrap_Diagram_GetGridSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27207 | { (char *)"Diagram_GetMouseTolerance", (PyCFunction) _wrap_Diagram_GetMouseTolerance, METH_VARARGS | METH_KEYWORDS }, | |
27208 | { (char *)"Diagram_GetShapeList", (PyCFunction) _wrap_Diagram_GetShapeList, METH_VARARGS | METH_KEYWORDS }, | |
27209 | { (char *)"Diagram_GetQuickEditMode", (PyCFunction) _wrap_Diagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS }, | |
27210 | { (char *)"Diagram_GetSnapToGrid", (PyCFunction) _wrap_Diagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS }, | |
27211 | { (char *)"Diagram_InsertShape", (PyCFunction) _wrap_Diagram_InsertShape, METH_VARARGS | METH_KEYWORDS }, | |
27212 | { (char *)"Diagram_RecentreAll", (PyCFunction) _wrap_Diagram_RecentreAll, METH_VARARGS | METH_KEYWORDS }, | |
27213 | { (char *)"Diagram_Redraw", (PyCFunction) _wrap_Diagram_Redraw, METH_VARARGS | METH_KEYWORDS }, | |
27214 | { (char *)"Diagram_RemoveAllShapes", (PyCFunction) _wrap_Diagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS }, | |
27215 | { (char *)"Diagram_RemoveShape", (PyCFunction) _wrap_Diagram_RemoveShape, METH_VARARGS | METH_KEYWORDS }, | |
27216 | { (char *)"Diagram_SetCanvas", (PyCFunction) _wrap_Diagram_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
27217 | { (char *)"Diagram_SetGridSpacing", (PyCFunction) _wrap_Diagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27218 | { (char *)"Diagram_SetMouseTolerance", (PyCFunction) _wrap_Diagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS }, | |
27219 | { (char *)"Diagram_SetQuickEditMode", (PyCFunction) _wrap_Diagram_SetQuickEditMode, METH_VARARGS | METH_KEYWORDS }, | |
27220 | { (char *)"Diagram_SetSnapToGrid", (PyCFunction) _wrap_Diagram_SetSnapToGrid, METH_VARARGS | METH_KEYWORDS }, | |
27221 | { (char *)"Diagram_ShowAll", (PyCFunction) _wrap_Diagram_ShowAll, METH_VARARGS | METH_KEYWORDS }, | |
27222 | { (char *)"Diagram_Snap", (PyCFunction) _wrap_Diagram_Snap, METH_VARARGS | METH_KEYWORDS }, | |
27223 | { (char *)"Diagram_swigregister", Diagram_swigregister, METH_VARARGS }, | |
27224 | { (char *)"new_PyShapeCanvas", (PyCFunction) _wrap_new_PyShapeCanvas, METH_VARARGS | METH_KEYWORDS }, | |
27225 | { (char *)"PyShapeCanvas__setCallbackInfo", (PyCFunction) _wrap_PyShapeCanvas__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27226 | { (char *)"PyShapeCanvas_AddShape", (PyCFunction) _wrap_PyShapeCanvas_AddShape, METH_VARARGS | METH_KEYWORDS }, | |
27227 | { (char *)"PyShapeCanvas_FindShape", (PyCFunction) _wrap_PyShapeCanvas_FindShape, METH_VARARGS | METH_KEYWORDS }, | |
27228 | { (char *)"PyShapeCanvas_FindFirstSensitiveShape", (PyCFunction) _wrap_PyShapeCanvas_FindFirstSensitiveShape, METH_VARARGS | METH_KEYWORDS }, | |
27229 | { (char *)"PyShapeCanvas_GetDiagram", (PyCFunction) _wrap_PyShapeCanvas_GetDiagram, METH_VARARGS | METH_KEYWORDS }, | |
27230 | { (char *)"PyShapeCanvas_GetQuickEditMode", (PyCFunction) _wrap_PyShapeCanvas_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS }, | |
27231 | { (char *)"PyShapeCanvas_InsertShape", (PyCFunction) _wrap_PyShapeCanvas_InsertShape, METH_VARARGS | METH_KEYWORDS }, | |
27232 | { (char *)"PyShapeCanvas_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27233 | { (char *)"PyShapeCanvas_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27234 | { (char *)"PyShapeCanvas_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27235 | { (char *)"PyShapeCanvas_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27236 | { (char *)"PyShapeCanvas_base_OnDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
27237 | { (char *)"PyShapeCanvas_base_OnDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
27238 | { (char *)"PyShapeCanvas_base_OnLeftClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
27239 | { (char *)"PyShapeCanvas_base_OnRightClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
27240 | { (char *)"PyShapeCanvas_Redraw", (PyCFunction) _wrap_PyShapeCanvas_Redraw, METH_VARARGS | METH_KEYWORDS }, | |
27241 | { (char *)"PyShapeCanvas_RemoveShape", (PyCFunction) _wrap_PyShapeCanvas_RemoveShape, METH_VARARGS | METH_KEYWORDS }, | |
27242 | { (char *)"PyShapeCanvas_SetDiagram", (PyCFunction) _wrap_PyShapeCanvas_SetDiagram, METH_VARARGS | METH_KEYWORDS }, | |
27243 | { (char *)"PyShapeCanvas_Snap", (PyCFunction) _wrap_PyShapeCanvas_Snap, METH_VARARGS | METH_KEYWORDS }, | |
27244 | { (char *)"PyShapeCanvas_swigregister", PyShapeCanvas_swigregister, METH_VARARGS }, | |
27245 | { (char *)"OGLInitialize", (PyCFunction) _wrap_OGLInitialize, METH_VARARGS | METH_KEYWORDS }, | |
27246 | { (char *)"OGLCleanUp", (PyCFunction) _wrap_OGLCleanUp, METH_VARARGS | METH_KEYWORDS }, | |
27247 | { NULL, NULL } | |
27248 | }; | |
27249 | ||
27250 | ||
27251 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
27252 | ||
27253 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
27254 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
27255 | } | |
27256 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
27257 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
27258 | } | |
27259 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
27260 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
27261 | } | |
27262 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
27263 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
27264 | } | |
27265 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
27266 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
27267 | } | |
27268 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
27269 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
27270 | } | |
27271 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
27272 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
27273 | } | |
27274 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
27275 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
27276 | } | |
27277 | static void *_p_wxPyShapeCanvasTo_p_wxPanel(void *x) { | |
27278 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
27279 | } | |
27280 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
27281 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
27282 | } | |
27283 | static void *_p_wxPyShapeCanvasTo_p_wxScrolledWindow(void *x) { | |
27284 | return (void *)((wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
27285 | } | |
27286 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
27287 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
27288 | } | |
27289 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
27290 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
27291 | } | |
27292 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
27293 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
27294 | } | |
27295 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27296 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27297 | } | |
27298 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
27299 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
27300 | } | |
27301 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
27302 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
27303 | } | |
27304 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
27305 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
27306 | } | |
27307 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
27308 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
27309 | } | |
27310 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
27311 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
27312 | } | |
27313 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
27314 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
27315 | } | |
27316 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
27317 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
27318 | } | |
27319 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
27320 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
27321 | } | |
27322 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
27323 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
27324 | } | |
27325 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
27326 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
27327 | } | |
27328 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
27329 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
27330 | } | |
27331 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
27332 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
27333 | } | |
27334 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
27335 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
27336 | } | |
27337 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
27338 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
27339 | } | |
27340 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
27341 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
27342 | } | |
27343 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
27344 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
27345 | } | |
27346 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
27347 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
27348 | } | |
27349 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
27350 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
27351 | } | |
27352 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
27353 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
27354 | } | |
27355 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
27356 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
27357 | } | |
27358 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27359 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27360 | } | |
27361 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
27362 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
27363 | } | |
27364 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
27365 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
27366 | } | |
27367 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
27368 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
27369 | } | |
27370 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27371 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27372 | } | |
27373 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
27374 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
27375 | } | |
27376 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
27377 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
27378 | } | |
27379 | static void *_p_wxPyShapeCanvasTo_p_wxWindow(void *x) { | |
27380 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
27381 | } | |
27382 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
27383 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
27384 | } | |
27385 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
27386 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
27387 | } | |
27388 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
27389 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
27390 | } | |
27391 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
27392 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
27393 | } | |
27394 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
27395 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
27396 | } | |
27397 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
27398 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
27399 | } | |
27400 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
27401 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
27402 | } | |
27403 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
27404 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
27405 | } | |
27406 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
27407 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
27408 | } | |
27409 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
27410 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
27411 | } | |
27412 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
27413 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
27414 | } | |
27415 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
27416 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
27417 | } | |
27418 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27419 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27420 | } | |
27421 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
27422 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
27423 | } | |
27424 | static void *_p_wxPyControlPointTo_p_wxObject(void *x) { | |
27425 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
27426 | } | |
27427 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
27428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
27429 | } | |
27430 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
27431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
27432 | } | |
27433 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27434 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27435 | } | |
27436 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27437 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27438 | } | |
27439 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27440 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27441 | } | |
27442 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27443 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27444 | } | |
27445 | static void *_p_wxOGLConstraintTo_p_wxObject(void *x) { | |
27446 | return (void *)((wxObject *) ((wxOGLConstraint *) x)); | |
27447 | } | |
27448 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27449 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27450 | } | |
27451 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27452 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27453 | } | |
27454 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27455 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27456 | } | |
27457 | static void *_p_wxPyDrawnShapeTo_p_wxObject(void *x) { | |
27458 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
27459 | } | |
27460 | static void *_p_wxPyDivisionShapeTo_p_wxObject(void *x) { | |
27461 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
27462 | } | |
27463 | static void *_p_wxPyPolygonShapeTo_p_wxObject(void *x) { | |
27464 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyPolygonShape *) x)); | |
27465 | } | |
27466 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27467 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27468 | } | |
27469 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27470 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27471 | } | |
27472 | static void *_p_wxArrowHeadTo_p_wxObject(void *x) { | |
27473 | return (void *)((wxObject *) ((wxArrowHead *) x)); | |
27474 | } | |
27475 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
27476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
27477 | } | |
27478 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27479 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27480 | } | |
27481 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
27482 | return (void *)((wxObject *) ((wxFontData *) x)); | |
27483 | } | |
27484 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
27485 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
27486 | } | |
27487 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27488 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27489 | } | |
27490 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27491 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27492 | } | |
27493 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27494 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27495 | } | |
27496 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
27497 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
27498 | } | |
27499 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
27500 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
27501 | } | |
27502 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
27503 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
27504 | } | |
27505 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27506 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27507 | } | |
27508 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27509 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27510 | } | |
27511 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27512 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27513 | } | |
27514 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27515 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27516 | } | |
27517 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27518 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27519 | } | |
27520 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27521 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27522 | } | |
27523 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
27524 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
27525 | } | |
27526 | static void *_p_wxPyShapeCanvasTo_p_wxObject(void *x) { | |
27527 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
27528 | } | |
27529 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27530 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27531 | } | |
27532 | static void *_p_wxPyEllipseShapeTo_p_wxObject(void *x) { | |
27533 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyEllipseShape *) x)); | |
27534 | } | |
27535 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27536 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27537 | } | |
27538 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
27539 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
27540 | } | |
27541 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27542 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27543 | } | |
27544 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
27545 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
27546 | } | |
27547 | static void *_p_wxPyBitmapShapeTo_p_wxObject(void *x) { | |
27548 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
27549 | } | |
27550 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27551 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27552 | } | |
27553 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
27554 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
27555 | } | |
27556 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
27557 | return (void *)((wxObject *) ((wxColourData *) x)); | |
27558 | } | |
27559 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27560 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27561 | } | |
27562 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27563 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27564 | } | |
27565 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
27566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
27567 | } | |
27568 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
27569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
27570 | } | |
27571 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
27572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
27573 | } | |
27574 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
27575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
27576 | } | |
27577 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
27578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
27579 | } | |
27580 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
27581 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
27582 | } | |
27583 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
27584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
27585 | } | |
27586 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
27587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
27588 | } | |
27589 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
27590 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
27591 | } | |
27592 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27593 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27594 | } | |
27595 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
27596 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
27597 | } | |
27598 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27599 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27600 | } | |
27601 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27602 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27603 | } | |
27604 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27605 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27606 | } | |
27607 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27608 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27609 | } | |
27610 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27611 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27612 | } | |
27613 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27614 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27615 | } | |
27616 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27617 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27618 | } | |
27619 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27620 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27621 | } | |
27622 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27623 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27624 | } | |
27625 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27626 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27627 | } | |
27628 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27629 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27630 | } | |
27631 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27632 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27633 | } | |
27634 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27635 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27636 | } | |
27637 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27638 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27639 | } | |
27640 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27641 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27642 | } | |
27643 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27644 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27645 | } | |
27646 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27647 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27648 | } | |
27649 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27650 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27651 | } | |
27652 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27653 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27654 | } | |
27655 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27656 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27657 | } | |
27658 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27659 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27660 | } | |
27661 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27662 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27663 | } | |
27664 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
27665 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
27666 | } | |
27667 | static void *_p_wxPyShapeEvtHandlerTo_p_wxObject(void *x) { | |
27668 | return (void *)((wxObject *) ((wxPyShapeEvtHandler *) x)); | |
27669 | } | |
27670 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
27671 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
27672 | } | |
27673 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
27674 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
27675 | } | |
27676 | static void *_p_wxPyTextShapeTo_p_wxObject(void *x) { | |
27677 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
27678 | } | |
27679 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
27680 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27681 | } | |
27682 | static void *_p_wxPyDividedShapeTo_p_wxObject(void *x) { | |
27683 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
27684 | } | |
27685 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
27686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
27687 | } | |
27688 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27689 | return (void *)((wxObject *) ((wxImage *) x)); | |
27690 | } | |
27691 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
27692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
27693 | } | |
27694 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
27695 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
27696 | } | |
27697 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27698 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27699 | } | |
27700 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
27701 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
27702 | } | |
27703 | static void *_p_wxDiagramTo_p_wxObject(void *x) { | |
27704 | return (void *)((wxObject *) ((wxDiagram *) x)); | |
27705 | } | |
27706 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
27707 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
27708 | } | |
27709 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
27710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
27711 | } | |
27712 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27713 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27714 | } | |
27715 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27716 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27717 | } | |
27718 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27719 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27720 | } | |
44127b65 RD |
27721 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
27722 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27723 | } | |
27724 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27725 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27726 | } | |
27727 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27728 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27729 | } | |
0df68c9f RD |
27730 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
27731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
27732 | } | |
44127b65 RD |
27733 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
27734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
27735 | } | |
27736 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
27737 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
27738 | } | |
27739 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
27740 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
27741 | } | |
27742 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
27743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
27744 | } | |
27745 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
27746 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
27747 | } | |
27748 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
27749 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
27750 | } | |
27751 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
27752 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
27753 | } | |
27754 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
27755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
27756 | } | |
27757 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
27758 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
27759 | } | |
27760 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
27761 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
27762 | } | |
27763 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
27764 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
27765 | } | |
27766 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
27767 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
27768 | } | |
27769 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
27770 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
27771 | } | |
27772 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
27773 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
27774 | } | |
27775 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
27776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
27777 | } | |
27778 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
27779 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
27780 | } | |
27781 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
27782 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
27783 | } | |
27784 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
27785 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
27786 | } | |
27787 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
27788 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
27789 | } | |
27790 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
27791 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
27792 | } | |
30d215aa RD |
27793 | static void *_p_wxAttachmentPointTo_p_wxObject(void *x) { |
27794 | return (void *)((wxObject *) ((wxAttachmentPoint *) x)); | |
27795 | } | |
44127b65 RD |
27796 | static void *_p_wxPyShapeTo_p_wxObject(void *x) { |
27797 | return (void *)((wxObject *) (wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
27798 | } | |
27799 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27800 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27801 | } | |
27802 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27803 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27804 | } | |
27805 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27806 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27807 | } | |
27808 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27809 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27810 | } | |
27811 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27812 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27813 | } | |
27814 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27815 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27816 | } | |
27817 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27818 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27819 | } | |
27820 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27821 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27822 | } | |
27823 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27824 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27825 | } | |
27826 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
27827 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
27828 | } | |
27829 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
27830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
27831 | } | |
27832 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27833 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27834 | } | |
27835 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27836 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27837 | } | |
27838 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27839 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27840 | } | |
27841 | static void *_p_wxPyRectangleShapeTo_p_wxObject(void *x) { | |
27842 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyRectangleShape *) x)); | |
27843 | } | |
27844 | static void *_p_wxPyCompositeShapeTo_p_wxObject(void *x) { | |
27845 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
27846 | } | |
27847 | static void *_p_wxPyCircleShapeTo_p_wxObject(void *x) { | |
27848 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
27849 | } | |
27850 | static void *_p_wxPyLineShapeTo_p_wxObject(void *x) { | |
27851 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyLineShape *) x)); | |
27852 | } | |
27853 | static void *_p_wxPseudoMetaFileTo_p_wxObject(void *x) { | |
27854 | return (void *)((wxObject *) ((wxPseudoMetaFile *) x)); | |
27855 | } | |
27856 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27858 | } | |
27859 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
27860 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
27861 | } | |
27862 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
27863 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
27864 | } | |
27865 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27866 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27867 | } | |
27868 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27869 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27870 | } | |
27871 | static void *_p_wxShapeRegionTo_p_wxObject(void *x) { | |
27872 | return (void *)((wxObject *) ((wxShapeRegion *) x)); | |
27873 | } | |
27874 | static void *_p_wxPyRectangleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27875 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyRectangleShape *) x)); | |
27876 | } | |
27877 | static void *_p_wxPyBitmapShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27878 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
27879 | } | |
27880 | static void *_p_wxPyCompositeShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27881 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
27882 | } | |
27883 | static void *_p_wxPyCircleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27884 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
27885 | } | |
27886 | static void *_p_wxPyLineShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27887 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyLineShape *) x)); | |
27888 | } | |
27889 | static void *_p_wxPyTextShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27890 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
27891 | } | |
27892 | static void *_p_wxPyControlPointTo_p_wxPyShapeEvtHandler(void *x) { | |
27893 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
27894 | } | |
27895 | static void *_p_wxPyDrawnShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27896 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
27897 | } | |
27898 | static void *_p_wxPyDivisionShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27899 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
27900 | } | |
27901 | static void *_p_wxPyPolygonShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27902 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyPolygonShape *) x)); | |
27903 | } | |
27904 | static void *_p_wxPyDividedShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27905 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
27906 | } | |
27907 | static void *_p_wxPyShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27908 | return (void *)((wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
27909 | } | |
27910 | static void *_p_wxPyEllipseShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
27911 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyEllipseShape *) x)); | |
27912 | } | |
27913 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
27914 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
27915 | } | |
27916 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
27917 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
27918 | } | |
27919 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
27920 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
27921 | } | |
27922 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27923 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27924 | } | |
27925 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27926 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27927 | } | |
27928 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27929 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27930 | } | |
27931 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27932 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27933 | } | |
27934 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
27935 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
27936 | } | |
27937 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
27938 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
27939 | } | |
27940 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
27941 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
27942 | } | |
27943 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
27944 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
27945 | } | |
27946 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
27947 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
27948 | } | |
27949 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
27950 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
27951 | } | |
27952 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
27953 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
27954 | } | |
27955 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
27956 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
27957 | } | |
27958 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
27959 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
27960 | } | |
27961 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
27962 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
27963 | } | |
27964 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
27965 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
27966 | } | |
27967 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
27968 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
27969 | } | |
27970 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
27971 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
27972 | } | |
27973 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
27974 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
27975 | } | |
27976 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
27977 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
27978 | } | |
27979 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
27980 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
27981 | } | |
27982 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
27983 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
27984 | } | |
27985 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27986 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27987 | } | |
27988 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
27989 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
27990 | } | |
27991 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
27992 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
27993 | } | |
27994 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
27995 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
27996 | } | |
27997 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27998 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27999 | } | |
28000 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
28001 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
28002 | } | |
28003 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
28004 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
28005 | } | |
28006 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
28007 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
28008 | } | |
28009 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
28010 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
28011 | } | |
28012 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
28013 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
28014 | } | |
28015 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
28016 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
28017 | } | |
28018 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
28019 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
28020 | } | |
28021 | static void *_p_wxPyShapeCanvasTo_p_wxEvtHandler(void *x) { | |
28022 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
28023 | } | |
28024 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
28025 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
28026 | } | |
28027 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
28028 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
28029 | } | |
28030 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
28031 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
28032 | } | |
28033 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
28034 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
28035 | } | |
28036 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
28037 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
28038 | } | |
28039 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
28040 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
28041 | } | |
28042 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
28043 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
28044 | } | |
28045 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
28046 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
28047 | } | |
28048 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
28049 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
28050 | } | |
28051 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
28052 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
28053 | } | |
28054 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
28055 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
28056 | } | |
28057 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
28058 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
28059 | } | |
28060 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
28061 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
28062 | } | |
28063 | static void *_p_wxPyCircleShapeTo_p_wxPyEllipseShape(void *x) { | |
28064 | return (void *)((wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
28065 | } | |
28066 | static void *_p_wxPyRectangleShapeTo_p_wxPyShape(void *x) { | |
28067 | return (void *)((wxPyShape *) ((wxPyRectangleShape *) x)); | |
28068 | } | |
28069 | static void *_p_wxPyBitmapShapeTo_p_wxPyShape(void *x) { | |
28070 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
28071 | } | |
28072 | static void *_p_wxPyCompositeShapeTo_p_wxPyShape(void *x) { | |
28073 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
28074 | } | |
28075 | static void *_p_wxPyCircleShapeTo_p_wxPyShape(void *x) { | |
28076 | return (void *)((wxPyShape *) (wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
28077 | } | |
28078 | static void *_p_wxPyLineShapeTo_p_wxPyShape(void *x) { | |
28079 | return (void *)((wxPyShape *) ((wxPyLineShape *) x)); | |
28080 | } | |
28081 | static void *_p_wxPyTextShapeTo_p_wxPyShape(void *x) { | |
28082 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
28083 | } | |
28084 | static void *_p_wxPyControlPointTo_p_wxPyShape(void *x) { | |
28085 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
28086 | } | |
28087 | static void *_p_wxPyDrawnShapeTo_p_wxPyShape(void *x) { | |
28088 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
28089 | } | |
28090 | static void *_p_wxPyDivisionShapeTo_p_wxPyShape(void *x) { | |
28091 | return (void *)((wxPyShape *) (wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
28092 | } | |
28093 | static void *_p_wxPyPolygonShapeTo_p_wxPyShape(void *x) { | |
28094 | return (void *)((wxPyShape *) ((wxPyPolygonShape *) x)); | |
28095 | } | |
28096 | static void *_p_wxPyDividedShapeTo_p_wxPyShape(void *x) { | |
28097 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
28098 | } | |
28099 | static void *_p_wxPyEllipseShapeTo_p_wxPyShape(void *x) { | |
28100 | return (void *)((wxPyShape *) ((wxPyEllipseShape *) x)); | |
28101 | } | |
28102 | static void *_p_wxPyBitmapShapeTo_p_wxPyRectangleShape(void *x) { | |
28103 | return (void *)((wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
28104 | } | |
28105 | static void *_p_wxPyCompositeShapeTo_p_wxPyRectangleShape(void *x) { | |
28106 | return (void *)((wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
28107 | } | |
28108 | static void *_p_wxPyTextShapeTo_p_wxPyRectangleShape(void *x) { | |
28109 | return (void *)((wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
28110 | } | |
28111 | static void *_p_wxPyControlPointTo_p_wxPyRectangleShape(void *x) { | |
28112 | return (void *)((wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
28113 | } | |
28114 | static void *_p_wxPyDrawnShapeTo_p_wxPyRectangleShape(void *x) { | |
28115 | return (void *)((wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
28116 | } | |
28117 | static void *_p_wxPyDivisionShapeTo_p_wxPyRectangleShape(void *x) { | |
28118 | return (void *)((wxPyRectangleShape *) (wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
28119 | } | |
28120 | static void *_p_wxPyDividedShapeTo_p_wxPyRectangleShape(void *x) { | |
28121 | return (void *)((wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
28122 | } | |
28123 | static void *_p_wxPyDivisionShapeTo_p_wxPyCompositeShape(void *x) { | |
28124 | return (void *)((wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
28125 | } | |
28126 | static swig_type_info _swigt__p_wxOGLConstraint[] = {{"_p_wxOGLConstraint", 0, "wxOGLConstraint *", 0},{"_p_wxOGLConstraint"},{0}}; | |
28127 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; | |
28128 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
28129 | static swig_type_info _swigt__p_wxShapeRegion[] = {{"_p_wxShapeRegion", 0, "wxShapeRegion *", 0},{"_p_wxShapeRegion"},{0}}; | |
28130 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
28131 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
28132 | static swig_type_info _swigt__p_wxPyControlPoint[] = {{"_p_wxPyControlPoint", 0, "wxPyControlPoint *", 0},{"_p_wxPyControlPoint"},{0}}; | |
28133 | static swig_type_info _swigt__p_wxArrowHead[] = {{"_p_wxArrowHead", 0, "wxArrowHead *", 0},{"_p_wxArrowHead"},{0}}; | |
28134 | static swig_type_info _swigt__p_wxStringList[] = {{"_p_wxStringList", 0, "wxStringList *", 0},{"_p_wxStringList"},{0}}; | |
28135 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxPanel},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel},{0}}; | |
28136 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
28137 | static swig_type_info _swigt__p_wxList[] = {{"_p_wxList", 0, "wxList *", 0},{"_p_wxList"},{0}}; | |
28138 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
28139 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0},{"_p_wxScrolledWindow"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxScrolledWindow},{0}}; | |
28140 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxWindow},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow},{0}}; | |
28141 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
28142 | static swig_type_info _swigt__p_wxPyDivisionShape[] = {{"_p_wxPyDivisionShape", 0, "wxPyDivisionShape *", 0},{"_p_wxPyDivisionShape"},{0}}; | |
28143 | static swig_type_info _swigt__p_wxPyDrawnShape[] = {{"_p_wxPyDrawnShape", 0, "wxPyDrawnShape *", 0},{"_p_wxPyDrawnShape"},{0}}; | |
28144 | static swig_type_info _swigt__p_wxPyPolygonShape[] = {{"_p_wxPyPolygonShape", 0, "wxPyPolygonShape *", 0},{"_p_wxPyPolygonShape"},{0}}; | |
28145 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
30d215aa | 28146 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxObject},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxOGLConstraint", _p_wxOGLConstraintTo_p_wxObject},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxObject},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxObject},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxArrowHead", _p_wxArrowHeadTo_p_wxObject},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject},{"_p_wxPyShapeEvtHandler", _p_wxPyShapeEvtHandlerTo_p_wxObject},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxObject},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxFrame", _p_wxFrameTo_p_wxObject},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject},{"_p_wxDiagram", _p_wxDiagramTo_p_wxObject},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject},{"_p_wxObject"},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject},{"_p_wxPanel", _p_wxPanelTo_p_wxObject},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject},{"_p_wxDialog", _p_wxDialogTo_p_wxObject},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject},{"_p_wxPyShape", _p_wxPyShapeTo_p_wxObject},{"_p_wxAttachmentPoint", _p_wxAttachmentPointTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxObject},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxObject},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxObject},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxPseudoMetaFile", _p_wxPseudoMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxShapeRegion", _p_wxShapeRegionTo_p_wxObject},{0}}; |
44127b65 RD |
28147 | static swig_type_info _swigt__p_wxPyBitmapShape[] = {{"_p_wxPyBitmapShape", 0, "wxPyBitmapShape *", 0},{"_p_wxPyBitmapShape"},{0}}; |
28148 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
28149 | static swig_type_info _swigt__p_wxPyShapeEvtHandler[] = {{"_p_wxPyShapeEvtHandler", 0, "wxPyShapeEvtHandler *", 0},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyShapeEvtHandler},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyShape", _p_wxPyShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyShapeEvtHandler"},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyShapeEvtHandler},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyShapeEvtHandler},{0}}; | |
28150 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxEvtHandler},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler},{0}}; | |
28151 | static swig_type_info _swigt__p_wxPyEllipseShape[] = {{"_p_wxPyEllipseShape", 0, "wxPyEllipseShape *", 0},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyEllipseShape},{"_p_wxPyEllipseShape"},{0}}; | |
28152 | static swig_type_info _swigt__p_wxPyShapeCanvas[] = {{"_p_wxPyShapeCanvas", 0, "wxPyShapeCanvas *", 0},{"_p_wxPyShapeCanvas"},{0}}; | |
28153 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
28154 | static swig_type_info _swigt__p_wxDiagram[] = {{"_p_wxDiagram", 0, "wxDiagram *", 0},{"_p_wxDiagram"},{0}}; | |
28155 | static swig_type_info _swigt__p_wxPyShape[] = {{"_p_wxPyShape", 0, "wxPyShape *", 0},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxPyShape},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyShape},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyShape},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyShape},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxPyShape},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyShape},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyShape},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyShape},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyShape},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxPyShape},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyShape},{"_p_wxPyShape"},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxPyShape},{0}}; | |
30d215aa | 28156 | static swig_type_info _swigt__p_wxAttachmentPoint[] = {{"_p_wxAttachmentPoint", 0, "wxAttachmentPoint *", 0},{"_p_wxAttachmentPoint"},{0}}; |
44127b65 RD |
28157 | static swig_type_info _swigt__p_wxClassInfo[] = {{"_p_wxClassInfo", 0, "wxClassInfo *", 0},{"_p_wxClassInfo"},{0}}; |
28158 | static swig_type_info _swigt__p_wxPyLineShape[] = {{"_p_wxPyLineShape", 0, "wxPyLineShape *", 0},{"_p_wxPyLineShape"},{0}}; | |
28159 | static swig_type_info _swigt__p_wxPyRectangleShape[] = {{"_p_wxPyRectangleShape", 0, "wxPyRectangleShape *", 0},{"_p_wxPyRectangleShape"},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyRectangleShape},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyRectangleShape},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyRectangleShape},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyRectangleShape},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyRectangleShape},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyRectangleShape},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyRectangleShape},{0}}; | |
28160 | static swig_type_info _swigt__p_wxPyCompositeShape[] = {{"_p_wxPyCompositeShape", 0, "wxPyCompositeShape *", 0},{"_p_wxPyCompositeShape"},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyCompositeShape},{0}}; | |
28161 | static swig_type_info _swigt__p_wxPyCircleShape[] = {{"_p_wxPyCircleShape", 0, "wxPyCircleShape *", 0},{"_p_wxPyCircleShape"},{0}}; | |
28162 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPen"},{0}}; | |
28163 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
28164 | static swig_type_info _swigt__p_wxPseudoMetaFile[] = {{"_p_wxPseudoMetaFile", 0, "wxPseudoMetaFile *", 0},{"_p_wxPseudoMetaFile"},{0}}; | |
28165 | static swig_type_info _swigt__p_wxPyTextShape[] = {{"_p_wxPyTextShape", 0, "wxPyTextShape *", 0},{"_p_wxPyTextShape"},{0}}; | |
28166 | static swig_type_info _swigt__p_wxPyDividedShape[] = {{"_p_wxPyDividedShape", 0, "wxPyDividedShape *", 0},{"_p_wxPyDividedShape"},{0}}; | |
28167 | ||
28168 | static swig_type_info *swig_types_initial[] = { | |
28169 | _swigt__p_wxOGLConstraint, | |
28170 | _swigt__p_wxBrush, | |
28171 | _swigt__p_wxColour, | |
28172 | _swigt__p_wxShapeRegion, | |
28173 | _swigt__p_wxDC, | |
28174 | _swigt__p_wxRealPoint, | |
28175 | _swigt__p_wxPyControlPoint, | |
28176 | _swigt__p_wxArrowHead, | |
28177 | _swigt__p_wxStringList, | |
28178 | _swigt__p_wxPanel, | |
28179 | _swigt__p_bool, | |
28180 | _swigt__p_wxList, | |
28181 | _swigt__p_wxFont, | |
28182 | _swigt__p_wxScrolledWindow, | |
28183 | _swigt__p_wxWindow, | |
28184 | _swigt__p_double, | |
28185 | _swigt__p_wxPyDivisionShape, | |
28186 | _swigt__p_wxPyDrawnShape, | |
28187 | _swigt__p_wxPyPolygonShape, | |
28188 | _swigt__p_wxBitmap, | |
28189 | _swigt__p_wxObject, | |
28190 | _swigt__p_wxPyBitmapShape, | |
28191 | _swigt__p_wxString, | |
28192 | _swigt__p_wxPyShapeEvtHandler, | |
28193 | _swigt__p_wxEvtHandler, | |
28194 | _swigt__p_wxPyEllipseShape, | |
28195 | _swigt__p_wxPyShapeCanvas, | |
28196 | _swigt__p_wxPoint, | |
28197 | _swigt__p_wxDiagram, | |
28198 | _swigt__p_wxPyShape, | |
30d215aa | 28199 | _swigt__p_wxAttachmentPoint, |
44127b65 RD |
28200 | _swigt__p_wxClassInfo, |
28201 | _swigt__p_wxPyLineShape, | |
28202 | _swigt__p_wxPyRectangleShape, | |
28203 | _swigt__p_wxPyCompositeShape, | |
28204 | _swigt__p_wxPyCircleShape, | |
28205 | _swigt__p_wxPen, | |
28206 | _swigt__p_int, | |
28207 | _swigt__p_wxPseudoMetaFile, | |
28208 | _swigt__p_wxPyTextShape, | |
28209 | _swigt__p_wxPyDividedShape, | |
28210 | 0 | |
28211 | }; | |
28212 | ||
28213 | ||
28214 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28215 | ||
28216 | static swig_const_info swig_const_table[] = { | |
28217 | { SWIG_PY_INT, (char *)"oglMETAFLAGS_OUTLINE", (long) oglMETAFLAGS_OUTLINE, 0, 0, 0}, | |
28218 | { SWIG_PY_INT, (char *)"oglMETAFLAGS_ATTACHMENTS", (long) oglMETAFLAGS_ATTACHMENTS, 0, 0, 0}, | |
28219 | { SWIG_PY_INT, (char *)"KEY_SHIFT", (long) KEY_SHIFT, 0, 0, 0}, | |
28220 | { SWIG_PY_INT, (char *)"KEY_CTRL", (long) KEY_CTRL, 0, 0, 0}, | |
28221 | { SWIG_PY_INT, (char *)"ARROW_NONE", (long) ARROW_NONE, 0, 0, 0}, | |
28222 | { SWIG_PY_INT, (char *)"ARROW_END", (long) ARROW_END, 0, 0, 0}, | |
28223 | { SWIG_PY_INT, (char *)"ARROW_BOTH", (long) ARROW_BOTH, 0, 0, 0}, | |
28224 | { SWIG_PY_INT, (char *)"ARROW_MIDDLE", (long) ARROW_MIDDLE, 0, 0, 0}, | |
28225 | { SWIG_PY_INT, (char *)"ARROW_START", (long) ARROW_START, 0, 0, 0}, | |
28226 | { SWIG_PY_INT, (char *)"ARROW_HOLLOW_CIRCLE", (long) ARROW_HOLLOW_CIRCLE, 0, 0, 0}, | |
28227 | { SWIG_PY_INT, (char *)"ARROW_FILLED_CIRCLE", (long) ARROW_FILLED_CIRCLE, 0, 0, 0}, | |
28228 | { SWIG_PY_INT, (char *)"ARROW_ARROW", (long) ARROW_ARROW, 0, 0, 0}, | |
28229 | { SWIG_PY_INT, (char *)"ARROW_SINGLE_OBLIQUE", (long) ARROW_SINGLE_OBLIQUE, 0, 0, 0}, | |
28230 | { SWIG_PY_INT, (char *)"ARROW_DOUBLE_OBLIQUE", (long) ARROW_DOUBLE_OBLIQUE, 0, 0, 0}, | |
28231 | { SWIG_PY_INT, (char *)"ARROW_METAFILE", (long) ARROW_METAFILE, 0, 0, 0}, | |
28232 | { SWIG_PY_INT, (char *)"ARROW_POSITION_END", (long) ARROW_POSITION_END, 0, 0, 0}, | |
28233 | { SWIG_PY_INT, (char *)"ARROW_POSITION_START", (long) ARROW_POSITION_START, 0, 0, 0}, | |
28234 | { SWIG_PY_INT, (char *)"CONTROL_POINT_VERTICAL", (long) CONTROL_POINT_VERTICAL, 0, 0, 0}, | |
28235 | { SWIG_PY_INT, (char *)"CONTROL_POINT_HORIZONTAL", (long) CONTROL_POINT_HORIZONTAL, 0, 0, 0}, | |
28236 | { SWIG_PY_INT, (char *)"CONTROL_POINT_DIAGONAL", (long) CONTROL_POINT_DIAGONAL, 0, 0, 0}, | |
28237 | { SWIG_PY_INT, (char *)"CONTROL_POINT_ENDPOINT_TO", (long) CONTROL_POINT_ENDPOINT_TO, 0, 0, 0}, | |
28238 | { SWIG_PY_INT, (char *)"CONTROL_POINT_ENDPOINT_FROM", (long) CONTROL_POINT_ENDPOINT_FROM, 0, 0, 0}, | |
28239 | { SWIG_PY_INT, (char *)"CONTROL_POINT_LINE", (long) CONTROL_POINT_LINE, 0, 0, 0}, | |
28240 | { SWIG_PY_INT, (char *)"FORMAT_NONE", (long) FORMAT_NONE, 0, 0, 0}, | |
28241 | { SWIG_PY_INT, (char *)"FORMAT_CENTRE_HORIZ", (long) FORMAT_CENTRE_HORIZ, 0, 0, 0}, | |
28242 | { SWIG_PY_INT, (char *)"FORMAT_CENTRE_VERT", (long) FORMAT_CENTRE_VERT, 0, 0, 0}, | |
28243 | { SWIG_PY_INT, (char *)"FORMAT_SIZE_TO_CONTENTS", (long) FORMAT_SIZE_TO_CONTENTS, 0, 0, 0}, | |
28244 | { SWIG_PY_INT, (char *)"LINE_ALIGNMENT_HORIZ", (long) LINE_ALIGNMENT_HORIZ, 0, 0, 0}, | |
28245 | { SWIG_PY_INT, (char *)"LINE_ALIGNMENT_VERT", (long) LINE_ALIGNMENT_VERT, 0, 0, 0}, | |
28246 | { SWIG_PY_INT, (char *)"LINE_ALIGNMENT_TO_NEXT_HANDLE", (long) LINE_ALIGNMENT_TO_NEXT_HANDLE, 0, 0, 0}, | |
28247 | { SWIG_PY_INT, (char *)"LINE_ALIGNMENT_NONE", (long) LINE_ALIGNMENT_NONE, 0, 0, 0}, | |
28248 | { SWIG_PY_INT, (char *)"SHADOW_NONE", (long) SHADOW_NONE, 0, 0, 0}, | |
28249 | { SWIG_PY_INT, (char *)"SHADOW_LEFT", (long) SHADOW_LEFT, 0, 0, 0}, | |
28250 | { SWIG_PY_INT, (char *)"SHADOW_RIGHT", (long) SHADOW_RIGHT, 0, 0, 0}, | |
28251 | { SWIG_PY_INT, (char *)"OP_CLICK_LEFT", (long) OP_CLICK_LEFT, 0, 0, 0}, | |
28252 | { SWIG_PY_INT, (char *)"OP_CLICK_RIGHT", (long) OP_CLICK_RIGHT, 0, 0, 0}, | |
28253 | { SWIG_PY_INT, (char *)"OP_DRAG_LEFT", (long) OP_DRAG_LEFT, 0, 0, 0}, | |
28254 | { SWIG_PY_INT, (char *)"OP_DRAG_RIGHT", (long) OP_DRAG_RIGHT, 0, 0, 0}, | |
28255 | { SWIG_PY_INT, (char *)"OP_ALL", (long) OP_ALL, 0, 0, 0}, | |
28256 | { SWIG_PY_INT, (char *)"ATTACHMENT_MODE_NONE", (long) ATTACHMENT_MODE_NONE, 0, 0, 0}, | |
28257 | { SWIG_PY_INT, (char *)"ATTACHMENT_MODE_EDGE", (long) ATTACHMENT_MODE_EDGE, 0, 0, 0}, | |
28258 | { SWIG_PY_INT, (char *)"ATTACHMENT_MODE_BRANCHING", (long) ATTACHMENT_MODE_BRANCHING, 0, 0, 0}, | |
28259 | { SWIG_PY_INT, (char *)"BRANCHING_ATTACHMENT_NORMAL", (long) BRANCHING_ATTACHMENT_NORMAL, 0, 0, 0}, | |
28260 | { SWIG_PY_INT, (char *)"BRANCHING_ATTACHMENT_BLOB", (long) BRANCHING_ATTACHMENT_BLOB, 0, 0, 0}, | |
28261 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_CENTRED_VERTICALLY", (long) gyCONSTRAINT_CENTRED_VERTICALLY, 0, 0, 0}, | |
28262 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_CENTRED_HORIZONTALLY", (long) gyCONSTRAINT_CENTRED_HORIZONTALLY, 0, 0, 0}, | |
28263 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_CENTRED_BOTH", (long) gyCONSTRAINT_CENTRED_BOTH, 0, 0, 0}, | |
28264 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_LEFT_OF", (long) gyCONSTRAINT_LEFT_OF, 0, 0, 0}, | |
28265 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_RIGHT_OF", (long) gyCONSTRAINT_RIGHT_OF, 0, 0, 0}, | |
28266 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_ABOVE", (long) gyCONSTRAINT_ABOVE, 0, 0, 0}, | |
28267 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_BELOW", (long) gyCONSTRAINT_BELOW, 0, 0, 0}, | |
28268 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_ALIGNED_TOP", (long) gyCONSTRAINT_ALIGNED_TOP, 0, 0, 0}, | |
28269 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_ALIGNED_BOTTOM", (long) gyCONSTRAINT_ALIGNED_BOTTOM, 0, 0, 0}, | |
28270 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_ALIGNED_LEFT", (long) gyCONSTRAINT_ALIGNED_LEFT, 0, 0, 0}, | |
28271 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_ALIGNED_RIGHT", (long) gyCONSTRAINT_ALIGNED_RIGHT, 0, 0, 0}, | |
28272 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_MIDALIGNED_TOP", (long) gyCONSTRAINT_MIDALIGNED_TOP, 0, 0, 0}, | |
28273 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_MIDALIGNED_BOTTOM", (long) gyCONSTRAINT_MIDALIGNED_BOTTOM, 0, 0, 0}, | |
28274 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_MIDALIGNED_LEFT", (long) gyCONSTRAINT_MIDALIGNED_LEFT, 0, 0, 0}, | |
28275 | { SWIG_PY_INT, (char *)"gyCONSTRAINT_MIDALIGNED_RIGHT", (long) gyCONSTRAINT_MIDALIGNED_RIGHT, 0, 0, 0}, | |
28276 | { SWIG_PY_INT, (char *)"DIVISION_SIDE_NONE", (long) DIVISION_SIDE_NONE, 0, 0, 0}, | |
28277 | { SWIG_PY_INT, (char *)"DIVISION_SIDE_LEFT", (long) DIVISION_SIDE_LEFT, 0, 0, 0}, | |
28278 | { SWIG_PY_INT, (char *)"DIVISION_SIDE_TOP", (long) DIVISION_SIDE_TOP, 0, 0, 0}, | |
28279 | { SWIG_PY_INT, (char *)"DIVISION_SIDE_RIGHT", (long) DIVISION_SIDE_RIGHT, 0, 0, 0}, | |
28280 | { SWIG_PY_INT, (char *)"DIVISION_SIDE_BOTTOM", (long) DIVISION_SIDE_BOTTOM, 0, 0, 0}, | |
28281 | {0}}; | |
28282 | ||
28283 | #ifdef __cplusplus | |
28284 | } | |
28285 | #endif | |
28286 | ||
28287 | #ifdef __cplusplus | |
28288 | extern "C" | |
28289 | #endif | |
28290 | SWIGEXPORT(void) SWIG_init(void) { | |
28291 | static PyObject *SWIG_globals = 0; | |
28292 | static int typeinit = 0; | |
28293 | PyObject *m, *d; | |
28294 | int i; | |
28295 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28296 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28297 | d = PyModule_GetDict(m); | |
28298 | ||
28299 | if (!typeinit) { | |
28300 | for (i = 0; swig_types_initial[i]; i++) { | |
28301 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28302 | } | |
28303 | typeinit = 1; | |
28304 | } | |
28305 | SWIG_InstallConstants(d,swig_const_table); | |
28306 | ||
28307 | ||
28308 | ||
28309 | // initoglbasicc(); | |
28310 | // initoglshapesc(); | |
28311 | // initoglshapes2c(); | |
28312 | // initoglcanvasc(); | |
28313 | ||
28314 | ||
28315 | wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint"); | |
28316 | wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas"); | |
28317 | wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler"); | |
28318 | wxPyPtrTypeMap_Add("wxShape", "wxPyShape"); | |
28319 | wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape"); | |
28320 | wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape"); | |
28321 | wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape"); | |
28322 | wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape"); | |
28323 | wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape"); | |
28324 | wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape"); | |
28325 | wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape"); | |
28326 | wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape"); | |
28327 | wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape"); | |
28328 | wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape"); | |
28329 | ||
28330 | ||
28331 | } | |
28332 |