]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
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 | ||
d14a1e28 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 | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 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; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 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); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
9d1d5697 | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
cc6dd355 | 127 | |
d14a1e28 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 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
a41e16b6 RD |
140 | #include <limits.h> |
141 | #include <float.h> | |
142 | ||
143 | #ifdef __cplusplus | |
144 | #define SWIG_STATIC_INLINE static inline | |
145 | #else | |
146 | #define SWIG_STATIC_INLINE static | |
147 | #endif | |
148 | ||
149 | SWIG_STATIC_INLINE long | |
150 | SPyObj_AsLong(PyObject * obj) | |
151 | { | |
152 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
153 | } | |
154 | ||
155 | SWIG_STATIC_INLINE unsigned long | |
156 | SPyObj_AsUnsignedLong(PyObject * obj) | |
157 | { | |
158 | if (PyLong_Check(obj)) { | |
159 | return PyLong_AsUnsignedLong(obj); | |
160 | } else { | |
161 | long i = PyInt_AsLong(obj); | |
162 | if ( !PyErr_Occurred() && (i < 0)) { | |
163 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
164 | } | |
165 | return i; | |
166 | } | |
167 | } | |
168 | ||
169 | #if !defined(_MSC_VER) | |
170 | SWIG_STATIC_INLINE PyObject* | |
171 | SPyObj_FromLongLong(long long value) | |
172 | { | |
173 | return (value > (long)(LONG_MAX)) ? | |
174 | PyLong_FromLongLong(value) : PyInt_FromLong((long)value); | |
175 | } | |
176 | #endif | |
177 | ||
178 | SWIG_STATIC_INLINE PyObject* | |
179 | SPyObj_FromUnsignedLong(unsigned long value) | |
180 | { | |
181 | return (value > (unsigned long)(LONG_MAX)) ? | |
182 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
183 | } | |
184 | ||
185 | #if !defined(_MSC_VER) | |
186 | SWIG_STATIC_INLINE PyObject* | |
187 | SPyObj_FromUnsignedLongLong(unsigned long long value) | |
188 | { | |
189 | return (value > (unsigned long long)(LONG_MAX)) ? | |
190 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value); | |
191 | } | |
192 | #endif | |
193 | ||
194 | SWIG_STATIC_INLINE long | |
195 | SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value) | |
196 | { | |
197 | long value = SPyObj_AsLong(obj); | |
198 | if (!PyErr_Occurred()) { | |
199 | if (value < min_value) { | |
200 | PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum"); | |
201 | } else if (value > max_value) { | |
202 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
203 | } | |
204 | } | |
205 | return value; | |
206 | } | |
207 | ||
208 | SWIG_STATIC_INLINE unsigned long | |
209 | SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value) | |
210 | { | |
211 | unsigned long value = SPyObj_AsUnsignedLong(obj); | |
212 | if (!PyErr_Occurred()) { | |
213 | if (value > max_value) { | |
214 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
215 | } | |
216 | } | |
217 | return value; | |
218 | } | |
219 | ||
220 | SWIG_STATIC_INLINE signed char | |
221 | SPyObj_AsSignedChar(PyObject *obj) { | |
222 | return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX); | |
223 | } | |
224 | ||
225 | SWIG_STATIC_INLINE short | |
226 | SPyObj_AsShort(PyObject *obj) { | |
227 | return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX); | |
228 | } | |
229 | ||
230 | SWIG_STATIC_INLINE int | |
231 | SPyObj_AsInt(PyObject *obj) { | |
232 | return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX); | |
233 | } | |
234 | ||
235 | SWIG_STATIC_INLINE unsigned char | |
236 | SPyObj_AsUnsignedChar(PyObject *obj) { | |
237 | return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX); | |
238 | } | |
239 | ||
240 | SWIG_STATIC_INLINE unsigned short | |
241 | SPyObj_AsUnsignedShort(PyObject *obj) { | |
242 | return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX); | |
243 | } | |
244 | ||
245 | SWIG_STATIC_INLINE unsigned int | |
246 | SPyObj_AsUnsignedInt(PyObject *obj) { | |
247 | return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX); | |
248 | } | |
249 | ||
250 | #if !defined(_MSC_VER) | |
251 | SWIG_STATIC_INLINE long long | |
252 | SPyObj_AsLongLong(PyObject *obj) { | |
253 | return PyInt_Check(obj) ? | |
254 | PyInt_AsLong(obj) : PyLong_AsLongLong(obj); | |
255 | } | |
256 | ||
257 | SWIG_STATIC_INLINE unsigned long long | |
258 | SPyObj_AsUnsignedLongLong(PyObject *obj) { | |
259 | return PyLong_Check(obj) ? | |
260 | PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj); | |
261 | } | |
262 | #endif | |
263 | ||
264 | SWIG_STATIC_INLINE double | |
265 | SPyObj_AsDouble(PyObject *obj) { | |
266 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
267 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
268 | } | |
269 | ||
270 | SWIG_STATIC_INLINE float | |
271 | SPyObj_AsFloat(PyObject *obj) { | |
272 | double value = SPyObj_AsDouble(obj); | |
273 | if (!PyErr_Occurred()) { | |
274 | if (value < FLT_MIN) { | |
275 | PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min"); | |
276 | } else if (value > FLT_MAX) { | |
277 | PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max"); | |
278 | } | |
279 | } | |
280 | return (float) value; | |
281 | } | |
282 | ||
283 | SWIG_STATIC_INLINE char | |
284 | SPyObj_AsChar(PyObject *obj) { | |
285 | char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ? | |
286 | PyString_AsString(obj)[0] | |
287 | : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX); | |
288 | if (PyErr_Occurred()) { | |
289 | PyErr_Clear(); | |
290 | PyErr_SetString(PyExc_TypeError, "a char is required"); | |
291 | } | |
292 | return c; | |
293 | } | |
294 | ||
295 | SWIG_STATIC_INLINE PyObject * | |
296 | SPyObj_FromChar(char c) { | |
297 | return PyString_FromStringAndSize(&c,1); | |
298 | } | |
299 | ||
300 | SWIG_STATIC_INLINE PyObject * | |
301 | SPyObj_FromCharPtr(const char* cptr) { | |
302 | return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)""); | |
303 | } | |
304 | ||
305 | SWIG_STATIC_INLINE int | |
306 | SPyObj_AsBool(PyObject *obj) { | |
307 | return SPyObj_AsLong/*Long*/(obj) ? 1 : 0; | |
308 | } | |
309 | ||
310 | ||
311 | ||
d14a1e28 RD |
312 | #ifdef __cplusplus |
313 | extern "C" { | |
314 | #endif | |
315 | ||
316 | #define SWIG_PY_INT 1 | |
317 | #define SWIG_PY_FLOAT 2 | |
318 | #define SWIG_PY_STRING 3 | |
319 | #define SWIG_PY_POINTER 4 | |
320 | #define SWIG_PY_BINARY 5 | |
321 | ||
322 | /* Flags for pointer conversion */ | |
323 | ||
324 | #define SWIG_POINTER_EXCEPTION 0x1 | |
325 | #define SWIG_POINTER_DISOWN 0x2 | |
326 | ||
327 | /* Exception handling in wrappers */ | |
328 | #define SWIG_fail goto fail | |
329 | ||
330 | /* Constant information structure */ | |
331 | typedef struct swig_const_info { | |
332 | int type; | |
333 | char *name; | |
334 | long lvalue; | |
335 | double dvalue; | |
336 | void *pvalue; | |
337 | swig_type_info **ptype; | |
338 | } swig_const_info; | |
339 | ||
d14a1e28 RD |
340 | /* Common SWIG API */ |
341 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
342 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
343 | #define SWIG_NewPointerObj(p, type, flags) \ | |
344 | SWIG_Python_NewPointerObj(p, type, flags) | |
345 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
346 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 347 | |
d14a1e28 RD |
348 | /* Python-specific SWIG API */ |
349 | #define SWIG_newvarlink() \ | |
350 | SWIG_Python_newvarlink() | |
351 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
352 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
353 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
354 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
355 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
356 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
357 | #define SWIG_InstallConstants(d, constants) \ | |
358 | SWIG_Python_InstallConstants(d, constants) | |
359 | ||
360 | ||
cc6dd355 RD |
361 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
362 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
363 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
364 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
365 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
366 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
367 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
368 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 369 | |
d14a1e28 RD |
370 | |
371 | ||
372 | /* Contract support */ | |
373 | ||
9d1d5697 | 374 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 375 | |
d14a1e28 RD |
376 | #ifdef __cplusplus |
377 | } | |
378 | #endif | |
379 | ||
380 | ||
381 | ||
382 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
383 | ||
384 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
385 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
386 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
387 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
388 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
389 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
390 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
391 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
392 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
393 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
394 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
395 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
396 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
397 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
398 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
399 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
400 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
401 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
402 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
403 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
404 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
405 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
406 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
407 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
408 | #define SWIGTYPE_p_wxControl swig_types[24] | |
409 | #define SWIGTYPE_p_wxFont swig_types[25] | |
410 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
411 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
412 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
413 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
414 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
415 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
416 | #define SWIGTYPE_p_int swig_types[32] | |
417 | #define SWIGTYPE_p_wxSize swig_types[33] | |
418 | #define SWIGTYPE_p_wxDC swig_types[34] | |
419 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
420 | #define SWIGTYPE_p_wxNotifyEvent swig_types[36] | |
421 | #define SWIGTYPE_p_wxPyEvent swig_types[37] | |
422 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[38] | |
423 | #define SWIGTYPE_p_wxAppTraits swig_types[39] | |
424 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
425 | #define SWIGTYPE_p_wxShowEvent swig_types[41] | |
426 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
427 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] | |
428 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] | |
429 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
430 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
431 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
432 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48] | |
433 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49] | |
434 | #define SWIGTYPE_p_wxIdleEvent swig_types[50] | |
435 | #define SWIGTYPE_p_wxMenuItem swig_types[51] | |
436 | #define SWIGTYPE_p_wxStaticBox swig_types[52] | |
437 | #define SWIGTYPE_p_long swig_types[53] | |
438 | #define SWIGTYPE_p_wxTIFFHandler swig_types[54] | |
439 | #define SWIGTYPE_p_wxXPMHandler swig_types[55] | |
440 | #define SWIGTYPE_p_wxPNMHandler swig_types[56] | |
441 | #define SWIGTYPE_p_wxJPEGHandler swig_types[57] | |
442 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
443 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
444 | #define SWIGTYPE_p_wxPNGHandler swig_types[60] | |
445 | #define SWIGTYPE_p_wxANIHandler swig_types[61] | |
446 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62] | |
447 | #define SWIGTYPE_p_wxEvtHandler swig_types[63] | |
448 | #define SWIGTYPE_p_wxCURHandler swig_types[64] | |
449 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
450 | #define SWIGTYPE_p_wxBMPHandler swig_types[66] | |
451 | #define SWIGTYPE_p_wxImageHandler swig_types[67] | |
452 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[68] | |
453 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69] | |
454 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
455 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
456 | #define SWIGTYPE_p_wxRect swig_types[72] | |
457 | #define SWIGTYPE_p_wxGBSpan swig_types[73] | |
458 | #define SWIGTYPE_p_wxPropagateOnce swig_types[74] | |
459 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[75] | |
460 | #define SWIGTYPE_p_wxGBPosition swig_types[76] | |
461 | #define SWIGTYPE_p_wxImage swig_types[77] | |
462 | #define SWIGTYPE_p_wxFrame swig_types[78] | |
463 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[79] | |
464 | #define SWIGTYPE_p_wxImageHistogram swig_types[80] | |
465 | #define SWIGTYPE_p_byte swig_types[81] | |
466 | #define SWIGTYPE_p_wxPoint swig_types[82] | |
467 | #define SWIGTYPE_p_wxCursor swig_types[83] | |
468 | #define SWIGTYPE_p_wxObject swig_types[84] | |
469 | #define SWIGTYPE_p_wxPyInputStream swig_types[85] | |
470 | #define SWIGTYPE_p_wxOutputStream swig_types[86] | |
471 | #define SWIGTYPE_p_wxInputStream swig_types[87] | |
472 | #define SWIGTYPE_p_wxDateTime swig_types[88] | |
473 | #define SWIGTYPE_p_wxKeyEvent swig_types[89] | |
474 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[90] | |
475 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[91] | |
476 | #define SWIGTYPE_p_wxWindow swig_types[92] | |
477 | #define SWIGTYPE_p_wxMenuBar swig_types[93] | |
478 | #define SWIGTYPE_p_wxString swig_types[94] | |
479 | #define SWIGTYPE_p_wxFileSystem swig_types[95] | |
480 | #define SWIGTYPE_p_wxBitmap swig_types[96] | |
481 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
482 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[98] | |
483 | #define SWIGTYPE_p_unsigned_char swig_types[99] | |
484 | #define SWIGTYPE_p_wxCloseEvent swig_types[100] | |
485 | #define SWIGTYPE_p_wxEraseEvent swig_types[101] | |
486 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
487 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
488 | #define SWIGTYPE_p_wxCommandEvent swig_types[104] | |
489 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[105] | |
7722248d | 490 | #define SWIGTYPE_p_wxPyDropTarget swig_types[106] |
d14a1e28 RD |
491 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[107] |
492 | #define SWIGTYPE_p_wxFocusEvent swig_types[108] | |
493 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[109] | |
494 | #define SWIGTYPE_p_wxControlWithItems swig_types[110] | |
495 | #define SWIGTYPE_p_wxColour swig_types[111] | |
496 | #define SWIGTYPE_p_wxValidator swig_types[112] | |
497 | #define SWIGTYPE_p_wxPyValidator swig_types[113] | |
498 | static swig_type_info *swig_types[115]; | |
499 | ||
500 | /* -------- TYPES TABLE (END) -------- */ | |
501 | ||
502 | ||
503 | /*----------------------------------------------- | |
504 | @(target):= _core.so | |
505 | ------------------------------------------------*/ | |
506 | #define SWIG_init init_core | |
507 | ||
508 | #define SWIG_name "_core" | |
509 | ||
510 | #include "wx/wxPython/wxPython_int.h" | |
511 | #include "wx/wxPython/pyclasses.h" | |
512 | ||
513 | ||
514 | #ifndef wxPyUSE_EXPORT | |
515 | // Helper functions for dealing with SWIG objects and such. These are | |
516 | // located here so they know about the SWIG types and functions declared | |
517 | // in the wrapper code. | |
518 | ||
519 | #include <wx/hashmap.h> | |
520 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
521 | ||
522 | ||
523 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
524 | // name of a class either looks up the type info in the cache, or scans the | |
525 | // SWIG tables for it. | |
526 | extern PyObject* wxPyPtrTypeMap; | |
527 | static | |
528 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
529 | ||
530 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
531 | ||
532 | if (typeInfoCache == NULL) | |
533 | typeInfoCache = new wxPyTypeInfoHashMap; | |
534 | ||
535 | wxString name(className); | |
536 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
537 | ||
538 | if (! swigType) { | |
539 | // it wasn't in the cache, so look it up from SWIG | |
540 | name.Append(wxT(" *")); | |
541 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
542 | ||
543 | // if it still wasn't found, try looking for a mapped name | |
544 | if (!swigType) { | |
545 | PyObject* item; | |
546 | name = className; | |
547 | ||
548 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
549 | (char*)(const char*)name.mbc_str())) != NULL) { | |
550 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
551 | name.Append(wxT(" *")); | |
552 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
553 | } | |
554 | } | |
555 | if (swigType) { | |
556 | // and add it to the map if found | |
557 | (*typeInfoCache)[className] = swigType; | |
558 | } | |
559 | } | |
560 | return swigType; | |
561 | } | |
562 | ||
563 | ||
564 | // Check if a class name is a type known to SWIG | |
565 | bool wxPyCheckSwigType(const wxChar* className) { | |
566 | ||
567 | swig_type_info* swigType = wxPyFindSwigType(className); | |
568 | return swigType != NULL; | |
569 | } | |
570 | ||
571 | ||
572 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
573 | // object for it. | |
574 | PyObject* wxPyConstructObject(void* ptr, | |
575 | const wxChar* className, | |
576 | int setThisOwn) { | |
577 | ||
578 | swig_type_info* swigType = wxPyFindSwigType(className); | |
579 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
580 | ||
581 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
582 | } | |
583 | ||
584 | ||
585 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
586 | // Ensures that the proxy object is of the specified (or derived) type. If | |
587 | // not able to perform the conversion then a Python exception is set and the | |
e811c8ce | 588 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
589 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
590 | const wxChar* className) { | |
591 | ||
592 | swig_type_info* swigType = wxPyFindSwigType(className); | |
e811c8ce | 593 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
594 | |
595 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
596 | } | |
597 | ||
598 | ||
599 | // Make a SWIGified pointer object suitable for a .this attribute | |
600 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
601 | ||
602 | PyObject* robj = NULL; | |
603 | ||
604 | swig_type_info* swigType = wxPyFindSwigType(className); | |
605 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
606 | ||
607 | #ifdef SWIG_COBJECT_TYPES | |
608 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
609 | #else | |
610 | { | |
611 | char result[1024]; | |
612 | char *r = result; | |
613 | *(r++) = '_'; | |
614 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
615 | strcpy(r, swigType->name); | |
616 | robj = PyString_FromString(result); | |
617 | } | |
618 | #endif | |
619 | ||
620 | return robj; | |
621 | } | |
622 | ||
623 | ||
624 | ||
625 | ||
626 | // Export a C API in a struct. Other modules will be able to load this from | |
627 | // the wx.core module and will then have safe access to these functions, even if | |
628 | // they are located in another shared library. | |
629 | static wxPyCoreAPI API = { | |
630 | ||
631 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
632 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
633 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
634 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
635 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
636 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
637 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
638 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
639 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
640 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
641 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
642 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
643 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
644 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
645 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
646 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
647 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
648 | ||
649 | wxPyCheckSwigType, | |
650 | wxPyConstructObject, | |
651 | wxPyConvertSwigPtr, | |
652 | wxPyMakeSwigPtr, | |
653 | ||
654 | wxPyBeginAllowThreads, | |
655 | wxPyEndAllowThreads, | |
656 | wxPyBeginBlockThreads, | |
657 | wxPyEndBlockThreads, | |
658 | ||
659 | wxPy_ConvertList, | |
660 | ||
661 | wxString_in_helper, | |
662 | Py2wxString, | |
663 | wx2PyString, | |
664 | ||
665 | byte_LIST_helper, | |
666 | int_LIST_helper, | |
667 | long_LIST_helper, | |
668 | string_LIST_helper, | |
669 | wxPoint_LIST_helper, | |
670 | wxBitmap_LIST_helper, | |
671 | wxString_LIST_helper, | |
672 | wxAcceleratorEntry_LIST_helper, | |
673 | ||
674 | wxSize_helper, | |
675 | wxPoint_helper, | |
676 | wxRealPoint_helper, | |
677 | wxRect_helper, | |
678 | wxColour_helper, | |
679 | wxPoint2D_helper, | |
680 | ||
681 | wxPySimple_typecheck, | |
682 | wxColour_typecheck, | |
683 | ||
684 | wxPyCBH_setCallbackInfo, | |
685 | wxPyCBH_findCallback, | |
686 | wxPyCBH_callCallback, | |
687 | wxPyCBH_callCallbackObj, | |
688 | wxPyCBH_delete, | |
689 | ||
690 | wxPyMake_wxObject, | |
691 | wxPyMake_wxSizer, | |
692 | wxPyPtrTypeMap_Add, | |
693 | wxPy2int_seq_helper, | |
694 | wxPy4int_seq_helper, | |
695 | wxArrayString2PyList_helper, | |
696 | wxArrayInt2PyList_helper, | |
697 | ||
698 | wxPyClientData_dtor, | |
699 | wxPyUserData_dtor, | |
700 | wxPyOORClientData_dtor, | |
701 | ||
702 | wxPyCBInputStream_create, | |
703 | ||
704 | wxPyInstance_Check, | |
705 | wxPySwigInstance_Check | |
706 | ||
707 | }; | |
708 | ||
709 | #endif | |
710 | ||
711 | ||
d14a1e28 RD |
712 | #if ! wxUSE_HOTKEY |
713 | enum wxHotkeyModifier | |
714 | { | |
715 | wxMOD_NONE = 0, | |
716 | wxMOD_ALT = 1, | |
717 | wxMOD_CONTROL = 2, | |
718 | wxMOD_SHIFT = 4, | |
719 | wxMOD_WIN = 8 | |
720 | }; | |
721 | #define wxEVT_HOTKEY 9999 | |
722 | #endif | |
723 | ||
196addbf | 724 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
725 | wxString wxObject_GetClassName(wxObject *self){ |
726 | return self->GetClassInfo()->GetClassName(); | |
727 | } | |
728 | void wxObject_Destroy(wxObject *self){ | |
729 | delete self; | |
730 | } | |
731 | ||
732 | #ifndef __WXMAC__ | |
733 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
734 | #endif | |
735 | ||
e811c8ce | 736 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
737 | wxPyBeginBlockThreads(); |
738 | PyObject* tup = PyTuple_New(2); | |
739 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
740 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
741 | wxPyEndBlockThreads(); | |
742 | return tup; | |
743 | } | |
744 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
745 | self->x = x; | |
746 | self->y = y; | |
747 | } | |
e811c8ce | 748 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
749 | wxPyBeginBlockThreads(); |
750 | PyObject* tup = PyTuple_New(2); | |
751 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
752 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
753 | wxPyEndBlockThreads(); | |
754 | return tup; | |
755 | } | |
756 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
757 | self->x = x; | |
758 | self->y = y; | |
759 | } | |
e811c8ce | 760 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
761 | wxPyBeginBlockThreads(); |
762 | PyObject* tup = PyTuple_New(2); | |
763 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
764 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
765 | wxPyEndBlockThreads(); | |
766 | return tup; | |
767 | } | |
768 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
769 | self->x = x; | |
770 | self->y = y; | |
771 | self->width = width; | |
772 | self->height = height; | |
773 | } | |
e811c8ce | 774 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
775 | wxPyBeginBlockThreads(); |
776 | PyObject* tup = PyTuple_New(4); | |
777 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
778 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
779 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
780 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
781 | wxPyEndBlockThreads(); | |
782 | return tup; | |
783 | } | |
784 | ||
785 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
786 | wxRegion reg1(*r1); | |
787 | wxRegion reg2(*r2); | |
788 | wxRect dest(0,0,0,0); | |
789 | PyObject* obj; | |
790 | ||
791 | reg1.Intersect(reg2); | |
792 | dest = reg1.GetBox(); | |
793 | ||
794 | if (dest != wxRect(0,0,0,0)) { | |
795 | wxPyBeginBlockThreads(); | |
796 | wxRect* newRect = new wxRect(dest); | |
e811c8ce | 797 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
798 | wxPyEndBlockThreads(); |
799 | return obj; | |
800 | } | |
801 | Py_INCREF(Py_None); | |
802 | return Py_None; | |
803 | } | |
804 | ||
805 | ||
806 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
807 | PyObject* o2; | |
808 | PyObject* o3; | |
809 | ||
810 | if (!target) { | |
811 | target = o; | |
812 | } else if (target == Py_None) { | |
813 | Py_DECREF(Py_None); | |
814 | target = o; | |
815 | } else { | |
816 | if (!PyTuple_Check(target)) { | |
817 | o2 = target; | |
818 | target = PyTuple_New(1); | |
819 | PyTuple_SetItem(target, 0, o2); | |
820 | } | |
821 | o3 = PyTuple_New(1); | |
822 | PyTuple_SetItem(o3, 0, o); | |
823 | ||
824 | o2 = target; | |
825 | target = PySequence_Concat(o2, o3); | |
826 | Py_DECREF(o2); | |
827 | Py_DECREF(o3); | |
828 | } | |
829 | return target; | |
830 | } | |
831 | ||
832 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
833 | self->m_x = x; | |
834 | self->m_y = y; | |
835 | } | |
e811c8ce | 836 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
837 | wxPyBeginBlockThreads(); |
838 | PyObject* tup = PyTuple_New(2); | |
839 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
840 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
841 | wxPyEndBlockThreads(); | |
842 | return tup; | |
843 | } | |
844 | ||
845 | #include "wx/wxPython/pyistream.h" | |
846 | ||
847 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
848 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
849 | if (wxis) | |
850 | return new wxPyInputStream(wxis); | |
851 | else | |
852 | return NULL; | |
853 | } | |
854 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
855 | // We use only strings for the streams, not unicode | |
856 | PyObject* str = PyObject_Str(obj); | |
857 | if (! str) { | |
858 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
859 | return; | |
860 | } | |
861 | self->Write(PyString_AS_STRING(str), | |
862 | PyString_GET_SIZE(str)); | |
863 | Py_DECREF(str); | |
864 | } | |
865 | ||
866 | #include "wx/wxPython/pyistream.h" | |
867 | ||
868 | ||
869 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
870 | { | |
871 | public: | |
872 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
873 | ||
874 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
875 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
876 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
877 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
878 | ||
879 | wxString GetProtocol(const wxString& location) { | |
880 | return wxFileSystemHandler::GetProtocol(location); | |
881 | } | |
882 | ||
883 | wxString GetLeftLocation(const wxString& location) { | |
884 | return wxFileSystemHandler::GetLeftLocation(location); | |
885 | } | |
886 | ||
887 | wxString GetAnchor(const wxString& location) { | |
888 | return wxFileSystemHandler::GetAnchor(location); | |
889 | } | |
890 | ||
891 | wxString GetRightLocation(const wxString& location) { | |
892 | return wxFileSystemHandler::GetRightLocation(location); | |
893 | } | |
894 | ||
895 | wxString GetMimeTypeFromExt(const wxString& location) { | |
896 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
897 | } | |
898 | ||
899 | PYPRIVATE; | |
900 | }; | |
901 | ||
902 | ||
903 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
904 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
905 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
906 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
907 | ||
908 | ||
909 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
910 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
911 | return fname.GetFullPath(); | |
912 | } | |
913 | ||
914 | ||
915 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
916 | wxImage& image, | |
917 | long type) { | |
918 | wxMemoryFSHandler::AddFile(filename, image, type); | |
919 | } | |
920 | ||
921 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
922 | const wxBitmap& bitmap, | |
923 | long type) { | |
924 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
925 | } | |
926 | ||
927 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
928 | PyObject* data) { | |
929 | wxMemoryFSHandler::AddFile(filename, | |
930 | // TODO: Verify data type | |
931 | (void*)PyString_AsString(data), | |
932 | (size_t)PyString_Size(data)); | |
933 | } | |
934 | ||
935 | ||
936 | #include "wx/wxPython/pyistream.h" | |
937 | ||
938 | wxImage *new_wxImage(int width,int height,bool clear){ | |
939 | if (width > 0 && height > 0) | |
940 | return new wxImage(width, height, clear); | |
941 | else | |
942 | return new wxImage; | |
943 | } | |
944 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
945 | return new wxImage(bitmap.ConvertToImage()); | |
946 | } | |
947 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
948 | // Copy the source data so the wxImage can clean it up later | |
949 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
950 | if (copy == NULL) { | |
951 | PyErr_NoMemory(); | |
952 | return NULL; | |
953 | } | |
954 | memcpy(copy, data, width*height*3); | |
e811c8ce | 955 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
956 | } |
957 | PyObject *wxImage_GetData(wxImage *self){ | |
958 | unsigned char* data = self->GetData(); | |
959 | int len = self->GetWidth() * self->GetHeight() * 3; | |
960 | PyObject* rv; | |
961 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
962 | return rv; | |
963 | } | |
964 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
965 | unsigned char* dataPtr; | |
966 | ||
967 | if (! PyString_Check(data)) { | |
968 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
969 | return /* NULL */ ; | |
970 | } | |
971 | ||
972 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
973 | dataPtr = (unsigned char*) malloc(len); | |
974 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
975 | self->SetData(dataPtr); | |
976 | // wxImage takes ownership of dataPtr... | |
977 | } | |
978 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
979 | unsigned char* data = self->GetData(); | |
980 | int len = self->GetWidth() * self->GetHeight() * 3; | |
981 | PyObject* rv; | |
982 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
983 | return rv; | |
984 | } | |
985 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
986 | unsigned char* buffer; | |
987 | int size; | |
988 | ||
989 | wxPyBeginBlockThreads(); | |
990 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
991 | goto done; | |
992 | ||
993 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
994 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
995 | goto done; | |
996 | } | |
997 | self->SetData(buffer); | |
998 | done: | |
999 | wxPyEndBlockThreads(); | |
1000 | } | |
1001 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1002 | unsigned char* data = self->GetAlpha(); | |
1003 | if (! data) { | |
1004 | RETURN_NONE(); | |
1005 | } else { | |
1006 | int len = self->GetWidth() * self->GetHeight(); | |
1007 | PyObject* rv; | |
1008 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1009 | return rv; | |
1010 | } | |
1011 | } | |
1012 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1013 | unsigned char* dataPtr; | |
1014 | ||
1015 | if (! PyString_Check(data)) { | |
1016 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1017 | return /* NULL */ ; | |
1018 | } | |
1019 | ||
1020 | size_t len = self->GetWidth() * self->GetHeight(); | |
1021 | dataPtr = (unsigned char*) malloc(len); | |
1022 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1023 | self->SetAlpha(dataPtr); | |
1024 | // wxImage takes ownership of dataPtr... | |
1025 | } | |
1026 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1027 | unsigned char* data = self->GetAlpha(); | |
1028 | int len = self->GetWidth() * self->GetHeight(); | |
1029 | PyObject* rv; | |
1030 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1031 | return rv; | |
1032 | } | |
1033 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1034 | unsigned char* buffer; | |
1035 | int size; | |
1036 | ||
1037 | wxPyBeginBlockThreads(); | |
1038 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1039 | goto done; | |
1040 | ||
1041 | if (size != self->GetWidth() * self->GetHeight()) { | |
1042 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1043 | goto done; | |
1044 | } | |
1045 | self->SetAlpha(buffer); | |
1046 | done: | |
1047 | wxPyEndBlockThreads(); | |
1048 | } | |
1049 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1050 | wxBitmap bitmap(*self); | |
1051 | return bitmap; | |
1052 | } | |
1053 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1054 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1055 | wxBitmap bitmap( mono, 1 ); | |
1056 | return bitmap; | |
1057 | } | |
1058 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1059 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1060 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1061 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1062 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1063 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1064 | if (PyCallable_Check(func)) { | |
1065 | self->Connect(id, lastId, eventType, | |
1066 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1067 | new wxPyCallback(func)); | |
1068 | } | |
1069 | else if (func == Py_None) { | |
1070 | self->Disconnect(id, lastId, eventType, | |
1071 | (wxObjectEventFunction) | |
1072 | &wxPyCallback::EventThunker); | |
1073 | } | |
1074 | else { | |
1075 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1076 | } | |
1077 | } | |
1078 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1079 | return self->Disconnect(id, lastId, eventType, | |
1080 | (wxObjectEventFunction) | |
1081 | &wxPyCallback::EventThunker); | |
1082 | } | |
1083 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1084 | if (_self && _self != Py_None) { | |
1085 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1086 | } | |
1087 | else { | |
1088 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1089 | if (data) { | |
1090 | self->SetClientObject(NULL); // This will delete it too | |
1091 | } | |
1092 | } | |
1093 | } | |
1094 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
3b7224dc RD |
1095 | #if wxUSE_UNICODE |
1096 | return self->m_uniChar; | |
1097 | #else | |
d14a1e28 | 1098 | return 0; |
3b7224dc | 1099 | #endif |
d14a1e28 RD |
1100 | } |
1101 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1102 | self->m_size = size; | |
1103 | } | |
1104 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1105 | self->m_pos = pos; | |
1106 | } | |
1107 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1108 | int count = self->GetNumberOfFiles(); | |
1109 | wxString* files = self->GetFiles(); | |
1110 | PyObject* list = PyList_New(count); | |
1111 | ||
1112 | if (!list) { | |
1113 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1114 | return NULL; | |
1115 | } | |
1116 | ||
1117 | for (int i=0; i<count; i++) { | |
1fc9204a | 1118 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1119 | } |
1120 | return list; | |
1121 | } | |
1122 | ||
1123 | ||
1124 | wxPyApp *new_wxPyApp(){ | |
1125 | wxPythonApp = new wxPyApp(); | |
1126 | return wxPythonApp; | |
1127 | } | |
39f61e25 | 1128 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1129 | |
1130 | void wxApp_CleanUp() { | |
1131 | __wxPyCleanup(); | |
1132 | } | |
1133 | ||
1134 | ||
1135 | wxPyApp* wxGetApp() { | |
1136 | return (wxPyApp*)wxTheApp; | |
1137 | } | |
1138 | ||
1139 | ||
1140 | ||
e811c8ce | 1141 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1142 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1143 | wxWindowList& list = self->GetChildren(); | |
1144 | return wxPy_ConvertList(&list); | |
1145 | } | |
1146 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1147 | ||
1148 | ||
1149 | ||
e811c8ce | 1150 | return False; |
d14a1e28 RD |
1151 | |
1152 | } | |
1153 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1154 | ||
1155 | ||
1156 | ||
e811c8ce | 1157 | return False; |
d14a1e28 RD |
1158 | |
1159 | } | |
1160 | long wxWindow_GetHandle(wxWindow *self){ | |
1161 | return wxPyGetWinHandle(self); | |
1162 | } | |
1163 | ||
1164 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1165 | return wxWindow::FindWindowById(id, parent); | |
1166 | } | |
1167 | ||
1168 | wxWindow* wxFindWindowByName( const wxString& name, | |
1169 | const wxWindow *parent = NULL ) { | |
1170 | return wxWindow::FindWindowByName(name, parent); | |
1171 | } | |
1172 | ||
1173 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1174 | const wxWindow *parent = NULL ) { | |
1175 | return wxWindow::FindWindowByLabel(label, parent); | |
1176 | } | |
1177 | ||
1178 | ||
1179 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1180 | #ifdef __WXMSW__ | |
1181 | wxWindow* win = new wxWindow; | |
1182 | win->SetHWND(hWnd); | |
1183 | win->SubclassWin(hWnd); | |
1184 | return win; | |
1185 | #else | |
39f61e25 | 1186 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1187 | return NULL; |
1188 | #endif | |
1189 | } | |
1190 | ||
1191 | ||
1192 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1193 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1194 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1195 | ||
1196 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1197 | ||
1198 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1199 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1200 | wxMenuItemList& list = self->GetMenuItems(); | |
1201 | return wxPy_ConvertList(&list); | |
1202 | } | |
1203 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1204 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1205 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1206 | if (clientData) { | |
1207 | wxPyClientData* data = new wxPyClientData(clientData); | |
1208 | return self->Append(item, data); | |
1209 | } else | |
1210 | return self->Append(item); | |
1211 | } | |
1212 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1213 | if (clientData) { | |
1214 | wxPyClientData* data = new wxPyClientData(clientData); | |
1215 | return self->Insert(item, pos, data); | |
1216 | } else | |
1217 | return self->Insert(item, pos); | |
1218 | } | |
1219 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1220 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1221 | if (data) { | |
1222 | Py_INCREF(data->m_obj); | |
1223 | return data->m_obj; | |
1224 | } else { | |
1225 | Py_INCREF(Py_None); | |
1226 | return Py_None; | |
1227 | } | |
1228 | } | |
1229 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1230 | wxPyClientData* data = new wxPyClientData(clientData); | |
1231 | self->SetClientObject(n, data); | |
1232 | } | |
1233 | ||
1234 | ||
1235 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1236 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1237 | if (data) { | |
1238 | Py_INCREF(data->m_obj); | |
1239 | return data->m_obj; | |
1240 | } else { | |
1241 | Py_INCREF(Py_None); | |
1242 | return Py_None; | |
1243 | } | |
1244 | } | |
1245 | ||
1246 | // Figure out the type of the sizer item | |
1247 | ||
1248 | struct wxPySizerItemInfo { | |
1249 | wxPySizerItemInfo() | |
e811c8ce RD |
1250 | : window(NULL), sizer(NULL), gotSize(False), |
1251 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1252 | {} |
1253 | ||
1254 | wxWindow* window; | |
1255 | wxSizer* sizer; | |
1256 | bool gotSize; | |
1257 | wxSize size; | |
1258 | bool gotPos; | |
1259 | int pos; | |
1260 | }; | |
1261 | ||
1262 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1263 | ||
1264 | wxPySizerItemInfo info; | |
1265 | wxSize size; | |
1266 | wxSize* sizePtr = &size; | |
1267 | ||
1268 | // Find out what the type of the item is | |
1269 | // try wxWindow | |
1270 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1271 | PyErr_Clear(); | |
1272 | info.window = NULL; | |
1273 | ||
1274 | // try wxSizer | |
1275 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1276 | PyErr_Clear(); | |
1277 | info.sizer = NULL; | |
1278 | ||
1279 | // try wxSize or (w,h) | |
1280 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1281 | info.size = *sizePtr; | |
e811c8ce | 1282 | info.gotSize = True; |
d14a1e28 RD |
1283 | } |
1284 | ||
1285 | // or a single int | |
1286 | if (checkIdx && PyInt_Check(item)) { | |
1287 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1288 | info.gotPos = True; |
d14a1e28 RD |
1289 | } |
1290 | } | |
1291 | } | |
1292 | ||
1293 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1294 | // no expected type, figure out what kind of error message to generate | |
1295 | if ( !checkSize && !checkIdx ) | |
1296 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1297 | else if ( checkSize && !checkIdx ) | |
1298 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1299 | else if ( !checkSize && checkIdx) | |
1300 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1301 | else | |
1302 | // can this one happen? | |
1303 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1304 | } | |
1305 | ||
1306 | return info; | |
1307 | } | |
1308 | ||
1309 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1310 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1311 | } | |
1312 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1313 | ||
1314 | wxPyUserData* data = NULL; | |
1315 | wxPyBeginBlockThreads(); | |
e811c8ce | 1316 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1317 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1318 | data = new wxPyUserData(userData); | |
1319 | wxPyEndBlockThreads(); | |
1320 | ||
1321 | // Now call the real Add method if a valid item type was found | |
1322 | if ( info.window ) | |
1323 | self->Add(info.window, proportion, flag, border, data); | |
1324 | else if ( info.sizer ) | |
1325 | self->Add(info.sizer, proportion, flag, border, data); | |
1326 | else if (info.gotSize) | |
1327 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1328 | proportion, flag, border, data); | |
1329 | } | |
1330 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1331 | ||
1332 | wxPyUserData* data = NULL; | |
1333 | wxPyBeginBlockThreads(); | |
e811c8ce | 1334 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1335 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1336 | data = new wxPyUserData(userData); | |
1337 | wxPyEndBlockThreads(); | |
1338 | ||
1339 | // Now call the real Insert method if a valid item type was found | |
1340 | if ( info.window ) | |
1341 | self->Insert(before, info.window, proportion, flag, border, data); | |
1342 | else if ( info.sizer ) | |
1343 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1344 | else if (info.gotSize) | |
1345 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1346 | proportion, flag, border, data); | |
1347 | } | |
1348 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1349 | ||
1350 | wxPyUserData* data = NULL; | |
1351 | wxPyBeginBlockThreads(); | |
e811c8ce | 1352 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1353 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1354 | data = new wxPyUserData(userData); | |
1355 | wxPyEndBlockThreads(); | |
1356 | ||
1357 | // Now call the real Prepend method if a valid item type was found | |
1358 | if ( info.window ) | |
1359 | self->Prepend(info.window, proportion, flag, border, data); | |
1360 | else if ( info.sizer ) | |
1361 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1362 | else if (info.gotSize) | |
1363 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1364 | proportion, flag, border, data); | |
1365 | } | |
1366 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1367 | wxPyBeginBlockThreads(); | |
e811c8ce | 1368 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1369 | wxPyEndBlockThreads(); |
1370 | if ( info.window ) | |
1371 | return self->Remove(info.window); | |
1372 | else if ( info.sizer ) | |
1373 | return self->Remove(info.sizer); | |
1374 | else if ( info.gotPos ) | |
1375 | return self->Remove(info.pos); | |
1376 | else | |
e811c8ce | 1377 | return False; |
d14a1e28 | 1378 | } |
e811c8ce | 1379 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1380 | wxPyBeginBlockThreads(); |
e811c8ce | 1381 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1382 | wxPyEndBlockThreads(); |
1383 | if ( info.window ) | |
1384 | self->SetItemMinSize(info.window, size); | |
1385 | else if ( info.sizer ) | |
1386 | self->SetItemMinSize(info.sizer, size); | |
1387 | else if ( info.gotPos ) | |
1388 | self->SetItemMinSize(info.pos, size); | |
1389 | } | |
1390 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1391 | wxSizerItemList& list = self->GetChildren(); | |
1392 | return wxPy_ConvertList(&list); | |
1393 | } | |
1394 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
e811c8ce | 1395 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1396 | if ( info.window ) |
1397 | self->Show(info.window, show); | |
1398 | else if ( info.sizer ) | |
1399 | self->Show(info.sizer, show); | |
1400 | } | |
1401 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
e811c8ce | 1402 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1403 | if ( info.window ) |
1404 | self->Hide(info.window); | |
1405 | else if ( info.sizer ) | |
1406 | self->Hide(info.sizer); | |
1407 | } | |
1408 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
e811c8ce | 1409 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1410 | if ( info.window ) |
1411 | return self->IsShown(info.window); | |
1412 | else if ( info.sizer ) | |
1413 | return self->IsShown(info.sizer); | |
1414 | else | |
e811c8ce | 1415 | return False; |
d14a1e28 RD |
1416 | } |
1417 | ||
1418 | // See pyclasses.h | |
1419 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1420 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1421 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1422 | ||
1423 | ||
1424 | ||
1425 | ||
1426 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1427 | { | |
1428 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1429 | } | |
1430 | ||
1431 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1432 | { | |
1433 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1434 | } | |
1435 | ||
1436 | ||
e811c8ce RD |
1437 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1438 | self->SetRow(row); | |
1439 | self->SetCol(col); | |
1440 | } | |
1441 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1442 | wxPyBeginBlockThreads(); |
1443 | PyObject* tup = PyTuple_New(2); | |
1444 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1445 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1446 | wxPyEndBlockThreads(); | |
1447 | return tup; | |
1448 | } | |
e811c8ce RD |
1449 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1450 | self->SetRowspan(rowspan); | |
1451 | self->SetColspan(colspan); | |
1452 | } | |
1453 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1454 | wxPyBeginBlockThreads(); |
1455 | PyObject* tup = PyTuple_New(2); | |
1456 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1457 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1458 | wxPyEndBlockThreads(); | |
1459 | return tup; | |
1460 | } | |
1461 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1462 | ||
1463 | wxPyUserData* data = NULL; | |
1464 | wxPyBeginBlockThreads(); | |
e811c8ce | 1465 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1466 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1467 | data = new wxPyUserData(userData); | |
1468 | wxPyEndBlockThreads(); | |
1469 | ||
1470 | // Now call the real Add method if a valid item type was found | |
1471 | if ( info.window ) | |
1472 | return self->Add(info.window, pos, span, flag, border, data); | |
1473 | else if ( info.sizer ) | |
1474 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1475 | else if (info.gotSize) | |
1476 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1477 | pos, span, flag, border, data); | |
e811c8ce | 1478 | return False; |
d14a1e28 RD |
1479 | } |
1480 | ||
1481 | ||
1482 | #ifdef __cplusplus | |
1483 | extern "C" { | |
1484 | #endif | |
196addbf RD |
1485 | static int _wrap_EmptyString_set(PyObject *_val) { |
1486 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1487 | return 1; | |
1488 | } | |
1489 | ||
1490 | ||
1491 | static PyObject *_wrap_EmptyString_get() { | |
1492 | PyObject *pyobj; | |
1493 | ||
1494 | { | |
1495 | #if wxUSE_UNICODE | |
1496 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1497 | #else | |
1498 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1499 | #endif | |
1500 | } | |
1501 | return pyobj; | |
1502 | } | |
1503 | ||
1504 | ||
d14a1e28 RD |
1505 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1506 | PyObject *resultobj; | |
1507 | wxObject *arg1 = (wxObject *) 0 ; | |
1508 | wxString result; | |
1509 | PyObject * obj0 = 0 ; | |
1510 | char *kwnames[] = { | |
1511 | (char *) "self", NULL | |
1512 | }; | |
1513 | ||
1514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1516 | { | |
1517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1518 | result = wxObject_GetClassName(arg1); | |
1519 | ||
1520 | wxPyEndAllowThreads(__tstate); | |
1521 | if (PyErr_Occurred()) SWIG_fail; | |
1522 | } | |
1523 | { | |
1524 | #if wxUSE_UNICODE | |
1525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1526 | #else | |
1527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1528 | #endif | |
1529 | } | |
1530 | return resultobj; | |
1531 | fail: | |
1532 | return NULL; | |
1533 | } | |
1534 | ||
1535 | ||
1536 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1537 | PyObject *resultobj; | |
1538 | wxObject *arg1 = (wxObject *) 0 ; | |
1539 | PyObject * obj0 = 0 ; | |
1540 | char *kwnames[] = { | |
1541 | (char *) "self", NULL | |
1542 | }; | |
1543 | ||
1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1546 | { | |
1547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1548 | wxObject_Destroy(arg1); | |
1549 | ||
1550 | wxPyEndAllowThreads(__tstate); | |
1551 | if (PyErr_Occurred()) SWIG_fail; | |
1552 | } | |
1553 | Py_INCREF(Py_None); resultobj = Py_None; | |
1554 | return resultobj; | |
1555 | fail: | |
1556 | return NULL; | |
1557 | } | |
1558 | ||
1559 | ||
1560 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1561 | PyObject *obj; | |
1562 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1563 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1564 | Py_INCREF(obj); | |
1565 | return Py_BuildValue((char *)""); | |
1566 | } | |
1567 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject *resultobj; | |
1569 | wxSize *arg1 = (wxSize *) 0 ; | |
1570 | int arg2 ; | |
1571 | PyObject * obj0 = 0 ; | |
1572 | char *kwnames[] = { | |
1573 | (char *) "self",(char *) "x", NULL | |
1574 | }; | |
1575 | ||
1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_width_set",kwnames,&obj0,&arg2)) goto fail; | |
1577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1578 | if (arg1) (arg1)->x = arg2; | |
1579 | ||
1580 | Py_INCREF(Py_None); resultobj = Py_None; | |
1581 | return resultobj; | |
1582 | fail: | |
1583 | return NULL; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject *resultobj; | |
1589 | wxSize *arg1 = (wxSize *) 0 ; | |
1590 | int result; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1598 | result = (int) ((arg1)->x); | |
1599 | ||
1600 | resultobj = PyInt_FromLong((long)result); | |
1601 | return resultobj; | |
1602 | fail: | |
1603 | return NULL; | |
1604 | } | |
1605 | ||
1606 | ||
1607 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject *resultobj; | |
1609 | wxSize *arg1 = (wxSize *) 0 ; | |
1610 | int arg2 ; | |
1611 | PyObject * obj0 = 0 ; | |
1612 | char *kwnames[] = { | |
1613 | (char *) "self",(char *) "y", NULL | |
1614 | }; | |
1615 | ||
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_height_set",kwnames,&obj0,&arg2)) goto fail; | |
1617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1618 | if (arg1) (arg1)->y = arg2; | |
1619 | ||
1620 | Py_INCREF(Py_None); resultobj = Py_None; | |
1621 | return resultobj; | |
1622 | fail: | |
1623 | return NULL; | |
1624 | } | |
1625 | ||
1626 | ||
1627 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1628 | PyObject *resultobj; | |
1629 | wxSize *arg1 = (wxSize *) 0 ; | |
1630 | int result; | |
1631 | PyObject * obj0 = 0 ; | |
1632 | char *kwnames[] = { | |
1633 | (char *) "self", NULL | |
1634 | }; | |
1635 | ||
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1638 | result = (int) ((arg1)->y); | |
1639 | ||
1640 | resultobj = PyInt_FromLong((long)result); | |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | int arg1 = (int) 0 ; | |
1650 | int arg2 = (int) 0 ; | |
1651 | wxSize *result; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "w",(char *) "h", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Size",kwnames,&arg1,&arg2)) goto fail; | |
1657 | { | |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1659 | result = (wxSize *)new wxSize(arg1,arg2); | |
1660 | ||
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
1664 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1665 | return resultobj; | |
1666 | fail: | |
1667 | return NULL; | |
1668 | } | |
1669 | ||
1670 | ||
1671 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1672 | PyObject *resultobj; | |
1673 | wxSize *arg1 = (wxSize *) 0 ; | |
1674 | PyObject * obj0 = 0 ; | |
1675 | char *kwnames[] = { | |
1676 | (char *) "self", NULL | |
1677 | }; | |
1678 | ||
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | delete arg1; | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
1688 | Py_INCREF(Py_None); resultobj = Py_None; | |
1689 | return resultobj; | |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject *resultobj; | |
1697 | wxSize *arg1 = (wxSize *) 0 ; | |
1698 | wxSize *arg2 = 0 ; | |
1699 | bool result; | |
1700 | wxSize temp2 ; | |
1701 | PyObject * obj0 = 0 ; | |
1702 | PyObject * obj1 = 0 ; | |
1703 | char *kwnames[] = { | |
1704 | (char *) "self",(char *) "sz", NULL | |
1705 | }; | |
1706 | ||
1707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1709 | { | |
1710 | arg2 = &temp2; | |
1711 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1712 | } | |
1713 | { | |
1714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 1715 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1716 | |
1717 | wxPyEndAllowThreads(__tstate); | |
1718 | if (PyErr_Occurred()) SWIG_fail; | |
1719 | } | |
1720 | resultobj = PyInt_FromLong((long)result); | |
1721 | return resultobj; | |
1722 | fail: | |
1723 | return NULL; | |
1724 | } | |
1725 | ||
1726 | ||
1727 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1728 | PyObject *resultobj; | |
1729 | wxSize *arg1 = (wxSize *) 0 ; | |
1730 | wxSize *arg2 = 0 ; | |
1731 | bool result; | |
1732 | wxSize temp2 ; | |
1733 | PyObject * obj0 = 0 ; | |
1734 | PyObject * obj1 = 0 ; | |
1735 | char *kwnames[] = { | |
1736 | (char *) "self",(char *) "sz", NULL | |
1737 | }; | |
1738 | ||
1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1741 | { | |
1742 | arg2 = &temp2; | |
1743 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1744 | } | |
1745 | { | |
1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 1747 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1748 | |
1749 | wxPyEndAllowThreads(__tstate); | |
1750 | if (PyErr_Occurred()) SWIG_fail; | |
1751 | } | |
1752 | resultobj = PyInt_FromLong((long)result); | |
1753 | return resultobj; | |
1754 | fail: | |
1755 | return NULL; | |
1756 | } | |
1757 | ||
1758 | ||
1759 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1760 | PyObject *resultobj; | |
1761 | wxSize *arg1 = (wxSize *) 0 ; | |
1762 | wxSize *arg2 = 0 ; | |
1763 | wxSize result; | |
1764 | wxSize temp2 ; | |
1765 | PyObject * obj0 = 0 ; | |
1766 | PyObject * obj1 = 0 ; | |
1767 | char *kwnames[] = { | |
1768 | (char *) "self",(char *) "sz", NULL | |
1769 | }; | |
1770 | ||
1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1773 | { | |
1774 | arg2 = &temp2; | |
1775 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1776 | } | |
1777 | { | |
1778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1779 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1780 | ||
1781 | wxPyEndAllowThreads(__tstate); | |
1782 | if (PyErr_Occurred()) SWIG_fail; | |
1783 | } | |
1784 | { | |
1785 | wxSize * resultptr; | |
1786 | resultptr = new wxSize((wxSize &) result); | |
1787 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1788 | } | |
1789 | return resultobj; | |
1790 | fail: | |
1791 | return NULL; | |
1792 | } | |
1793 | ||
1794 | ||
1795 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1796 | PyObject *resultobj; | |
1797 | wxSize *arg1 = (wxSize *) 0 ; | |
1798 | wxSize *arg2 = 0 ; | |
1799 | wxSize result; | |
1800 | wxSize temp2 ; | |
1801 | PyObject * obj0 = 0 ; | |
1802 | PyObject * obj1 = 0 ; | |
1803 | char *kwnames[] = { | |
1804 | (char *) "self",(char *) "sz", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1809 | { | |
1810 | arg2 = &temp2; | |
1811 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1812 | } | |
1813 | { | |
1814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1815 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1816 | ||
1817 | wxPyEndAllowThreads(__tstate); | |
1818 | if (PyErr_Occurred()) SWIG_fail; | |
1819 | } | |
1820 | { | |
1821 | wxSize * resultptr; | |
1822 | resultptr = new wxSize((wxSize &) result); | |
1823 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1824 | } | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject *resultobj; | |
1833 | wxSize *arg1 = (wxSize *) 0 ; | |
1834 | wxSize *arg2 = 0 ; | |
1835 | wxSize temp2 ; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | PyObject * obj1 = 0 ; | |
1838 | char *kwnames[] = { | |
1839 | (char *) "self",(char *) "sz", NULL | |
1840 | }; | |
1841 | ||
1842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1844 | { | |
1845 | arg2 = &temp2; | |
1846 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1847 | } | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | (arg1)->IncTo((wxSize const &)*arg2); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | Py_INCREF(Py_None); resultobj = Py_None; | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxSize *arg1 = (wxSize *) 0 ; | |
1865 | wxSize *arg2 = 0 ; | |
1866 | wxSize temp2 ; | |
1867 | PyObject * obj0 = 0 ; | |
1868 | PyObject * obj1 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self",(char *) "sz", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | { | |
1876 | arg2 = &temp2; | |
1877 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1878 | } | |
1879 | { | |
1880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1881 | (arg1)->DecTo((wxSize const &)*arg2); | |
1882 | ||
1883 | wxPyEndAllowThreads(__tstate); | |
1884 | if (PyErr_Occurred()) SWIG_fail; | |
1885 | } | |
1886 | Py_INCREF(Py_None); resultobj = Py_None; | |
1887 | return resultobj; | |
1888 | fail: | |
1889 | return NULL; | |
1890 | } | |
1891 | ||
1892 | ||
1893 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1894 | PyObject *resultobj; | |
1895 | wxSize *arg1 = (wxSize *) 0 ; | |
1896 | int arg2 ; | |
1897 | int arg3 ; | |
1898 | PyObject * obj0 = 0 ; | |
1899 | char *kwnames[] = { | |
e811c8ce | 1900 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1901 | }; |
1902 | ||
1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Size_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1905 | { | |
1906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1907 | (arg1)->Set(arg2,arg3); | |
1908 | ||
1909 | wxPyEndAllowThreads(__tstate); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | } | |
1912 | Py_INCREF(Py_None); resultobj = Py_None; | |
1913 | return resultobj; | |
1914 | fail: | |
1915 | return NULL; | |
1916 | } | |
1917 | ||
1918 | ||
1919 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1920 | PyObject *resultobj; | |
1921 | wxSize *arg1 = (wxSize *) 0 ; | |
1922 | int arg2 ; | |
1923 | PyObject * obj0 = 0 ; | |
1924 | char *kwnames[] = { | |
1925 | (char *) "self",(char *) "w", NULL | |
1926 | }; | |
1927 | ||
1928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1930 | { | |
1931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1932 | (arg1)->SetWidth(arg2); | |
1933 | ||
1934 | wxPyEndAllowThreads(__tstate); | |
1935 | if (PyErr_Occurred()) SWIG_fail; | |
1936 | } | |
1937 | Py_INCREF(Py_None); resultobj = Py_None; | |
1938 | return resultobj; | |
1939 | fail: | |
1940 | return NULL; | |
1941 | } | |
1942 | ||
1943 | ||
1944 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1945 | PyObject *resultobj; | |
1946 | wxSize *arg1 = (wxSize *) 0 ; | |
1947 | int arg2 ; | |
1948 | PyObject * obj0 = 0 ; | |
1949 | char *kwnames[] = { | |
1950 | (char *) "self",(char *) "h", NULL | |
1951 | }; | |
1952 | ||
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
1954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1955 | { | |
1956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1957 | (arg1)->SetHeight(arg2); | |
1958 | ||
1959 | wxPyEndAllowThreads(__tstate); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
1961 | } | |
1962 | Py_INCREF(Py_None); resultobj = Py_None; | |
1963 | return resultobj; | |
1964 | fail: | |
1965 | return NULL; | |
1966 | } | |
1967 | ||
1968 | ||
1969 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject *resultobj; | |
1971 | wxSize *arg1 = (wxSize *) 0 ; | |
1972 | int result; | |
1973 | PyObject * obj0 = 0 ; | |
1974 | char *kwnames[] = { | |
1975 | (char *) "self", NULL | |
1976 | }; | |
1977 | ||
1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
1979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1980 | { | |
1981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1982 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
1983 | ||
1984 | wxPyEndAllowThreads(__tstate); | |
1985 | if (PyErr_Occurred()) SWIG_fail; | |
1986 | } | |
1987 | resultobj = PyInt_FromLong((long)result); | |
1988 | return resultobj; | |
1989 | fail: | |
1990 | return NULL; | |
1991 | } | |
1992 | ||
1993 | ||
1994 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject *resultobj; | |
1996 | wxSize *arg1 = (wxSize *) 0 ; | |
1997 | int result; | |
1998 | PyObject * obj0 = 0 ; | |
1999 | char *kwnames[] = { | |
2000 | (char *) "self", NULL | |
2001 | }; | |
2002 | ||
2003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2005 | { | |
2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2007 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2008 | ||
2009 | wxPyEndAllowThreads(__tstate); | |
2010 | if (PyErr_Occurred()) SWIG_fail; | |
2011 | } | |
2012 | resultobj = PyInt_FromLong((long)result); | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | return NULL; | |
2016 | } | |
2017 | ||
2018 | ||
e811c8ce | 2019 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2020 | PyObject *resultobj; |
2021 | wxSize *arg1 = (wxSize *) 0 ; | |
2022 | PyObject *result; | |
2023 | PyObject * obj0 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self", NULL | |
2026 | }; | |
2027 | ||
e811c8ce | 2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2030 | { | |
2031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2032 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2033 | |
2034 | wxPyEndAllowThreads(__tstate); | |
2035 | if (PyErr_Occurred()) SWIG_fail; | |
2036 | } | |
2037 | resultobj = result; | |
2038 | return resultobj; | |
2039 | fail: | |
2040 | return NULL; | |
2041 | } | |
2042 | ||
2043 | ||
2044 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2045 | PyObject *obj; | |
2046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2047 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2048 | Py_INCREF(obj); | |
2049 | return Py_BuildValue((char *)""); | |
2050 | } | |
2051 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject *resultobj; | |
2053 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2054 | double arg2 ; | |
2055 | PyObject * obj0 = 0 ; | |
2056 | char *kwnames[] = { | |
2057 | (char *) "self",(char *) "x", NULL | |
2058 | }; | |
2059 | ||
2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_x_set",kwnames,&obj0,&arg2)) goto fail; | |
2061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2062 | if (arg1) (arg1)->x = arg2; | |
2063 | ||
2064 | Py_INCREF(Py_None); resultobj = Py_None; | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2074 | double result; | |
2075 | PyObject * obj0 = 0 ; | |
2076 | char *kwnames[] = { | |
2077 | (char *) "self", NULL | |
2078 | }; | |
2079 | ||
2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2082 | result = (double) ((arg1)->x); | |
2083 | ||
2084 | resultobj = PyFloat_FromDouble(result); | |
2085 | return resultobj; | |
2086 | fail: | |
2087 | return NULL; | |
2088 | } | |
2089 | ||
2090 | ||
2091 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2092 | PyObject *resultobj; | |
2093 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2094 | double arg2 ; | |
2095 | PyObject * obj0 = 0 ; | |
2096 | char *kwnames[] = { | |
2097 | (char *) "self",(char *) "y", NULL | |
2098 | }; | |
2099 | ||
2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_y_set",kwnames,&obj0,&arg2)) goto fail; | |
2101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2102 | if (arg1) (arg1)->y = arg2; | |
2103 | ||
2104 | Py_INCREF(Py_None); resultobj = Py_None; | |
2105 | return resultobj; | |
2106 | fail: | |
2107 | return NULL; | |
2108 | } | |
2109 | ||
2110 | ||
2111 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2112 | PyObject *resultobj; | |
2113 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2114 | double result; | |
2115 | PyObject * obj0 = 0 ; | |
2116 | char *kwnames[] = { | |
2117 | (char *) "self", NULL | |
2118 | }; | |
2119 | ||
2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2122 | result = (double) ((arg1)->y); | |
2123 | ||
2124 | resultobj = PyFloat_FromDouble(result); | |
2125 | return resultobj; | |
2126 | fail: | |
2127 | return NULL; | |
2128 | } | |
2129 | ||
2130 | ||
2131 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject *resultobj; | |
2133 | double arg1 = (double) 0.0 ; | |
2134 | double arg2 = (double) 0.0 ; | |
2135 | wxRealPoint *result; | |
2136 | char *kwnames[] = { | |
2137 | (char *) "x",(char *) "y", NULL | |
2138 | }; | |
2139 | ||
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_RealPoint",kwnames,&arg1,&arg2)) goto fail; | |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
2148 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
2149 | return resultobj; | |
2150 | fail: | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
2155 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2156 | PyObject *resultobj; | |
2157 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2158 | PyObject * obj0 = 0 ; | |
2159 | char *kwnames[] = { | |
2160 | (char *) "self", NULL | |
2161 | }; | |
2162 | ||
2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2165 | { | |
2166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2167 | delete arg1; | |
2168 | ||
2169 | wxPyEndAllowThreads(__tstate); | |
2170 | if (PyErr_Occurred()) SWIG_fail; | |
2171 | } | |
2172 | Py_INCREF(Py_None); resultobj = Py_None; | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
e811c8ce | 2179 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2180 | PyObject *resultobj; |
2181 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2182 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2183 | bool result; |
d14a1e28 RD |
2184 | wxRealPoint temp2 ; |
2185 | PyObject * obj0 = 0 ; | |
2186 | PyObject * obj1 = 0 ; | |
2187 | char *kwnames[] = { | |
2188 | (char *) "self",(char *) "pt", NULL | |
2189 | }; | |
2190 | ||
e811c8ce | 2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2193 | { | |
2194 | arg2 = &temp2; | |
2195 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2196 | } | |
2197 | { | |
2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2199 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2200 | |
2201 | wxPyEndAllowThreads(__tstate); | |
2202 | if (PyErr_Occurred()) SWIG_fail; | |
2203 | } | |
e811c8ce | 2204 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2205 | return resultobj; |
2206 | fail: | |
2207 | return NULL; | |
2208 | } | |
2209 | ||
2210 | ||
e811c8ce | 2211 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2212 | PyObject *resultobj; |
2213 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2214 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2215 | bool result; |
d14a1e28 RD |
2216 | wxRealPoint temp2 ; |
2217 | PyObject * obj0 = 0 ; | |
2218 | PyObject * obj1 = 0 ; | |
2219 | char *kwnames[] = { | |
2220 | (char *) "self",(char *) "pt", NULL | |
2221 | }; | |
2222 | ||
e811c8ce | 2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2225 | { | |
2226 | arg2 = &temp2; | |
2227 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2228 | } | |
2229 | { | |
2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2231 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2232 | |
2233 | wxPyEndAllowThreads(__tstate); | |
2234 | if (PyErr_Occurred()) SWIG_fail; | |
2235 | } | |
e811c8ce | 2236 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2237 | return resultobj; |
2238 | fail: | |
2239 | return NULL; | |
2240 | } | |
2241 | ||
2242 | ||
e811c8ce | 2243 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2244 | PyObject *resultobj; |
2245 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2246 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2247 | wxRealPoint result; |
d14a1e28 RD |
2248 | wxRealPoint temp2 ; |
2249 | PyObject * obj0 = 0 ; | |
2250 | PyObject * obj1 = 0 ; | |
2251 | char *kwnames[] = { | |
2252 | (char *) "self",(char *) "pt", NULL | |
2253 | }; | |
2254 | ||
e811c8ce | 2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2257 | { | |
2258 | arg2 = &temp2; | |
2259 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2260 | } | |
2261 | { | |
2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2263 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2264 | |
2265 | wxPyEndAllowThreads(__tstate); | |
2266 | if (PyErr_Occurred()) SWIG_fail; | |
2267 | } | |
e811c8ce RD |
2268 | { |
2269 | wxRealPoint * resultptr; | |
2270 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2271 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2272 | } | |
d14a1e28 RD |
2273 | return resultobj; |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
e811c8ce | 2279 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2280 | PyObject *resultobj; |
2281 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2282 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2283 | wxRealPoint result; |
d14a1e28 RD |
2284 | wxRealPoint temp2 ; |
2285 | PyObject * obj0 = 0 ; | |
2286 | PyObject * obj1 = 0 ; | |
2287 | char *kwnames[] = { | |
2288 | (char *) "self",(char *) "pt", NULL | |
2289 | }; | |
2290 | ||
e811c8ce | 2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2293 | { | |
2294 | arg2 = &temp2; | |
2295 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2296 | } | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2299 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2300 | |
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
e811c8ce RD |
2304 | { |
2305 | wxRealPoint * resultptr; | |
2306 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2307 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2308 | } | |
d14a1e28 RD |
2309 | return resultobj; |
2310 | fail: | |
2311 | return NULL; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2316 | PyObject *resultobj; | |
2317 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2318 | double arg2 ; | |
2319 | double arg3 ; | |
2320 | PyObject * obj0 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:RealPoint_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | wxRealPoint_Set(arg1,arg2,arg3); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | Py_INCREF(Py_None); resultobj = Py_None; | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
e811c8ce | 2341 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2342 | PyObject *resultobj; |
2343 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2344 | PyObject *result; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | char *kwnames[] = { | |
2347 | (char *) "self", NULL | |
2348 | }; | |
2349 | ||
e811c8ce | 2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2352 | { | |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2354 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2355 | |
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | } | |
2359 | resultobj = result; | |
2360 | return resultobj; | |
2361 | fail: | |
2362 | return NULL; | |
2363 | } | |
2364 | ||
2365 | ||
2366 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2367 | PyObject *obj; | |
2368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2369 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2370 | Py_INCREF(obj); | |
2371 | return Py_BuildValue((char *)""); | |
2372 | } | |
2373 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject *resultobj; | |
2375 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2376 | int arg2 ; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self",(char *) "x", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_x_set",kwnames,&obj0,&arg2)) goto fail; | |
2383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2384 | if (arg1) (arg1)->x = arg2; | |
2385 | ||
2386 | Py_INCREF(Py_None); resultobj = Py_None; | |
2387 | return resultobj; | |
2388 | fail: | |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
2393 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject *resultobj; | |
2395 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2396 | int result; | |
2397 | PyObject * obj0 = 0 ; | |
2398 | char *kwnames[] = { | |
2399 | (char *) "self", NULL | |
2400 | }; | |
2401 | ||
2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2404 | result = (int) ((arg1)->x); | |
2405 | ||
2406 | resultobj = PyInt_FromLong((long)result); | |
2407 | return resultobj; | |
2408 | fail: | |
2409 | return NULL; | |
2410 | } | |
2411 | ||
2412 | ||
2413 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject *resultobj; | |
2415 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2416 | int arg2 ; | |
2417 | PyObject * obj0 = 0 ; | |
2418 | char *kwnames[] = { | |
2419 | (char *) "self",(char *) "y", NULL | |
2420 | }; | |
2421 | ||
2422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_y_set",kwnames,&obj0,&arg2)) goto fail; | |
2423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2424 | if (arg1) (arg1)->y = arg2; | |
2425 | ||
2426 | Py_INCREF(Py_None); resultobj = Py_None; | |
2427 | return resultobj; | |
2428 | fail: | |
2429 | return NULL; | |
2430 | } | |
2431 | ||
2432 | ||
2433 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2434 | PyObject *resultobj; | |
2435 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2436 | int result; | |
2437 | PyObject * obj0 = 0 ; | |
2438 | char *kwnames[] = { | |
2439 | (char *) "self", NULL | |
2440 | }; | |
2441 | ||
2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2444 | result = (int) ((arg1)->y); | |
2445 | ||
2446 | resultobj = PyInt_FromLong((long)result); | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
2453 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2454 | PyObject *resultobj; | |
2455 | int arg1 = (int) 0 ; | |
2456 | int arg2 = (int) 0 ; | |
2457 | wxPoint *result; | |
2458 | char *kwnames[] = { | |
2459 | (char *) "x",(char *) "y", NULL | |
2460 | }; | |
2461 | ||
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Point",kwnames,&arg1,&arg2)) goto fail; | |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
2477 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject *resultobj; | |
2479 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2480 | PyObject * obj0 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "self", NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2487 | { | |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | delete arg1; | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) SWIG_fail; | |
2493 | } | |
2494 | Py_INCREF(Py_None); resultobj = Py_None; | |
2495 | return resultobj; | |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
2501 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject *resultobj; | |
2503 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2504 | wxPoint *arg2 = 0 ; | |
2505 | bool result; | |
2506 | wxPoint temp2 ; | |
2507 | PyObject * obj0 = 0 ; | |
2508 | PyObject * obj1 = 0 ; | |
2509 | char *kwnames[] = { | |
e811c8ce | 2510 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2511 | }; |
2512 | ||
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2515 | { | |
2516 | arg2 = &temp2; | |
2517 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2518 | } | |
2519 | { | |
2520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2521 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2522 | |
2523 | wxPyEndAllowThreads(__tstate); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
2526 | resultobj = PyInt_FromLong((long)result); | |
2527 | return resultobj; | |
2528 | fail: | |
2529 | return NULL; | |
2530 | } | |
2531 | ||
2532 | ||
2533 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2534 | PyObject *resultobj; | |
2535 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2536 | wxPoint *arg2 = 0 ; | |
2537 | bool result; | |
2538 | wxPoint temp2 ; | |
2539 | PyObject * obj0 = 0 ; | |
2540 | PyObject * obj1 = 0 ; | |
2541 | char *kwnames[] = { | |
e811c8ce | 2542 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2543 | }; |
2544 | ||
2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2547 | { | |
2548 | arg2 = &temp2; | |
2549 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2550 | } | |
2551 | { | |
2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2553 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2554 | |
2555 | wxPyEndAllowThreads(__tstate); | |
2556 | if (PyErr_Occurred()) SWIG_fail; | |
2557 | } | |
2558 | resultobj = PyInt_FromLong((long)result); | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
2565 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2566 | PyObject *resultobj; | |
2567 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2568 | wxPoint *arg2 = 0 ; | |
2569 | wxPoint result; | |
2570 | wxPoint temp2 ; | |
2571 | PyObject * obj0 = 0 ; | |
2572 | PyObject * obj1 = 0 ; | |
2573 | char *kwnames[] = { | |
e811c8ce | 2574 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2575 | }; |
2576 | ||
2577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2579 | { | |
2580 | arg2 = &temp2; | |
2581 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2582 | } | |
2583 | { | |
2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2585 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2586 | |
2587 | wxPyEndAllowThreads(__tstate); | |
2588 | if (PyErr_Occurred()) SWIG_fail; | |
2589 | } | |
2590 | { | |
2591 | wxPoint * resultptr; | |
2592 | resultptr = new wxPoint((wxPoint &) result); | |
2593 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2594 | } | |
2595 | return resultobj; | |
2596 | fail: | |
2597 | return NULL; | |
2598 | } | |
2599 | ||
2600 | ||
2601 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2602 | PyObject *resultobj; | |
2603 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2604 | wxPoint *arg2 = 0 ; | |
2605 | wxPoint result; | |
2606 | wxPoint temp2 ; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | PyObject * obj1 = 0 ; | |
2609 | char *kwnames[] = { | |
e811c8ce | 2610 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2611 | }; |
2612 | ||
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2615 | { | |
2616 | arg2 = &temp2; | |
2617 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2618 | } | |
2619 | { | |
2620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2621 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2622 | |
2623 | wxPyEndAllowThreads(__tstate); | |
2624 | if (PyErr_Occurred()) SWIG_fail; | |
2625 | } | |
2626 | { | |
2627 | wxPoint * resultptr; | |
2628 | resultptr = new wxPoint((wxPoint &) result); | |
2629 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2630 | } | |
2631 | return resultobj; | |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
2637 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2638 | PyObject *resultobj; | |
2639 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2640 | wxPoint *arg2 = 0 ; | |
2641 | wxPoint *result; | |
2642 | wxPoint temp2 ; | |
2643 | PyObject * obj0 = 0 ; | |
2644 | PyObject * obj1 = 0 ; | |
2645 | char *kwnames[] = { | |
e811c8ce | 2646 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2647 | }; |
2648 | ||
2649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2651 | { | |
2652 | arg2 = &temp2; | |
2653 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2654 | } | |
2655 | { | |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | { | |
2658 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2659 | result = (wxPoint *) &_result_ref; | |
2660 | } | |
2661 | ||
2662 | wxPyEndAllowThreads(__tstate); | |
2663 | if (PyErr_Occurred()) SWIG_fail; | |
2664 | } | |
2665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2666 | return resultobj; | |
2667 | fail: | |
2668 | return NULL; | |
2669 | } | |
2670 | ||
2671 | ||
2672 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject *resultobj; | |
2674 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2675 | wxPoint *arg2 = 0 ; | |
2676 | wxPoint *result; | |
2677 | wxPoint temp2 ; | |
2678 | PyObject * obj0 = 0 ; | |
2679 | PyObject * obj1 = 0 ; | |
2680 | char *kwnames[] = { | |
e811c8ce | 2681 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2682 | }; |
2683 | ||
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2686 | { | |
2687 | arg2 = &temp2; | |
2688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2689 | } | |
2690 | { | |
2691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2692 | { | |
2693 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2694 | result = (wxPoint *) &_result_ref; | |
2695 | } | |
2696 | ||
2697 | wxPyEndAllowThreads(__tstate); | |
2698 | if (PyErr_Occurred()) SWIG_fail; | |
2699 | } | |
2700 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2701 | return resultobj; | |
2702 | fail: | |
2703 | return NULL; | |
2704 | } | |
2705 | ||
2706 | ||
2707 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2708 | PyObject *resultobj; | |
2709 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2710 | long arg2 ; | |
2711 | long arg3 ; | |
2712 | PyObject * obj0 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:Point_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2719 | { | |
2720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2721 | wxPoint_Set(arg1,arg2,arg3); | |
2722 | ||
2723 | wxPyEndAllowThreads(__tstate); | |
2724 | if (PyErr_Occurred()) SWIG_fail; | |
2725 | } | |
2726 | Py_INCREF(Py_None); resultobj = Py_None; | |
2727 | return resultobj; | |
2728 | fail: | |
2729 | return NULL; | |
2730 | } | |
2731 | ||
2732 | ||
e811c8ce | 2733 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2734 | PyObject *resultobj; |
2735 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2736 | PyObject *result; | |
2737 | PyObject * obj0 = 0 ; | |
2738 | char *kwnames[] = { | |
2739 | (char *) "self", NULL | |
2740 | }; | |
2741 | ||
e811c8ce | 2742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2744 | { | |
2745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2746 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2747 | |
2748 | wxPyEndAllowThreads(__tstate); | |
2749 | if (PyErr_Occurred()) SWIG_fail; | |
2750 | } | |
2751 | resultobj = result; | |
2752 | return resultobj; | |
2753 | fail: | |
2754 | return NULL; | |
2755 | } | |
2756 | ||
2757 | ||
2758 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2759 | PyObject *obj; | |
2760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2761 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2762 | Py_INCREF(obj); | |
2763 | return Py_BuildValue((char *)""); | |
2764 | } | |
2765 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject *resultobj; | |
2767 | int arg1 = (int) 0 ; | |
2768 | int arg2 = (int) 0 ; | |
2769 | int arg3 = (int) 0 ; | |
2770 | int arg4 = (int) 0 ; | |
2771 | wxRect *result; | |
2772 | char *kwnames[] = { | |
2773 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2774 | }; | |
2775 | ||
2776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Rect",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
2777 | { | |
2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2779 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2780 | ||
2781 | wxPyEndAllowThreads(__tstate); | |
2782 | if (PyErr_Occurred()) SWIG_fail; | |
2783 | } | |
2784 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2785 | return resultobj; | |
2786 | fail: | |
2787 | return NULL; | |
2788 | } | |
2789 | ||
2790 | ||
2791 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2792 | PyObject *resultobj; | |
2793 | wxPoint *arg1 = 0 ; | |
2794 | wxPoint *arg2 = 0 ; | |
2795 | wxRect *result; | |
2796 | wxPoint temp1 ; | |
2797 | wxPoint temp2 ; | |
2798 | PyObject * obj0 = 0 ; | |
2799 | PyObject * obj1 = 0 ; | |
2800 | char *kwnames[] = { | |
2801 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2802 | }; | |
2803 | ||
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2805 | { | |
2806 | arg1 = &temp1; | |
2807 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2808 | } | |
2809 | { | |
2810 | arg2 = &temp2; | |
2811 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2812 | } | |
2813 | { | |
2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2815 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2816 | ||
2817 | wxPyEndAllowThreads(__tstate); | |
2818 | if (PyErr_Occurred()) SWIG_fail; | |
2819 | } | |
2820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2821 | return resultobj; | |
2822 | fail: | |
2823 | return NULL; | |
2824 | } | |
2825 | ||
2826 | ||
2827 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2828 | PyObject *resultobj; | |
2829 | wxPoint *arg1 = 0 ; | |
2830 | wxSize *arg2 = 0 ; | |
2831 | wxRect *result; | |
2832 | wxPoint temp1 ; | |
2833 | wxSize temp2 ; | |
2834 | PyObject * obj0 = 0 ; | |
2835 | PyObject * obj1 = 0 ; | |
2836 | char *kwnames[] = { | |
2837 | (char *) "pos",(char *) "size", NULL | |
2838 | }; | |
2839 | ||
2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2841 | { | |
2842 | arg1 = &temp1; | |
2843 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2844 | } | |
2845 | { | |
2846 | arg2 = &temp2; | |
2847 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2848 | } | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxRect *arg1 = (wxRect *) 0 ; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "self", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2873 | { | |
2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2875 | delete arg1; | |
2876 | ||
2877 | wxPyEndAllowThreads(__tstate); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | } | |
2880 | Py_INCREF(Py_None); resultobj = Py_None; | |
2881 | return resultobj; | |
2882 | fail: | |
2883 | return NULL; | |
2884 | } | |
2885 | ||
2886 | ||
2887 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2888 | PyObject *resultobj; | |
2889 | wxRect *arg1 = (wxRect *) 0 ; | |
2890 | int result; | |
2891 | PyObject * obj0 = 0 ; | |
2892 | char *kwnames[] = { | |
2893 | (char *) "self", NULL | |
2894 | }; | |
2895 | ||
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2898 | { | |
2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2900 | result = (int)((wxRect const *)arg1)->GetX(); | |
2901 | ||
2902 | wxPyEndAllowThreads(__tstate); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
2905 | resultobj = PyInt_FromLong((long)result); | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxRect *arg1 = (wxRect *) 0 ; | |
2915 | int arg2 ; | |
2916 | PyObject * obj0 = 0 ; | |
2917 | char *kwnames[] = { | |
2918 | (char *) "self",(char *) "x", NULL | |
2919 | }; | |
2920 | ||
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetX",kwnames,&obj0,&arg2)) goto fail; | |
2922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2923 | { | |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | (arg1)->SetX(arg2); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
2930 | Py_INCREF(Py_None); resultobj = Py_None; | |
2931 | return resultobj; | |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
2937 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject *resultobj; | |
2939 | wxRect *arg1 = (wxRect *) 0 ; | |
2940 | int result; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "self", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2948 | { | |
2949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2950 | result = (int)(arg1)->GetY(); | |
2951 | ||
2952 | wxPyEndAllowThreads(__tstate); | |
2953 | if (PyErr_Occurred()) SWIG_fail; | |
2954 | } | |
2955 | resultobj = PyInt_FromLong((long)result); | |
2956 | return resultobj; | |
2957 | fail: | |
2958 | return NULL; | |
2959 | } | |
2960 | ||
2961 | ||
2962 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2963 | PyObject *resultobj; | |
2964 | wxRect *arg1 = (wxRect *) 0 ; | |
2965 | int arg2 ; | |
2966 | PyObject * obj0 = 0 ; | |
2967 | char *kwnames[] = { | |
2968 | (char *) "self",(char *) "y", NULL | |
2969 | }; | |
2970 | ||
2971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetY",kwnames,&obj0,&arg2)) goto fail; | |
2972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2973 | { | |
2974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2975 | (arg1)->SetY(arg2); | |
2976 | ||
2977 | wxPyEndAllowThreads(__tstate); | |
2978 | if (PyErr_Occurred()) SWIG_fail; | |
2979 | } | |
2980 | Py_INCREF(Py_None); resultobj = Py_None; | |
2981 | return resultobj; | |
2982 | fail: | |
2983 | return NULL; | |
2984 | } | |
2985 | ||
2986 | ||
2987 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2988 | PyObject *resultobj; | |
2989 | wxRect *arg1 = (wxRect *) 0 ; | |
2990 | int result; | |
2991 | PyObject * obj0 = 0 ; | |
2992 | char *kwnames[] = { | |
2993 | (char *) "self", NULL | |
2994 | }; | |
2995 | ||
2996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2998 | { | |
2999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3000 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3001 | ||
3002 | wxPyEndAllowThreads(__tstate); | |
3003 | if (PyErr_Occurred()) SWIG_fail; | |
3004 | } | |
3005 | resultobj = PyInt_FromLong((long)result); | |
3006 | return resultobj; | |
3007 | fail: | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
3012 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3013 | PyObject *resultobj; | |
3014 | wxRect *arg1 = (wxRect *) 0 ; | |
3015 | int arg2 ; | |
3016 | PyObject * obj0 = 0 ; | |
3017 | char *kwnames[] = { | |
3018 | (char *) "self",(char *) "w", NULL | |
3019 | }; | |
3020 | ||
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3023 | { | |
3024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3025 | (arg1)->SetWidth(arg2); | |
3026 | ||
3027 | wxPyEndAllowThreads(__tstate); | |
3028 | if (PyErr_Occurred()) SWIG_fail; | |
3029 | } | |
3030 | Py_INCREF(Py_None); resultobj = Py_None; | |
3031 | return resultobj; | |
3032 | fail: | |
3033 | return NULL; | |
3034 | } | |
3035 | ||
3036 | ||
3037 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject *resultobj; | |
3039 | wxRect *arg1 = (wxRect *) 0 ; | |
3040 | int result; | |
3041 | PyObject * obj0 = 0 ; | |
3042 | char *kwnames[] = { | |
3043 | (char *) "self", NULL | |
3044 | }; | |
3045 | ||
3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | resultobj = PyInt_FromLong((long)result); | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | ||
3062 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3063 | PyObject *resultobj; | |
3064 | wxRect *arg1 = (wxRect *) 0 ; | |
3065 | int arg2 ; | |
3066 | PyObject * obj0 = 0 ; | |
3067 | char *kwnames[] = { | |
3068 | (char *) "self",(char *) "h", NULL | |
3069 | }; | |
3070 | ||
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3073 | { | |
3074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3075 | (arg1)->SetHeight(arg2); | |
3076 | ||
3077 | wxPyEndAllowThreads(__tstate); | |
3078 | if (PyErr_Occurred()) SWIG_fail; | |
3079 | } | |
3080 | Py_INCREF(Py_None); resultobj = Py_None; | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | return NULL; | |
3084 | } | |
3085 | ||
3086 | ||
3087 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3088 | PyObject *resultobj; | |
3089 | wxRect *arg1 = (wxRect *) 0 ; | |
3090 | wxPoint result; | |
3091 | PyObject * obj0 = 0 ; | |
3092 | char *kwnames[] = { | |
3093 | (char *) "self", NULL | |
3094 | }; | |
3095 | ||
3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3098 | { | |
3099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3100 | result = ((wxRect const *)arg1)->GetPosition(); | |
3101 | ||
3102 | wxPyEndAllowThreads(__tstate); | |
3103 | if (PyErr_Occurred()) SWIG_fail; | |
3104 | } | |
3105 | { | |
3106 | wxPoint * resultptr; | |
3107 | resultptr = new wxPoint((wxPoint &) result); | |
3108 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3109 | } | |
3110 | return resultobj; | |
3111 | fail: | |
3112 | return NULL; | |
3113 | } | |
3114 | ||
3115 | ||
3116 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3117 | PyObject *resultobj; | |
3118 | wxRect *arg1 = (wxRect *) 0 ; | |
3119 | wxPoint *arg2 = 0 ; | |
3120 | wxPoint temp2 ; | |
3121 | PyObject * obj0 = 0 ; | |
3122 | PyObject * obj1 = 0 ; | |
3123 | char *kwnames[] = { | |
3124 | (char *) "self",(char *) "p", NULL | |
3125 | }; | |
3126 | ||
3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3129 | { | |
3130 | arg2 = &temp2; | |
3131 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3132 | } | |
3133 | { | |
3134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3135 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3136 | ||
3137 | wxPyEndAllowThreads(__tstate); | |
3138 | if (PyErr_Occurred()) SWIG_fail; | |
3139 | } | |
3140 | Py_INCREF(Py_None); resultobj = Py_None; | |
3141 | return resultobj; | |
3142 | fail: | |
3143 | return NULL; | |
3144 | } | |
3145 | ||
3146 | ||
3147 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3148 | PyObject *resultobj; | |
3149 | wxRect *arg1 = (wxRect *) 0 ; | |
3150 | wxSize result; | |
3151 | PyObject * obj0 = 0 ; | |
3152 | char *kwnames[] = { | |
3153 | (char *) "self", NULL | |
3154 | }; | |
3155 | ||
3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3158 | { | |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | result = ((wxRect const *)arg1)->GetSize(); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | { | |
3166 | wxSize * resultptr; | |
3167 | resultptr = new wxSize((wxSize &) result); | |
3168 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3169 | } | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | return NULL; | |
3173 | } | |
3174 | ||
3175 | ||
3176 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3177 | PyObject *resultobj; | |
3178 | wxRect *arg1 = (wxRect *) 0 ; | |
3179 | wxSize *arg2 = 0 ; | |
3180 | wxSize temp2 ; | |
3181 | PyObject * obj0 = 0 ; | |
3182 | PyObject * obj1 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self",(char *) "s", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3189 | { | |
3190 | arg2 = &temp2; | |
3191 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3192 | } | |
3193 | { | |
3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3195 | (arg1)->SetSize((wxSize const &)*arg2); | |
3196 | ||
3197 | wxPyEndAllowThreads(__tstate); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | Py_INCREF(Py_None); resultobj = Py_None; | |
3201 | return resultobj; | |
3202 | fail: | |
3203 | return NULL; | |
3204 | } | |
3205 | ||
3206 | ||
c9c7117a RD |
3207 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3208 | PyObject *resultobj; | |
3209 | wxRect *arg1 = (wxRect *) 0 ; | |
3210 | wxPoint result; | |
3211 | PyObject * obj0 = 0 ; | |
3212 | char *kwnames[] = { | |
3213 | (char *) "self", NULL | |
3214 | }; | |
3215 | ||
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3218 | { | |
3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3220 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3221 | ||
3222 | wxPyEndAllowThreads(__tstate); | |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
3224 | } | |
3225 | { | |
3226 | wxPoint * resultptr; | |
3227 | resultptr = new wxPoint((wxPoint &) result); | |
3228 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3229 | } | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | return NULL; | |
3233 | } | |
3234 | ||
3235 | ||
3236 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject *resultobj; | |
3238 | wxRect *arg1 = (wxRect *) 0 ; | |
3239 | wxPoint *arg2 = 0 ; | |
3240 | wxPoint temp2 ; | |
3241 | PyObject * obj0 = 0 ; | |
3242 | PyObject * obj1 = 0 ; | |
3243 | char *kwnames[] = { | |
3244 | (char *) "self",(char *) "p", NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3249 | { | |
3250 | arg2 = &temp2; | |
3251 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3252 | } | |
3253 | { | |
3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3255 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3256 | ||
3257 | wxPyEndAllowThreads(__tstate); | |
3258 | if (PyErr_Occurred()) SWIG_fail; | |
3259 | } | |
3260 | Py_INCREF(Py_None); resultobj = Py_None; | |
3261 | return resultobj; | |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
3267 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject *resultobj; | |
3269 | wxRect *arg1 = (wxRect *) 0 ; | |
3270 | wxPoint result; | |
3271 | PyObject * obj0 = 0 ; | |
3272 | char *kwnames[] = { | |
3273 | (char *) "self", NULL | |
3274 | }; | |
3275 | ||
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3278 | { | |
3279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3280 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3281 | ||
3282 | wxPyEndAllowThreads(__tstate); | |
3283 | if (PyErr_Occurred()) SWIG_fail; | |
3284 | } | |
3285 | { | |
3286 | wxPoint * resultptr; | |
3287 | resultptr = new wxPoint((wxPoint &) result); | |
3288 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3289 | } | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxRect *arg1 = (wxRect *) 0 ; | |
3299 | wxPoint *arg2 = 0 ; | |
3300 | wxPoint temp2 ; | |
3301 | PyObject * obj0 = 0 ; | |
3302 | PyObject * obj1 = 0 ; | |
3303 | char *kwnames[] = { | |
3304 | (char *) "self",(char *) "p", NULL | |
3305 | }; | |
3306 | ||
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3309 | { | |
3310 | arg2 = &temp2; | |
3311 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3312 | } | |
3313 | { | |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3316 | ||
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
3320 | Py_INCREF(Py_None); resultobj = Py_None; | |
3321 | return resultobj; | |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
d14a1e28 RD |
3327 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3328 | PyObject *resultobj; | |
3329 | wxRect *arg1 = (wxRect *) 0 ; | |
3330 | int result; | |
3331 | PyObject * obj0 = 0 ; | |
3332 | char *kwnames[] = { | |
3333 | (char *) "self", NULL | |
3334 | }; | |
3335 | ||
3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
3345 | resultobj = PyInt_FromLong((long)result); | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
3352 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject *resultobj; | |
3354 | wxRect *arg1 = (wxRect *) 0 ; | |
3355 | int result; | |
3356 | PyObject * obj0 = 0 ; | |
3357 | char *kwnames[] = { | |
3358 | (char *) "self", NULL | |
3359 | }; | |
3360 | ||
3361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3363 | { | |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | resultobj = PyInt_FromLong((long)result); | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject *resultobj; | |
3379 | wxRect *arg1 = (wxRect *) 0 ; | |
3380 | int result; | |
3381 | PyObject * obj0 = 0 ; | |
3382 | char *kwnames[] = { | |
3383 | (char *) "self", NULL | |
3384 | }; | |
3385 | ||
3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3388 | { | |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3391 | ||
3392 | wxPyEndAllowThreads(__tstate); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | resultobj = PyInt_FromLong((long)result); | |
3396 | return resultobj; | |
3397 | fail: | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxRect *arg1 = (wxRect *) 0 ; | |
3405 | int result; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | char *kwnames[] = { | |
3408 | (char *) "self", NULL | |
3409 | }; | |
3410 | ||
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3415 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | resultobj = PyInt_FromLong((long)result); | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
3427 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject *resultobj; | |
3429 | wxRect *arg1 = (wxRect *) 0 ; | |
3430 | int arg2 ; | |
3431 | PyObject * obj0 = 0 ; | |
3432 | char *kwnames[] = { | |
3433 | (char *) "self",(char *) "left", NULL | |
3434 | }; | |
3435 | ||
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetLeft",kwnames,&obj0,&arg2)) goto fail; | |
3437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | (arg1)->SetLeft(arg2); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | Py_INCREF(Py_None); resultobj = Py_None; | |
3446 | return resultobj; | |
3447 | fail: | |
3448 | return NULL; | |
3449 | } | |
3450 | ||
3451 | ||
3452 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3453 | PyObject *resultobj; | |
3454 | wxRect *arg1 = (wxRect *) 0 ; | |
3455 | int arg2 ; | |
3456 | PyObject * obj0 = 0 ; | |
3457 | char *kwnames[] = { | |
3458 | (char *) "self",(char *) "right", NULL | |
3459 | }; | |
3460 | ||
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetRight",kwnames,&obj0,&arg2)) goto fail; | |
3462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3463 | { | |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | (arg1)->SetRight(arg2); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | Py_INCREF(Py_None); resultobj = Py_None; | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject *resultobj; | |
3479 | wxRect *arg1 = (wxRect *) 0 ; | |
3480 | int arg2 ; | |
3481 | PyObject * obj0 = 0 ; | |
3482 | char *kwnames[] = { | |
3483 | (char *) "self",(char *) "top", NULL | |
3484 | }; | |
3485 | ||
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetTop",kwnames,&obj0,&arg2)) goto fail; | |
3487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | (arg1)->SetTop(arg2); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | Py_INCREF(Py_None); resultobj = Py_None; | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | return NULL; | |
3499 | } | |
3500 | ||
3501 | ||
3502 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3503 | PyObject *resultobj; | |
3504 | wxRect *arg1 = (wxRect *) 0 ; | |
3505 | int arg2 ; | |
3506 | PyObject * obj0 = 0 ; | |
3507 | char *kwnames[] = { | |
3508 | (char *) "self",(char *) "bottom", NULL | |
3509 | }; | |
3510 | ||
3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetBottom",kwnames,&obj0,&arg2)) goto fail; | |
3512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3513 | { | |
3514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3515 | (arg1)->SetBottom(arg2); | |
3516 | ||
3517 | wxPyEndAllowThreads(__tstate); | |
3518 | if (PyErr_Occurred()) SWIG_fail; | |
3519 | } | |
3520 | Py_INCREF(Py_None); resultobj = Py_None; | |
3521 | return resultobj; | |
3522 | fail: | |
3523 | return NULL; | |
3524 | } | |
3525 | ||
3526 | ||
3527 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3528 | PyObject *resultobj; | |
3529 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3530 | int arg2 ; |
3531 | int arg3 ; | |
d14a1e28 RD |
3532 | wxRect *result; |
3533 | PyObject * obj0 = 0 ; | |
3534 | char *kwnames[] = { | |
3535 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3536 | }; | |
3537 | ||
3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Inflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3540 | { | |
3541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3542 | { | |
3543 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3544 | result = (wxRect *) &_result_ref; | |
3545 | } | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3551 | return resultobj; | |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
3557 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3558 | PyObject *resultobj; | |
3559 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3560 | int arg2 ; |
3561 | int arg3 ; | |
d14a1e28 RD |
3562 | wxRect *result; |
3563 | PyObject * obj0 = 0 ; | |
3564 | char *kwnames[] = { | |
3565 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3566 | }; | |
3567 | ||
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Deflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | { | |
3573 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3574 | result = (wxRect *) &_result_ref; | |
3575 | } | |
3576 | ||
3577 | wxPyEndAllowThreads(__tstate); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
3580 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
3587 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3588 | PyObject *resultobj; | |
3589 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3590 | int arg2 ; |
3591 | int arg3 ; | |
d14a1e28 RD |
3592 | PyObject * obj0 = 0 ; |
3593 | char *kwnames[] = { | |
3594 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3595 | }; | |
3596 | ||
3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_OffsetXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3599 | { | |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | (arg1)->Offset(arg2,arg3); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
3606 | Py_INCREF(Py_None); resultobj = Py_None; | |
3607 | return resultobj; | |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
3613 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3614 | PyObject *resultobj; | |
3615 | wxRect *arg1 = (wxRect *) 0 ; | |
3616 | wxPoint *arg2 = 0 ; | |
3617 | wxPoint temp2 ; | |
3618 | PyObject * obj0 = 0 ; | |
3619 | PyObject * obj1 = 0 ; | |
3620 | char *kwnames[] = { | |
3621 | (char *) "self",(char *) "pt", NULL | |
3622 | }; | |
3623 | ||
3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3626 | { | |
3627 | arg2 = &temp2; | |
3628 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3629 | } | |
3630 | { | |
3631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3632 | (arg1)->Offset((wxPoint const &)*arg2); | |
3633 | ||
3634 | wxPyEndAllowThreads(__tstate); | |
3635 | if (PyErr_Occurred()) SWIG_fail; | |
3636 | } | |
3637 | Py_INCREF(Py_None); resultobj = Py_None; | |
3638 | return resultobj; | |
3639 | fail: | |
3640 | return NULL; | |
3641 | } | |
3642 | ||
3643 | ||
3644 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3645 | PyObject *resultobj; | |
3646 | wxRect *arg1 = (wxRect *) 0 ; | |
3647 | wxRect *arg2 = 0 ; | |
3648 | wxRect *result; | |
3649 | wxRect temp2 ; | |
3650 | PyObject * obj0 = 0 ; | |
3651 | PyObject * obj1 = 0 ; | |
3652 | char *kwnames[] = { | |
3653 | (char *) "self",(char *) "rect", NULL | |
3654 | }; | |
3655 | ||
3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3658 | { | |
3659 | arg2 = &temp2; | |
3660 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3661 | } | |
3662 | { | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | { | |
3665 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3666 | result = (wxRect *) &_result_ref; | |
3667 | } | |
3668 | ||
3669 | wxPyEndAllowThreads(__tstate); | |
3670 | if (PyErr_Occurred()) SWIG_fail; | |
3671 | } | |
3672 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3673 | return resultobj; | |
3674 | fail: | |
3675 | return NULL; | |
3676 | } | |
3677 | ||
3678 | ||
3679 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3680 | PyObject *resultobj; | |
3681 | wxRect *arg1 = (wxRect *) 0 ; | |
3682 | wxRect *arg2 = 0 ; | |
3683 | wxRect result; | |
3684 | wxRect temp2 ; | |
3685 | PyObject * obj0 = 0 ; | |
3686 | PyObject * obj1 = 0 ; | |
3687 | char *kwnames[] = { | |
3688 | (char *) "self",(char *) "rect", NULL | |
3689 | }; | |
3690 | ||
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3693 | { | |
3694 | arg2 = &temp2; | |
3695 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | { | |
3705 | wxRect * resultptr; | |
3706 | resultptr = new wxRect((wxRect &) result); | |
3707 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3708 | } | |
3709 | return resultobj; | |
3710 | fail: | |
3711 | return NULL; | |
3712 | } | |
3713 | ||
3714 | ||
3715 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3716 | PyObject *resultobj; | |
3717 | wxRect *arg1 = (wxRect *) 0 ; | |
3718 | wxRect *arg2 = 0 ; | |
3719 | wxRect *result; | |
3720 | wxRect temp2 ; | |
3721 | PyObject * obj0 = 0 ; | |
3722 | PyObject * obj1 = 0 ; | |
3723 | char *kwnames[] = { | |
3724 | (char *) "self",(char *) "rect", NULL | |
3725 | }; | |
3726 | ||
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3729 | { | |
3730 | arg2 = &temp2; | |
3731 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3732 | } | |
3733 | { | |
3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3735 | { | |
3736 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3737 | result = (wxRect *) &_result_ref; | |
3738 | } | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3744 | return resultobj; | |
3745 | fail: | |
3746 | return NULL; | |
3747 | } | |
3748 | ||
3749 | ||
3750 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3751 | PyObject *resultobj; | |
3752 | wxRect *arg1 = (wxRect *) 0 ; | |
3753 | wxRect *arg2 = 0 ; | |
3754 | bool result; | |
3755 | wxRect temp2 ; | |
3756 | PyObject * obj0 = 0 ; | |
3757 | PyObject * obj1 = 0 ; | |
3758 | char *kwnames[] = { | |
3759 | (char *) "self",(char *) "rect", NULL | |
3760 | }; | |
3761 | ||
3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3764 | { | |
3765 | arg2 = &temp2; | |
3766 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3767 | } | |
3768 | { | |
3769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3770 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3771 | ||
3772 | wxPyEndAllowThreads(__tstate); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
3775 | resultobj = PyInt_FromLong((long)result); | |
3776 | return resultobj; | |
3777 | fail: | |
3778 | return NULL; | |
3779 | } | |
3780 | ||
3781 | ||
3782 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3783 | PyObject *resultobj; | |
3784 | wxRect *arg1 = (wxRect *) 0 ; | |
3785 | wxRect *arg2 = 0 ; | |
3786 | bool result; | |
3787 | wxRect temp2 ; | |
3788 | PyObject * obj0 = 0 ; | |
3789 | PyObject * obj1 = 0 ; | |
3790 | char *kwnames[] = { | |
3791 | (char *) "self",(char *) "rect", NULL | |
3792 | }; | |
3793 | ||
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3796 | { | |
3797 | arg2 = &temp2; | |
3798 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3799 | } | |
3800 | { | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
3803 | ||
3804 | wxPyEndAllowThreads(__tstate); | |
3805 | if (PyErr_Occurred()) SWIG_fail; | |
3806 | } | |
3807 | resultobj = PyInt_FromLong((long)result); | |
3808 | return resultobj; | |
3809 | fail: | |
3810 | return NULL; | |
3811 | } | |
3812 | ||
3813 | ||
3814 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3815 | PyObject *resultobj; | |
3816 | wxRect *arg1 = (wxRect *) 0 ; | |
3817 | int arg2 ; | |
3818 | int arg3 ; | |
3819 | bool result; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_InsideXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3827 | { | |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | resultobj = PyInt_FromLong((long)result); | |
3835 | return resultobj; | |
3836 | fail: | |
3837 | return NULL; | |
3838 | } | |
3839 | ||
3840 | ||
3841 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject *resultobj; | |
3843 | wxRect *arg1 = (wxRect *) 0 ; | |
3844 | wxPoint *arg2 = 0 ; | |
3845 | bool result; | |
3846 | wxPoint temp2 ; | |
3847 | PyObject * obj0 = 0 ; | |
3848 | PyObject * obj1 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self",(char *) "pt", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
3854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3855 | { | |
3856 | arg2 = &temp2; | |
3857 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3858 | } | |
3859 | { | |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
3866 | resultobj = PyInt_FromLong((long)result); | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | return NULL; | |
3870 | } | |
3871 | ||
3872 | ||
3873 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3874 | PyObject *resultobj; | |
3875 | wxRect *arg1 = (wxRect *) 0 ; | |
3876 | wxRect *arg2 = 0 ; | |
3877 | bool result; | |
3878 | wxRect temp2 ; | |
3879 | PyObject * obj0 = 0 ; | |
3880 | PyObject * obj1 = 0 ; | |
3881 | char *kwnames[] = { | |
3882 | (char *) "self",(char *) "rect", NULL | |
3883 | }; | |
3884 | ||
3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
3886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3887 | { | |
3888 | arg2 = &temp2; | |
3889 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3890 | } | |
3891 | { | |
3892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3893 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
3894 | ||
3895 | wxPyEndAllowThreads(__tstate); | |
3896 | if (PyErr_Occurred()) SWIG_fail; | |
3897 | } | |
3898 | resultobj = PyInt_FromLong((long)result); | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | return NULL; | |
3902 | } | |
3903 | ||
3904 | ||
3905 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3906 | PyObject *resultobj; | |
3907 | wxRect *arg1 = (wxRect *) 0 ; | |
3908 | int arg2 ; | |
3909 | PyObject * obj0 = 0 ; | |
3910 | char *kwnames[] = { | |
3911 | (char *) "self",(char *) "x", NULL | |
3912 | }; | |
3913 | ||
3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_x_set",kwnames,&obj0,&arg2)) goto fail; | |
3915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3916 | if (arg1) (arg1)->x = arg2; | |
3917 | ||
3918 | Py_INCREF(Py_None); resultobj = Py_None; | |
3919 | return resultobj; | |
3920 | fail: | |
3921 | return NULL; | |
3922 | } | |
3923 | ||
3924 | ||
3925 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject *resultobj; | |
3927 | wxRect *arg1 = (wxRect *) 0 ; | |
3928 | int result; | |
3929 | PyObject * obj0 = 0 ; | |
3930 | char *kwnames[] = { | |
3931 | (char *) "self", NULL | |
3932 | }; | |
3933 | ||
3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
3935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3936 | result = (int) ((arg1)->x); | |
3937 | ||
3938 | resultobj = PyInt_FromLong((long)result); | |
3939 | return resultobj; | |
3940 | fail: | |
3941 | return NULL; | |
3942 | } | |
3943 | ||
3944 | ||
3945 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3946 | PyObject *resultobj; | |
3947 | wxRect *arg1 = (wxRect *) 0 ; | |
3948 | int arg2 ; | |
3949 | PyObject * obj0 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | (char *) "self",(char *) "y", NULL | |
3952 | }; | |
3953 | ||
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_y_set",kwnames,&obj0,&arg2)) goto fail; | |
3955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3956 | if (arg1) (arg1)->y = arg2; | |
3957 | ||
3958 | Py_INCREF(Py_None); resultobj = Py_None; | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | wxRect *arg1 = (wxRect *) 0 ; | |
3968 | int result; | |
3969 | PyObject * obj0 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "self", NULL | |
3972 | }; | |
3973 | ||
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
3975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3976 | result = (int) ((arg1)->y); | |
3977 | ||
3978 | resultobj = PyInt_FromLong((long)result); | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | return NULL; | |
3982 | } | |
3983 | ||
3984 | ||
3985 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3986 | PyObject *resultobj; | |
3987 | wxRect *arg1 = (wxRect *) 0 ; | |
3988 | int arg2 ; | |
3989 | PyObject * obj0 = 0 ; | |
3990 | char *kwnames[] = { | |
3991 | (char *) "self",(char *) "width", NULL | |
3992 | }; | |
3993 | ||
3994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_width_set",kwnames,&obj0,&arg2)) goto fail; | |
3995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3996 | if (arg1) (arg1)->width = arg2; | |
3997 | ||
3998 | Py_INCREF(Py_None); resultobj = Py_None; | |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | wxRect *arg1 = (wxRect *) 0 ; | |
4008 | int result; | |
4009 | PyObject * obj0 = 0 ; | |
4010 | char *kwnames[] = { | |
4011 | (char *) "self", NULL | |
4012 | }; | |
4013 | ||
4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4016 | result = (int) ((arg1)->width); | |
4017 | ||
4018 | resultobj = PyInt_FromLong((long)result); | |
4019 | return resultobj; | |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
4025 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject *resultobj; | |
4027 | wxRect *arg1 = (wxRect *) 0 ; | |
4028 | int arg2 ; | |
4029 | PyObject * obj0 = 0 ; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "self",(char *) "height", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_height_set",kwnames,&obj0,&arg2)) goto fail; | |
4035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4036 | if (arg1) (arg1)->height = arg2; | |
4037 | ||
4038 | Py_INCREF(Py_None); resultobj = Py_None; | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
4045 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4046 | PyObject *resultobj; | |
4047 | wxRect *arg1 = (wxRect *) 0 ; | |
4048 | int result; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "self", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4056 | result = (int) ((arg1)->height); | |
4057 | ||
4058 | resultobj = PyInt_FromLong((long)result); | |
4059 | return resultobj; | |
4060 | fail: | |
4061 | return NULL; | |
4062 | } | |
4063 | ||
4064 | ||
4065 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4066 | PyObject *resultobj; | |
4067 | wxRect *arg1 = (wxRect *) 0 ; | |
4068 | int arg2 = (int) 0 ; | |
4069 | int arg3 = (int) 0 ; | |
4070 | int arg4 = (int) 0 ; | |
4071 | int arg5 = (int) 0 ; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | char *kwnames[] = { | |
4074 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4075 | }; | |
4076 | ||
4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiii:Rect_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4079 | { | |
4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4081 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4082 | ||
4083 | wxPyEndAllowThreads(__tstate); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
4085 | } | |
4086 | Py_INCREF(Py_None); resultobj = Py_None; | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
e811c8ce | 4093 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4094 | PyObject *resultobj; |
4095 | wxRect *arg1 = (wxRect *) 0 ; | |
4096 | PyObject *result; | |
4097 | PyObject * obj0 = 0 ; | |
4098 | char *kwnames[] = { | |
4099 | (char *) "self", NULL | |
4100 | }; | |
4101 | ||
e811c8ce | 4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4104 | { | |
4105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4106 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4107 | |
4108 | wxPyEndAllowThreads(__tstate); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4111 | resultobj = result; | |
4112 | return resultobj; | |
4113 | fail: | |
4114 | return NULL; | |
4115 | } | |
4116 | ||
4117 | ||
4118 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4119 | PyObject *obj; | |
4120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4121 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4122 | Py_INCREF(obj); | |
4123 | return Py_BuildValue((char *)""); | |
4124 | } | |
4125 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject *resultobj; | |
4127 | wxRect *arg1 = (wxRect *) 0 ; | |
4128 | wxRect *arg2 = (wxRect *) 0 ; | |
4129 | PyObject *result; | |
4130 | PyObject * obj0 = 0 ; | |
4131 | PyObject * obj1 = 0 ; | |
4132 | char *kwnames[] = { | |
4133 | (char *) "r1",(char *) "r2", NULL | |
4134 | }; | |
4135 | ||
4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4138 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4139 | { | |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = result; | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | double arg1 = (double) 0.0 ; | |
4156 | double arg2 = (double) 0.0 ; | |
4157 | wxPoint2D *result; | |
4158 | char *kwnames[] = { | |
4159 | (char *) "x",(char *) "y", NULL | |
4160 | }; | |
4161 | ||
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_Point2D",kwnames,&arg1,&arg2)) goto fail; | |
4163 | { | |
4164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4165 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4166 | ||
4167 | wxPyEndAllowThreads(__tstate); | |
4168 | if (PyErr_Occurred()) SWIG_fail; | |
4169 | } | |
4170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | return NULL; | |
4174 | } | |
4175 | ||
4176 | ||
4177 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject *resultobj; | |
4179 | wxPoint2D *arg1 = 0 ; | |
4180 | wxPoint2D *result; | |
4181 | wxPoint2D temp1 ; | |
4182 | PyObject * obj0 = 0 ; | |
4183 | char *kwnames[] = { | |
4184 | (char *) "pt", NULL | |
4185 | }; | |
4186 | ||
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4188 | { | |
4189 | arg1 = &temp1; | |
4190 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4191 | } | |
4192 | { | |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4194 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4195 | ||
4196 | wxPyEndAllowThreads(__tstate); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4200 | return resultobj; | |
4201 | fail: | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
4206 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4207 | PyObject *resultobj; | |
4208 | wxPoint *arg1 = 0 ; | |
4209 | wxPoint2D *result; | |
4210 | wxPoint temp1 ; | |
4211 | PyObject * obj0 = 0 ; | |
4212 | char *kwnames[] = { | |
4213 | (char *) "pt", NULL | |
4214 | }; | |
4215 | ||
4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4217 | { | |
4218 | arg1 = &temp1; | |
4219 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4220 | } | |
4221 | { | |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4223 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4224 | ||
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
4228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4229 | return resultobj; | |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
4235 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject *resultobj; | |
4237 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4238 | int *arg2 = (int *) 0 ; | |
4239 | int *arg3 = (int *) 0 ; | |
4240 | int temp2 ; | |
4241 | int temp3 ; | |
4242 | PyObject * obj0 = 0 ; | |
4243 | char *kwnames[] = { | |
4244 | (char *) "self", NULL | |
4245 | }; | |
4246 | ||
4247 | arg2 = &temp2; | |
4248 | arg3 = &temp3; | |
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4251 | { | |
4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4253 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4254 | ||
4255 | wxPyEndAllowThreads(__tstate); | |
4256 | if (PyErr_Occurred()) SWIG_fail; | |
4257 | } | |
4258 | Py_INCREF(Py_None); resultobj = Py_None; | |
4259 | { | |
4260 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4261 | resultobj = t_output_helper(resultobj,o); | |
4262 | } | |
4263 | { | |
4264 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4265 | resultobj = t_output_helper(resultobj,o); | |
4266 | } | |
4267 | return resultobj; | |
4268 | fail: | |
4269 | return NULL; | |
4270 | } | |
4271 | ||
4272 | ||
4273 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4274 | PyObject *resultobj; | |
4275 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4276 | int *arg2 = (int *) 0 ; | |
4277 | int *arg3 = (int *) 0 ; | |
4278 | int temp2 ; | |
4279 | int temp3 ; | |
4280 | PyObject * obj0 = 0 ; | |
4281 | char *kwnames[] = { | |
4282 | (char *) "self", NULL | |
4283 | }; | |
4284 | ||
4285 | arg2 = &temp2; | |
4286 | arg3 = &temp3; | |
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4289 | { | |
4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4291 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4292 | ||
4293 | wxPyEndAllowThreads(__tstate); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
4296 | Py_INCREF(Py_None); resultobj = Py_None; | |
4297 | { | |
4298 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4299 | resultobj = t_output_helper(resultobj,o); | |
4300 | } | |
4301 | { | |
4302 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4303 | resultobj = t_output_helper(resultobj,o); | |
4304 | } | |
4305 | return resultobj; | |
4306 | fail: | |
4307 | return NULL; | |
4308 | } | |
4309 | ||
4310 | ||
4311 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4312 | PyObject *resultobj; | |
4313 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4314 | double result; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "self", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4322 | { | |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4324 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | resultobj = PyFloat_FromDouble(result); | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
4336 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4337 | PyObject *resultobj; | |
4338 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4339 | double result; | |
4340 | PyObject * obj0 = 0 ; | |
4341 | char *kwnames[] = { | |
4342 | (char *) "self", NULL | |
4343 | }; | |
4344 | ||
4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4347 | { | |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4350 | ||
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
4354 | resultobj = PyFloat_FromDouble(result); | |
4355 | return resultobj; | |
4356 | fail: | |
4357 | return NULL; | |
4358 | } | |
4359 | ||
4360 | ||
4361 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4362 | PyObject *resultobj; | |
4363 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4364 | double arg2 ; | |
4365 | PyObject * obj0 = 0 ; | |
4366 | char *kwnames[] = { | |
4367 | (char *) "self",(char *) "length", NULL | |
4368 | }; | |
4369 | ||
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorLength",kwnames,&obj0,&arg2)) goto fail; | |
4371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4372 | { | |
4373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4374 | (arg1)->SetVectorLength(arg2); | |
4375 | ||
4376 | wxPyEndAllowThreads(__tstate); | |
4377 | if (PyErr_Occurred()) SWIG_fail; | |
4378 | } | |
4379 | Py_INCREF(Py_None); resultobj = Py_None; | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
4386 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj; | |
4388 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4389 | double arg2 ; | |
4390 | PyObject * obj0 = 0 ; | |
4391 | char *kwnames[] = { | |
4392 | (char *) "self",(char *) "degrees", NULL | |
4393 | }; | |
4394 | ||
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorAngle",kwnames,&obj0,&arg2)) goto fail; | |
4396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4397 | { | |
4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4399 | (arg1)->SetVectorAngle(arg2); | |
4400 | ||
4401 | wxPyEndAllowThreads(__tstate); | |
4402 | if (PyErr_Occurred()) SWIG_fail; | |
4403 | } | |
4404 | Py_INCREF(Py_None); resultobj = Py_None; | |
4405 | return resultobj; | |
4406 | fail: | |
4407 | return NULL; | |
4408 | } | |
4409 | ||
4410 | ||
4411 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4412 | PyObject *resultobj; | |
4413 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4414 | wxPoint2D *arg2 = 0 ; | |
4415 | double result; | |
4416 | wxPoint2D temp2 ; | |
4417 | PyObject * obj0 = 0 ; | |
4418 | PyObject * obj1 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "self",(char *) "pt", NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4425 | { | |
4426 | arg2 = &temp2; | |
4427 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4428 | } | |
4429 | { | |
4430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4431 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4432 | ||
4433 | wxPyEndAllowThreads(__tstate); | |
4434 | if (PyErr_Occurred()) SWIG_fail; | |
4435 | } | |
4436 | resultobj = PyFloat_FromDouble(result); | |
4437 | return resultobj; | |
4438 | fail: | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
4443 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4444 | PyObject *resultobj; | |
4445 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4446 | wxPoint2D *arg2 = 0 ; | |
4447 | double result; | |
4448 | wxPoint2D temp2 ; | |
4449 | PyObject * obj0 = 0 ; | |
4450 | PyObject * obj1 = 0 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "self",(char *) "pt", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4457 | { | |
4458 | arg2 = &temp2; | |
4459 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4460 | } | |
4461 | { | |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4463 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4464 | ||
4465 | wxPyEndAllowThreads(__tstate); | |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | } | |
4468 | resultobj = PyFloat_FromDouble(result); | |
4469 | return resultobj; | |
4470 | fail: | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
4475 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4476 | PyObject *resultobj; | |
4477 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4478 | wxPoint2D *arg2 = 0 ; | |
4479 | double result; | |
4480 | wxPoint2D temp2 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | PyObject * obj1 = 0 ; | |
4483 | char *kwnames[] = { | |
4484 | (char *) "self",(char *) "vec", NULL | |
4485 | }; | |
4486 | ||
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4489 | { | |
4490 | arg2 = &temp2; | |
4491 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4492 | } | |
4493 | { | |
4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4495 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4496 | ||
4497 | wxPyEndAllowThreads(__tstate); | |
4498 | if (PyErr_Occurred()) SWIG_fail; | |
4499 | } | |
4500 | resultobj = PyFloat_FromDouble(result); | |
4501 | return resultobj; | |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4510 | wxPoint2D *arg2 = 0 ; | |
4511 | double result; | |
4512 | wxPoint2D temp2 ; | |
4513 | PyObject * obj0 = 0 ; | |
4514 | PyObject * obj1 = 0 ; | |
4515 | char *kwnames[] = { | |
4516 | (char *) "self",(char *) "vec", NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4521 | { | |
4522 | arg2 = &temp2; | |
4523 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4524 | } | |
4525 | { | |
4526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4527 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4528 | ||
4529 | wxPyEndAllowThreads(__tstate); | |
4530 | if (PyErr_Occurred()) SWIG_fail; | |
4531 | } | |
4532 | resultobj = PyFloat_FromDouble(result); | |
4533 | return resultobj; | |
4534 | fail: | |
4535 | return NULL; | |
4536 | } | |
4537 | ||
4538 | ||
4539 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4540 | PyObject *resultobj; | |
4541 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4542 | wxPoint2D result; | |
4543 | PyObject * obj0 = 0 ; | |
4544 | char *kwnames[] = { | |
4545 | (char *) "self", NULL | |
4546 | }; | |
4547 | ||
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4550 | { | |
4551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4552 | result = (arg1)->operator -(); | |
4553 | ||
4554 | wxPyEndAllowThreads(__tstate); | |
4555 | if (PyErr_Occurred()) SWIG_fail; | |
4556 | } | |
4557 | { | |
4558 | wxPoint2D * resultptr; | |
4559 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4560 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4561 | } | |
4562 | return resultobj; | |
4563 | fail: | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
4568 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject *resultobj; | |
4570 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4571 | wxPoint2D *arg2 = 0 ; | |
4572 | wxPoint2D *result; | |
4573 | wxPoint2D temp2 ; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | PyObject * obj1 = 0 ; | |
4576 | char *kwnames[] = { | |
4577 | (char *) "self",(char *) "pt", NULL | |
4578 | }; | |
4579 | ||
4580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4582 | { | |
4583 | arg2 = &temp2; | |
4584 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4585 | } | |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | { | |
4589 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4590 | result = (wxPoint2D *) &_result_ref; | |
4591 | } | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | return NULL; | |
4600 | } | |
4601 | ||
4602 | ||
4603 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4604 | PyObject *resultobj; | |
4605 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4606 | wxPoint2D *arg2 = 0 ; | |
4607 | wxPoint2D *result; | |
4608 | wxPoint2D temp2 ; | |
4609 | PyObject * obj0 = 0 ; | |
4610 | PyObject * obj1 = 0 ; | |
4611 | char *kwnames[] = { | |
4612 | (char *) "self",(char *) "pt", NULL | |
4613 | }; | |
4614 | ||
4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4617 | { | |
4618 | arg2 = &temp2; | |
4619 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4620 | } | |
4621 | { | |
4622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4623 | { | |
4624 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4625 | result = (wxPoint2D *) &_result_ref; | |
4626 | } | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4641 | wxPoint2D *arg2 = 0 ; | |
4642 | wxPoint2D *result; | |
4643 | wxPoint2D temp2 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | PyObject * obj1 = 0 ; | |
4646 | char *kwnames[] = { | |
4647 | (char *) "self",(char *) "pt", NULL | |
4648 | }; | |
4649 | ||
4650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4652 | { | |
4653 | arg2 = &temp2; | |
4654 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4655 | } | |
4656 | { | |
4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4658 | { | |
4659 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4660 | result = (wxPoint2D *) &_result_ref; | |
4661 | } | |
4662 | ||
4663 | wxPyEndAllowThreads(__tstate); | |
4664 | if (PyErr_Occurred()) SWIG_fail; | |
4665 | } | |
4666 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4667 | return resultobj; | |
4668 | fail: | |
4669 | return NULL; | |
4670 | } | |
4671 | ||
4672 | ||
4673 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4674 | PyObject *resultobj; | |
4675 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4676 | wxPoint2D *arg2 = 0 ; | |
4677 | wxPoint2D *result; | |
4678 | wxPoint2D temp2 ; | |
4679 | PyObject * obj0 = 0 ; | |
4680 | PyObject * obj1 = 0 ; | |
4681 | char *kwnames[] = { | |
4682 | (char *) "self",(char *) "pt", NULL | |
4683 | }; | |
4684 | ||
4685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4687 | { | |
4688 | arg2 = &temp2; | |
4689 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4690 | } | |
4691 | { | |
4692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4693 | { | |
4694 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4695 | result = (wxPoint2D *) &_result_ref; | |
4696 | } | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
4708 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4709 | PyObject *resultobj; | |
4710 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4711 | wxPoint2D *arg2 = 0 ; | |
4712 | bool result; | |
4713 | wxPoint2D temp2 ; | |
4714 | PyObject * obj0 = 0 ; | |
4715 | PyObject * obj1 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "pt", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4722 | { | |
4723 | arg2 = &temp2; | |
4724 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4725 | } | |
4726 | { | |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
4733 | resultobj = PyInt_FromLong((long)result); | |
4734 | return resultobj; | |
4735 | fail: | |
4736 | return NULL; | |
4737 | } | |
4738 | ||
4739 | ||
4740 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4741 | PyObject *resultobj; | |
4742 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4743 | wxPoint2D *arg2 = 0 ; | |
4744 | bool result; | |
4745 | wxPoint2D temp2 ; | |
4746 | PyObject * obj0 = 0 ; | |
4747 | PyObject * obj1 = 0 ; | |
4748 | char *kwnames[] = { | |
4749 | (char *) "self",(char *) "pt", NULL | |
4750 | }; | |
4751 | ||
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4754 | { | |
4755 | arg2 = &temp2; | |
4756 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4757 | } | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | resultobj = PyInt_FromLong((long)result); | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
d14a1e28 RD |
4772 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
4773 | PyObject *resultobj; | |
4774 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4775 | double arg2 ; | |
4776 | PyObject * obj0 = 0 ; | |
4777 | char *kwnames[] = { | |
4778 | (char *) "self",(char *) "m_x", NULL | |
4779 | }; | |
4780 | ||
4781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_x_set",kwnames,&obj0,&arg2)) goto fail; | |
4782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4783 | if (arg1) (arg1)->m_x = arg2; | |
4784 | ||
4785 | Py_INCREF(Py_None); resultobj = Py_None; | |
4786 | return resultobj; | |
4787 | fail: | |
4788 | return NULL; | |
4789 | } | |
4790 | ||
4791 | ||
4792 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4793 | PyObject *resultobj; | |
4794 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4795 | double result; | |
4796 | PyObject * obj0 = 0 ; | |
4797 | char *kwnames[] = { | |
4798 | (char *) "self", NULL | |
4799 | }; | |
4800 | ||
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
4802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4803 | result = (double) ((arg1)->m_x); | |
4804 | ||
4805 | resultobj = PyFloat_FromDouble(result); | |
4806 | return resultobj; | |
4807 | fail: | |
4808 | return NULL; | |
4809 | } | |
4810 | ||
4811 | ||
4812 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4813 | PyObject *resultobj; | |
4814 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4815 | double arg2 ; | |
4816 | PyObject * obj0 = 0 ; | |
4817 | char *kwnames[] = { | |
4818 | (char *) "self",(char *) "m_y", NULL | |
4819 | }; | |
4820 | ||
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_y_set",kwnames,&obj0,&arg2)) goto fail; | |
4822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4823 | if (arg1) (arg1)->m_y = arg2; | |
4824 | ||
4825 | Py_INCREF(Py_None); resultobj = Py_None; | |
4826 | return resultobj; | |
4827 | fail: | |
4828 | return NULL; | |
4829 | } | |
4830 | ||
4831 | ||
4832 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4833 | PyObject *resultobj; | |
4834 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4835 | double result; | |
4836 | PyObject * obj0 = 0 ; | |
4837 | char *kwnames[] = { | |
4838 | (char *) "self", NULL | |
4839 | }; | |
4840 | ||
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
4842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4843 | result = (double) ((arg1)->m_y); | |
4844 | ||
4845 | resultobj = PyFloat_FromDouble(result); | |
4846 | return resultobj; | |
4847 | fail: | |
4848 | return NULL; | |
4849 | } | |
4850 | ||
4851 | ||
4852 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject *resultobj; | |
4854 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4855 | double arg2 = (double) 0 ; | |
4856 | double arg3 = (double) 0 ; | |
4857 | PyObject * obj0 = 0 ; | |
4858 | char *kwnames[] = { | |
4859 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4860 | }; | |
4861 | ||
4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|dd:Point2D_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4864 | { | |
4865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4866 | wxPoint2D_Set(arg1,arg2,arg3); | |
4867 | ||
4868 | wxPyEndAllowThreads(__tstate); | |
4869 | if (PyErr_Occurred()) SWIG_fail; | |
4870 | } | |
4871 | Py_INCREF(Py_None); resultobj = Py_None; | |
4872 | return resultobj; | |
4873 | fail: | |
4874 | return NULL; | |
4875 | } | |
4876 | ||
4877 | ||
e811c8ce | 4878 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4879 | PyObject *resultobj; |
4880 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4881 | PyObject *result; | |
4882 | PyObject * obj0 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self", NULL | |
4885 | }; | |
4886 | ||
e811c8ce | 4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4891 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
4892 | |
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | resultobj = result; | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
4904 | PyObject *obj; | |
4905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4906 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
4907 | Py_INCREF(obj); | |
4908 | return Py_BuildValue((char *)""); | |
4909 | } | |
4910 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
4911 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
4912 | return 1; | |
4913 | } | |
4914 | ||
4915 | ||
4916 | static PyObject *_wrap_DefaultPosition_get() { | |
4917 | PyObject *pyobj; | |
4918 | ||
4919 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
4920 | return pyobj; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
4925 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
4926 | return 1; | |
4927 | } | |
4928 | ||
4929 | ||
4930 | static PyObject *_wrap_DefaultSize_get() { | |
4931 | PyObject *pyobj; | |
4932 | ||
4933 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
4934 | return pyobj; | |
4935 | } | |
4936 | ||
4937 | ||
4938 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4939 | PyObject *resultobj; | |
4940 | PyObject *arg1 = (PyObject *) 0 ; | |
4941 | wxPyInputStream *result; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "p", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
4948 | arg1 = obj0; | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
4952 | ||
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | } | |
4956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject *resultobj; | |
4965 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4966 | PyObject * obj0 = 0 ; | |
4967 | char *kwnames[] = { | |
4968 | (char *) "self", NULL | |
4969 | }; | |
4970 | ||
4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
4972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4973 | { | |
4974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4975 | (arg1)->close(); | |
4976 | ||
4977 | wxPyEndAllowThreads(__tstate); | |
4978 | if (PyErr_Occurred()) SWIG_fail; | |
4979 | } | |
4980 | Py_INCREF(Py_None); resultobj = Py_None; | |
4981 | return resultobj; | |
4982 | fail: | |
4983 | return NULL; | |
4984 | } | |
4985 | ||
4986 | ||
4987 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4988 | PyObject *resultobj; | |
4989 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "self", NULL | |
4993 | }; | |
4994 | ||
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
4996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4997 | { | |
4998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4999 | (arg1)->flush(); | |
5000 | ||
5001 | wxPyEndAllowThreads(__tstate); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
5003 | } | |
5004 | Py_INCREF(Py_None); resultobj = Py_None; | |
5005 | return resultobj; | |
5006 | fail: | |
5007 | return NULL; | |
5008 | } | |
5009 | ||
5010 | ||
5011 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject *resultobj; | |
5013 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5014 | bool result; | |
5015 | PyObject * obj0 = 0 ; | |
5016 | char *kwnames[] = { | |
5017 | (char *) "self", NULL | |
5018 | }; | |
5019 | ||
5020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (bool)(arg1)->eof(); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | resultobj = PyInt_FromLong((long)result); | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
5033 | } | |
5034 | ||
5035 | ||
5036 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5037 | PyObject *resultobj; | |
5038 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5039 | int arg2 = (int) -1 ; | |
5040 | PyObject *result; | |
5041 | PyObject * obj0 = 0 ; | |
5042 | char *kwnames[] = { | |
5043 | (char *) "self",(char *) "size", NULL | |
5044 | }; | |
5045 | ||
5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_read",kwnames,&obj0,&arg2)) goto fail; | |
5047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (PyObject *)(arg1)->read(arg2); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | resultobj = result; | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj; | |
5064 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5065 | int arg2 = (int) -1 ; | |
5066 | PyObject *result; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | char *kwnames[] = { | |
5069 | (char *) "self",(char *) "size", NULL | |
5070 | }; | |
5071 | ||
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readline",kwnames,&obj0,&arg2)) goto fail; | |
5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | { | |
5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5076 | result = (PyObject *)(arg1)->readline(arg2); | |
5077 | ||
5078 | wxPyEndAllowThreads(__tstate); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
5081 | resultobj = result; | |
5082 | return resultobj; | |
5083 | fail: | |
5084 | return NULL; | |
5085 | } | |
5086 | ||
5087 | ||
5088 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5089 | PyObject *resultobj; | |
5090 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5091 | int arg2 = (int) -1 ; | |
5092 | PyObject *result; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | char *kwnames[] = { | |
5095 | (char *) "self",(char *) "sizehint", NULL | |
5096 | }; | |
5097 | ||
5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readlines",kwnames,&obj0,&arg2)) goto fail; | |
5099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | result = (PyObject *)(arg1)->readlines(arg2); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | resultobj = result; | |
5108 | return resultobj; | |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5115 | PyObject *resultobj; | |
5116 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5117 | int arg2 ; | |
5118 | int arg3 = (int) 0 ; | |
5119 | PyObject * obj0 = 0 ; | |
5120 | char *kwnames[] = { | |
5121 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5122 | }; | |
5123 | ||
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:InputStream_seek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5126 | { | |
5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5128 | (arg1)->seek(arg2,arg3); | |
5129 | ||
5130 | wxPyEndAllowThreads(__tstate); | |
5131 | if (PyErr_Occurred()) SWIG_fail; | |
5132 | } | |
5133 | Py_INCREF(Py_None); resultobj = Py_None; | |
5134 | return resultobj; | |
5135 | fail: | |
5136 | return NULL; | |
5137 | } | |
5138 | ||
5139 | ||
5140 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5141 | PyObject *resultobj; | |
5142 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5143 | int result; | |
5144 | PyObject * obj0 = 0 ; | |
5145 | char *kwnames[] = { | |
5146 | (char *) "self", NULL | |
5147 | }; | |
5148 | ||
5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5151 | { | |
5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5153 | result = (int)(arg1)->tell(); | |
5154 | ||
5155 | wxPyEndAllowThreads(__tstate); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
5158 | resultobj = PyInt_FromLong((long)result); | |
5159 | return resultobj; | |
5160 | fail: | |
5161 | return NULL; | |
5162 | } | |
5163 | ||
5164 | ||
5165 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5166 | PyObject *resultobj; | |
5167 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5168 | char result; | |
5169 | PyObject * obj0 = 0 ; | |
5170 | char *kwnames[] = { | |
5171 | (char *) "self", NULL | |
5172 | }; | |
5173 | ||
5174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | result = (char)(arg1)->Peek(); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
a41e16b6 | 5183 | resultobj = SPyObj_FromChar(result); |
d14a1e28 RD |
5184 | return resultobj; |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
5190 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject *resultobj; | |
5192 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5193 | char result; | |
5194 | PyObject * obj0 = 0 ; | |
5195 | char *kwnames[] = { | |
5196 | (char *) "self", NULL | |
5197 | }; | |
5198 | ||
5199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | result = (char)(arg1)->GetC(); | |
5204 | ||
5205 | wxPyEndAllowThreads(__tstate); | |
5206 | if (PyErr_Occurred()) SWIG_fail; | |
5207 | } | |
a41e16b6 | 5208 | resultobj = SPyObj_FromChar(result); |
d14a1e28 RD |
5209 | return resultobj; |
5210 | fail: | |
5211 | return NULL; | |
5212 | } | |
5213 | ||
5214 | ||
5215 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5216 | PyObject *resultobj; | |
5217 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5218 | size_t result; | |
5219 | PyObject * obj0 = 0 ; | |
5220 | char *kwnames[] = { | |
5221 | (char *) "self", NULL | |
5222 | }; | |
5223 | ||
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5226 | { | |
5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5228 | result = (size_t)(arg1)->LastRead(); | |
5229 | ||
5230 | wxPyEndAllowThreads(__tstate); | |
5231 | if (PyErr_Occurred()) SWIG_fail; | |
5232 | } | |
a41e16b6 | 5233 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5234 | return resultobj; |
5235 | fail: | |
5236 | return NULL; | |
5237 | } | |
5238 | ||
5239 | ||
5240 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject *resultobj; | |
5242 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5243 | bool result; | |
5244 | PyObject * obj0 = 0 ; | |
5245 | char *kwnames[] = { | |
5246 | (char *) "self", NULL | |
5247 | }; | |
5248 | ||
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (bool)(arg1)->CanRead(); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | resultobj = PyInt_FromLong((long)result); | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
5265 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5266 | PyObject *resultobj; | |
5267 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5268 | bool result; | |
5269 | PyObject * obj0 = 0 ; | |
5270 | char *kwnames[] = { | |
5271 | (char *) "self", NULL | |
5272 | }; | |
5273 | ||
5274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5276 | { | |
5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5278 | result = (bool)(arg1)->Eof(); | |
5279 | ||
5280 | wxPyEndAllowThreads(__tstate); | |
5281 | if (PyErr_Occurred()) SWIG_fail; | |
5282 | } | |
5283 | resultobj = PyInt_FromLong((long)result); | |
5284 | return resultobj; | |
5285 | fail: | |
5286 | return NULL; | |
5287 | } | |
5288 | ||
5289 | ||
5290 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5291 | PyObject *resultobj; | |
5292 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5293 | char arg2 ; | |
5294 | bool result; | |
5295 | PyObject * obj0 = 0 ; | |
5296 | char *kwnames[] = { | |
5297 | (char *) "self",(char *) "c", NULL | |
5298 | }; | |
5299 | ||
5300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oc:InputStream_Ungetch",kwnames,&obj0,&arg2)) goto fail; | |
5301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5302 | { | |
5303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5304 | result = (bool)(arg1)->Ungetch(arg2); | |
5305 | ||
5306 | wxPyEndAllowThreads(__tstate); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | } | |
5309 | resultobj = PyInt_FromLong((long)result); | |
5310 | return resultobj; | |
5311 | fail: | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
5316 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5317 | PyObject *resultobj; | |
5318 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5319 | long arg2 ; | |
5320 | int arg3 = (int) wxFromStart ; | |
5321 | long result; | |
5322 | PyObject * obj0 = 0 ; | |
5323 | char *kwnames[] = { | |
5324 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5325 | }; | |
5326 | ||
5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:InputStream_SeekI",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5329 | { | |
5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5331 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5332 | ||
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | resultobj = PyInt_FromLong((long)result); | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
5340 | } | |
5341 | ||
5342 | ||
5343 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj; | |
5345 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5346 | long result; | |
5347 | PyObject * obj0 = 0 ; | |
5348 | char *kwnames[] = { | |
5349 | (char *) "self", NULL | |
5350 | }; | |
5351 | ||
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5354 | { | |
5355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5356 | result = (long)(arg1)->TellI(); | |
5357 | ||
5358 | wxPyEndAllowThreads(__tstate); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | } | |
5361 | resultobj = PyInt_FromLong((long)result); | |
5362 | return resultobj; | |
5363 | fail: | |
5364 | return NULL; | |
5365 | } | |
5366 | ||
5367 | ||
5368 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5369 | PyObject *obj; | |
5370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5371 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5372 | Py_INCREF(obj); | |
5373 | return Py_BuildValue((char *)""); | |
5374 | } | |
5375 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5376 | PyObject *resultobj; | |
5377 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5378 | PyObject *arg2 = (PyObject *) 0 ; | |
5379 | PyObject * obj0 = 0 ; | |
5380 | PyObject * obj1 = 0 ; | |
5381 | char *kwnames[] = { | |
5382 | (char *) "self",(char *) "obj", NULL | |
5383 | }; | |
5384 | ||
5385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5387 | arg2 = obj1; | |
5388 | { | |
5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5390 | wxOutputStream_write(arg1,arg2); | |
5391 | ||
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
5395 | Py_INCREF(Py_None); resultobj = Py_None; | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5403 | PyObject *obj; | |
5404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5405 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5406 | Py_INCREF(obj); | |
5407 | return Py_BuildValue((char *)""); | |
5408 | } | |
5409 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5412 | wxString *arg2 = 0 ; | |
5413 | wxString *arg3 = 0 ; | |
5414 | wxString *arg4 = 0 ; | |
5415 | wxDateTime arg5 ; | |
5416 | wxFSFile *result; | |
5417 | wxPyInputStream *temp1 ; | |
5418 | bool created1 ; | |
e811c8ce RD |
5419 | bool temp2 = False ; |
5420 | bool temp3 = False ; | |
5421 | bool temp4 = False ; | |
d14a1e28 RD |
5422 | wxDateTime *argp5 ; |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | PyObject * obj2 = 0 ; | |
5426 | PyObject * obj3 = 0 ; | |
5427 | PyObject * obj4 = 0 ; | |
5428 | char *kwnames[] = { | |
5429 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5433 | { | |
5434 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5435 | arg1 = temp1->m_wxis; | |
e811c8ce | 5436 | created1 = False; |
d14a1e28 RD |
5437 | } else { |
5438 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 5439 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5440 | if (arg1 == NULL) { |
5441 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5442 | SWIG_fail; | |
5443 | } | |
e811c8ce | 5444 | created1 = True; |
d14a1e28 RD |
5445 | } |
5446 | } | |
5447 | { | |
5448 | arg2 = wxString_in_helper(obj1); | |
5449 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5450 | temp2 = True; |
d14a1e28 RD |
5451 | } |
5452 | { | |
5453 | arg3 = wxString_in_helper(obj2); | |
5454 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5455 | temp3 = True; |
d14a1e28 RD |
5456 | } |
5457 | { | |
5458 | arg4 = wxString_in_helper(obj3); | |
5459 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5460 | temp4 = True; |
d14a1e28 RD |
5461 | } |
5462 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5463 | arg5 = *argp5; | |
5464 | { | |
5465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5466 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5467 | ||
5468 | wxPyEndAllowThreads(__tstate); | |
5469 | if (PyErr_Occurred()) SWIG_fail; | |
5470 | } | |
5471 | { | |
5472 | resultobj = wxPyMake_wxObject(result); | |
5473 | } | |
5474 | { | |
5475 | if (created1) | |
5476 | delete arg1; | |
5477 | } | |
5478 | { | |
5479 | if (temp2) | |
5480 | delete arg2; | |
5481 | } | |
5482 | { | |
5483 | if (temp3) | |
5484 | delete arg3; | |
5485 | } | |
5486 | { | |
5487 | if (temp4) | |
5488 | delete arg4; | |
5489 | } | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | { | |
5493 | if (created1) | |
5494 | delete arg1; | |
5495 | } | |
5496 | { | |
5497 | if (temp2) | |
5498 | delete arg2; | |
5499 | } | |
5500 | { | |
5501 | if (temp3) | |
5502 | delete arg3; | |
5503 | } | |
5504 | { | |
5505 | if (temp4) | |
5506 | delete arg4; | |
5507 | } | |
5508 | return NULL; | |
5509 | } | |
5510 | ||
5511 | ||
5512 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject *resultobj; | |
5514 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5515 | PyObject * obj0 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "self", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5522 | { | |
5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5524 | delete arg1; | |
5525 | ||
5526 | wxPyEndAllowThreads(__tstate); | |
5527 | if (PyErr_Occurred()) SWIG_fail; | |
5528 | } | |
5529 | Py_INCREF(Py_None); resultobj = Py_None; | |
5530 | return resultobj; | |
5531 | fail: | |
5532 | return NULL; | |
5533 | } | |
5534 | ||
5535 | ||
5536 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5537 | PyObject *resultobj; | |
5538 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5539 | wxInputStream *result; | |
5540 | PyObject * obj0 = 0 ; | |
5541 | char *kwnames[] = { | |
5542 | (char *) "self", NULL | |
5543 | }; | |
5544 | ||
5545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | result = (wxInputStream *)(arg1)->GetStream(); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | { | |
5555 | wxPyInputStream * _ptr = NULL; | |
5556 | ||
5557 | if (result) { | |
5558 | _ptr = new wxPyInputStream(result); | |
5559 | } | |
e811c8ce | 5560 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5561 | } |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
5568 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject *resultobj; | |
5570 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5571 | wxString *result; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | char *kwnames[] = { | |
5574 | (char *) "self", NULL | |
5575 | }; | |
5576 | ||
5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5579 | { | |
5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5581 | { | |
5582 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5583 | result = (wxString *) &_result_ref; | |
5584 | } | |
5585 | ||
5586 | wxPyEndAllowThreads(__tstate); | |
5587 | if (PyErr_Occurred()) SWIG_fail; | |
5588 | } | |
cc6dd355 RD |
5589 | { |
5590 | #if wxUSE_UNICODE | |
5591 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5592 | #else | |
5593 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5594 | #endif | |
5595 | } | |
d14a1e28 RD |
5596 | return resultobj; |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject *resultobj; | |
5604 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5605 | wxString *result; | |
5606 | PyObject * obj0 = 0 ; | |
5607 | char *kwnames[] = { | |
5608 | (char *) "self", NULL | |
5609 | }; | |
5610 | ||
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | { | |
5616 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5617 | result = (wxString *) &_result_ref; | |
5618 | } | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
cc6dd355 RD |
5623 | { |
5624 | #if wxUSE_UNICODE | |
5625 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5626 | #else | |
5627 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5628 | #endif | |
5629 | } | |
d14a1e28 RD |
5630 | return resultobj; |
5631 | fail: | |
5632 | return NULL; | |
5633 | } | |
5634 | ||
5635 | ||
5636 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5637 | PyObject *resultobj; | |
5638 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5639 | wxString *result; | |
5640 | PyObject * obj0 = 0 ; | |
5641 | char *kwnames[] = { | |
5642 | (char *) "self", NULL | |
5643 | }; | |
5644 | ||
5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
5646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5647 | { | |
5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5649 | { | |
5650 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
5651 | result = (wxString *) &_result_ref; | |
5652 | } | |
5653 | ||
5654 | wxPyEndAllowThreads(__tstate); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
cc6dd355 RD |
5657 | { |
5658 | #if wxUSE_UNICODE | |
5659 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5660 | #else | |
5661 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5662 | #endif | |
5663 | } | |
d14a1e28 RD |
5664 | return resultobj; |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj; | |
5672 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5673 | wxDateTime result; | |
5674 | PyObject * obj0 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "self", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
5680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5681 | { | |
5682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5683 | result = (arg1)->GetModificationTime(); | |
5684 | ||
5685 | wxPyEndAllowThreads(__tstate); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | { | |
5689 | wxDateTime * resultptr; | |
5690 | resultptr = new wxDateTime((wxDateTime &) result); | |
5691 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
5692 | } | |
5693 | return resultobj; | |
5694 | fail: | |
5695 | return NULL; | |
5696 | } | |
5697 | ||
5698 | ||
5699 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
5700 | PyObject *obj; | |
5701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5702 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
5703 | Py_INCREF(obj); | |
5704 | return Py_BuildValue((char *)""); | |
5705 | } | |
5706 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5707 | PyObject *obj; | |
5708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5709 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
5710 | Py_INCREF(obj); | |
5711 | return Py_BuildValue((char *)""); | |
5712 | } | |
5713 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject *resultobj; | |
5715 | wxPyFileSystemHandler *result; | |
5716 | char *kwnames[] = { | |
5717 | NULL | |
5718 | }; | |
5719 | ||
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
5721 | { | |
5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5723 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
5724 | ||
5725 | wxPyEndAllowThreads(__tstate); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | } | |
5728 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject *resultobj; | |
5737 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5738 | PyObject *arg2 = (PyObject *) 0 ; | |
5739 | PyObject *arg3 = (PyObject *) 0 ; | |
5740 | PyObject * obj0 = 0 ; | |
5741 | PyObject * obj1 = 0 ; | |
5742 | PyObject * obj2 = 0 ; | |
5743 | char *kwnames[] = { | |
5744 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5745 | }; | |
5746 | ||
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5749 | arg2 = obj1; | |
5750 | arg3 = obj2; | |
5751 | { | |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5754 | ||
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | Py_INCREF(Py_None); resultobj = Py_None; | |
5759 | return resultobj; | |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
5765 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject *resultobj; | |
5767 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5768 | wxString *arg2 = 0 ; | |
5769 | bool result; | |
e811c8ce | 5770 | bool temp2 = False ; |
d14a1e28 RD |
5771 | PyObject * obj0 = 0 ; |
5772 | PyObject * obj1 = 0 ; | |
5773 | char *kwnames[] = { | |
5774 | (char *) "self",(char *) "location", NULL | |
5775 | }; | |
5776 | ||
5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
5778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5779 | { | |
5780 | arg2 = wxString_in_helper(obj1); | |
5781 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5782 | temp2 = True; |
d14a1e28 RD |
5783 | } |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
5791 | resultobj = PyInt_FromLong((long)result); | |
5792 | { | |
5793 | if (temp2) | |
5794 | delete arg2; | |
5795 | } | |
5796 | return resultobj; | |
5797 | fail: | |
5798 | { | |
5799 | if (temp2) | |
5800 | delete arg2; | |
5801 | } | |
5802 | return NULL; | |
5803 | } | |
5804 | ||
5805 | ||
5806 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5807 | PyObject *resultobj; | |
5808 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5809 | wxFileSystem *arg2 = 0 ; | |
5810 | wxString *arg3 = 0 ; | |
5811 | wxFSFile *result; | |
e811c8ce | 5812 | bool temp3 = False ; |
d14a1e28 RD |
5813 | PyObject * obj0 = 0 ; |
5814 | PyObject * obj1 = 0 ; | |
5815 | PyObject * obj2 = 0 ; | |
5816 | char *kwnames[] = { | |
5817 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
5818 | }; | |
5819 | ||
5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | if (arg2 == NULL) { | |
5824 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5825 | } | |
5826 | { | |
5827 | arg3 = wxString_in_helper(obj2); | |
5828 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5829 | temp3 = True; |
d14a1e28 RD |
5830 | } |
5831 | { | |
5832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5833 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
5834 | ||
5835 | wxPyEndAllowThreads(__tstate); | |
5836 | if (PyErr_Occurred()) SWIG_fail; | |
5837 | } | |
5838 | { | |
5839 | resultobj = wxPyMake_wxObject(result); | |
5840 | } | |
5841 | { | |
5842 | if (temp3) | |
5843 | delete arg3; | |
5844 | } | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | { | |
5848 | if (temp3) | |
5849 | delete arg3; | |
5850 | } | |
5851 | return NULL; | |
5852 | } | |
5853 | ||
5854 | ||
5855 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5856 | PyObject *resultobj; | |
5857 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5858 | wxString *arg2 = 0 ; | |
5859 | int arg3 = (int) 0 ; | |
5860 | wxString result; | |
e811c8ce | 5861 | bool temp2 = False ; |
d14a1e28 RD |
5862 | PyObject * obj0 = 0 ; |
5863 | PyObject * obj1 = 0 ; | |
5864 | char *kwnames[] = { | |
5865 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
5866 | }; | |
5867 | ||
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5870 | { | |
5871 | arg2 = wxString_in_helper(obj1); | |
5872 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5873 | temp2 = True; |
d14a1e28 RD |
5874 | } |
5875 | { | |
5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5877 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
5878 | ||
5879 | wxPyEndAllowThreads(__tstate); | |
5880 | if (PyErr_Occurred()) SWIG_fail; | |
5881 | } | |
5882 | { | |
5883 | #if wxUSE_UNICODE | |
5884 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5885 | #else | |
5886 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5887 | #endif | |
5888 | } | |
5889 | { | |
5890 | if (temp2) | |
5891 | delete arg2; | |
5892 | } | |
5893 | return resultobj; | |
5894 | fail: | |
5895 | { | |
5896 | if (temp2) | |
5897 | delete arg2; | |
5898 | } | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
5903 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5904 | PyObject *resultobj; | |
5905 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5906 | wxString result; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self", NULL | |
5910 | }; | |
5911 | ||
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
5913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (arg1)->FindNext(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | { | |
5922 | #if wxUSE_UNICODE | |
5923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5924 | #else | |
5925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5926 | #endif | |
5927 | } | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject *resultobj; | |
5936 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5937 | wxString *arg2 = 0 ; | |
5938 | wxString result; | |
e811c8ce | 5939 | bool temp2 = False ; |
d14a1e28 RD |
5940 | PyObject * obj0 = 0 ; |
5941 | PyObject * obj1 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self",(char *) "location", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
5947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5948 | { | |
5949 | arg2 = wxString_in_helper(obj1); | |
5950 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5951 | temp2 = True; |
d14a1e28 RD |
5952 | } |
5953 | { | |
5954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5955 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
5956 | ||
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
5960 | { | |
5961 | #if wxUSE_UNICODE | |
5962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5963 | #else | |
5964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5965 | #endif | |
5966 | } | |
5967 | { | |
5968 | if (temp2) | |
5969 | delete arg2; | |
5970 | } | |
5971 | return resultobj; | |
5972 | fail: | |
5973 | { | |
5974 | if (temp2) | |
5975 | delete arg2; | |
5976 | } | |
5977 | return NULL; | |
5978 | } | |
5979 | ||
5980 | ||
5981 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5982 | PyObject *resultobj; | |
5983 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5984 | wxString *arg2 = 0 ; | |
5985 | wxString result; | |
e811c8ce | 5986 | bool temp2 = False ; |
d14a1e28 RD |
5987 | PyObject * obj0 = 0 ; |
5988 | PyObject * obj1 = 0 ; | |
5989 | char *kwnames[] = { | |
5990 | (char *) "self",(char *) "location", NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
5994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5995 | { | |
5996 | arg2 = wxString_in_helper(obj1); | |
5997 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5998 | temp2 = True; |
d14a1e28 RD |
5999 | } |
6000 | { | |
6001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6002 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6003 | ||
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) SWIG_fail; | |
6006 | } | |
6007 | { | |
6008 | #if wxUSE_UNICODE | |
6009 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6010 | #else | |
6011 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6012 | #endif | |
6013 | } | |
6014 | { | |
6015 | if (temp2) | |
6016 | delete arg2; | |
6017 | } | |
6018 | return resultobj; | |
6019 | fail: | |
6020 | { | |
6021 | if (temp2) | |
6022 | delete arg2; | |
6023 | } | |
6024 | return NULL; | |
6025 | } | |
6026 | ||
6027 | ||
6028 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject *resultobj; | |
6030 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6031 | wxString *arg2 = 0 ; | |
6032 | wxString result; | |
e811c8ce | 6033 | bool temp2 = False ; |
d14a1e28 RD |
6034 | PyObject * obj0 = 0 ; |
6035 | PyObject * obj1 = 0 ; | |
6036 | char *kwnames[] = { | |
6037 | (char *) "self",(char *) "location", NULL | |
6038 | }; | |
6039 | ||
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6042 | { | |
6043 | arg2 = wxString_in_helper(obj1); | |
6044 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6045 | temp2 = True; |
d14a1e28 RD |
6046 | } |
6047 | { | |
6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6049 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6050 | ||
6051 | wxPyEndAllowThreads(__tstate); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
6054 | { | |
6055 | #if wxUSE_UNICODE | |
6056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6057 | #else | |
6058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6059 | #endif | |
6060 | } | |
6061 | { | |
6062 | if (temp2) | |
6063 | delete arg2; | |
6064 | } | |
6065 | return resultobj; | |
6066 | fail: | |
6067 | { | |
6068 | if (temp2) | |
6069 | delete arg2; | |
6070 | } | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj; | |
6077 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6078 | wxString *arg2 = 0 ; | |
6079 | wxString result; | |
e811c8ce | 6080 | bool temp2 = False ; |
d14a1e28 RD |
6081 | PyObject * obj0 = 0 ; |
6082 | PyObject * obj1 = 0 ; | |
6083 | char *kwnames[] = { | |
6084 | (char *) "self",(char *) "location", NULL | |
6085 | }; | |
6086 | ||
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6089 | { | |
6090 | arg2 = wxString_in_helper(obj1); | |
6091 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6092 | temp2 = True; |
d14a1e28 RD |
6093 | } |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | { | |
6102 | #if wxUSE_UNICODE | |
6103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6104 | #else | |
6105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6106 | #endif | |
6107 | } | |
6108 | { | |
6109 | if (temp2) | |
6110 | delete arg2; | |
6111 | } | |
6112 | return resultobj; | |
6113 | fail: | |
6114 | { | |
6115 | if (temp2) | |
6116 | delete arg2; | |
6117 | } | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
6122 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6123 | PyObject *resultobj; | |
6124 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6125 | wxString *arg2 = 0 ; | |
6126 | wxString result; | |
e811c8ce | 6127 | bool temp2 = False ; |
d14a1e28 RD |
6128 | PyObject * obj0 = 0 ; |
6129 | PyObject * obj1 = 0 ; | |
6130 | char *kwnames[] = { | |
6131 | (char *) "self",(char *) "location", NULL | |
6132 | }; | |
6133 | ||
6134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6136 | { | |
6137 | arg2 = wxString_in_helper(obj1); | |
6138 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6139 | temp2 = True; |
d14a1e28 RD |
6140 | } |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | #if wxUSE_UNICODE | |
6150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6151 | #else | |
6152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6153 | #endif | |
6154 | } | |
6155 | { | |
6156 | if (temp2) | |
6157 | delete arg2; | |
6158 | } | |
6159 | return resultobj; | |
6160 | fail: | |
6161 | { | |
6162 | if (temp2) | |
6163 | delete arg2; | |
6164 | } | |
6165 | return NULL; | |
6166 | } | |
6167 | ||
6168 | ||
6169 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6170 | PyObject *obj; | |
6171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6172 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6173 | Py_INCREF(obj); | |
6174 | return Py_BuildValue((char *)""); | |
6175 | } | |
6176 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6177 | PyObject *resultobj; | |
6178 | wxFileSystem *result; | |
6179 | char *kwnames[] = { | |
6180 | NULL | |
6181 | }; | |
6182 | ||
6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (wxFileSystem *)new wxFileSystem(); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | resultobj = wxPyMake_wxObject(result); | |
6193 | } | |
6194 | return resultobj; | |
6195 | fail: | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
6200 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6201 | PyObject *resultobj; | |
6202 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6203 | PyObject * obj0 = 0 ; | |
6204 | char *kwnames[] = { | |
6205 | (char *) "self", NULL | |
6206 | }; | |
6207 | ||
6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | delete arg1; | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | Py_INCREF(Py_None); resultobj = Py_None; | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
6224 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6225 | PyObject *resultobj; | |
6226 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6227 | wxString *arg2 = 0 ; | |
e811c8ce RD |
6228 | bool arg3 = (bool) False ; |
6229 | bool temp2 = False ; | |
d14a1e28 RD |
6230 | PyObject * obj0 = 0 ; |
6231 | PyObject * obj1 = 0 ; | |
6232 | PyObject * obj2 = 0 ; | |
6233 | char *kwnames[] = { | |
6234 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6235 | }; | |
6236 | ||
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6239 | { | |
6240 | arg2 = wxString_in_helper(obj1); | |
6241 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6242 | temp2 = True; |
d14a1e28 RD |
6243 | } |
6244 | if (obj2) { | |
a41e16b6 RD |
6245 | { |
6246 | arg3 = (bool) SPyObj_AsBool(obj2); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
d14a1e28 RD |
6249 | } |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | Py_INCREF(Py_None); resultobj = Py_None; | |
6258 | { | |
6259 | if (temp2) | |
6260 | delete arg2; | |
6261 | } | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | { | |
6265 | if (temp2) | |
6266 | delete arg2; | |
6267 | } | |
6268 | return NULL; | |
6269 | } | |
6270 | ||
6271 | ||
6272 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject *resultobj; | |
6274 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6275 | wxString result; | |
6276 | PyObject * obj0 = 0 ; | |
6277 | char *kwnames[] = { | |
6278 | (char *) "self", NULL | |
6279 | }; | |
6280 | ||
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (arg1)->GetPath(); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
6291 | #if wxUSE_UNICODE | |
6292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6293 | #else | |
6294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6295 | #endif | |
6296 | } | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6306 | wxString *arg2 = 0 ; | |
6307 | wxFSFile *result; | |
e811c8ce | 6308 | bool temp2 = False ; |
d14a1e28 RD |
6309 | PyObject * obj0 = 0 ; |
6310 | PyObject * obj1 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self",(char *) "location", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6317 | { | |
6318 | arg2 = wxString_in_helper(obj1); | |
6319 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6320 | temp2 = True; |
d14a1e28 RD |
6321 | } |
6322 | { | |
6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6324 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6325 | ||
6326 | wxPyEndAllowThreads(__tstate); | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | } | |
6329 | { | |
6330 | resultobj = wxPyMake_wxObject(result); | |
6331 | } | |
6332 | { | |
6333 | if (temp2) | |
6334 | delete arg2; | |
6335 | } | |
6336 | return resultobj; | |
6337 | fail: | |
6338 | { | |
6339 | if (temp2) | |
6340 | delete arg2; | |
6341 | } | |
6342 | return NULL; | |
6343 | } | |
6344 | ||
6345 | ||
6346 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6347 | PyObject *resultobj; | |
6348 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6349 | wxString *arg2 = 0 ; | |
6350 | int arg3 = (int) 0 ; | |
6351 | wxString result; | |
e811c8ce | 6352 | bool temp2 = False ; |
d14a1e28 RD |
6353 | PyObject * obj0 = 0 ; |
6354 | PyObject * obj1 = 0 ; | |
6355 | char *kwnames[] = { | |
6356 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6357 | }; | |
6358 | ||
6359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystem_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6361 | { | |
6362 | arg2 = wxString_in_helper(obj1); | |
6363 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6364 | temp2 = True; |
d14a1e28 RD |
6365 | } |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | { | |
6374 | #if wxUSE_UNICODE | |
6375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6376 | #else | |
6377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6378 | #endif | |
6379 | } | |
6380 | { | |
6381 | if (temp2) | |
6382 | delete arg2; | |
6383 | } | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | { | |
6387 | if (temp2) | |
6388 | delete arg2; | |
6389 | } | |
6390 | return NULL; | |
6391 | } | |
6392 | ||
6393 | ||
6394 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6395 | PyObject *resultobj; | |
6396 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6397 | wxString result; | |
6398 | PyObject * obj0 = 0 ; | |
6399 | char *kwnames[] = { | |
6400 | (char *) "self", NULL | |
6401 | }; | |
6402 | ||
6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6405 | { | |
6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6407 | result = (arg1)->FindNext(); | |
6408 | ||
6409 | wxPyEndAllowThreads(__tstate); | |
6410 | if (PyErr_Occurred()) SWIG_fail; | |
6411 | } | |
6412 | { | |
6413 | #if wxUSE_UNICODE | |
6414 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6415 | #else | |
6416 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6417 | #endif | |
6418 | } | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject *resultobj; | |
6427 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6428 | PyObject * obj0 = 0 ; | |
6429 | char *kwnames[] = { | |
6430 | (char *) "handler", NULL | |
6431 | }; | |
6432 | ||
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6435 | { | |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6437 | wxFileSystem::AddHandler(arg1); | |
6438 | ||
6439 | wxPyEndAllowThreads(__tstate); | |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
6441 | } | |
6442 | Py_INCREF(Py_None); resultobj = Py_None; | |
6443 | return resultobj; | |
6444 | fail: | |
6445 | return NULL; | |
6446 | } | |
6447 | ||
6448 | ||
6449 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6450 | PyObject *resultobj; | |
6451 | char *kwnames[] = { | |
6452 | NULL | |
6453 | }; | |
6454 | ||
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6456 | { | |
6457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6458 | wxFileSystem::CleanUpHandlers(); | |
6459 | ||
6460 | wxPyEndAllowThreads(__tstate); | |
6461 | if (PyErr_Occurred()) SWIG_fail; | |
6462 | } | |
6463 | Py_INCREF(Py_None); resultobj = Py_None; | |
6464 | return resultobj; | |
6465 | fail: | |
6466 | return NULL; | |
6467 | } | |
6468 | ||
6469 | ||
6470 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6471 | PyObject *resultobj; | |
6472 | wxString *arg1 = 0 ; | |
6473 | wxString result; | |
e811c8ce | 6474 | bool temp1 = False ; |
d14a1e28 RD |
6475 | PyObject * obj0 = 0 ; |
6476 | char *kwnames[] = { | |
6477 | (char *) "filename", NULL | |
6478 | }; | |
6479 | ||
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6481 | { | |
6482 | arg1 = wxString_in_helper(obj0); | |
6483 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6484 | temp1 = True; |
d14a1e28 RD |
6485 | } |
6486 | { | |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6488 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6489 | ||
6490 | wxPyEndAllowThreads(__tstate); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
6493 | { | |
6494 | #if wxUSE_UNICODE | |
6495 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6496 | #else | |
6497 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6498 | #endif | |
6499 | } | |
6500 | { | |
6501 | if (temp1) | |
6502 | delete arg1; | |
6503 | } | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | { | |
6507 | if (temp1) | |
6508 | delete arg1; | |
6509 | } | |
6510 | return NULL; | |
6511 | } | |
6512 | ||
6513 | ||
6514 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6515 | PyObject *obj; | |
6516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6517 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6518 | Py_INCREF(obj); | |
6519 | return Py_BuildValue((char *)""); | |
6520 | } | |
6521 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6522 | PyObject *resultobj; | |
6523 | wxString *arg1 = 0 ; | |
6524 | wxString result; | |
e811c8ce | 6525 | bool temp1 = False ; |
d14a1e28 RD |
6526 | PyObject * obj0 = 0 ; |
6527 | char *kwnames[] = { | |
6528 | (char *) "url", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6532 | { | |
6533 | arg1 = wxString_in_helper(obj0); | |
6534 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6535 | temp1 = True; |
d14a1e28 RD |
6536 | } |
6537 | { | |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6540 | ||
6541 | wxPyEndAllowThreads(__tstate); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | { | |
6545 | #if wxUSE_UNICODE | |
6546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6547 | #else | |
6548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6549 | #endif | |
6550 | } | |
6551 | { | |
6552 | if (temp1) | |
6553 | delete arg1; | |
6554 | } | |
6555 | return resultobj; | |
6556 | fail: | |
6557 | { | |
6558 | if (temp1) | |
6559 | delete arg1; | |
6560 | } | |
6561 | return NULL; | |
6562 | } | |
6563 | ||
6564 | ||
6565 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6566 | PyObject *resultobj; | |
6567 | wxInternetFSHandler *result; | |
6568 | char *kwnames[] = { | |
6569 | NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6573 | { | |
6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6575 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6576 | ||
6577 | wxPyEndAllowThreads(__tstate); | |
6578 | if (PyErr_Occurred()) SWIG_fail; | |
6579 | } | |
6580 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | return NULL; | |
6584 | } | |
6585 | ||
6586 | ||
6587 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject *resultobj; | |
6589 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6590 | wxString *arg2 = 0 ; | |
6591 | bool result; | |
e811c8ce | 6592 | bool temp2 = False ; |
d14a1e28 RD |
6593 | PyObject * obj0 = 0 ; |
6594 | PyObject * obj1 = 0 ; | |
6595 | char *kwnames[] = { | |
6596 | (char *) "self",(char *) "location", NULL | |
6597 | }; | |
6598 | ||
6599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6601 | { | |
6602 | arg2 = wxString_in_helper(obj1); | |
6603 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6604 | temp2 = True; |
d14a1e28 RD |
6605 | } |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | resultobj = PyInt_FromLong((long)result); | |
6614 | { | |
6615 | if (temp2) | |
6616 | delete arg2; | |
6617 | } | |
6618 | return resultobj; | |
6619 | fail: | |
6620 | { | |
6621 | if (temp2) | |
6622 | delete arg2; | |
6623 | } | |
6624 | return NULL; | |
6625 | } | |
6626 | ||
6627 | ||
6628 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6629 | PyObject *resultobj; | |
6630 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6631 | wxFileSystem *arg2 = 0 ; | |
6632 | wxString *arg3 = 0 ; | |
6633 | wxFSFile *result; | |
e811c8ce | 6634 | bool temp3 = False ; |
d14a1e28 RD |
6635 | PyObject * obj0 = 0 ; |
6636 | PyObject * obj1 = 0 ; | |
6637 | PyObject * obj2 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6645 | if (arg2 == NULL) { | |
6646 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6647 | } | |
6648 | { | |
6649 | arg3 = wxString_in_helper(obj2); | |
6650 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6651 | temp3 = True; |
d14a1e28 RD |
6652 | } |
6653 | { | |
6654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6655 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6656 | ||
6657 | wxPyEndAllowThreads(__tstate); | |
6658 | if (PyErr_Occurred()) SWIG_fail; | |
6659 | } | |
6660 | { | |
6661 | resultobj = wxPyMake_wxObject(result); | |
6662 | } | |
6663 | { | |
6664 | if (temp3) | |
6665 | delete arg3; | |
6666 | } | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | { | |
6670 | if (temp3) | |
6671 | delete arg3; | |
6672 | } | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6678 | PyObject *obj; | |
6679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6680 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
6681 | Py_INCREF(obj); | |
6682 | return Py_BuildValue((char *)""); | |
6683 | } | |
6684 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6685 | PyObject *resultobj; | |
6686 | wxZipFSHandler *result; | |
6687 | char *kwnames[] = { | |
6688 | NULL | |
6689 | }; | |
6690 | ||
6691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
6692 | { | |
6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6694 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
6695 | ||
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6709 | wxString *arg2 = 0 ; | |
6710 | bool result; | |
e811c8ce | 6711 | bool temp2 = False ; |
d14a1e28 RD |
6712 | PyObject * obj0 = 0 ; |
6713 | PyObject * obj1 = 0 ; | |
6714 | char *kwnames[] = { | |
6715 | (char *) "self",(char *) "location", NULL | |
6716 | }; | |
6717 | ||
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6720 | { | |
6721 | arg2 = wxString_in_helper(obj1); | |
6722 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6723 | temp2 = True; |
d14a1e28 RD |
6724 | } |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | resultobj = PyInt_FromLong((long)result); | |
6733 | { | |
6734 | if (temp2) | |
6735 | delete arg2; | |
6736 | } | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | { | |
6740 | if (temp2) | |
6741 | delete arg2; | |
6742 | } | |
6743 | return NULL; | |
6744 | } | |
6745 | ||
6746 | ||
6747 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject *resultobj; | |
6749 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6750 | wxFileSystem *arg2 = 0 ; | |
6751 | wxString *arg3 = 0 ; | |
6752 | wxFSFile *result; | |
e811c8ce | 6753 | bool temp3 = False ; |
d14a1e28 RD |
6754 | PyObject * obj0 = 0 ; |
6755 | PyObject * obj1 = 0 ; | |
6756 | PyObject * obj2 = 0 ; | |
6757 | char *kwnames[] = { | |
6758 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6759 | }; | |
6760 | ||
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6763 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6764 | if (arg2 == NULL) { | |
6765 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6766 | } | |
6767 | { | |
6768 | arg3 = wxString_in_helper(obj2); | |
6769 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6770 | temp3 = True; |
d14a1e28 RD |
6771 | } |
6772 | { | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6775 | ||
6776 | wxPyEndAllowThreads(__tstate); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | { | |
6780 | resultobj = wxPyMake_wxObject(result); | |
6781 | } | |
6782 | { | |
6783 | if (temp3) | |
6784 | delete arg3; | |
6785 | } | |
6786 | return resultobj; | |
6787 | fail: | |
6788 | { | |
6789 | if (temp3) | |
6790 | delete arg3; | |
6791 | } | |
6792 | return NULL; | |
6793 | } | |
6794 | ||
6795 | ||
6796 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6797 | PyObject *resultobj; | |
6798 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6799 | wxString *arg2 = 0 ; | |
6800 | int arg3 = (int) 0 ; | |
6801 | wxString result; | |
e811c8ce | 6802 | bool temp2 = False ; |
d14a1e28 RD |
6803 | PyObject * obj0 = 0 ; |
6804 | PyObject * obj1 = 0 ; | |
6805 | char *kwnames[] = { | |
6806 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6807 | }; | |
6808 | ||
6809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6811 | { | |
6812 | arg2 = wxString_in_helper(obj1); | |
6813 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6814 | temp2 = True; |
d14a1e28 RD |
6815 | } |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | { | |
6824 | #if wxUSE_UNICODE | |
6825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6826 | #else | |
6827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6828 | #endif | |
6829 | } | |
6830 | { | |
6831 | if (temp2) | |
6832 | delete arg2; | |
6833 | } | |
6834 | return resultobj; | |
6835 | fail: | |
6836 | { | |
6837 | if (temp2) | |
6838 | delete arg2; | |
6839 | } | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
6844 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6845 | PyObject *resultobj; | |
6846 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6847 | wxString result; | |
6848 | PyObject * obj0 = 0 ; | |
6849 | char *kwnames[] = { | |
6850 | (char *) "self", NULL | |
6851 | }; | |
6852 | ||
6853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
6854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6855 | { | |
6856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6857 | result = (arg1)->FindNext(); | |
6858 | ||
6859 | wxPyEndAllowThreads(__tstate); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
6861 | } | |
6862 | { | |
6863 | #if wxUSE_UNICODE | |
6864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6865 | #else | |
6866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6867 | #endif | |
6868 | } | |
6869 | return resultobj; | |
6870 | fail: | |
6871 | return NULL; | |
6872 | } | |
6873 | ||
6874 | ||
6875 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6876 | PyObject *obj; | |
6877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6878 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
6879 | Py_INCREF(obj); | |
6880 | return Py_BuildValue((char *)""); | |
6881 | } | |
6882 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6883 | PyObject *resultobj; | |
6884 | wxString *arg1 = 0 ; | |
6885 | wxImage *arg2 = 0 ; | |
6886 | long arg3 ; | |
e811c8ce | 6887 | bool temp1 = False ; |
d14a1e28 RD |
6888 | PyObject * obj0 = 0 ; |
6889 | PyObject * obj1 = 0 ; | |
6890 | char *kwnames[] = { | |
6891 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
6892 | }; | |
6893 | ||
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6895 | { | |
6896 | arg1 = wxString_in_helper(obj0); | |
6897 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6898 | temp1 = True; |
d14a1e28 RD |
6899 | } |
6900 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6901 | if (arg2 == NULL) { | |
6902 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6903 | } | |
6904 | { | |
6905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6906 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
6907 | ||
6908 | wxPyEndAllowThreads(__tstate); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
6911 | Py_INCREF(Py_None); resultobj = Py_None; | |
6912 | { | |
6913 | if (temp1) | |
6914 | delete arg1; | |
6915 | } | |
6916 | return resultobj; | |
6917 | fail: | |
6918 | { | |
6919 | if (temp1) | |
6920 | delete arg1; | |
6921 | } | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
6926 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6927 | PyObject *resultobj; | |
6928 | wxString *arg1 = 0 ; | |
6929 | wxBitmap *arg2 = 0 ; | |
6930 | long arg3 ; | |
e811c8ce | 6931 | bool temp1 = False ; |
d14a1e28 RD |
6932 | PyObject * obj0 = 0 ; |
6933 | PyObject * obj1 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6939 | { | |
6940 | arg1 = wxString_in_helper(obj0); | |
6941 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6942 | temp1 = True; |
d14a1e28 RD |
6943 | } |
6944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6945 | if (arg2 == NULL) { | |
6946 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6947 | } | |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | Py_INCREF(Py_None); resultobj = Py_None; | |
6956 | { | |
6957 | if (temp1) | |
6958 | delete arg1; | |
6959 | } | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | { | |
6963 | if (temp1) | |
6964 | delete arg1; | |
6965 | } | |
6966 | return NULL; | |
6967 | } | |
6968 | ||
6969 | ||
6970 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6971 | PyObject *resultobj; | |
6972 | wxString *arg1 = 0 ; | |
6973 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 6974 | bool temp1 = False ; |
d14a1e28 RD |
6975 | PyObject * obj0 = 0 ; |
6976 | PyObject * obj1 = 0 ; | |
6977 | char *kwnames[] = { | |
6978 | (char *) "filename",(char *) "data", NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
6982 | { | |
6983 | arg1 = wxString_in_helper(obj0); | |
6984 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6985 | temp1 = True; |
d14a1e28 RD |
6986 | } |
6987 | arg2 = obj1; | |
6988 | { | |
6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6990 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
6995 | Py_INCREF(Py_None); resultobj = Py_None; | |
6996 | { | |
6997 | if (temp1) | |
6998 | delete arg1; | |
6999 | } | |
7000 | return resultobj; | |
7001 | fail: | |
7002 | { | |
7003 | if (temp1) | |
7004 | delete arg1; | |
7005 | } | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
7010 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7011 | PyObject *resultobj; | |
7012 | wxMemoryFSHandler *result; | |
7013 | char *kwnames[] = { | |
7014 | NULL | |
7015 | }; | |
7016 | ||
7017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7018 | { | |
7019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7020 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7021 | ||
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7026 | return resultobj; | |
7027 | fail: | |
7028 | return NULL; | |
7029 | } | |
7030 | ||
7031 | ||
7032 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7033 | PyObject *resultobj; | |
7034 | wxString *arg1 = 0 ; | |
e811c8ce | 7035 | bool temp1 = False ; |
d14a1e28 RD |
7036 | PyObject * obj0 = 0 ; |
7037 | char *kwnames[] = { | |
7038 | (char *) "filename", NULL | |
7039 | }; | |
7040 | ||
7041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7042 | { | |
7043 | arg1 = wxString_in_helper(obj0); | |
7044 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7045 | temp1 = True; |
d14a1e28 RD |
7046 | } |
7047 | { | |
7048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7049 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7050 | ||
7051 | wxPyEndAllowThreads(__tstate); | |
7052 | if (PyErr_Occurred()) SWIG_fail; | |
7053 | } | |
7054 | Py_INCREF(Py_None); resultobj = Py_None; | |
7055 | { | |
7056 | if (temp1) | |
7057 | delete arg1; | |
7058 | } | |
7059 | return resultobj; | |
7060 | fail: | |
7061 | { | |
7062 | if (temp1) | |
7063 | delete arg1; | |
7064 | } | |
7065 | return NULL; | |
7066 | } | |
7067 | ||
7068 | ||
7069 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7072 | wxString *arg2 = 0 ; | |
7073 | bool result; | |
e811c8ce | 7074 | bool temp2 = False ; |
d14a1e28 RD |
7075 | PyObject * obj0 = 0 ; |
7076 | PyObject * obj1 = 0 ; | |
7077 | char *kwnames[] = { | |
7078 | (char *) "self",(char *) "location", NULL | |
7079 | }; | |
7080 | ||
7081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7083 | { | |
7084 | arg2 = wxString_in_helper(obj1); | |
7085 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7086 | temp2 = True; |
d14a1e28 RD |
7087 | } |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | resultobj = PyInt_FromLong((long)result); | |
7096 | { | |
7097 | if (temp2) | |
7098 | delete arg2; | |
7099 | } | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | { | |
7103 | if (temp2) | |
7104 | delete arg2; | |
7105 | } | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj; | |
7112 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7113 | wxFileSystem *arg2 = 0 ; | |
7114 | wxString *arg3 = 0 ; | |
7115 | wxFSFile *result; | |
e811c8ce | 7116 | bool temp3 = False ; |
d14a1e28 RD |
7117 | PyObject * obj0 = 0 ; |
7118 | PyObject * obj1 = 0 ; | |
7119 | PyObject * obj2 = 0 ; | |
7120 | char *kwnames[] = { | |
7121 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7122 | }; | |
7123 | ||
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7126 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7127 | if (arg2 == NULL) { | |
7128 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | arg3 = wxString_in_helper(obj2); | |
7132 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7133 | temp3 = True; |
d14a1e28 RD |
7134 | } |
7135 | { | |
7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7137 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7138 | ||
7139 | wxPyEndAllowThreads(__tstate); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | } | |
7142 | { | |
7143 | resultobj = wxPyMake_wxObject(result); | |
7144 | } | |
7145 | { | |
7146 | if (temp3) | |
7147 | delete arg3; | |
7148 | } | |
7149 | return resultobj; | |
7150 | fail: | |
7151 | { | |
7152 | if (temp3) | |
7153 | delete arg3; | |
7154 | } | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7162 | wxString *arg2 = 0 ; | |
7163 | int arg3 = (int) 0 ; | |
7164 | wxString result; | |
e811c8ce | 7165 | bool temp2 = False ; |
d14a1e28 RD |
7166 | PyObject * obj0 = 0 ; |
7167 | PyObject * obj1 = 0 ; | |
7168 | char *kwnames[] = { | |
7169 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7170 | }; | |
7171 | ||
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7174 | { | |
7175 | arg2 = wxString_in_helper(obj1); | |
7176 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7177 | temp2 = True; |
d14a1e28 RD |
7178 | } |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | { | |
7187 | #if wxUSE_UNICODE | |
7188 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7189 | #else | |
7190 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7191 | #endif | |
7192 | } | |
7193 | { | |
7194 | if (temp2) | |
7195 | delete arg2; | |
7196 | } | |
7197 | return resultobj; | |
7198 | fail: | |
7199 | { | |
7200 | if (temp2) | |
7201 | delete arg2; | |
7202 | } | |
7203 | return NULL; | |
7204 | } | |
7205 | ||
7206 | ||
7207 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7208 | PyObject *resultobj; | |
7209 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7210 | wxString result; | |
7211 | PyObject * obj0 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "self", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (arg1)->FindNext(); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | { | |
7226 | #if wxUSE_UNICODE | |
7227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7228 | #else | |
7229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7230 | #endif | |
7231 | } | |
7232 | return resultobj; | |
7233 | fail: | |
7234 | return NULL; | |
7235 | } | |
7236 | ||
7237 | ||
7238 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7239 | PyObject *obj; | |
7240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7241 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7242 | Py_INCREF(obj); | |
7243 | return Py_BuildValue((char *)""); | |
7244 | } | |
7245 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7248 | wxString result; | |
7249 | PyObject * obj0 = 0 ; | |
7250 | char *kwnames[] = { | |
7251 | (char *) "self", NULL | |
7252 | }; | |
7253 | ||
7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7256 | { | |
7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7258 | result = (arg1)->GetName(); | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
7263 | { | |
7264 | #if wxUSE_UNICODE | |
7265 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7266 | #else | |
7267 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7268 | #endif | |
7269 | } | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
7276 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject *resultobj; | |
7278 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7279 | wxString result; | |
7280 | PyObject * obj0 = 0 ; | |
7281 | char *kwnames[] = { | |
7282 | (char *) "self", NULL | |
7283 | }; | |
7284 | ||
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7287 | { | |
7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7289 | result = (arg1)->GetExtension(); | |
7290 | ||
7291 | wxPyEndAllowThreads(__tstate); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | } | |
7294 | { | |
7295 | #if wxUSE_UNICODE | |
7296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7297 | #else | |
7298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7299 | #endif | |
7300 | } | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj; | |
7309 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7310 | long result; | |
7311 | PyObject * obj0 = 0 ; | |
7312 | char *kwnames[] = { | |
7313 | (char *) "self", NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7318 | { | |
7319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7320 | result = (long)(arg1)->GetType(); | |
7321 | ||
7322 | wxPyEndAllowThreads(__tstate); | |
7323 | if (PyErr_Occurred()) SWIG_fail; | |
7324 | } | |
7325 | resultobj = PyInt_FromLong((long)result); | |
7326 | return resultobj; | |
7327 | fail: | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
7332 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7333 | PyObject *resultobj; | |
7334 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7335 | wxString result; | |
7336 | PyObject * obj0 = 0 ; | |
7337 | char *kwnames[] = { | |
7338 | (char *) "self", NULL | |
7339 | }; | |
7340 | ||
7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | result = (arg1)->GetMimeType(); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | { | |
7351 | #if wxUSE_UNICODE | |
7352 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7353 | #else | |
7354 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7355 | #endif | |
7356 | } | |
7357 | return resultobj; | |
7358 | fail: | |
7359 | return NULL; | |
7360 | } | |
7361 | ||
7362 | ||
7363 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject *resultobj; | |
7365 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7366 | wxString *arg2 = 0 ; | |
7367 | bool result; | |
e811c8ce | 7368 | bool temp2 = False ; |
d14a1e28 RD |
7369 | PyObject * obj0 = 0 ; |
7370 | PyObject * obj1 = 0 ; | |
7371 | char *kwnames[] = { | |
7372 | (char *) "self",(char *) "name", NULL | |
7373 | }; | |
7374 | ||
7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7377 | { | |
7378 | arg2 = wxString_in_helper(obj1); | |
7379 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7380 | temp2 = True; |
d14a1e28 RD |
7381 | } |
7382 | { | |
7383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7384 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7385 | ||
7386 | wxPyEndAllowThreads(__tstate); | |
7387 | if (PyErr_Occurred()) SWIG_fail; | |
7388 | } | |
7389 | resultobj = PyInt_FromLong((long)result); | |
7390 | { | |
7391 | if (temp2) | |
7392 | delete arg2; | |
7393 | } | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | { | |
7397 | if (temp2) | |
7398 | delete arg2; | |
7399 | } | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7407 | wxString *arg2 = 0 ; | |
e811c8ce | 7408 | bool temp2 = False ; |
d14a1e28 RD |
7409 | PyObject * obj0 = 0 ; |
7410 | PyObject * obj1 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "self",(char *) "name", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7417 | { | |
7418 | arg2 = wxString_in_helper(obj1); | |
7419 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7420 | temp2 = True; |
d14a1e28 RD |
7421 | } |
7422 | { | |
7423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7424 | (arg1)->SetName((wxString const &)*arg2); | |
7425 | ||
7426 | wxPyEndAllowThreads(__tstate); | |
7427 | if (PyErr_Occurred()) SWIG_fail; | |
7428 | } | |
7429 | Py_INCREF(Py_None); resultobj = Py_None; | |
7430 | { | |
7431 | if (temp2) | |
7432 | delete arg2; | |
7433 | } | |
7434 | return resultobj; | |
7435 | fail: | |
7436 | { | |
7437 | if (temp2) | |
7438 | delete arg2; | |
7439 | } | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
7444 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject *resultobj; | |
7446 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7447 | wxString *arg2 = 0 ; | |
e811c8ce | 7448 | bool temp2 = False ; |
d14a1e28 RD |
7449 | PyObject * obj0 = 0 ; |
7450 | PyObject * obj1 = 0 ; | |
7451 | char *kwnames[] = { | |
7452 | (char *) "self",(char *) "extension", NULL | |
7453 | }; | |
7454 | ||
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7457 | { | |
7458 | arg2 = wxString_in_helper(obj1); | |
7459 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7460 | temp2 = True; |
d14a1e28 RD |
7461 | } |
7462 | { | |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | (arg1)->SetExtension((wxString const &)*arg2); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
7469 | Py_INCREF(Py_None); resultobj = Py_None; | |
7470 | { | |
7471 | if (temp2) | |
7472 | delete arg2; | |
7473 | } | |
7474 | return resultobj; | |
7475 | fail: | |
7476 | { | |
7477 | if (temp2) | |
7478 | delete arg2; | |
7479 | } | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7487 | long arg2 ; | |
7488 | PyObject * obj0 = 0 ; | |
7489 | char *kwnames[] = { | |
7490 | (char *) "self",(char *) "type", NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ImageHandler_SetType",kwnames,&obj0,&arg2)) goto fail; | |
7494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | (arg1)->SetType(arg2); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | Py_INCREF(Py_None); resultobj = Py_None; | |
7503 | return resultobj; | |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
7509 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject *resultobj; | |
7511 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7512 | wxString *arg2 = 0 ; | |
e811c8ce | 7513 | bool temp2 = False ; |
d14a1e28 RD |
7514 | PyObject * obj0 = 0 ; |
7515 | PyObject * obj1 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "mimetype", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7522 | { | |
7523 | arg2 = wxString_in_helper(obj1); | |
7524 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7525 | temp2 = True; |
d14a1e28 RD |
7526 | } |
7527 | { | |
7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7529 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7530 | ||
7531 | wxPyEndAllowThreads(__tstate); | |
7532 | if (PyErr_Occurred()) SWIG_fail; | |
7533 | } | |
7534 | Py_INCREF(Py_None); resultobj = Py_None; | |
7535 | { | |
7536 | if (temp2) | |
7537 | delete arg2; | |
7538 | } | |
7539 | return resultobj; | |
7540 | fail: | |
7541 | { | |
7542 | if (temp2) | |
7543 | delete arg2; | |
7544 | } | |
7545 | return NULL; | |
7546 | } | |
7547 | ||
7548 | ||
7549 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7550 | PyObject *obj; | |
7551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7552 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7553 | Py_INCREF(obj); | |
7554 | return Py_BuildValue((char *)""); | |
7555 | } | |
7556 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject *resultobj; | |
7558 | wxImageHistogram *result; | |
7559 | char *kwnames[] = { | |
7560 | NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7564 | { | |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7567 | ||
7568 | wxPyEndAllowThreads(__tstate); | |
7569 | if (PyErr_Occurred()) SWIG_fail; | |
7570 | } | |
7571 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7572 | return resultobj; | |
7573 | fail: | |
7574 | return NULL; | |
7575 | } | |
7576 | ||
7577 | ||
7578 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject *resultobj; | |
7580 | unsigned char arg1 ; | |
7581 | unsigned char arg2 ; | |
7582 | unsigned char arg3 ; | |
7583 | unsigned long result; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | PyObject * obj1 = 0 ; | |
7586 | PyObject * obj2 = 0 ; | |
7587 | char *kwnames[] = { | |
7588 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7589 | }; | |
7590 | ||
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
a41e16b6 RD |
7592 | { |
7593 | arg1 = (unsigned char) SPyObj_AsUnsignedChar(obj0); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
7596 | { | |
7597 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
7600 | { | |
7601 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
7602 | if (PyErr_Occurred()) SWIG_fail; | |
7603 | } | |
d14a1e28 RD |
7604 | { |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
7607 | ||
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | } | |
a41e16b6 | 7611 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7612 | return resultobj; |
7613 | fail: | |
7614 | return NULL; | |
7615 | } | |
7616 | ||
7617 | ||
7618 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7619 | PyObject *resultobj; | |
7620 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
7621 | unsigned char *arg2 = (unsigned char *) 0 ; | |
7622 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7623 | unsigned char *arg4 = (unsigned char *) 0 ; | |
7624 | unsigned char arg5 = (unsigned char) 1 ; | |
7625 | unsigned char arg6 = (unsigned char) 0 ; | |
7626 | unsigned char arg7 = (unsigned char) 0 ; | |
7627 | bool result; | |
7628 | unsigned char temp2 ; | |
7629 | unsigned char temp3 ; | |
7630 | unsigned char temp4 ; | |
7631 | PyObject * obj0 = 0 ; | |
7632 | PyObject * obj1 = 0 ; | |
7633 | PyObject * obj2 = 0 ; | |
7634 | PyObject * obj3 = 0 ; | |
7635 | char *kwnames[] = { | |
7636 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
7637 | }; | |
7638 | ||
7639 | arg2 = &temp2; | |
7640 | arg3 = &temp3; | |
7641 | arg4 = &temp4; | |
7642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7644 | if (obj1) { | |
a41e16b6 RD |
7645 | { |
7646 | arg5 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
7647 | if (PyErr_Occurred()) SWIG_fail; | |
7648 | } | |
d14a1e28 RD |
7649 | } |
7650 | if (obj2) { | |
a41e16b6 RD |
7651 | { |
7652 | arg6 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
7653 | if (PyErr_Occurred()) SWIG_fail; | |
7654 | } | |
d14a1e28 RD |
7655 | } |
7656 | if (obj3) { | |
a41e16b6 RD |
7657 | { |
7658 | arg7 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
d14a1e28 RD |
7661 | } |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
7669 | resultobj = PyInt_FromLong((long)result); | |
7670 | { | |
7671 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7672 | resultobj = t_output_helper(resultobj,o); | |
7673 | } | |
7674 | { | |
7675 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7676 | resultobj = t_output_helper(resultobj,o); | |
7677 | } | |
7678 | { | |
7679 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7680 | resultobj = t_output_helper(resultobj,o); | |
7681 | } | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | return NULL; | |
7685 | } | |
7686 | ||
7687 | ||
7688 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
7689 | PyObject *obj; | |
7690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7691 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
7692 | Py_INCREF(obj); | |
7693 | return Py_BuildValue((char *)""); | |
7694 | } | |
7695 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject *resultobj; | |
7697 | wxString *arg1 = 0 ; | |
7698 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7699 | int arg3 = (int) -1 ; | |
7700 | wxImage *result; | |
e811c8ce | 7701 | bool temp1 = False ; |
d14a1e28 RD |
7702 | PyObject * obj0 = 0 ; |
7703 | char *kwnames[] = { | |
7704 | (char *) "name",(char *) "type",(char *) "index", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_Image",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7708 | { | |
7709 | arg1 = wxString_in_helper(obj0); | |
7710 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7711 | temp1 = True; |
d14a1e28 RD |
7712 | } |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7721 | { | |
7722 | if (temp1) | |
7723 | delete arg1; | |
7724 | } | |
7725 | return resultobj; | |
7726 | fail: | |
7727 | { | |
7728 | if (temp1) | |
7729 | delete arg1; | |
7730 | } | |
7731 | return NULL; | |
7732 | } | |
7733 | ||
7734 | ||
7735 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7736 | PyObject *resultobj; | |
7737 | wxImage *arg1 = (wxImage *) 0 ; | |
7738 | PyObject * obj0 = 0 ; | |
7739 | char *kwnames[] = { | |
7740 | (char *) "self", NULL | |
7741 | }; | |
7742 | ||
7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
7744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7745 | { | |
7746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7747 | delete arg1; | |
7748 | ||
7749 | wxPyEndAllowThreads(__tstate); | |
7750 | if (PyErr_Occurred()) SWIG_fail; | |
7751 | } | |
7752 | Py_INCREF(Py_None); resultobj = Py_None; | |
7753 | return resultobj; | |
7754 | fail: | |
7755 | return NULL; | |
7756 | } | |
7757 | ||
7758 | ||
7759 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject *resultobj; | |
7761 | wxString *arg1 = 0 ; | |
7762 | wxString *arg2 = 0 ; | |
7763 | int arg3 = (int) -1 ; | |
7764 | wxImage *result; | |
e811c8ce RD |
7765 | bool temp1 = False ; |
7766 | bool temp2 = False ; | |
d14a1e28 RD |
7767 | PyObject * obj0 = 0 ; |
7768 | PyObject * obj1 = 0 ; | |
7769 | char *kwnames[] = { | |
7770 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
7771 | }; | |
7772 | ||
7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7774 | { | |
7775 | arg1 = wxString_in_helper(obj0); | |
7776 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7777 | temp1 = True; |
d14a1e28 RD |
7778 | } |
7779 | { | |
7780 | arg2 = wxString_in_helper(obj1); | |
7781 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7782 | temp2 = True; |
d14a1e28 RD |
7783 | } |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7792 | { | |
7793 | if (temp1) | |
7794 | delete arg1; | |
7795 | } | |
7796 | { | |
7797 | if (temp2) | |
7798 | delete arg2; | |
7799 | } | |
7800 | return resultobj; | |
7801 | fail: | |
7802 | { | |
7803 | if (temp1) | |
7804 | delete arg1; | |
7805 | } | |
7806 | { | |
7807 | if (temp2) | |
7808 | delete arg2; | |
7809 | } | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxInputStream *arg1 = 0 ; | |
7817 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7818 | int arg3 = (int) -1 ; | |
7819 | wxImage *result; | |
7820 | wxPyInputStream *temp1 ; | |
7821 | bool created1 ; | |
7822 | PyObject * obj0 = 0 ; | |
7823 | char *kwnames[] = { | |
7824 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_ImageFromStream",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7828 | { | |
7829 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7830 | arg1 = temp1->m_wxis; | |
e811c8ce | 7831 | created1 = False; |
d14a1e28 RD |
7832 | } else { |
7833 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 7834 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7835 | if (arg1 == NULL) { |
7836 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7837 | SWIG_fail; | |
7838 | } | |
e811c8ce | 7839 | created1 = True; |
d14a1e28 RD |
7840 | } |
7841 | } | |
7842 | { | |
7843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7844 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
7845 | ||
7846 | wxPyEndAllowThreads(__tstate); | |
7847 | if (PyErr_Occurred()) SWIG_fail; | |
7848 | } | |
7849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7850 | { | |
7851 | if (created1) | |
7852 | delete arg1; | |
7853 | } | |
7854 | return resultobj; | |
7855 | fail: | |
7856 | { | |
7857 | if (created1) | |
7858 | delete arg1; | |
7859 | } | |
7860 | return NULL; | |
7861 | } | |
7862 | ||
7863 | ||
7864 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7865 | PyObject *resultobj; | |
7866 | wxInputStream *arg1 = 0 ; | |
7867 | wxString *arg2 = 0 ; | |
7868 | int arg3 = (int) -1 ; | |
7869 | wxImage *result; | |
7870 | wxPyInputStream *temp1 ; | |
7871 | bool created1 ; | |
e811c8ce | 7872 | bool temp2 = False ; |
d14a1e28 RD |
7873 | PyObject * obj0 = 0 ; |
7874 | PyObject * obj1 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7880 | { | |
7881 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7882 | arg1 = temp1->m_wxis; | |
e811c8ce | 7883 | created1 = False; |
d14a1e28 RD |
7884 | } else { |
7885 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 7886 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7887 | if (arg1 == NULL) { |
7888 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7889 | SWIG_fail; | |
7890 | } | |
e811c8ce | 7891 | created1 = True; |
d14a1e28 RD |
7892 | } |
7893 | } | |
7894 | { | |
7895 | arg2 = wxString_in_helper(obj1); | |
7896 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7897 | temp2 = True; |
d14a1e28 RD |
7898 | } |
7899 | { | |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7907 | { | |
7908 | if (created1) | |
7909 | delete arg1; | |
7910 | } | |
7911 | { | |
7912 | if (temp2) | |
7913 | delete arg2; | |
7914 | } | |
7915 | return resultobj; | |
7916 | fail: | |
7917 | { | |
7918 | if (created1) | |
7919 | delete arg1; | |
7920 | } | |
7921 | { | |
7922 | if (temp2) | |
7923 | delete arg2; | |
7924 | } | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | int arg1 = (int) 0 ; | |
7932 | int arg2 = (int) 0 ; | |
e811c8ce | 7933 | bool arg3 = (bool) True ; |
d14a1e28 RD |
7934 | wxImage *result; |
7935 | PyObject * obj2 = 0 ; | |
7936 | char *kwnames[] = { | |
7937 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
7938 | }; | |
7939 | ||
7940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_EmptyImage",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7941 | if (obj2) { | |
a41e16b6 RD |
7942 | { |
7943 | arg3 = (bool) SPyObj_AsBool(obj2); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
d14a1e28 RD |
7946 | } |
7947 | { | |
7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7949 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7950 | ||
7951 | wxPyEndAllowThreads(__tstate); | |
7952 | if (PyErr_Occurred()) SWIG_fail; | |
7953 | } | |
7954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7955 | return resultobj; | |
7956 | fail: | |
7957 | return NULL; | |
7958 | } | |
7959 | ||
7960 | ||
7961 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7962 | PyObject *resultobj; | |
7963 | wxBitmap *arg1 = 0 ; | |
7964 | wxImage *result; | |
7965 | PyObject * obj0 = 0 ; | |
7966 | char *kwnames[] = { | |
7967 | (char *) "bitmap", NULL | |
7968 | }; | |
7969 | ||
7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
7971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7972 | if (arg1 == NULL) { | |
7973 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7974 | } | |
7975 | { | |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) SWIG_fail; | |
7981 | } | |
7982 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | return NULL; | |
7986 | } | |
7987 | ||
7988 | ||
7989 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7990 | PyObject *resultobj; | |
7991 | int arg1 ; | |
7992 | int arg2 ; | |
7993 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7994 | wxImage *result; | |
7995 | PyObject * obj2 = 0 ; | |
7996 | char *kwnames[] = { | |
7997 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7998 | }; | |
7999 | ||
8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO:new_ImageFromData",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
8001 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8002 | { | |
8003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8004 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8005 | ||
8006 | wxPyEndAllowThreads(__tstate); | |
8007 | if (PyErr_Occurred()) SWIG_fail; | |
8008 | } | |
8009 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8010 | return resultobj; | |
8011 | fail: | |
8012 | return NULL; | |
8013 | } | |
8014 | ||
8015 | ||
8016 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8017 | PyObject *resultobj; | |
8018 | wxImage *arg1 = (wxImage *) 0 ; | |
8019 | int arg2 ; | |
8020 | int arg3 ; | |
8021 | PyObject * obj0 = 0 ; | |
8022 | char *kwnames[] = { | |
8023 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8024 | }; | |
8025 | ||
8026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Create",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8028 | { | |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8030 | (arg1)->Create(arg2,arg3); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | Py_INCREF(Py_None); resultobj = Py_None; | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxImage *arg1 = (wxImage *) 0 ; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | char *kwnames[] = { | |
8047 | (char *) "self", NULL | |
8048 | }; | |
8049 | ||
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | (arg1)->Destroy(); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
8059 | Py_INCREF(Py_None); resultobj = Py_None; | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxImage *arg1 = (wxImage *) 0 ; | |
8069 | int arg2 ; | |
8070 | int arg3 ; | |
8071 | SwigValueWrapper< wxImage > result; | |
8072 | PyObject * obj0 = 0 ; | |
8073 | char *kwnames[] = { | |
8074 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8075 | }; | |
8076 | ||
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | result = (arg1)->Scale(arg2,arg3); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | { | |
8087 | wxImage * resultptr; | |
8088 | resultptr = new wxImage((wxImage &) result); | |
8089 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8090 | } | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject *resultobj; | |
8099 | wxImage *arg1 = (wxImage *) 0 ; | |
8100 | int arg2 ; | |
8101 | int arg3 ; | |
8102 | SwigValueWrapper< wxImage > result; | |
8103 | PyObject * obj0 = 0 ; | |
8104 | char *kwnames[] = { | |
8105 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8106 | }; | |
8107 | ||
8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_ShrinkBy",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8110 | { | |
8111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8112 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8113 | ||
8114 | wxPyEndAllowThreads(__tstate); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
8116 | } | |
8117 | { | |
8118 | wxImage * resultptr; | |
8119 | resultptr = new wxImage((wxImage &) result); | |
8120 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8121 | } | |
8122 | return resultobj; | |
8123 | fail: | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
8128 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8129 | PyObject *resultobj; | |
8130 | wxImage *arg1 = (wxImage *) 0 ; | |
8131 | int arg2 ; | |
8132 | int arg3 ; | |
8133 | wxImage *result; | |
8134 | PyObject * obj0 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Rescale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | { | |
8144 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8145 | result = (wxImage *) &_result_ref; | |
8146 | } | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
8150 | } | |
8151 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
8158 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8159 | PyObject *resultobj; | |
8160 | wxImage *arg1 = (wxImage *) 0 ; | |
8161 | int arg2 ; | |
8162 | int arg3 ; | |
8163 | unsigned char arg4 ; | |
8164 | unsigned char arg5 ; | |
8165 | unsigned char arg6 ; | |
8166 | PyObject * obj0 = 0 ; | |
8167 | PyObject * obj3 = 0 ; | |
8168 | PyObject * obj4 = 0 ; | |
8169 | PyObject * obj5 = 0 ; | |
8170 | char *kwnames[] = { | |
8171 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8172 | }; | |
8173 | ||
8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiOOO:Image_SetRGB",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
8175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
8176 | { |
8177 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
8179 | } | |
8180 | { | |
8181 | arg5 = (unsigned char) SPyObj_AsUnsignedChar(obj4); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | { | |
8185 | arg6 = (unsigned char) SPyObj_AsUnsignedChar(obj5); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
d14a1e28 RD |
8188 | { |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8190 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8191 | ||
8192 | wxPyEndAllowThreads(__tstate); | |
8193 | if (PyErr_Occurred()) SWIG_fail; | |
8194 | } | |
8195 | Py_INCREF(Py_None); resultobj = Py_None; | |
8196 | return resultobj; | |
8197 | fail: | |
8198 | return NULL; | |
8199 | } | |
8200 | ||
8201 | ||
8202 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8203 | PyObject *resultobj; | |
8204 | wxImage *arg1 = (wxImage *) 0 ; | |
8205 | int arg2 ; | |
8206 | int arg3 ; | |
8207 | unsigned char result; | |
8208 | PyObject * obj0 = 0 ; | |
8209 | char *kwnames[] = { | |
8210 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetRed",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8215 | { | |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | resultobj = PyInt_FromLong((long)result); | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
8229 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject *resultobj; | |
8231 | wxImage *arg1 = (wxImage *) 0 ; | |
8232 | int arg2 ; | |
8233 | int arg3 ; | |
8234 | unsigned char result; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | char *kwnames[] = { | |
8237 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetGreen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8242 | { | |
8243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8244 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8245 | ||
8246 | wxPyEndAllowThreads(__tstate); | |
8247 | if (PyErr_Occurred()) SWIG_fail; | |
8248 | } | |
8249 | resultobj = PyInt_FromLong((long)result); | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | return NULL; | |
8253 | } | |
8254 | ||
8255 | ||
8256 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8257 | PyObject *resultobj; | |
8258 | wxImage *arg1 = (wxImage *) 0 ; | |
8259 | int arg2 ; | |
8260 | int arg3 ; | |
8261 | unsigned char result; | |
8262 | PyObject * obj0 = 0 ; | |
8263 | char *kwnames[] = { | |
8264 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8265 | }; | |
8266 | ||
8267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetBlue",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8269 | { | |
8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8271 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8272 | ||
8273 | wxPyEndAllowThreads(__tstate); | |
8274 | if (PyErr_Occurred()) SWIG_fail; | |
8275 | } | |
8276 | resultobj = PyInt_FromLong((long)result); | |
8277 | return resultobj; | |
8278 | fail: | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject *resultobj; | |
8285 | wxImage *arg1 = (wxImage *) 0 ; | |
8286 | int arg2 ; | |
8287 | int arg3 ; | |
8288 | unsigned char arg4 ; | |
8289 | PyObject * obj0 = 0 ; | |
8290 | PyObject * obj3 = 0 ; | |
8291 | char *kwnames[] = { | |
8292 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8293 | }; | |
8294 | ||
8295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Image_SetAlpha",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
8296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
8297 | { |
8298 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
8299 | if (PyErr_Occurred()) SWIG_fail; | |
8300 | } | |
d14a1e28 RD |
8301 | { |
8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8303 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8304 | ||
8305 | wxPyEndAllowThreads(__tstate); | |
8306 | if (PyErr_Occurred()) SWIG_fail; | |
8307 | } | |
8308 | Py_INCREF(Py_None); resultobj = Py_None; | |
8309 | return resultobj; | |
8310 | fail: | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject *resultobj; | |
8317 | wxImage *arg1 = (wxImage *) 0 ; | |
8318 | int arg2 ; | |
8319 | int arg3 ; | |
8320 | unsigned char result; | |
8321 | PyObject * obj0 = 0 ; | |
8322 | char *kwnames[] = { | |
8323 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8324 | }; | |
8325 | ||
8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetAlpha",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8328 | { | |
8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8330 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8331 | ||
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
8335 | resultobj = PyInt_FromLong((long)result); | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject *resultobj; | |
8344 | wxImage *arg1 = (wxImage *) 0 ; | |
8345 | bool result; | |
8346 | PyObject * obj0 = 0 ; | |
8347 | char *kwnames[] = { | |
8348 | (char *) "self", NULL | |
8349 | }; | |
8350 | ||
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8353 | { | |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | result = (bool)(arg1)->HasAlpha(); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | resultobj = PyInt_FromLong((long)result); | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
8367 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8368 | PyObject *resultobj; | |
8369 | wxImage *arg1 = (wxImage *) 0 ; | |
8370 | byte *arg2 = (byte *) 0 ; | |
8371 | byte *arg3 = (byte *) 0 ; | |
8372 | byte *arg4 = (byte *) 0 ; | |
8373 | byte arg5 = (byte) 0 ; | |
8374 | byte arg6 = (byte) 0 ; | |
8375 | byte arg7 = (byte) 0 ; | |
8376 | bool result; | |
8377 | byte temp2 ; | |
8378 | byte temp3 ; | |
8379 | byte temp4 ; | |
8380 | PyObject * obj0 = 0 ; | |
8381 | PyObject * obj1 = 0 ; | |
8382 | PyObject * obj2 = 0 ; | |
8383 | PyObject * obj3 = 0 ; | |
8384 | char *kwnames[] = { | |
8385 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8386 | }; | |
8387 | ||
8388 | arg2 = &temp2; | |
8389 | arg3 = &temp3; | |
8390 | arg4 = &temp4; | |
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8393 | if (obj1) { | |
a41e16b6 RD |
8394 | { |
8395 | arg5 = (byte) SPyObj_AsUnsignedChar(obj1); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
d14a1e28 RD |
8398 | } |
8399 | if (obj2) { | |
a41e16b6 RD |
8400 | { |
8401 | arg6 = (byte) SPyObj_AsUnsignedChar(obj2); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
d14a1e28 RD |
8404 | } |
8405 | if (obj3) { | |
a41e16b6 RD |
8406 | { |
8407 | arg7 = (byte) SPyObj_AsUnsignedChar(obj3); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
d14a1e28 RD |
8410 | } |
8411 | { | |
8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8413 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8414 | ||
8415 | wxPyEndAllowThreads(__tstate); | |
8416 | if (PyErr_Occurred()) SWIG_fail; | |
8417 | } | |
8418 | resultobj = PyInt_FromLong((long)result); | |
8419 | { | |
8420 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8421 | resultobj = t_output_helper(resultobj,o); | |
8422 | } | |
8423 | { | |
8424 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8425 | resultobj = t_output_helper(resultobj,o); | |
8426 | } | |
8427 | { | |
8428 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8429 | resultobj = t_output_helper(resultobj,o); | |
8430 | } | |
8431 | return resultobj; | |
8432 | fail: | |
8433 | return NULL; | |
8434 | } | |
8435 | ||
8436 | ||
8437 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8438 | PyObject *resultobj; | |
8439 | wxImage *arg1 = (wxImage *) 0 ; | |
8440 | wxImage *arg2 = 0 ; | |
8441 | byte arg3 ; | |
8442 | byte arg4 ; | |
8443 | byte arg5 ; | |
8444 | bool result; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | PyObject * obj1 = 0 ; | |
8447 | PyObject * obj2 = 0 ; | |
8448 | PyObject * obj3 = 0 ; | |
8449 | PyObject * obj4 = 0 ; | |
8450 | char *kwnames[] = { | |
8451 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
8452 | }; | |
8453 | ||
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8457 | if (arg2 == NULL) { | |
8458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8459 | } | |
a41e16b6 RD |
8460 | { |
8461 | arg3 = (byte) SPyObj_AsUnsignedChar(obj2); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
8464 | { | |
8465 | arg4 = (byte) SPyObj_AsUnsignedChar(obj3); | |
8466 | if (PyErr_Occurred()) SWIG_fail; | |
8467 | } | |
8468 | { | |
8469 | arg5 = (byte) SPyObj_AsUnsignedChar(obj4); | |
8470 | if (PyErr_Occurred()) SWIG_fail; | |
8471 | } | |
d14a1e28 RD |
8472 | { |
8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8474 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
8475 | ||
8476 | wxPyEndAllowThreads(__tstate); | |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
8478 | } | |
8479 | resultobj = PyInt_FromLong((long)result); | |
8480 | return resultobj; | |
8481 | fail: | |
8482 | return NULL; | |
8483 | } | |
8484 | ||
8485 | ||
8486 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8487 | PyObject *resultobj; | |
8488 | wxString *arg1 = 0 ; | |
8489 | bool result; | |
e811c8ce | 8490 | bool temp1 = False ; |
d14a1e28 RD |
8491 | PyObject * obj0 = 0 ; |
8492 | char *kwnames[] = { | |
8493 | (char *) "name", NULL | |
8494 | }; | |
8495 | ||
8496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
8497 | { | |
8498 | arg1 = wxString_in_helper(obj0); | |
8499 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8500 | temp1 = True; |
d14a1e28 RD |
8501 | } |
8502 | { | |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | resultobj = PyInt_FromLong((long)result); | |
8510 | { | |
8511 | if (temp1) | |
8512 | delete arg1; | |
8513 | } | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | { | |
8517 | if (temp1) | |
8518 | delete arg1; | |
8519 | } | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
8524 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject *resultobj; | |
8526 | wxString *arg1 = 0 ; | |
8527 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8528 | int result; | |
e811c8ce | 8529 | bool temp1 = False ; |
d14a1e28 RD |
8530 | PyObject * obj0 = 0 ; |
8531 | char *kwnames[] = { | |
8532 | (char *) "name",(char *) "type", NULL | |
8533 | }; | |
8534 | ||
8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Image_GetImageCount",kwnames,&obj0,&arg2)) goto fail; | |
8536 | { | |
8537 | arg1 = wxString_in_helper(obj0); | |
8538 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8539 | temp1 = True; |
d14a1e28 RD |
8540 | } |
8541 | { | |
8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8543 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
8544 | ||
8545 | wxPyEndAllowThreads(__tstate); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | } | |
8548 | resultobj = PyInt_FromLong((long)result); | |
8549 | { | |
8550 | if (temp1) | |
8551 | delete arg1; | |
8552 | } | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | { | |
8556 | if (temp1) | |
8557 | delete arg1; | |
8558 | } | |
8559 | return NULL; | |
8560 | } | |
8561 | ||
8562 | ||
8563 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8564 | PyObject *resultobj; | |
8565 | wxImage *arg1 = (wxImage *) 0 ; | |
8566 | wxString *arg2 = 0 ; | |
8567 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8568 | int arg4 = (int) -1 ; | |
8569 | bool result; | |
e811c8ce | 8570 | bool temp2 = False ; |
d14a1e28 RD |
8571 | PyObject * obj0 = 0 ; |
8572 | PyObject * obj1 = 0 ; | |
8573 | char *kwnames[] = { | |
8574 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
8575 | }; | |
8576 | ||
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadFile",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8579 | { | |
8580 | arg2 = wxString_in_helper(obj1); | |
8581 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8582 | temp2 = True; |
d14a1e28 RD |
8583 | } |
8584 | { | |
8585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8586 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
8587 | ||
8588 | wxPyEndAllowThreads(__tstate); | |
8589 | if (PyErr_Occurred()) SWIG_fail; | |
8590 | } | |
8591 | resultobj = PyInt_FromLong((long)result); | |
8592 | { | |
8593 | if (temp2) | |
8594 | delete arg2; | |
8595 | } | |
8596 | return resultobj; | |
8597 | fail: | |
8598 | { | |
8599 | if (temp2) | |
8600 | delete arg2; | |
8601 | } | |
8602 | return NULL; | |
8603 | } | |
8604 | ||
8605 | ||
8606 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8607 | PyObject *resultobj; | |
8608 | wxImage *arg1 = (wxImage *) 0 ; | |
8609 | wxString *arg2 = 0 ; | |
8610 | wxString *arg3 = 0 ; | |
8611 | int arg4 = (int) -1 ; | |
8612 | bool result; | |
e811c8ce RD |
8613 | bool temp2 = False ; |
8614 | bool temp3 = False ; | |
d14a1e28 RD |
8615 | PyObject * obj0 = 0 ; |
8616 | PyObject * obj1 = 0 ; | |
8617 | PyObject * obj2 = 0 ; | |
8618 | char *kwnames[] = { | |
8619 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8620 | }; | |
8621 | ||
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8624 | { | |
8625 | arg2 = wxString_in_helper(obj1); | |
8626 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8627 | temp2 = True; |
d14a1e28 RD |
8628 | } |
8629 | { | |
8630 | arg3 = wxString_in_helper(obj2); | |
8631 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8632 | temp3 = True; |
d14a1e28 RD |
8633 | } |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | resultobj = PyInt_FromLong((long)result); | |
8642 | { | |
8643 | if (temp2) | |
8644 | delete arg2; | |
8645 | } | |
8646 | { | |
8647 | if (temp3) | |
8648 | delete arg3; | |
8649 | } | |
8650 | return resultobj; | |
8651 | fail: | |
8652 | { | |
8653 | if (temp2) | |
8654 | delete arg2; | |
8655 | } | |
8656 | { | |
8657 | if (temp3) | |
8658 | delete arg3; | |
8659 | } | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
8664 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject *resultobj; | |
8666 | wxImage *arg1 = (wxImage *) 0 ; | |
8667 | wxString *arg2 = 0 ; | |
8668 | int arg3 ; | |
8669 | bool result; | |
e811c8ce | 8670 | bool temp2 = False ; |
d14a1e28 RD |
8671 | PyObject * obj0 = 0 ; |
8672 | PyObject * obj1 = 0 ; | |
8673 | char *kwnames[] = { | |
8674 | (char *) "self",(char *) "name",(char *) "type", NULL | |
8675 | }; | |
8676 | ||
8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SaveFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
8678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8679 | { | |
8680 | arg2 = wxString_in_helper(obj1); | |
8681 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8682 | temp2 = True; |
d14a1e28 RD |
8683 | } |
8684 | { | |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | resultobj = PyInt_FromLong((long)result); | |
8692 | { | |
8693 | if (temp2) | |
8694 | delete arg2; | |
8695 | } | |
8696 | return resultobj; | |
8697 | fail: | |
8698 | { | |
8699 | if (temp2) | |
8700 | delete arg2; | |
8701 | } | |
8702 | return NULL; | |
8703 | } | |
8704 | ||
8705 | ||
8706 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8707 | PyObject *resultobj; | |
8708 | wxImage *arg1 = (wxImage *) 0 ; | |
8709 | wxString *arg2 = 0 ; | |
8710 | wxString *arg3 = 0 ; | |
8711 | bool result; | |
e811c8ce RD |
8712 | bool temp2 = False ; |
8713 | bool temp3 = False ; | |
d14a1e28 RD |
8714 | PyObject * obj0 = 0 ; |
8715 | PyObject * obj1 = 0 ; | |
8716 | PyObject * obj2 = 0 ; | |
8717 | char *kwnames[] = { | |
8718 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
8719 | }; | |
8720 | ||
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8723 | { | |
8724 | arg2 = wxString_in_helper(obj1); | |
8725 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8726 | temp2 = True; |
d14a1e28 RD |
8727 | } |
8728 | { | |
8729 | arg3 = wxString_in_helper(obj2); | |
8730 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8731 | temp3 = True; |
d14a1e28 RD |
8732 | } |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | resultobj = PyInt_FromLong((long)result); | |
8741 | { | |
8742 | if (temp2) | |
8743 | delete arg2; | |
8744 | } | |
8745 | { | |
8746 | if (temp3) | |
8747 | delete arg3; | |
8748 | } | |
8749 | return resultobj; | |
8750 | fail: | |
8751 | { | |
8752 | if (temp2) | |
8753 | delete arg2; | |
8754 | } | |
8755 | { | |
8756 | if (temp3) | |
8757 | delete arg3; | |
8758 | } | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj; | |
8765 | wxInputStream *arg1 = 0 ; | |
8766 | bool result; | |
8767 | wxPyInputStream *temp1 ; | |
8768 | bool created1 ; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | char *kwnames[] = { | |
8771 | (char *) "stream", NULL | |
8772 | }; | |
8773 | ||
8774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
8775 | { | |
8776 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8777 | arg1 = temp1->m_wxis; | |
e811c8ce | 8778 | created1 = False; |
d14a1e28 RD |
8779 | } else { |
8780 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8781 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8782 | if (arg1 == NULL) { |
8783 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8784 | SWIG_fail; | |
8785 | } | |
e811c8ce | 8786 | created1 = True; |
d14a1e28 RD |
8787 | } |
8788 | } | |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | result = (bool)wxImage::CanRead(*arg1); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | resultobj = PyInt_FromLong((long)result); | |
8797 | { | |
8798 | if (created1) | |
8799 | delete arg1; | |
8800 | } | |
8801 | return resultobj; | |
8802 | fail: | |
8803 | { | |
8804 | if (created1) | |
8805 | delete arg1; | |
8806 | } | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
8811 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj; | |
8813 | wxImage *arg1 = (wxImage *) 0 ; | |
8814 | wxInputStream *arg2 = 0 ; | |
8815 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8816 | int arg4 = (int) -1 ; | |
8817 | bool result; | |
8818 | wxPyInputStream *temp2 ; | |
8819 | bool created2 ; | |
8820 | PyObject * obj0 = 0 ; | |
8821 | PyObject * obj1 = 0 ; | |
8822 | char *kwnames[] = { | |
8823 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadStream",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8828 | { | |
8829 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8830 | arg2 = temp2->m_wxis; | |
e811c8ce | 8831 | created2 = False; |
d14a1e28 RD |
8832 | } else { |
8833 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8834 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8835 | if (arg2 == NULL) { |
8836 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8837 | SWIG_fail; | |
8838 | } | |
e811c8ce | 8839 | created2 = True; |
d14a1e28 RD |
8840 | } |
8841 | } | |
8842 | { | |
8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8844 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
8845 | ||
8846 | wxPyEndAllowThreads(__tstate); | |
8847 | if (PyErr_Occurred()) SWIG_fail; | |
8848 | } | |
8849 | resultobj = PyInt_FromLong((long)result); | |
8850 | { | |
8851 | if (created2) | |
8852 | delete arg2; | |
8853 | } | |
8854 | return resultobj; | |
8855 | fail: | |
8856 | { | |
8857 | if (created2) | |
8858 | delete arg2; | |
8859 | } | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8865 | PyObject *resultobj; | |
8866 | wxImage *arg1 = (wxImage *) 0 ; | |
8867 | wxInputStream *arg2 = 0 ; | |
8868 | wxString *arg3 = 0 ; | |
8869 | int arg4 = (int) -1 ; | |
8870 | bool result; | |
8871 | wxPyInputStream *temp2 ; | |
8872 | bool created2 ; | |
e811c8ce | 8873 | bool temp3 = False ; |
d14a1e28 RD |
8874 | PyObject * obj0 = 0 ; |
8875 | PyObject * obj1 = 0 ; | |
8876 | PyObject * obj2 = 0 ; | |
8877 | char *kwnames[] = { | |
8878 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8879 | }; | |
8880 | ||
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8883 | { | |
8884 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8885 | arg2 = temp2->m_wxis; | |
e811c8ce | 8886 | created2 = False; |
d14a1e28 RD |
8887 | } else { |
8888 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8889 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8890 | if (arg2 == NULL) { |
8891 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8892 | SWIG_fail; | |
8893 | } | |
e811c8ce | 8894 | created2 = True; |
d14a1e28 RD |
8895 | } |
8896 | } | |
8897 | { | |
8898 | arg3 = wxString_in_helper(obj2); | |
8899 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8900 | temp3 = True; |
d14a1e28 RD |
8901 | } |
8902 | { | |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | resultobj = PyInt_FromLong((long)result); | |
8910 | { | |
8911 | if (created2) | |
8912 | delete arg2; | |
8913 | } | |
8914 | { | |
8915 | if (temp3) | |
8916 | delete arg3; | |
8917 | } | |
8918 | return resultobj; | |
8919 | fail: | |
8920 | { | |
8921 | if (created2) | |
8922 | delete arg2; | |
8923 | } | |
8924 | { | |
8925 | if (temp3) | |
8926 | delete arg3; | |
8927 | } | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
8932 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject *resultobj; | |
8934 | wxImage *arg1 = (wxImage *) 0 ; | |
8935 | bool result; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | char *kwnames[] = { | |
8938 | (char *) "self", NULL | |
8939 | }; | |
8940 | ||
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
8942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8943 | { | |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8945 | result = (bool)(arg1)->Ok(); | |
8946 | ||
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | resultobj = PyInt_FromLong((long)result); | |
8951 | return resultobj; | |
8952 | fail: | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
8957 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8958 | PyObject *resultobj; | |
8959 | wxImage *arg1 = (wxImage *) 0 ; | |
8960 | int result; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
8967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (int)(arg1)->GetWidth(); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | resultobj = PyInt_FromLong((long)result); | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxImage *arg1 = (wxImage *) 0 ; | |
8985 | int result; | |
8986 | PyObject * obj0 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | result = (int)(arg1)->GetHeight(); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | resultobj = PyInt_FromLong((long)result); | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxImage *arg1 = (wxImage *) 0 ; | |
9010 | wxRect *arg2 = 0 ; | |
9011 | SwigValueWrapper< wxImage > result; | |
9012 | wxRect temp2 ; | |
9013 | PyObject * obj0 = 0 ; | |
9014 | PyObject * obj1 = 0 ; | |
9015 | char *kwnames[] = { | |
9016 | (char *) "self",(char *) "rect", NULL | |
9017 | }; | |
9018 | ||
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
9020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9021 | { | |
9022 | arg2 = &temp2; | |
9023 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9024 | } | |
9025 | { | |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9028 | ||
9029 | wxPyEndAllowThreads(__tstate); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
9031 | } | |
9032 | { | |
9033 | wxImage * resultptr; | |
9034 | resultptr = new wxImage((wxImage &) result); | |
9035 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9036 | } | |
9037 | return resultobj; | |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
9043 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxImage *arg1 = (wxImage *) 0 ; | |
9046 | SwigValueWrapper< wxImage > result; | |
9047 | PyObject * obj0 = 0 ; | |
9048 | char *kwnames[] = { | |
9049 | (char *) "self", NULL | |
9050 | }; | |
9051 | ||
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
9053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9054 | { | |
9055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9056 | result = (arg1)->Copy(); | |
9057 | ||
9058 | wxPyEndAllowThreads(__tstate); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
9060 | } | |
9061 | { | |
9062 | wxImage * resultptr; | |
9063 | resultptr = new wxImage((wxImage &) result); | |
9064 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9065 | } | |
9066 | return resultobj; | |
9067 | fail: | |
9068 | return NULL; | |
9069 | } | |
9070 | ||
9071 | ||
9072 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject *resultobj; | |
9074 | wxImage *arg1 = (wxImage *) 0 ; | |
9075 | wxImage *arg2 = 0 ; | |
9076 | int arg3 ; | |
9077 | int arg4 ; | |
9078 | PyObject * obj0 = 0 ; | |
9079 | PyObject * obj1 = 0 ; | |
9080 | char *kwnames[] = { | |
9081 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9082 | }; | |
9083 | ||
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Image_Paste",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
9085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9086 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9087 | if (arg2 == NULL) { | |
9088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9089 | } | |
9090 | { | |
9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9092 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9093 | ||
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
9097 | Py_INCREF(Py_None); resultobj = Py_None; | |
9098 | return resultobj; | |
9099 | fail: | |
9100 | return NULL; | |
9101 | } | |
9102 | ||
9103 | ||
9104 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9105 | PyObject *resultobj; | |
9106 | wxImage *arg1 = (wxImage *) 0 ; | |
9107 | PyObject *result; | |
9108 | PyObject * obj0 = 0 ; | |
9109 | char *kwnames[] = { | |
9110 | (char *) "self", NULL | |
9111 | }; | |
9112 | ||
9113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
9114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9115 | { | |
9116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9117 | result = (PyObject *)wxImage_GetData(arg1); | |
9118 | ||
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
9122 | resultobj = result; | |
9123 | return resultobj; | |
9124 | fail: | |
9125 | return NULL; | |
9126 | } | |
9127 | ||
9128 | ||
9129 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9130 | PyObject *resultobj; | |
9131 | wxImage *arg1 = (wxImage *) 0 ; | |
9132 | PyObject *arg2 = (PyObject *) 0 ; | |
9133 | PyObject * obj0 = 0 ; | |
9134 | PyObject * obj1 = 0 ; | |
9135 | char *kwnames[] = { | |
9136 | (char *) "self",(char *) "data", NULL | |
9137 | }; | |
9138 | ||
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
9140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9141 | arg2 = obj1; | |
9142 | { | |
9143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9144 | wxImage_SetData(arg1,arg2); | |
9145 | ||
9146 | wxPyEndAllowThreads(__tstate); | |
9147 | if (PyErr_Occurred()) SWIG_fail; | |
9148 | } | |
9149 | Py_INCREF(Py_None); resultobj = Py_None; | |
9150 | return resultobj; | |
9151 | fail: | |
9152 | return NULL; | |
9153 | } | |
9154 | ||
9155 | ||
9156 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9157 | PyObject *resultobj; | |
9158 | wxImage *arg1 = (wxImage *) 0 ; | |
9159 | PyObject *result; | |
9160 | PyObject * obj0 = 0 ; | |
9161 | char *kwnames[] = { | |
9162 | (char *) "self", NULL | |
9163 | }; | |
9164 | ||
9165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
9166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9167 | { | |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
9170 | ||
9171 | wxPyEndAllowThreads(__tstate); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
9174 | resultobj = result; | |
9175 | return resultobj; | |
9176 | fail: | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
9181 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9182 | PyObject *resultobj; | |
9183 | wxImage *arg1 = (wxImage *) 0 ; | |
9184 | PyObject *arg2 = (PyObject *) 0 ; | |
9185 | PyObject * obj0 = 0 ; | |
9186 | PyObject * obj1 = 0 ; | |
9187 | char *kwnames[] = { | |
9188 | (char *) "self",(char *) "data", NULL | |
9189 | }; | |
9190 | ||
9191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9193 | arg2 = obj1; | |
9194 | { | |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | wxImage_SetDataBuffer(arg1,arg2); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | Py_INCREF(Py_None); resultobj = Py_None; | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
9208 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9209 | PyObject *resultobj; | |
9210 | wxImage *arg1 = (wxImage *) 0 ; | |
9211 | PyObject *result; | |
9212 | PyObject * obj0 = 0 ; | |
9213 | char *kwnames[] = { | |
9214 | (char *) "self", NULL | |
9215 | }; | |
9216 | ||
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
9218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9219 | { | |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
9222 | ||
9223 | wxPyEndAllowThreads(__tstate); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | resultobj = result; | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
9230 | } | |
9231 | ||
9232 | ||
9233 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject *resultobj; | |
9235 | wxImage *arg1 = (wxImage *) 0 ; | |
9236 | PyObject *arg2 = (PyObject *) 0 ; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | PyObject * obj1 = 0 ; | |
9239 | char *kwnames[] = { | |
9240 | (char *) "self",(char *) "data", NULL | |
9241 | }; | |
9242 | ||
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9245 | arg2 = obj1; | |
9246 | { | |
9247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9248 | wxImage_SetAlphaData(arg1,arg2); | |
9249 | ||
9250 | wxPyEndAllowThreads(__tstate); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | } | |
9253 | Py_INCREF(Py_None); resultobj = Py_None; | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | return NULL; | |
9257 | } | |
9258 | ||
9259 | ||
9260 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9261 | PyObject *resultobj; | |
9262 | wxImage *arg1 = (wxImage *) 0 ; | |
9263 | PyObject *result; | |
9264 | PyObject * obj0 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9271 | { | |
9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9273 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9274 | ||
9275 | wxPyEndAllowThreads(__tstate); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
9277 | } | |
9278 | resultobj = result; | |
9279 | return resultobj; | |
9280 | fail: | |
9281 | return NULL; | |
9282 | } | |
9283 | ||
9284 | ||
9285 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject *resultobj; | |
9287 | wxImage *arg1 = (wxImage *) 0 ; | |
9288 | PyObject *arg2 = (PyObject *) 0 ; | |
9289 | PyObject * obj0 = 0 ; | |
9290 | PyObject * obj1 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self",(char *) "data", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | arg2 = obj1; | |
9298 | { | |
9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9300 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9301 | ||
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | Py_INCREF(Py_None); resultobj = Py_None; | |
9306 | return resultobj; | |
9307 | fail: | |
9308 | return NULL; | |
9309 | } | |
9310 | ||
9311 | ||
9312 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject *resultobj; | |
9314 | wxImage *arg1 = (wxImage *) 0 ; | |
9315 | unsigned char arg2 ; | |
9316 | unsigned char arg3 ; | |
9317 | unsigned char arg4 ; | |
9318 | PyObject * obj0 = 0 ; | |
9319 | PyObject * obj1 = 0 ; | |
9320 | PyObject * obj2 = 0 ; | |
9321 | PyObject * obj3 = 0 ; | |
9322 | char *kwnames[] = { | |
9323 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9324 | }; | |
9325 | ||
9326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
9328 | { |
9329 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
9332 | { | |
9333 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | { | |
9337 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
9339 | } | |
d14a1e28 RD |
9340 | { |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | Py_INCREF(Py_None); resultobj = Py_None; | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj; | |
9356 | wxImage *arg1 = (wxImage *) 0 ; | |
9357 | unsigned char result; | |
9358 | PyObject * obj0 = 0 ; | |
9359 | char *kwnames[] = { | |
9360 | (char *) "self", NULL | |
9361 | }; | |
9362 | ||
9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
9364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9365 | { | |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | result = (unsigned char)(arg1)->GetMaskRed(); | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | resultobj = PyInt_FromLong((long)result); | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj; | |
9381 | wxImage *arg1 = (wxImage *) 0 ; | |
9382 | unsigned char result; | |
9383 | PyObject * obj0 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
9389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9390 | { | |
9391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9392 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
9393 | ||
9394 | wxPyEndAllowThreads(__tstate); | |
9395 | if (PyErr_Occurred()) SWIG_fail; | |
9396 | } | |
9397 | resultobj = PyInt_FromLong((long)result); | |
9398 | return resultobj; | |
9399 | fail: | |
9400 | return NULL; | |
9401 | } | |
9402 | ||
9403 | ||
9404 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9405 | PyObject *resultobj; | |
9406 | wxImage *arg1 = (wxImage *) 0 ; | |
9407 | unsigned char result; | |
9408 | PyObject * obj0 = 0 ; | |
9409 | char *kwnames[] = { | |
9410 | (char *) "self", NULL | |
9411 | }; | |
9412 | ||
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
9414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9415 | { | |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
9418 | ||
9419 | wxPyEndAllowThreads(__tstate); | |
9420 | if (PyErr_Occurred()) SWIG_fail; | |
9421 | } | |
9422 | resultobj = PyInt_FromLong((long)result); | |
9423 | return resultobj; | |
9424 | fail: | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
9429 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9430 | PyObject *resultobj; | |
9431 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 9432 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9433 | PyObject * obj0 = 0 ; |
9434 | PyObject * obj1 = 0 ; | |
9435 | char *kwnames[] = { | |
9436 | (char *) "self",(char *) "mask", NULL | |
9437 | }; | |
9438 | ||
9439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
9440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9441 | if (obj1) { | |
a41e16b6 RD |
9442 | { |
9443 | arg2 = (bool) SPyObj_AsBool(obj1); | |
9444 | if (PyErr_Occurred()) SWIG_fail; | |
9445 | } | |
d14a1e28 RD |
9446 | } |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | (arg1)->SetMask(arg2); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | Py_INCREF(Py_None); resultobj = Py_None; | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj; | |
9463 | wxImage *arg1 = (wxImage *) 0 ; | |
9464 | bool result; | |
9465 | PyObject * obj0 = 0 ; | |
9466 | char *kwnames[] = { | |
9467 | (char *) "self", NULL | |
9468 | }; | |
9469 | ||
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
9471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9472 | { | |
9473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9474 | result = (bool)(arg1)->HasMask(); | |
9475 | ||
9476 | wxPyEndAllowThreads(__tstate); | |
9477 | if (PyErr_Occurred()) SWIG_fail; | |
9478 | } | |
9479 | resultobj = PyInt_FromLong((long)result); | |
9480 | return resultobj; | |
9481 | fail: | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj; | |
9488 | wxImage *arg1 = (wxImage *) 0 ; | |
9489 | double arg2 ; | |
9490 | wxPoint *arg3 = 0 ; | |
e811c8ce | 9491 | bool arg4 = (bool) True ; |
d14a1e28 RD |
9492 | wxPoint *arg5 = (wxPoint *) NULL ; |
9493 | SwigValueWrapper< wxImage > result; | |
9494 | wxPoint temp3 ; | |
9495 | PyObject * obj0 = 0 ; | |
9496 | PyObject * obj2 = 0 ; | |
9497 | PyObject * obj3 = 0 ; | |
9498 | PyObject * obj4 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO|OO:Image_Rotate",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9505 | { | |
9506 | arg3 = &temp3; | |
9507 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9508 | } | |
9509 | if (obj3) { | |
a41e16b6 RD |
9510 | { |
9511 | arg4 = (bool) SPyObj_AsBool(obj3); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
d14a1e28 RD |
9514 | } |
9515 | if (obj4) { | |
9516 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9517 | } | |
9518 | { | |
9519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9520 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
9521 | ||
9522 | wxPyEndAllowThreads(__tstate); | |
9523 | if (PyErr_Occurred()) SWIG_fail; | |
9524 | } | |
9525 | { | |
9526 | wxImage * resultptr; | |
9527 | resultptr = new wxImage((wxImage &) result); | |
9528 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9529 | } | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj; | |
9538 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 9539 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9540 | SwigValueWrapper< wxImage > result; |
9541 | PyObject * obj0 = 0 ; | |
9542 | PyObject * obj1 = 0 ; | |
9543 | char *kwnames[] = { | |
9544 | (char *) "self",(char *) "clockwise", NULL | |
9545 | }; | |
9546 | ||
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
9548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9549 | if (obj1) { | |
a41e16b6 RD |
9550 | { |
9551 | arg2 = (bool) SPyObj_AsBool(obj1); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
d14a1e28 RD |
9554 | } |
9555 | { | |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | result = (arg1)->Rotate90(arg2); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
9562 | { | |
9563 | wxImage * resultptr; | |
9564 | resultptr = new wxImage((wxImage &) result); | |
9565 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9566 | } | |
9567 | return resultobj; | |
9568 | fail: | |
9569 | return NULL; | |
9570 | } | |
9571 | ||
9572 | ||
9573 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject *resultobj; | |
9575 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 9576 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9577 | SwigValueWrapper< wxImage > result; |
9578 | PyObject * obj0 = 0 ; | |
9579 | PyObject * obj1 = 0 ; | |
9580 | char *kwnames[] = { | |
9581 | (char *) "self",(char *) "horizontally", NULL | |
9582 | }; | |
9583 | ||
9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
9585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9586 | if (obj1) { | |
a41e16b6 RD |
9587 | { |
9588 | arg2 = (bool) SPyObj_AsBool(obj1); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
d14a1e28 RD |
9591 | } |
9592 | { | |
9593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9594 | result = (arg1)->Mirror(arg2); | |
9595 | ||
9596 | wxPyEndAllowThreads(__tstate); | |
9597 | if (PyErr_Occurred()) SWIG_fail; | |
9598 | } | |
9599 | { | |
9600 | wxImage * resultptr; | |
9601 | resultptr = new wxImage((wxImage &) result); | |
9602 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9603 | } | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
9610 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject *resultobj; | |
9612 | wxImage *arg1 = (wxImage *) 0 ; | |
9613 | unsigned char arg2 ; | |
9614 | unsigned char arg3 ; | |
9615 | unsigned char arg4 ; | |
9616 | unsigned char arg5 ; | |
9617 | unsigned char arg6 ; | |
9618 | unsigned char arg7 ; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | PyObject * obj1 = 0 ; | |
9621 | PyObject * obj2 = 0 ; | |
9622 | PyObject * obj3 = 0 ; | |
9623 | PyObject * obj4 = 0 ; | |
9624 | PyObject * obj5 = 0 ; | |
9625 | PyObject * obj6 = 0 ; | |
9626 | char *kwnames[] = { | |
9627 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
9628 | }; | |
9629 | ||
9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
9632 | { |
9633 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
9634 | if (PyErr_Occurred()) SWIG_fail; | |
9635 | } | |
9636 | { | |
9637 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | } | |
9640 | { | |
9641 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
9642 | if (PyErr_Occurred()) SWIG_fail; | |
9643 | } | |
9644 | { | |
9645 | arg5 = (unsigned char) SPyObj_AsUnsignedChar(obj4); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | { | |
9649 | arg6 = (unsigned char) SPyObj_AsUnsignedChar(obj5); | |
9650 | if (PyErr_Occurred()) SWIG_fail; | |
9651 | } | |
9652 | { | |
9653 | arg7 = (unsigned char) SPyObj_AsUnsignedChar(obj6); | |
9654 | if (PyErr_Occurred()) SWIG_fail; | |
9655 | } | |
d14a1e28 RD |
9656 | { |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
9663 | Py_INCREF(Py_None); resultobj = Py_None; | |
9664 | return resultobj; | |
9665 | fail: | |
9666 | return NULL; | |
9667 | } | |
9668 | ||
9669 | ||
9670 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9671 | PyObject *resultobj; | |
9672 | wxImage *arg1 = (wxImage *) 0 ; | |
9673 | unsigned char arg2 ; | |
9674 | unsigned char arg3 ; | |
9675 | unsigned char arg4 ; | |
9676 | SwigValueWrapper< wxImage > result; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | PyObject * obj1 = 0 ; | |
9679 | PyObject * obj2 = 0 ; | |
9680 | PyObject * obj3 = 0 ; | |
9681 | char *kwnames[] = { | |
9682 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9683 | }; | |
9684 | ||
9685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
9687 | { |
9688 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | { | |
9692 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
9693 | if (PyErr_Occurred()) SWIG_fail; | |
9694 | } | |
9695 | { | |
9696 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
9698 | } | |
d14a1e28 RD |
9699 | { |
9700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9701 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
9702 | ||
9703 | wxPyEndAllowThreads(__tstate); | |
9704 | if (PyErr_Occurred()) SWIG_fail; | |
9705 | } | |
9706 | { | |
9707 | wxImage * resultptr; | |
9708 | resultptr = new wxImage((wxImage &) result); | |
9709 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9710 | } | |
9711 | return resultobj; | |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
9717 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxImage *arg1 = (wxImage *) 0 ; | |
9720 | wxString *arg2 = 0 ; | |
9721 | wxString *arg3 = 0 ; | |
e811c8ce RD |
9722 | bool temp2 = False ; |
9723 | bool temp3 = False ; | |
d14a1e28 RD |
9724 | PyObject * obj0 = 0 ; |
9725 | PyObject * obj1 = 0 ; | |
9726 | PyObject * obj2 = 0 ; | |
9727 | char *kwnames[] = { | |
9728 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9729 | }; | |
9730 | ||
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9733 | { | |
9734 | arg2 = wxString_in_helper(obj1); | |
9735 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9736 | temp2 = True; |
d14a1e28 RD |
9737 | } |
9738 | { | |
9739 | arg3 = wxString_in_helper(obj2); | |
9740 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9741 | temp3 = True; |
d14a1e28 RD |
9742 | } |
9743 | { | |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
9746 | ||
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
9750 | Py_INCREF(Py_None); resultobj = Py_None; | |
9751 | { | |
9752 | if (temp2) | |
9753 | delete arg2; | |
9754 | } | |
9755 | { | |
9756 | if (temp3) | |
9757 | delete arg3; | |
9758 | } | |
9759 | return resultobj; | |
9760 | fail: | |
9761 | { | |
9762 | if (temp2) | |
9763 | delete arg2; | |
9764 | } | |
9765 | { | |
9766 | if (temp3) | |
9767 | delete arg3; | |
9768 | } | |
9769 | return NULL; | |
9770 | } | |
9771 | ||
9772 | ||
9773 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9774 | PyObject *resultobj; | |
9775 | wxImage *arg1 = (wxImage *) 0 ; | |
9776 | wxString *arg2 = 0 ; | |
9777 | int arg3 ; | |
e811c8ce | 9778 | bool temp2 = False ; |
d14a1e28 RD |
9779 | PyObject * obj0 = 0 ; |
9780 | PyObject * obj1 = 0 ; | |
9781 | char *kwnames[] = { | |
9782 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SetOptionInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9787 | { | |
9788 | arg2 = wxString_in_helper(obj1); | |
9789 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9790 | temp2 = True; |
d14a1e28 RD |
9791 | } |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
9795 | ||
9796 | wxPyEndAllowThreads(__tstate); | |
9797 | if (PyErr_Occurred()) SWIG_fail; | |
9798 | } | |
9799 | Py_INCREF(Py_None); resultobj = Py_None; | |
9800 | { | |
9801 | if (temp2) | |
9802 | delete arg2; | |
9803 | } | |
9804 | return resultobj; | |
9805 | fail: | |
9806 | { | |
9807 | if (temp2) | |
9808 | delete arg2; | |
9809 | } | |
9810 | return NULL; | |
9811 | } | |
9812 | ||
9813 | ||
9814 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9815 | PyObject *resultobj; | |
9816 | wxImage *arg1 = (wxImage *) 0 ; | |
9817 | wxString *arg2 = 0 ; | |
9818 | wxString result; | |
e811c8ce | 9819 | bool temp2 = False ; |
d14a1e28 RD |
9820 | PyObject * obj0 = 0 ; |
9821 | PyObject * obj1 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self",(char *) "name", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9828 | { | |
9829 | arg2 = wxString_in_helper(obj1); | |
9830 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9831 | temp2 = True; |
d14a1e28 RD |
9832 | } |
9833 | { | |
9834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9835 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
9836 | ||
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
9840 | { | |
9841 | #if wxUSE_UNICODE | |
9842 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9843 | #else | |
9844 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9845 | #endif | |
9846 | } | |
9847 | { | |
9848 | if (temp2) | |
9849 | delete arg2; | |
9850 | } | |
9851 | return resultobj; | |
9852 | fail: | |
9853 | { | |
9854 | if (temp2) | |
9855 | delete arg2; | |
9856 | } | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
9861 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9862 | PyObject *resultobj; | |
9863 | wxImage *arg1 = (wxImage *) 0 ; | |
9864 | wxString *arg2 = 0 ; | |
9865 | int result; | |
e811c8ce | 9866 | bool temp2 = False ; |
d14a1e28 RD |
9867 | PyObject * obj0 = 0 ; |
9868 | PyObject * obj1 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self",(char *) "name", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9875 | { | |
9876 | arg2 = wxString_in_helper(obj1); | |
9877 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9878 | temp2 = True; |
d14a1e28 RD |
9879 | } |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) SWIG_fail; | |
9886 | } | |
9887 | resultobj = PyInt_FromLong((long)result); | |
9888 | { | |
9889 | if (temp2) | |
9890 | delete arg2; | |
9891 | } | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | { | |
9895 | if (temp2) | |
9896 | delete arg2; | |
9897 | } | |
9898 | return NULL; | |
9899 | } | |
9900 | ||
9901 | ||
9902 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9903 | PyObject *resultobj; | |
9904 | wxImage *arg1 = (wxImage *) 0 ; | |
9905 | wxString *arg2 = 0 ; | |
9906 | bool result; | |
e811c8ce | 9907 | bool temp2 = False ; |
d14a1e28 RD |
9908 | PyObject * obj0 = 0 ; |
9909 | PyObject * obj1 = 0 ; | |
9910 | char *kwnames[] = { | |
9911 | (char *) "self",(char *) "name", NULL | |
9912 | }; | |
9913 | ||
9914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
9915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9916 | { | |
9917 | arg2 = wxString_in_helper(obj1); | |
9918 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9919 | temp2 = True; |
d14a1e28 RD |
9920 | } |
9921 | { | |
9922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9923 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
9924 | ||
9925 | wxPyEndAllowThreads(__tstate); | |
9926 | if (PyErr_Occurred()) SWIG_fail; | |
9927 | } | |
9928 | resultobj = PyInt_FromLong((long)result); | |
9929 | { | |
9930 | if (temp2) | |
9931 | delete arg2; | |
9932 | } | |
9933 | return resultobj; | |
9934 | fail: | |
9935 | { | |
9936 | if (temp2) | |
9937 | delete arg2; | |
9938 | } | |
9939 | return NULL; | |
9940 | } | |
9941 | ||
9942 | ||
9943 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9944 | PyObject *resultobj; | |
9945 | wxImage *arg1 = (wxImage *) 0 ; | |
9946 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
9947 | unsigned long result; | |
9948 | PyObject * obj0 = 0 ; | |
9949 | PyObject * obj1 = 0 ; | |
9950 | char *kwnames[] = { | |
9951 | (char *) "self",(char *) "stopafter", NULL | |
9952 | }; | |
9953 | ||
9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
9955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9956 | if (obj1) { | |
a41e16b6 RD |
9957 | { |
9958 | arg2 = (unsigned long) SPyObj_AsUnsignedLong(obj1); | |
9959 | if (PyErr_Occurred()) SWIG_fail; | |
9960 | } | |
d14a1e28 RD |
9961 | } |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = (unsigned long)(arg1)->CountColours(arg2); | |
9965 | ||
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) SWIG_fail; | |
9968 | } | |
a41e16b6 | 9969 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9970 | return resultobj; |
9971 | fail: | |
9972 | return NULL; | |
9973 | } | |
9974 | ||
9975 | ||
9976 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9977 | PyObject *resultobj; | |
9978 | wxImage *arg1 = (wxImage *) 0 ; | |
9979 | wxImageHistogram *arg2 = 0 ; | |
9980 | unsigned long result; | |
9981 | PyObject * obj0 = 0 ; | |
9982 | PyObject * obj1 = 0 ; | |
9983 | char *kwnames[] = { | |
9984 | (char *) "self",(char *) "h", NULL | |
9985 | }; | |
9986 | ||
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
9988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9990 | if (arg2 == NULL) { | |
9991 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9992 | } | |
9993 | { | |
9994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9995 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
9996 | ||
9997 | wxPyEndAllowThreads(__tstate); | |
9998 | if (PyErr_Occurred()) SWIG_fail; | |
9999 | } | |
a41e16b6 | 10000 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10001 | return resultobj; |
10002 | fail: | |
10003 | return NULL; | |
10004 | } | |
10005 | ||
10006 | ||
10007 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10008 | PyObject *resultobj; | |
10009 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10010 | PyObject * obj0 = 0 ; | |
10011 | char *kwnames[] = { | |
10012 | (char *) "handler", NULL | |
10013 | }; | |
10014 | ||
10015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
10016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10017 | { | |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | wxImage::AddHandler(arg1); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
10024 | Py_INCREF(Py_None); resultobj = Py_None; | |
10025 | return resultobj; | |
10026 | fail: | |
10027 | return NULL; | |
10028 | } | |
10029 | ||
10030 | ||
10031 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject *resultobj; | |
10033 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "handler", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
10040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10041 | { | |
10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10043 | wxImage::InsertHandler(arg1); | |
10044 | ||
10045 | wxPyEndAllowThreads(__tstate); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
10048 | Py_INCREF(Py_None); resultobj = Py_None; | |
10049 | return resultobj; | |
10050 | fail: | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
10055 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject *resultobj; | |
10057 | wxString *arg1 = 0 ; | |
10058 | bool result; | |
e811c8ce | 10059 | bool temp1 = False ; |
d14a1e28 RD |
10060 | PyObject * obj0 = 0 ; |
10061 | char *kwnames[] = { | |
10062 | (char *) "name", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10066 | { | |
10067 | arg1 = wxString_in_helper(obj0); | |
10068 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10069 | temp1 = True; |
d14a1e28 RD |
10070 | } |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
10078 | resultobj = PyInt_FromLong((long)result); | |
10079 | { | |
10080 | if (temp1) | |
10081 | delete arg1; | |
10082 | } | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | { | |
10086 | if (temp1) | |
10087 | delete arg1; | |
10088 | } | |
10089 | return NULL; | |
10090 | } | |
10091 | ||
10092 | ||
10093 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10094 | PyObject *resultobj; | |
10095 | wxString result; | |
10096 | char *kwnames[] = { | |
10097 | NULL | |
10098 | }; | |
10099 | ||
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | result = wxImage::GetImageExtWildcard(); | |
10104 | ||
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | { | |
10109 | #if wxUSE_UNICODE | |
10110 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10111 | #else | |
10112 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10113 | #endif | |
10114 | } | |
10115 | return resultobj; | |
10116 | fail: | |
10117 | return NULL; | |
10118 | } | |
10119 | ||
10120 | ||
10121 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10122 | PyObject *resultobj; | |
10123 | wxImage *arg1 = (wxImage *) 0 ; | |
10124 | wxBitmap result; | |
10125 | PyObject * obj0 = 0 ; | |
10126 | char *kwnames[] = { | |
10127 | (char *) "self", NULL | |
10128 | }; | |
10129 | ||
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
10131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | result = wxImage_ConvertToBitmap(arg1); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | { | |
10140 | wxBitmap * resultptr; | |
10141 | resultptr = new wxBitmap((wxBitmap &) result); | |
10142 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10143 | } | |
10144 | return resultobj; | |
10145 | fail: | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject *resultobj; | |
10152 | wxImage *arg1 = (wxImage *) 0 ; | |
10153 | unsigned char arg2 ; | |
10154 | unsigned char arg3 ; | |
10155 | unsigned char arg4 ; | |
10156 | wxBitmap result; | |
10157 | PyObject * obj0 = 0 ; | |
10158 | PyObject * obj1 = 0 ; | |
10159 | PyObject * obj2 = 0 ; | |
10160 | PyObject * obj3 = 0 ; | |
10161 | char *kwnames[] = { | |
10162 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
10163 | }; | |
10164 | ||
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
10167 | { |
10168 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
10171 | { | |
10172 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | { | |
10176 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
d14a1e28 RD |
10179 | { |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
10182 | ||
10183 | wxPyEndAllowThreads(__tstate); | |
10184 | if (PyErr_Occurred()) SWIG_fail; | |
10185 | } | |
10186 | { | |
10187 | wxBitmap * resultptr; | |
10188 | resultptr = new wxBitmap((wxBitmap &) result); | |
10189 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10190 | } | |
10191 | return resultobj; | |
10192 | fail: | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
10197 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
10198 | PyObject *obj; | |
10199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10200 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
10201 | Py_INCREF(obj); | |
10202 | return Py_BuildValue((char *)""); | |
10203 | } | |
10204 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10205 | PyObject *resultobj; | |
10206 | char *kwnames[] = { | |
10207 | NULL | |
10208 | }; | |
10209 | ||
10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
10211 | { | |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10213 | wxInitAllImageHandlers(); | |
10214 | ||
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
10218 | Py_INCREF(Py_None); resultobj = Py_None; | |
10219 | return resultobj; | |
10220 | fail: | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
10225 | static int _wrap_NullImage_set(PyObject *_val) { | |
10226 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
10227 | return 1; | |
10228 | } | |
10229 | ||
10230 | ||
10231 | static PyObject *_wrap_NullImage_get() { | |
10232 | PyObject *pyobj; | |
10233 | ||
10234 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
10235 | return pyobj; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
10240 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
10241 | return 1; | |
10242 | } | |
10243 | ||
10244 | ||
10245 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
10246 | PyObject *pyobj; | |
10247 | ||
10248 | { | |
10249 | #if wxUSE_UNICODE | |
10250 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10251 | #else | |
10252 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10253 | #endif | |
10254 | } | |
10255 | return pyobj; | |
10256 | } | |
10257 | ||
10258 | ||
10259 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
10260 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
10261 | return 1; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10266 | PyObject *pyobj; | |
10267 | ||
10268 | { | |
10269 | #if wxUSE_UNICODE | |
10270 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10271 | #else | |
10272 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10273 | #endif | |
10274 | } | |
10275 | return pyobj; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
10280 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
10281 | return 1; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10286 | PyObject *pyobj; | |
10287 | ||
10288 | { | |
10289 | #if wxUSE_UNICODE | |
10290 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10291 | #else | |
10292 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10293 | #endif | |
10294 | } | |
10295 | return pyobj; | |
10296 | } | |
10297 | ||
10298 | ||
10299 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
10300 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
10301 | return 1; | |
10302 | } | |
10303 | ||
10304 | ||
10305 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10306 | PyObject *pyobj; | |
10307 | ||
10308 | { | |
10309 | #if wxUSE_UNICODE | |
10310 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10311 | #else | |
10312 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10313 | #endif | |
10314 | } | |
10315 | return pyobj; | |
10316 | } | |
10317 | ||
10318 | ||
10319 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
10320 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
10321 | return 1; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10326 | PyObject *pyobj; | |
10327 | ||
10328 | { | |
10329 | #if wxUSE_UNICODE | |
10330 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10331 | #else | |
10332 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10333 | #endif | |
10334 | } | |
10335 | return pyobj; | |
10336 | } | |
10337 | ||
10338 | ||
10339 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10340 | PyObject *resultobj; | |
10341 | wxBMPHandler *result; | |
10342 | char *kwnames[] = { | |
10343 | NULL | |
10344 | }; | |
10345 | ||
10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10347 | { | |
10348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10349 | result = (wxBMPHandler *)new wxBMPHandler(); | |
10350 | ||
10351 | wxPyEndAllowThreads(__tstate); | |
10352 | if (PyErr_Occurred()) SWIG_fail; | |
10353 | } | |
10354 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
10355 | return resultobj; | |
10356 | fail: | |
10357 | return NULL; | |
10358 | } | |
10359 | ||
10360 | ||
10361 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
10362 | PyObject *obj; | |
10363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10364 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
10365 | Py_INCREF(obj); | |
10366 | return Py_BuildValue((char *)""); | |
10367 | } | |
10368 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxICOHandler *result; | |
10371 | char *kwnames[] = { | |
10372 | NULL | |
10373 | }; | |
10374 | ||
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
10376 | { | |
10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10378 | result = (wxICOHandler *)new wxICOHandler(); | |
10379 | ||
10380 | wxPyEndAllowThreads(__tstate); | |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
10382 | } | |
10383 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
10387 | } | |
10388 | ||
10389 | ||
10390 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
10391 | PyObject *obj; | |
10392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10393 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
10394 | Py_INCREF(obj); | |
10395 | return Py_BuildValue((char *)""); | |
10396 | } | |
10397 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10398 | PyObject *resultobj; | |
10399 | wxCURHandler *result; | |
10400 | char *kwnames[] = { | |
10401 | NULL | |
10402 | }; | |
10403 | ||
10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (wxCURHandler *)new wxCURHandler(); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
10416 | } | |
10417 | ||
10418 | ||
10419 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
10420 | PyObject *obj; | |
10421 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10422 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
10423 | Py_INCREF(obj); | |
10424 | return Py_BuildValue((char *)""); | |
10425 | } | |
10426 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject *resultobj; | |
10428 | wxANIHandler *result; | |
10429 | char *kwnames[] = { | |
10430 | NULL | |
10431 | }; | |
10432 | ||
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
10434 | { | |
10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10436 | result = (wxANIHandler *)new wxANIHandler(); | |
10437 | ||
10438 | wxPyEndAllowThreads(__tstate); | |
10439 | if (PyErr_Occurred()) SWIG_fail; | |
10440 | } | |
10441 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
10442 | return resultobj; | |
10443 | fail: | |
10444 | return NULL; | |
10445 | } | |
10446 | ||
10447 | ||
10448 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
10449 | PyObject *obj; | |
10450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10451 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
10452 | Py_INCREF(obj); | |
10453 | return Py_BuildValue((char *)""); | |
10454 | } | |
10455 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject *resultobj; | |
10457 | wxPNGHandler *result; | |
10458 | char *kwnames[] = { | |
10459 | NULL | |
10460 | }; | |
10461 | ||
10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | result = (wxPNGHandler *)new wxPNGHandler(); | |
10466 | ||
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
10477 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
10478 | PyObject *obj; | |
10479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10480 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
10481 | Py_INCREF(obj); | |
10482 | return Py_BuildValue((char *)""); | |
10483 | } | |
10484 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10485 | PyObject *resultobj; | |
10486 | wxGIFHandler *result; | |
10487 | char *kwnames[] = { | |
10488 | NULL | |
10489 | }; | |
10490 | ||
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10494 | result = (wxGIFHandler *)new wxGIFHandler(); | |
10495 | ||
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) SWIG_fail; | |
10498 | } | |
10499 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
10500 | return resultobj; | |
10501 | fail: | |
10502 | return NULL; | |
10503 | } | |
10504 | ||
10505 | ||
10506 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
10507 | PyObject *obj; | |
10508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10509 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
10510 | Py_INCREF(obj); | |
10511 | return Py_BuildValue((char *)""); | |
10512 | } | |
10513 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxPCXHandler *result; | |
10516 | char *kwnames[] = { | |
10517 | NULL | |
10518 | }; | |
10519 | ||
10520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
10521 | { | |
10522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10523 | result = (wxPCXHandler *)new wxPCXHandler(); | |
10524 | ||
10525 | wxPyEndAllowThreads(__tstate); | |
10526 | if (PyErr_Occurred()) SWIG_fail; | |
10527 | } | |
10528 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
10529 | return resultobj; | |
10530 | fail: | |
10531 | return NULL; | |
10532 | } | |
10533 | ||
10534 | ||
10535 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
10536 | PyObject *obj; | |
10537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10538 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
10539 | Py_INCREF(obj); | |
10540 | return Py_BuildValue((char *)""); | |
10541 | } | |
10542 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10543 | PyObject *resultobj; | |
10544 | wxJPEGHandler *result; | |
10545 | char *kwnames[] = { | |
10546 | NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
10550 | { | |
10551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10552 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
10553 | ||
10554 | wxPyEndAllowThreads(__tstate); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
10557 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
10558 | return resultobj; | |
10559 | fail: | |
10560 | return NULL; | |
10561 | } | |
10562 | ||
10563 | ||
10564 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
10565 | PyObject *obj; | |
10566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10567 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
10568 | Py_INCREF(obj); | |
10569 | return Py_BuildValue((char *)""); | |
10570 | } | |
10571 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10572 | PyObject *resultobj; | |
10573 | wxPNMHandler *result; | |
10574 | char *kwnames[] = { | |
10575 | NULL | |
10576 | }; | |
10577 | ||
10578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | result = (wxPNMHandler *)new wxPNMHandler(); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
10594 | PyObject *obj; | |
10595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10596 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
10597 | Py_INCREF(obj); | |
10598 | return Py_BuildValue((char *)""); | |
10599 | } | |
10600 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10601 | PyObject *resultobj; | |
10602 | wxXPMHandler *result; | |
10603 | char *kwnames[] = { | |
10604 | NULL | |
10605 | }; | |
10606 | ||
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
10608 | { | |
10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10610 | result = (wxXPMHandler *)new wxXPMHandler(); | |
10611 | ||
10612 | wxPyEndAllowThreads(__tstate); | |
10613 | if (PyErr_Occurred()) SWIG_fail; | |
10614 | } | |
10615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
10616 | return resultobj; | |
10617 | fail: | |
10618 | return NULL; | |
10619 | } | |
10620 | ||
10621 | ||
10622 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
10623 | PyObject *obj; | |
10624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10625 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
10626 | Py_INCREF(obj); | |
10627 | return Py_BuildValue((char *)""); | |
10628 | } | |
10629 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10630 | PyObject *resultobj; | |
10631 | wxTIFFHandler *result; | |
10632 | char *kwnames[] = { | |
10633 | NULL | |
10634 | }; | |
10635 | ||
10636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
10651 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
10652 | PyObject *obj; | |
10653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10654 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
10655 | Py_INCREF(obj); | |
10656 | return Py_BuildValue((char *)""); | |
10657 | } | |
10658 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject *resultobj; | |
10660 | wxEvtHandler *result; | |
10661 | char *kwnames[] = { | |
10662 | NULL | |
10663 | }; | |
10664 | ||
10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
10666 | { | |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | result = (wxEvtHandler *)new wxEvtHandler(); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | resultobj = wxPyMake_wxObject(result); | |
10675 | } | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10685 | wxEvtHandler *result; | |
10686 | PyObject * obj0 = 0 ; | |
10687 | char *kwnames[] = { | |
10688 | (char *) "self", NULL | |
10689 | }; | |
10690 | ||
10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
10692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10693 | { | |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | { | |
10701 | resultobj = wxPyMake_wxObject(result); | |
10702 | } | |
10703 | return resultobj; | |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10712 | wxEvtHandler *result; | |
10713 | PyObject * obj0 = 0 ; | |
10714 | char *kwnames[] = { | |
10715 | (char *) "self", NULL | |
10716 | }; | |
10717 | ||
10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
10719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10720 | { | |
10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10722 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
10723 | ||
10724 | wxPyEndAllowThreads(__tstate); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | } | |
10727 | { | |
10728 | resultobj = wxPyMake_wxObject(result); | |
10729 | } | |
10730 | return resultobj; | |
10731 | fail: | |
10732 | return NULL; | |
10733 | } | |
10734 | ||
10735 | ||
10736 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10737 | PyObject *resultobj; | |
10738 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10739 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10740 | PyObject * obj0 = 0 ; | |
10741 | PyObject * obj1 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self",(char *) "handler", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10748 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | (arg1)->SetNextHandler(arg2); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | Py_INCREF(Py_None); resultobj = Py_None; | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject *resultobj; | |
10765 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10766 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | PyObject * obj1 = 0 ; | |
10769 | char *kwnames[] = { | |
10770 | (char *) "self",(char *) "handler", NULL | |
10771 | }; | |
10772 | ||
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
10774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10775 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10776 | { | |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | (arg1)->SetPreviousHandler(arg2); | |
10779 | ||
10780 | wxPyEndAllowThreads(__tstate); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
10783 | Py_INCREF(Py_None); resultobj = Py_None; | |
10784 | return resultobj; | |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
10790 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject *resultobj; | |
10792 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10793 | bool result; | |
10794 | PyObject * obj0 = 0 ; | |
10795 | char *kwnames[] = { | |
10796 | (char *) "self", NULL | |
10797 | }; | |
10798 | ||
10799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
10800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) SWIG_fail; | |
10807 | } | |
10808 | resultobj = PyInt_FromLong((long)result); | |
10809 | return resultobj; | |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
10815 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10816 | PyObject *resultobj; | |
10817 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10818 | bool arg2 ; | |
10819 | PyObject * obj0 = 0 ; | |
10820 | PyObject * obj1 = 0 ; | |
10821 | char *kwnames[] = { | |
10822 | (char *) "self",(char *) "enabled", NULL | |
10823 | }; | |
10824 | ||
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
10826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
10827 | { |
10828 | arg2 = (bool) SPyObj_AsBool(obj1); | |
10829 | if (PyErr_Occurred()) SWIG_fail; | |
10830 | } | |
d14a1e28 RD |
10831 | { |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | (arg1)->SetEvtHandlerEnabled(arg2); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
10838 | Py_INCREF(Py_None); resultobj = Py_None; | |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
10845 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject *resultobj; | |
10847 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10848 | wxEvent *arg2 = 0 ; | |
10849 | bool result; | |
10850 | PyObject * obj0 = 0 ; | |
10851 | PyObject * obj1 = 0 ; | |
10852 | char *kwnames[] = { | |
10853 | (char *) "self",(char *) "event", NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
10857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10858 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10859 | if (arg2 == NULL) { | |
10860 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10861 | } | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | resultobj = PyInt_FromLong((long)result); | |
10870 | return resultobj; | |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
10876 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10877 | PyObject *resultobj; | |
10878 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10879 | wxEvent *arg2 = 0 ; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | PyObject * obj1 = 0 ; | |
10882 | char *kwnames[] = { | |
10883 | (char *) "self",(char *) "event", NULL | |
10884 | }; | |
10885 | ||
10886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
10887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10888 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10889 | if (arg2 == NULL) { | |
10890 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10891 | } | |
10892 | { | |
10893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10894 | (arg1)->AddPendingEvent(*arg2); | |
10895 | ||
10896 | wxPyEndAllowThreads(__tstate); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
10898 | } | |
10899 | Py_INCREF(Py_None); resultobj = Py_None; | |
10900 | return resultobj; | |
10901 | fail: | |
10902 | return NULL; | |
10903 | } | |
10904 | ||
10905 | ||
10906 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10907 | PyObject *resultobj; | |
10908 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10909 | PyObject * obj0 = 0 ; | |
10910 | char *kwnames[] = { | |
10911 | (char *) "self", NULL | |
10912 | }; | |
10913 | ||
10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
10915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10916 | { | |
10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10918 | (arg1)->ProcessPendingEvents(); | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | Py_INCREF(Py_None); resultobj = Py_None; | |
10924 | return resultobj; | |
10925 | fail: | |
10926 | return NULL; | |
10927 | } | |
10928 | ||
10929 | ||
10930 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10931 | PyObject *resultobj; | |
10932 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10933 | int arg2 ; | |
10934 | int arg3 ; | |
10935 | int arg4 ; | |
10936 | PyObject *arg5 = (PyObject *) 0 ; | |
10937 | PyObject * obj0 = 0 ; | |
10938 | PyObject * obj4 = 0 ; | |
10939 | char *kwnames[] = { | |
10940 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
10941 | }; | |
10942 | ||
10943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:EvtHandler_Connect",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
10944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10945 | arg5 = obj4; | |
10946 | { | |
10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10948 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
10949 | ||
10950 | wxPyEndAllowThreads(__tstate); | |
10951 | if (PyErr_Occurred()) SWIG_fail; | |
10952 | } | |
10953 | Py_INCREF(Py_None); resultobj = Py_None; | |
10954 | return resultobj; | |
10955 | fail: | |
10956 | return NULL; | |
10957 | } | |
10958 | ||
10959 | ||
10960 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10961 | PyObject *resultobj; | |
10962 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10963 | int arg2 ; | |
10964 | int arg3 = (int) -1 ; | |
10965 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
10966 | bool result; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
10970 | }; | |
10971 | ||
10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:EvtHandler_Disconnect",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
10977 | ||
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
10981 | resultobj = PyInt_FromLong((long)result); | |
10982 | return resultobj; | |
10983 | fail: | |
10984 | return NULL; | |
10985 | } | |
10986 | ||
10987 | ||
10988 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10989 | PyObject *resultobj; | |
10990 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10991 | PyObject *arg2 = (PyObject *) 0 ; | |
10992 | PyObject * obj0 = 0 ; | |
10993 | PyObject * obj1 = 0 ; | |
10994 | char *kwnames[] = { | |
10995 | (char *) "self",(char *) "_self", NULL | |
10996 | }; | |
10997 | ||
10998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
10999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11000 | arg2 = obj1; | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11004 | ||
11005 | wxPyEndAllowThreads(__tstate); | |
11006 | if (PyErr_Occurred()) SWIG_fail; | |
11007 | } | |
11008 | Py_INCREF(Py_None); resultobj = Py_None; | |
11009 | return resultobj; | |
11010 | fail: | |
11011 | return NULL; | |
11012 | } | |
11013 | ||
11014 | ||
11015 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
11016 | PyObject *obj; | |
11017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11018 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11019 | Py_INCREF(obj); | |
11020 | return Py_BuildValue((char *)""); | |
11021 | } | |
11022 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxEventType result; | |
11025 | char *kwnames[] = { | |
11026 | NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (wxEventType)wxNewEventType(); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | resultobj = PyInt_FromLong((long)result); | |
11038 | return resultobj; | |
11039 | fail: | |
11040 | return NULL; | |
11041 | } | |
11042 | ||
11043 | ||
11044 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11045 | PyObject *resultobj; | |
11046 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11047 | PyObject * obj0 = 0 ; | |
11048 | char *kwnames[] = { | |
11049 | (char *) "self", NULL | |
11050 | }; | |
11051 | ||
11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
11053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11054 | { | |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | delete arg1; | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | Py_INCREF(Py_None); resultobj = Py_None; | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
11068 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11069 | PyObject *resultobj; | |
11070 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11071 | wxEventType arg2 ; | |
11072 | PyObject * obj0 = 0 ; | |
11073 | char *kwnames[] = { | |
11074 | (char *) "self",(char *) "typ", NULL | |
11075 | }; | |
11076 | ||
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetEventType",kwnames,&obj0,&arg2)) goto fail; | |
11078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11079 | { | |
11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11081 | (arg1)->SetEventType(arg2); | |
11082 | ||
11083 | wxPyEndAllowThreads(__tstate); | |
11084 | if (PyErr_Occurred()) SWIG_fail; | |
11085 | } | |
11086 | Py_INCREF(Py_None); resultobj = Py_None; | |
11087 | return resultobj; | |
11088 | fail: | |
11089 | return NULL; | |
11090 | } | |
11091 | ||
11092 | ||
11093 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11094 | PyObject *resultobj; | |
11095 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11096 | wxEventType result; | |
11097 | PyObject * obj0 = 0 ; | |
11098 | char *kwnames[] = { | |
11099 | (char *) "self", NULL | |
11100 | }; | |
11101 | ||
11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
11103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11104 | { | |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
11107 | ||
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | resultobj = PyInt_FromLong((long)result); | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj; | |
11120 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11121 | wxObject *result; | |
11122 | PyObject * obj0 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
11128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
11132 | ||
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | resultobj = wxPyMake_wxObject(result); | |
11138 | } | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj; | |
11147 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11148 | wxObject *arg2 = (wxObject *) 0 ; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | PyObject * obj1 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self",(char *) "obj", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
11156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11157 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | (arg1)->SetEventObject(arg2); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
11165 | Py_INCREF(Py_None); resultobj = Py_None; | |
11166 | return resultobj; | |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
11172 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11173 | PyObject *resultobj; | |
11174 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11175 | long result; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "self", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
11182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | resultobj = PyInt_FromLong((long)result); | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject *resultobj; | |
11199 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11200 | long arg2 = (long) 0 ; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | char *kwnames[] = { | |
11203 | (char *) "self",(char *) "ts", NULL | |
11204 | }; | |
11205 | ||
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Event_SetTimestamp",kwnames,&obj0,&arg2)) goto fail; | |
11207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11208 | { | |
11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11210 | (arg1)->SetTimestamp(arg2); | |
11211 | ||
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | Py_INCREF(Py_None); resultobj = Py_None; | |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11223 | PyObject *resultobj; | |
11224 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11225 | int result; | |
11226 | PyObject * obj0 = 0 ; | |
11227 | char *kwnames[] = { | |
11228 | (char *) "self", NULL | |
11229 | }; | |
11230 | ||
11231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
11232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11233 | { | |
11234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11235 | result = (int)((wxEvent const *)arg1)->GetId(); | |
11236 | ||
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | resultobj = PyInt_FromLong((long)result); | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11248 | PyObject *resultobj; | |
11249 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11250 | int arg2 ; | |
11251 | PyObject * obj0 = 0 ; | |
11252 | char *kwnames[] = { | |
11253 | (char *) "self",(char *) "Id", NULL | |
11254 | }; | |
11255 | ||
11256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetId",kwnames,&obj0,&arg2)) goto fail; | |
11257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | (arg1)->SetId(arg2); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | Py_INCREF(Py_None); resultobj = Py_None; | |
11266 | return resultobj; | |
11267 | fail: | |
11268 | return NULL; | |
11269 | } | |
11270 | ||
11271 | ||
11272 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11273 | PyObject *resultobj; | |
11274 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11275 | bool result; | |
11276 | PyObject * obj0 = 0 ; | |
11277 | char *kwnames[] = { | |
11278 | (char *) "self", NULL | |
11279 | }; | |
11280 | ||
11281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | resultobj = PyInt_FromLong((long)result); | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11298 | PyObject *resultobj; | |
11299 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 11300 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11301 | PyObject * obj0 = 0 ; |
11302 | PyObject * obj1 = 0 ; | |
11303 | char *kwnames[] = { | |
11304 | (char *) "self",(char *) "skip", NULL | |
11305 | }; | |
11306 | ||
11307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
11308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11309 | if (obj1) { | |
a41e16b6 RD |
11310 | { |
11311 | arg2 = (bool) SPyObj_AsBool(obj1); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
d14a1e28 RD |
11314 | } |
11315 | { | |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11317 | (arg1)->Skip(arg2); | |
11318 | ||
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | Py_INCREF(Py_None); resultobj = Py_None; | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
11326 | } | |
11327 | ||
11328 | ||
11329 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11330 | PyObject *resultobj; | |
11331 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11332 | bool result; | |
11333 | PyObject * obj0 = 0 ; | |
11334 | char *kwnames[] = { | |
11335 | (char *) "self", NULL | |
11336 | }; | |
11337 | ||
11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
11339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11340 | { | |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | resultobj = PyInt_FromLong((long)result); | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
11354 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11355 | PyObject *resultobj; | |
11356 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11357 | bool result; | |
11358 | PyObject * obj0 = 0 ; | |
11359 | char *kwnames[] = { | |
11360 | (char *) "self", NULL | |
11361 | }; | |
11362 | ||
11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
11364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11365 | { | |
11366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11367 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
11368 | ||
11369 | wxPyEndAllowThreads(__tstate); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
11372 | resultobj = PyInt_FromLong((long)result); | |
11373 | return resultobj; | |
11374 | fail: | |
11375 | return NULL; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11380 | PyObject *resultobj; | |
11381 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11382 | int result; | |
11383 | PyObject * obj0 = 0 ; | |
11384 | char *kwnames[] = { | |
11385 | (char *) "self", NULL | |
11386 | }; | |
11387 | ||
11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
11389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11390 | { | |
11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11392 | result = (int)(arg1)->StopPropagation(); | |
11393 | ||
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | resultobj = PyInt_FromLong((long)result); | |
11398 | return resultobj; | |
11399 | fail: | |
11400 | return NULL; | |
11401 | } | |
11402 | ||
11403 | ||
11404 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11405 | PyObject *resultobj; | |
11406 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11407 | int arg2 ; | |
11408 | PyObject * obj0 = 0 ; | |
11409 | char *kwnames[] = { | |
11410 | (char *) "self",(char *) "propagationLevel", NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_ResumePropagation",kwnames,&obj0,&arg2)) goto fail; | |
11414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | (arg1)->ResumePropagation(arg2); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | Py_INCREF(Py_None); resultobj = Py_None; | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
11426 | } | |
11427 | ||
11428 | ||
11429 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11430 | PyObject *resultobj; | |
11431 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11432 | wxEvent *result; | |
11433 | PyObject * obj0 = 0 ; | |
11434 | char *kwnames[] = { | |
11435 | (char *) "self", NULL | |
11436 | }; | |
11437 | ||
11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
11439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (wxEvent *)(arg1)->Clone(); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11448 | return resultobj; | |
11449 | fail: | |
11450 | return NULL; | |
11451 | } | |
11452 | ||
11453 | ||
11454 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
11455 | PyObject *obj; | |
11456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11457 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
11458 | Py_INCREF(obj); | |
11459 | return Py_BuildValue((char *)""); | |
11460 | } | |
11461 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11462 | PyObject *resultobj; | |
11463 | wxEvent *arg1 = 0 ; | |
11464 | wxPropagationDisabler *result; | |
11465 | PyObject * obj0 = 0 ; | |
11466 | char *kwnames[] = { | |
11467 | (char *) "event", NULL | |
11468 | }; | |
11469 | ||
11470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11472 | if (arg1 == NULL) { | |
11473 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11474 | } | |
11475 | { | |
11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11477 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
11478 | ||
11479 | wxPyEndAllowThreads(__tstate); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
11482 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
11483 | return resultobj; | |
11484 | fail: | |
11485 | return NULL; | |
11486 | } | |
11487 | ||
11488 | ||
11489 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11490 | PyObject *resultobj; | |
11491 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
11492 | PyObject * obj0 = 0 ; | |
11493 | char *kwnames[] = { | |
11494 | (char *) "self", NULL | |
11495 | }; | |
11496 | ||
11497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | delete arg1; | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | Py_INCREF(Py_None); resultobj = Py_None; | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
11513 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
11514 | PyObject *obj; | |
11515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11516 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
11517 | Py_INCREF(obj); | |
11518 | return Py_BuildValue((char *)""); | |
11519 | } | |
11520 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11521 | PyObject *resultobj; | |
11522 | wxEvent *arg1 = 0 ; | |
11523 | wxPropagateOnce *result; | |
11524 | PyObject * obj0 = 0 ; | |
11525 | char *kwnames[] = { | |
11526 | (char *) "event", NULL | |
11527 | }; | |
11528 | ||
11529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
11530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11531 | if (arg1 == NULL) { | |
11532 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11533 | } | |
11534 | { | |
11535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11536 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
11537 | ||
11538 | wxPyEndAllowThreads(__tstate); | |
11539 | if (PyErr_Occurred()) SWIG_fail; | |
11540 | } | |
11541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
11542 | return resultobj; | |
11543 | fail: | |
11544 | return NULL; | |
11545 | } | |
11546 | ||
11547 | ||
11548 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11549 | PyObject *resultobj; | |
11550 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
11551 | PyObject * obj0 = 0 ; | |
11552 | char *kwnames[] = { | |
11553 | (char *) "self", NULL | |
11554 | }; | |
11555 | ||
11556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
11557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11558 | { | |
11559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11560 | delete arg1; | |
11561 | ||
11562 | wxPyEndAllowThreads(__tstate); | |
11563 | if (PyErr_Occurred()) SWIG_fail; | |
11564 | } | |
11565 | Py_INCREF(Py_None); resultobj = Py_None; | |
11566 | return resultobj; | |
11567 | fail: | |
11568 | return NULL; | |
11569 | } | |
11570 | ||
11571 | ||
11572 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
11573 | PyObject *obj; | |
11574 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11575 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
11576 | Py_INCREF(obj); | |
11577 | return Py_BuildValue((char *)""); | |
11578 | } | |
11579 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11580 | PyObject *resultobj; | |
11581 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11582 | int arg2 = (int) 0 ; | |
11583 | wxCommandEvent *result; | |
11584 | char *kwnames[] = { | |
11585 | (char *) "commandType",(char *) "winid", NULL | |
11586 | }; | |
11587 | ||
11588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
11589 | { | |
11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11591 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
11592 | ||
11593 | wxPyEndAllowThreads(__tstate); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
11595 | } | |
11596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
11597 | return resultobj; | |
11598 | fail: | |
11599 | return NULL; | |
11600 | } | |
11601 | ||
11602 | ||
11603 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11604 | PyObject *resultobj; | |
11605 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11606 | int result; | |
11607 | PyObject * obj0 = 0 ; | |
11608 | char *kwnames[] = { | |
11609 | (char *) "self", NULL | |
11610 | }; | |
11611 | ||
11612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11614 | { | |
11615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11616 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
11617 | ||
11618 | wxPyEndAllowThreads(__tstate); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
11621 | resultobj = PyInt_FromLong((long)result); | |
11622 | return resultobj; | |
11623 | fail: | |
11624 | return NULL; | |
11625 | } | |
11626 | ||
11627 | ||
11628 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11629 | PyObject *resultobj; | |
11630 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11631 | wxString *arg2 = 0 ; | |
e811c8ce | 11632 | bool temp2 = False ; |
d14a1e28 RD |
11633 | PyObject * obj0 = 0 ; |
11634 | PyObject * obj1 = 0 ; | |
11635 | char *kwnames[] = { | |
11636 | (char *) "self",(char *) "s", NULL | |
11637 | }; | |
11638 | ||
11639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
11640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11641 | { | |
11642 | arg2 = wxString_in_helper(obj1); | |
11643 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11644 | temp2 = True; |
d14a1e28 RD |
11645 | } |
11646 | { | |
11647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11648 | (arg1)->SetString((wxString const &)*arg2); | |
11649 | ||
11650 | wxPyEndAllowThreads(__tstate); | |
11651 | if (PyErr_Occurred()) SWIG_fail; | |
11652 | } | |
11653 | Py_INCREF(Py_None); resultobj = Py_None; | |
11654 | { | |
11655 | if (temp2) | |
11656 | delete arg2; | |
11657 | } | |
11658 | return resultobj; | |
11659 | fail: | |
11660 | { | |
11661 | if (temp2) | |
11662 | delete arg2; | |
11663 | } | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
11668 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj; | |
11670 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11671 | wxString result; | |
11672 | PyObject * obj0 = 0 ; | |
11673 | char *kwnames[] = { | |
11674 | (char *) "self", NULL | |
11675 | }; | |
11676 | ||
11677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
11678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11679 | { | |
11680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11681 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
11682 | ||
11683 | wxPyEndAllowThreads(__tstate); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
11686 | { | |
11687 | #if wxUSE_UNICODE | |
11688 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11689 | #else | |
11690 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11691 | #endif | |
11692 | } | |
11693 | return resultobj; | |
11694 | fail: | |
11695 | return NULL; | |
11696 | } | |
11697 | ||
11698 | ||
11699 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11700 | PyObject *resultobj; | |
11701 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11702 | bool result; | |
11703 | PyObject * obj0 = 0 ; | |
11704 | char *kwnames[] = { | |
11705 | (char *) "self", NULL | |
11706 | }; | |
11707 | ||
11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
11709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11710 | { | |
11711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11712 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
11713 | ||
11714 | wxPyEndAllowThreads(__tstate); | |
11715 | if (PyErr_Occurred()) SWIG_fail; | |
11716 | } | |
11717 | resultobj = PyInt_FromLong((long)result); | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
11724 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11725 | PyObject *resultobj; | |
11726 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11727 | bool result; | |
11728 | PyObject * obj0 = 0 ; | |
11729 | char *kwnames[] = { | |
11730 | (char *) "self", NULL | |
11731 | }; | |
11732 | ||
11733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
11734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
11738 | ||
11739 | wxPyEndAllowThreads(__tstate); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | } | |
11742 | resultobj = PyInt_FromLong((long)result); | |
11743 | return resultobj; | |
11744 | fail: | |
11745 | return NULL; | |
11746 | } | |
11747 | ||
11748 | ||
11749 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11750 | PyObject *resultobj; | |
11751 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11752 | long arg2 ; | |
11753 | PyObject * obj0 = 0 ; | |
11754 | char *kwnames[] = { | |
11755 | (char *) "self",(char *) "extraLong", NULL | |
11756 | }; | |
11757 | ||
11758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:CommandEvent_SetExtraLong",kwnames,&obj0,&arg2)) goto fail; | |
11759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11760 | { | |
11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11762 | (arg1)->SetExtraLong(arg2); | |
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_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11775 | PyObject *resultobj; | |
11776 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11777 | long result; | |
11778 | PyObject * obj0 = 0 ; | |
11779 | char *kwnames[] = { | |
11780 | (char *) "self", NULL | |
11781 | }; | |
11782 | ||
11783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
11784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11785 | { | |
11786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11787 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
11788 | ||
11789 | wxPyEndAllowThreads(__tstate); | |
11790 | if (PyErr_Occurred()) SWIG_fail; | |
11791 | } | |
11792 | resultobj = PyInt_FromLong((long)result); | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | return NULL; | |
11796 | } | |
11797 | ||
11798 | ||
11799 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11800 | PyObject *resultobj; | |
11801 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11802 | int arg2 ; | |
11803 | PyObject * obj0 = 0 ; | |
11804 | char *kwnames[] = { | |
11805 | (char *) "self",(char *) "i", NULL | |
11806 | }; | |
11807 | ||
11808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CommandEvent_SetInt",kwnames,&obj0,&arg2)) goto fail; | |
11809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | (arg1)->SetInt(arg2); | |
11813 | ||
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | Py_INCREF(Py_None); resultobj = Py_None; | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
11824 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject *resultobj; | |
11826 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11827 | long result; | |
11828 | PyObject * obj0 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "self", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
11834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | resultobj = PyInt_FromLong((long)result); | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
11849 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11850 | PyObject *resultobj; | |
11851 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11852 | wxEvent *result; | |
11853 | PyObject * obj0 = 0 ; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "self", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
11859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11860 | { | |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
11874 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
11875 | PyObject *obj; | |
11876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11877 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
11878 | Py_INCREF(obj); | |
11879 | return Py_BuildValue((char *)""); | |
11880 | } | |
11881 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11882 | PyObject *resultobj; | |
11883 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11884 | int arg2 = (int) 0 ; | |
11885 | wxNotifyEvent *result; | |
11886 | char *kwnames[] = { | |
11887 | (char *) "commandType",(char *) "winid", NULL | |
11888 | }; | |
11889 | ||
11890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_NotifyEvent",kwnames,&arg1,&arg2)) goto fail; | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11908 | PyObject * obj0 = 0 ; | |
11909 | char *kwnames[] = { | |
11910 | (char *) "self", NULL | |
11911 | }; | |
11912 | ||
11913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
11914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11915 | { | |
11916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11917 | (arg1)->Veto(); | |
11918 | ||
11919 | wxPyEndAllowThreads(__tstate); | |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
11921 | } | |
11922 | Py_INCREF(Py_None); resultobj = Py_None; | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | return NULL; | |
11926 | } | |
11927 | ||
11928 | ||
11929 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11930 | PyObject *resultobj; | |
11931 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11932 | PyObject * obj0 = 0 ; | |
11933 | char *kwnames[] = { | |
11934 | (char *) "self", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
11938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | (arg1)->Allow(); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | Py_INCREF(Py_None); resultobj = Py_None; | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | return NULL; | |
11950 | } | |
11951 | ||
11952 | ||
11953 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11954 | PyObject *resultobj; | |
11955 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11956 | bool result; | |
11957 | PyObject * obj0 = 0 ; | |
11958 | char *kwnames[] = { | |
11959 | (char *) "self", NULL | |
11960 | }; | |
11961 | ||
11962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
11963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | result = (bool)(arg1)->IsAllowed(); | |
11967 | ||
11968 | wxPyEndAllowThreads(__tstate); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | resultobj = PyInt_FromLong((long)result); | |
11972 | return resultobj; | |
11973 | fail: | |
11974 | return NULL; | |
11975 | } | |
11976 | ||
11977 | ||
11978 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
11979 | PyObject *obj; | |
11980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11981 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
11982 | Py_INCREF(obj); | |
11983 | return Py_BuildValue((char *)""); | |
11984 | } | |
11985 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11986 | PyObject *resultobj; | |
11987 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11988 | int arg2 = (int) 0 ; | |
11989 | int arg3 = (int) 0 ; | |
11990 | int arg4 = (int) 0 ; | |
11991 | wxScrollEvent *result; | |
11992 | char *kwnames[] = { | |
11993 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
11994 | }; | |
11995 | ||
11996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ScrollEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11997 | { | |
11998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11999 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12000 | ||
12001 | wxPyEndAllowThreads(__tstate); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
12004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | return NULL; | |
12008 | } | |
12009 | ||
12010 | ||
12011 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12012 | PyObject *resultobj; | |
12013 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12014 | int result; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | char *kwnames[] = { | |
12017 | (char *) "self", NULL | |
12018 | }; | |
12019 | ||
12020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12022 | { | |
12023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12024 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
12025 | ||
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
12029 | resultobj = PyInt_FromLong((long)result); | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | return NULL; | |
12033 | } | |
12034 | ||
12035 | ||
12036 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12037 | PyObject *resultobj; | |
12038 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12039 | int result; | |
12040 | PyObject * obj0 = 0 ; | |
12041 | char *kwnames[] = { | |
12042 | (char *) "self", NULL | |
12043 | }; | |
12044 | ||
12045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | resultobj = PyInt_FromLong((long)result); | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
12061 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12062 | PyObject *resultobj; | |
12063 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12064 | int arg2 ; | |
12065 | PyObject * obj0 = 0 ; | |
12066 | char *kwnames[] = { | |
12067 | (char *) "self",(char *) "orient", NULL | |
12068 | }; | |
12069 | ||
12070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
12071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12072 | { | |
12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12074 | (arg1)->SetOrientation(arg2); | |
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_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12087 | PyObject *resultobj; | |
12088 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12089 | int arg2 ; | |
12090 | PyObject * obj0 = 0 ; | |
12091 | char *kwnames[] = { | |
12092 | (char *) "self",(char *) "pos", NULL | |
12093 | }; | |
12094 | ||
12095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
12096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12097 | { | |
12098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12099 | (arg1)->SetPosition(arg2); | |
12100 | ||
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
12104 | Py_INCREF(Py_None); resultobj = Py_None; | |
12105 | return resultobj; | |
12106 | fail: | |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
12112 | PyObject *obj; | |
12113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12114 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
12115 | Py_INCREF(obj); | |
12116 | return Py_BuildValue((char *)""); | |
12117 | } | |
12118 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12119 | PyObject *resultobj; | |
12120 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12121 | int arg2 = (int) 0 ; | |
12122 | int arg3 = (int) 0 ; | |
12123 | wxScrollWinEvent *result; | |
12124 | char *kwnames[] = { | |
12125 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
12126 | }; | |
12127 | ||
12128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ScrollWinEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
12129 | { | |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
12132 | ||
12133 | wxPyEndAllowThreads(__tstate); | |
12134 | if (PyErr_Occurred()) SWIG_fail; | |
12135 | } | |
12136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
12137 | return resultobj; | |
12138 | fail: | |
12139 | return NULL; | |
12140 | } | |
12141 | ||
12142 | ||
12143 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12144 | PyObject *resultobj; | |
12145 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12146 | int result; | |
12147 | PyObject * obj0 = 0 ; | |
12148 | char *kwnames[] = { | |
12149 | (char *) "self", NULL | |
12150 | }; | |
12151 | ||
12152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12154 | { | |
12155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12156 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
12157 | ||
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | resultobj = PyInt_FromLong((long)result); | |
12162 | return resultobj; | |
12163 | fail: | |
12164 | return NULL; | |
12165 | } | |
12166 | ||
12167 | ||
12168 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12169 | PyObject *resultobj; | |
12170 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12171 | int result; | |
12172 | PyObject * obj0 = 0 ; | |
12173 | char *kwnames[] = { | |
12174 | (char *) "self", NULL | |
12175 | }; | |
12176 | ||
12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12179 | { | |
12180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12181 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
12182 | ||
12183 | wxPyEndAllowThreads(__tstate); | |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
12185 | } | |
12186 | resultobj = PyInt_FromLong((long)result); | |
12187 | return resultobj; | |
12188 | fail: | |
12189 | return NULL; | |
12190 | } | |
12191 | ||
12192 | ||
12193 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12194 | PyObject *resultobj; | |
12195 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12196 | int arg2 ; | |
12197 | PyObject * obj0 = 0 ; | |
12198 | char *kwnames[] = { | |
12199 | (char *) "self",(char *) "orient", NULL | |
12200 | }; | |
12201 | ||
12202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
12203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12204 | { | |
12205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12206 | (arg1)->SetOrientation(arg2); | |
12207 | ||
12208 | wxPyEndAllowThreads(__tstate); | |
12209 | if (PyErr_Occurred()) SWIG_fail; | |
12210 | } | |
12211 | Py_INCREF(Py_None); resultobj = Py_None; | |
12212 | return resultobj; | |
12213 | fail: | |
12214 | return NULL; | |
12215 | } | |
12216 | ||
12217 | ||
12218 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12219 | PyObject *resultobj; | |
12220 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12221 | int arg2 ; | |
12222 | PyObject * obj0 = 0 ; | |
12223 | char *kwnames[] = { | |
12224 | (char *) "self",(char *) "pos", NULL | |
12225 | }; | |
12226 | ||
12227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
12228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12229 | { | |
12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12231 | (arg1)->SetPosition(arg2); | |
12232 | ||
12233 | wxPyEndAllowThreads(__tstate); | |
12234 | if (PyErr_Occurred()) SWIG_fail; | |
12235 | } | |
12236 | Py_INCREF(Py_None); resultobj = Py_None; | |
12237 | return resultobj; | |
12238 | fail: | |
12239 | return NULL; | |
12240 | } | |
12241 | ||
12242 | ||
12243 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
12244 | PyObject *obj; | |
12245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12246 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
12247 | Py_INCREF(obj); | |
12248 | return Py_BuildValue((char *)""); | |
12249 | } | |
12250 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12251 | PyObject *resultobj; | |
12252 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12253 | wxMouseEvent *result; | |
12254 | char *kwnames[] = { | |
12255 | (char *) "mouseType", NULL | |
12256 | }; | |
12257 | ||
12258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MouseEvent",kwnames,&arg1)) goto fail; | |
12259 | { | |
12260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12261 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
12262 | ||
12263 | wxPyEndAllowThreads(__tstate); | |
12264 | if (PyErr_Occurred()) SWIG_fail; | |
12265 | } | |
12266 | { | |
12267 | resultobj = wxPyMake_wxObject(result); | |
12268 | } | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | return NULL; | |
12272 | } | |
12273 | ||
12274 | ||
12275 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12276 | PyObject *resultobj; | |
12277 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12278 | bool result; | |
12279 | PyObject * obj0 = 0 ; | |
12280 | char *kwnames[] = { | |
12281 | (char *) "self", NULL | |
12282 | }; | |
12283 | ||
12284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
12285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12286 | { | |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
12293 | resultobj = PyInt_FromLong((long)result); | |
12294 | return resultobj; | |
12295 | fail: | |
12296 | return NULL; | |
12297 | } | |
12298 | ||
12299 | ||
12300 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12301 | PyObject *resultobj; | |
12302 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12303 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12304 | bool result; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | char *kwnames[] = { | |
12307 | (char *) "self",(char *) "but", NULL | |
12308 | }; | |
12309 | ||
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
12311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | resultobj = PyInt_FromLong((long)result); | |
12320 | return resultobj; | |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12329 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12330 | bool result; | |
12331 | PyObject * obj0 = 0 ; | |
12332 | char *kwnames[] = { | |
12333 | (char *) "self",(char *) "but", NULL | |
12334 | }; | |
12335 | ||
12336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDClick",kwnames,&obj0,&arg2)) goto fail; | |
12337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | resultobj = PyInt_FromLong((long)result); | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12355 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12356 | bool result; | |
12357 | PyObject * obj0 = 0 ; | |
12358 | char *kwnames[] = { | |
12359 | (char *) "self",(char *) "but", NULL | |
12360 | }; | |
12361 | ||
12362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
12363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12364 | { | |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | resultobj = PyInt_FromLong((long)result); | |
12372 | return resultobj; | |
12373 | fail: | |
12374 | return NULL; | |
12375 | } | |
12376 | ||
12377 | ||
12378 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12379 | PyObject *resultobj; | |
12380 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12381 | int arg2 ; | |
12382 | bool result; | |
12383 | PyObject * obj0 = 0 ; | |
12384 | char *kwnames[] = { | |
12385 | (char *) "self",(char *) "but", NULL | |
12386 | }; | |
12387 | ||
12388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_Button",kwnames,&obj0,&arg2)) goto fail; | |
12389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12390 | { | |
12391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12392 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
12393 | ||
12394 | wxPyEndAllowThreads(__tstate); | |
12395 | if (PyErr_Occurred()) SWIG_fail; | |
12396 | } | |
12397 | resultobj = PyInt_FromLong((long)result); | |
12398 | return resultobj; | |
12399 | fail: | |
12400 | return NULL; | |
12401 | } | |
12402 | ||
12403 | ||
12404 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12405 | PyObject *resultobj; | |
12406 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12407 | int arg2 ; | |
12408 | bool result; | |
12409 | PyObject * obj0 = 0 ; | |
12410 | char *kwnames[] = { | |
12411 | (char *) "self",(char *) "but", NULL | |
12412 | }; | |
12413 | ||
12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
12415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12416 | { | |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | resultobj = PyInt_FromLong((long)result); | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj; | |
12432 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12433 | int result; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
12440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | resultobj = PyInt_FromLong((long)result); | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject *resultobj; | |
12457 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12458 | bool result; | |
12459 | PyObject * obj0 = 0 ; | |
12460 | char *kwnames[] = { | |
12461 | (char *) "self", NULL | |
12462 | }; | |
12463 | ||
12464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
12465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12466 | { | |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | resultobj = PyInt_FromLong((long)result); | |
12474 | return resultobj; | |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12481 | PyObject *resultobj; | |
12482 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12483 | bool result; | |
12484 | PyObject * obj0 = 0 ; | |
12485 | char *kwnames[] = { | |
12486 | (char *) "self", NULL | |
12487 | }; | |
12488 | ||
12489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
12490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12491 | { | |
12492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12493 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
12494 | ||
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | resultobj = PyInt_FromLong((long)result); | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12506 | PyObject *resultobj; | |
12507 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12508 | bool result; | |
12509 | PyObject * obj0 = 0 ; | |
12510 | char *kwnames[] = { | |
12511 | (char *) "self", NULL | |
12512 | }; | |
12513 | ||
12514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
12515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12516 | { | |
12517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12518 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
12519 | ||
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = PyInt_FromLong((long)result); | |
12524 | return resultobj; | |
12525 | fail: | |
12526 | return NULL; | |
12527 | } | |
12528 | ||
12529 | ||
12530 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12531 | PyObject *resultobj; | |
12532 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12533 | bool result; | |
12534 | PyObject * obj0 = 0 ; | |
12535 | char *kwnames[] = { | |
12536 | (char *) "self", NULL | |
12537 | }; | |
12538 | ||
12539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
12540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12541 | { | |
12542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12543 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
12544 | ||
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | resultobj = PyInt_FromLong((long)result); | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | return NULL; | |
12552 | } | |
12553 | ||
12554 | ||
12555 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12556 | PyObject *resultobj; | |
12557 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12558 | bool result; | |
12559 | PyObject * obj0 = 0 ; | |
12560 | char *kwnames[] = { | |
12561 | (char *) "self", NULL | |
12562 | }; | |
12563 | ||
12564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
12565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12566 | { | |
12567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12568 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
12569 | ||
12570 | wxPyEndAllowThreads(__tstate); | |
12571 | if (PyErr_Occurred()) SWIG_fail; | |
12572 | } | |
12573 | resultobj = PyInt_FromLong((long)result); | |
12574 | return resultobj; | |
12575 | fail: | |
12576 | return NULL; | |
12577 | } | |
12578 | ||
12579 | ||
12580 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12581 | PyObject *resultobj; | |
12582 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12583 | bool result; | |
12584 | PyObject * obj0 = 0 ; | |
12585 | char *kwnames[] = { | |
12586 | (char *) "self", NULL | |
12587 | }; | |
12588 | ||
12589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
12590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12591 | { | |
12592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12593 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
12594 | ||
12595 | wxPyEndAllowThreads(__tstate); | |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
12597 | } | |
12598 | resultobj = PyInt_FromLong((long)result); | |
12599 | return resultobj; | |
12600 | fail: | |
12601 | return NULL; | |
12602 | } | |
12603 | ||
12604 | ||
12605 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12606 | PyObject *resultobj; | |
12607 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12608 | bool result; | |
12609 | PyObject * obj0 = 0 ; | |
12610 | char *kwnames[] = { | |
12611 | (char *) "self", NULL | |
12612 | }; | |
12613 | ||
12614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
12615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12616 | { | |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12618 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
12619 | ||
12620 | wxPyEndAllowThreads(__tstate); | |
12621 | if (PyErr_Occurred()) SWIG_fail; | |
12622 | } | |
12623 | resultobj = PyInt_FromLong((long)result); | |
12624 | return resultobj; | |
12625 | fail: | |
12626 | return NULL; | |
12627 | } | |
12628 | ||
12629 | ||
12630 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12631 | PyObject *resultobj; | |
12632 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12633 | bool result; | |
12634 | PyObject * obj0 = 0 ; | |
12635 | char *kwnames[] = { | |
12636 | (char *) "self", NULL | |
12637 | }; | |
12638 | ||
12639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
12640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12641 | { | |
12642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12643 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
12644 | ||
12645 | wxPyEndAllowThreads(__tstate); | |
12646 | if (PyErr_Occurred()) SWIG_fail; | |
12647 | } | |
12648 | resultobj = PyInt_FromLong((long)result); | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | return NULL; | |
12652 | } | |
12653 | ||
12654 | ||
12655 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12656 | PyObject *resultobj; | |
12657 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12658 | bool result; | |
12659 | PyObject * obj0 = 0 ; | |
12660 | char *kwnames[] = { | |
12661 | (char *) "self", NULL | |
12662 | }; | |
12663 | ||
12664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
12665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12666 | { | |
12667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12668 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
12669 | ||
12670 | wxPyEndAllowThreads(__tstate); | |
12671 | if (PyErr_Occurred()) SWIG_fail; | |
12672 | } | |
12673 | resultobj = PyInt_FromLong((long)result); | |
12674 | return resultobj; | |
12675 | fail: | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12681 | PyObject *resultobj; | |
12682 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12683 | bool result; | |
12684 | PyObject * obj0 = 0 ; | |
12685 | char *kwnames[] = { | |
12686 | (char *) "self", NULL | |
12687 | }; | |
12688 | ||
12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
12690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12691 | { | |
12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12693 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
12694 | ||
12695 | wxPyEndAllowThreads(__tstate); | |
12696 | if (PyErr_Occurred()) SWIG_fail; | |
12697 | } | |
12698 | resultobj = PyInt_FromLong((long)result); | |
12699 | return resultobj; | |
12700 | fail: | |
12701 | return NULL; | |
12702 | } | |
12703 | ||
12704 | ||
12705 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12706 | PyObject *resultobj; | |
12707 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12708 | bool result; | |
12709 | PyObject * obj0 = 0 ; | |
12710 | char *kwnames[] = { | |
12711 | (char *) "self", NULL | |
12712 | }; | |
12713 | ||
12714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
12715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12716 | { | |
12717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12718 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
12719 | ||
12720 | wxPyEndAllowThreads(__tstate); | |
12721 | if (PyErr_Occurred()) SWIG_fail; | |
12722 | } | |
12723 | resultobj = PyInt_FromLong((long)result); | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | return NULL; | |
12727 | } | |
12728 | ||
12729 | ||
12730 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12731 | PyObject *resultobj; | |
12732 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12733 | bool result; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
12740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | resultobj = PyInt_FromLong((long)result); | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12758 | bool result; | |
12759 | PyObject * obj0 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12766 | { | |
12767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12768 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
12769 | ||
12770 | wxPyEndAllowThreads(__tstate); | |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
12772 | } | |
12773 | resultobj = PyInt_FromLong((long)result); | |
12774 | return resultobj; | |
12775 | fail: | |
12776 | return NULL; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12781 | PyObject *resultobj; | |
12782 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12783 | bool result; | |
12784 | PyObject * obj0 = 0 ; | |
12785 | char *kwnames[] = { | |
12786 | (char *) "self", NULL | |
12787 | }; | |
12788 | ||
12789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
12790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12791 | { | |
12792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12793 | result = (bool)(arg1)->LeftIsDown(); | |
12794 | ||
12795 | wxPyEndAllowThreads(__tstate); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
12798 | resultobj = PyInt_FromLong((long)result); | |
12799 | return resultobj; | |
12800 | fail: | |
12801 | return NULL; | |
12802 | } | |
12803 | ||
12804 | ||
12805 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12806 | PyObject *resultobj; | |
12807 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12808 | bool result; | |
12809 | PyObject * obj0 = 0 ; | |
12810 | char *kwnames[] = { | |
12811 | (char *) "self", NULL | |
12812 | }; | |
12813 | ||
12814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
12815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12816 | { | |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | result = (bool)(arg1)->MiddleIsDown(); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
12823 | resultobj = PyInt_FromLong((long)result); | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
12830 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12831 | PyObject *resultobj; | |
12832 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12833 | bool result; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | char *kwnames[] = { | |
12836 | (char *) "self", NULL | |
12837 | }; | |
12838 | ||
12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
12840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | result = (bool)(arg1)->RightIsDown(); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | resultobj = PyInt_FromLong((long)result); | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
12855 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12856 | PyObject *resultobj; | |
12857 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12858 | bool result; | |
12859 | PyObject * obj0 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
12865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12866 | { | |
12867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12868 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
12869 | ||
12870 | wxPyEndAllowThreads(__tstate); | |
12871 | if (PyErr_Occurred()) SWIG_fail; | |
12872 | } | |
12873 | resultobj = PyInt_FromLong((long)result); | |
12874 | return resultobj; | |
12875 | fail: | |
12876 | return NULL; | |
12877 | } | |
12878 | ||
12879 | ||
12880 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12881 | PyObject *resultobj; | |
12882 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12883 | bool result; | |
12884 | PyObject * obj0 = 0 ; | |
12885 | char *kwnames[] = { | |
12886 | (char *) "self", NULL | |
12887 | }; | |
12888 | ||
12889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
12890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12891 | { | |
12892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12893 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
12894 | ||
12895 | wxPyEndAllowThreads(__tstate); | |
12896 | if (PyErr_Occurred()) SWIG_fail; | |
12897 | } | |
12898 | resultobj = PyInt_FromLong((long)result); | |
12899 | return resultobj; | |
12900 | fail: | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
12905 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12906 | PyObject *resultobj; | |
12907 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12908 | bool result; | |
12909 | PyObject * obj0 = 0 ; | |
12910 | char *kwnames[] = { | |
12911 | (char *) "self", NULL | |
12912 | }; | |
12913 | ||
12914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
12915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12916 | { | |
12917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12918 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
12919 | ||
12920 | wxPyEndAllowThreads(__tstate); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | resultobj = PyInt_FromLong((long)result); | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | return NULL; | |
12927 | } | |
12928 | ||
12929 | ||
12930 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12931 | PyObject *resultobj; | |
12932 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12933 | bool result; | |
12934 | PyObject * obj0 = 0 ; | |
12935 | char *kwnames[] = { | |
12936 | (char *) "self", NULL | |
12937 | }; | |
12938 | ||
12939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
12940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12941 | { | |
12942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12943 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
12944 | ||
12945 | wxPyEndAllowThreads(__tstate); | |
12946 | if (PyErr_Occurred()) SWIG_fail; | |
12947 | } | |
12948 | resultobj = PyInt_FromLong((long)result); | |
12949 | return resultobj; | |
12950 | fail: | |
12951 | return NULL; | |
12952 | } | |
12953 | ||
12954 | ||
12955 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12956 | PyObject *resultobj; | |
12957 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12958 | wxPoint result; | |
12959 | PyObject * obj0 = 0 ; | |
12960 | char *kwnames[] = { | |
12961 | (char *) "self", NULL | |
12962 | }; | |
12963 | ||
12964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12966 | { | |
12967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12968 | result = (arg1)->GetPosition(); | |
12969 | ||
12970 | wxPyEndAllowThreads(__tstate); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
12973 | { | |
12974 | wxPoint * resultptr; | |
12975 | resultptr = new wxPoint((wxPoint &) result); | |
12976 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12977 | } | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
12984 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12985 | PyObject *resultobj; | |
12986 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12987 | long *arg2 = (long *) 0 ; | |
12988 | long *arg3 = (long *) 0 ; | |
12989 | long temp2 ; | |
12990 | long temp3 ; | |
12991 | PyObject * obj0 = 0 ; | |
12992 | char *kwnames[] = { | |
12993 | (char *) "self", NULL | |
12994 | }; | |
12995 | ||
12996 | arg2 = &temp2; | |
12997 | arg3 = &temp3; | |
12998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
12999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13000 | { | |
13001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13002 | (arg1)->GetPosition(arg2,arg3); | |
13003 | ||
13004 | wxPyEndAllowThreads(__tstate); | |
13005 | if (PyErr_Occurred()) SWIG_fail; | |
13006 | } | |
13007 | Py_INCREF(Py_None); resultobj = Py_None; | |
13008 | { | |
13009 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13010 | resultobj = t_output_helper(resultobj,o); | |
13011 | } | |
13012 | { | |
13013 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13014 | resultobj = t_output_helper(resultobj,o); | |
13015 | } | |
13016 | return resultobj; | |
13017 | fail: | |
13018 | return NULL; | |
13019 | } | |
13020 | ||
13021 | ||
13022 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13025 | wxDC *arg2 = 0 ; | |
13026 | wxPoint result; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | PyObject * obj1 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self",(char *) "dc", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13035 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13036 | if (arg2 == NULL) { | |
13037 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13038 | } | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | { | |
13047 | wxPoint * resultptr; | |
13048 | resultptr = new wxPoint((wxPoint &) result); | |
13049 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13050 | } | |
13051 | return resultobj; | |
13052 | fail: | |
13053 | return NULL; | |
13054 | } | |
13055 | ||
13056 | ||
13057 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13058 | PyObject *resultobj; | |
13059 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13060 | int result; |
d14a1e28 RD |
13061 | PyObject * obj0 = 0 ; |
13062 | char *kwnames[] = { | |
13063 | (char *) "self", NULL | |
13064 | }; | |
13065 | ||
13066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
13067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13068 | { | |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13070 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13071 | |
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | resultobj = PyInt_FromLong((long)result); | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13083 | PyObject *resultobj; | |
13084 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13085 | int result; |
d14a1e28 RD |
13086 | PyObject * obj0 = 0 ; |
13087 | char *kwnames[] = { | |
13088 | (char *) "self", NULL | |
13089 | }; | |
13090 | ||
13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
13092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13095 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13096 | |
13097 | wxPyEndAllowThreads(__tstate); | |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
13099 | } | |
13100 | resultobj = PyInt_FromLong((long)result); | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | return NULL; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13108 | PyObject *resultobj; | |
13109 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13110 | int result; | |
13111 | PyObject * obj0 = 0 ; | |
13112 | char *kwnames[] = { | |
13113 | (char *) "self", NULL | |
13114 | }; | |
13115 | ||
13116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
13117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13118 | { | |
13119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13120 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
13121 | ||
13122 | wxPyEndAllowThreads(__tstate); | |
13123 | if (PyErr_Occurred()) SWIG_fail; | |
13124 | } | |
13125 | resultobj = PyInt_FromLong((long)result); | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | return NULL; | |
13129 | } | |
13130 | ||
13131 | ||
13132 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13133 | PyObject *resultobj; | |
13134 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13135 | int result; | |
13136 | PyObject * obj0 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
13142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
13150 | resultobj = PyInt_FromLong((long)result); | |
13151 | return resultobj; | |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13160 | int result; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
13167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | resultobj = PyInt_FromLong((long)result); | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | return NULL; | |
13179 | } | |
13180 | ||
13181 | ||
13182 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13183 | PyObject *resultobj; | |
13184 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13185 | bool result; | |
13186 | PyObject * obj0 = 0 ; | |
13187 | char *kwnames[] = { | |
13188 | (char *) "self", NULL | |
13189 | }; | |
13190 | ||
13191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
13192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13193 | { | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
13196 | ||
13197 | wxPyEndAllowThreads(__tstate); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
13200 | resultobj = PyInt_FromLong((long)result); | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13208 | PyObject *resultobj; | |
13209 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13210 | int arg2 ; |
d14a1e28 RD |
13211 | PyObject * obj0 = 0 ; |
13212 | char *kwnames[] = { | |
13213 | (char *) "self",(char *) "m_x", NULL | |
13214 | }; | |
13215 | ||
13216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
13217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13218 | if (arg1) (arg1)->m_x = arg2; | |
13219 | ||
13220 | Py_INCREF(Py_None); resultobj = Py_None; | |
13221 | return resultobj; | |
13222 | fail: | |
13223 | return NULL; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13228 | PyObject *resultobj; | |
13229 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13230 | int result; |
d14a1e28 RD |
13231 | PyObject * obj0 = 0 ; |
13232 | char *kwnames[] = { | |
13233 | (char *) "self", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 13238 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
13239 | |
13240 | resultobj = PyInt_FromLong((long)result); | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13248 | PyObject *resultobj; | |
13249 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13250 | int arg2 ; |
d14a1e28 RD |
13251 | PyObject * obj0 = 0 ; |
13252 | char *kwnames[] = { | |
13253 | (char *) "self",(char *) "m_y", NULL | |
13254 | }; | |
13255 | ||
13256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
13257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13258 | if (arg1) (arg1)->m_y = arg2; | |
13259 | ||
13260 | Py_INCREF(Py_None); resultobj = Py_None; | |
13261 | return resultobj; | |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13268 | PyObject *resultobj; | |
13269 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13270 | int result; |
d14a1e28 RD |
13271 | PyObject * obj0 = 0 ; |
13272 | char *kwnames[] = { | |
13273 | (char *) "self", NULL | |
13274 | }; | |
13275 | ||
13276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
13277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 13278 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
13279 | |
13280 | resultobj = PyInt_FromLong((long)result); | |
13281 | return resultobj; | |
13282 | fail: | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13290 | bool arg2 ; | |
13291 | PyObject * obj0 = 0 ; | |
13292 | PyObject * obj1 = 0 ; | |
13293 | char *kwnames[] = { | |
13294 | (char *) "self",(char *) "m_leftDown", NULL | |
13295 | }; | |
13296 | ||
13297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13299 | { |
13300 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
d14a1e28 RD |
13303 | if (arg1) (arg1)->m_leftDown = arg2; |
13304 | ||
13305 | Py_INCREF(Py_None); resultobj = Py_None; | |
13306 | return resultobj; | |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
13312 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13313 | PyObject *resultobj; | |
13314 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13315 | bool result; | |
13316 | PyObject * obj0 = 0 ; | |
13317 | char *kwnames[] = { | |
13318 | (char *) "self", NULL | |
13319 | }; | |
13320 | ||
13321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
13322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13323 | result = (bool) ((arg1)->m_leftDown); | |
13324 | ||
13325 | resultobj = PyInt_FromLong((long)result); | |
13326 | return resultobj; | |
13327 | fail: | |
13328 | return NULL; | |
13329 | } | |
13330 | ||
13331 | ||
13332 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13333 | PyObject *resultobj; | |
13334 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13335 | bool arg2 ; | |
13336 | PyObject * obj0 = 0 ; | |
13337 | PyObject * obj1 = 0 ; | |
13338 | char *kwnames[] = { | |
13339 | (char *) "self",(char *) "m_middleDown", NULL | |
13340 | }; | |
13341 | ||
13342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13344 | { |
13345 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13346 | if (PyErr_Occurred()) SWIG_fail; | |
13347 | } | |
d14a1e28 RD |
13348 | if (arg1) (arg1)->m_middleDown = arg2; |
13349 | ||
13350 | Py_INCREF(Py_None); resultobj = Py_None; | |
13351 | return resultobj; | |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
13357 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13358 | PyObject *resultobj; | |
13359 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13360 | bool result; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
13367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13368 | result = (bool) ((arg1)->m_middleDown); | |
13369 | ||
13370 | resultobj = PyInt_FromLong((long)result); | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
13377 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13378 | PyObject *resultobj; | |
13379 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13380 | bool arg2 ; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | PyObject * obj1 = 0 ; | |
13383 | char *kwnames[] = { | |
13384 | (char *) "self",(char *) "m_rightDown", NULL | |
13385 | }; | |
13386 | ||
13387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13389 | { |
13390 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
d14a1e28 RD |
13393 | if (arg1) (arg1)->m_rightDown = arg2; |
13394 | ||
13395 | Py_INCREF(Py_None); resultobj = Py_None; | |
13396 | return resultobj; | |
13397 | fail: | |
13398 | return NULL; | |
13399 | } | |
13400 | ||
13401 | ||
13402 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13403 | PyObject *resultobj; | |
13404 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13405 | bool result; | |
13406 | PyObject * obj0 = 0 ; | |
13407 | char *kwnames[] = { | |
13408 | (char *) "self", NULL | |
13409 | }; | |
13410 | ||
13411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
13412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13413 | result = (bool) ((arg1)->m_rightDown); | |
13414 | ||
13415 | resultobj = PyInt_FromLong((long)result); | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
13422 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13423 | PyObject *resultobj; | |
13424 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13425 | bool arg2 ; | |
13426 | PyObject * obj0 = 0 ; | |
13427 | PyObject * obj1 = 0 ; | |
13428 | char *kwnames[] = { | |
13429 | (char *) "self",(char *) "m_controlDown", NULL | |
13430 | }; | |
13431 | ||
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13434 | { |
13435 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13436 | if (PyErr_Occurred()) SWIG_fail; | |
13437 | } | |
d14a1e28 RD |
13438 | if (arg1) (arg1)->m_controlDown = arg2; |
13439 | ||
13440 | Py_INCREF(Py_None); resultobj = Py_None; | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13448 | PyObject *resultobj; | |
13449 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13450 | bool result; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13458 | result = (bool) ((arg1)->m_controlDown); | |
13459 | ||
13460 | resultobj = PyInt_FromLong((long)result); | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13470 | bool arg2 ; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | PyObject * obj1 = 0 ; | |
13473 | char *kwnames[] = { | |
13474 | (char *) "self",(char *) "m_shiftDown", NULL | |
13475 | }; | |
13476 | ||
13477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13479 | { |
13480 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13481 | if (PyErr_Occurred()) SWIG_fail; | |
13482 | } | |
d14a1e28 RD |
13483 | if (arg1) (arg1)->m_shiftDown = arg2; |
13484 | ||
13485 | Py_INCREF(Py_None); resultobj = Py_None; | |
13486 | return resultobj; | |
13487 | fail: | |
13488 | return NULL; | |
13489 | } | |
13490 | ||
13491 | ||
13492 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13493 | PyObject *resultobj; | |
13494 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13495 | bool result; | |
13496 | PyObject * obj0 = 0 ; | |
13497 | char *kwnames[] = { | |
13498 | (char *) "self", NULL | |
13499 | }; | |
13500 | ||
13501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
13502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13503 | result = (bool) ((arg1)->m_shiftDown); | |
13504 | ||
13505 | resultobj = PyInt_FromLong((long)result); | |
13506 | return resultobj; | |
13507 | fail: | |
13508 | return NULL; | |
13509 | } | |
13510 | ||
13511 | ||
13512 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13513 | PyObject *resultobj; | |
13514 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13515 | bool arg2 ; | |
13516 | PyObject * obj0 = 0 ; | |
13517 | PyObject * obj1 = 0 ; | |
13518 | char *kwnames[] = { | |
13519 | (char *) "self",(char *) "m_altDown", NULL | |
13520 | }; | |
13521 | ||
13522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13524 | { |
13525 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
d14a1e28 RD |
13528 | if (arg1) (arg1)->m_altDown = arg2; |
13529 | ||
13530 | Py_INCREF(Py_None); resultobj = Py_None; | |
13531 | return resultobj; | |
13532 | fail: | |
13533 | return NULL; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13538 | PyObject *resultobj; | |
13539 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13540 | bool result; | |
13541 | PyObject * obj0 = 0 ; | |
13542 | char *kwnames[] = { | |
13543 | (char *) "self", NULL | |
13544 | }; | |
13545 | ||
13546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
13547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13548 | result = (bool) ((arg1)->m_altDown); | |
13549 | ||
13550 | resultobj = PyInt_FromLong((long)result); | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13558 | PyObject *resultobj; | |
13559 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13560 | bool arg2 ; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | PyObject * obj1 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "self",(char *) "m_metaDown", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13569 | { |
13570 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
d14a1e28 RD |
13573 | if (arg1) (arg1)->m_metaDown = arg2; |
13574 | ||
13575 | Py_INCREF(Py_None); resultobj = Py_None; | |
13576 | return resultobj; | |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13585 | bool result; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
13592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13593 | result = (bool) ((arg1)->m_metaDown); | |
13594 | ||
13595 | resultobj = PyInt_FromLong((long)result); | |
13596 | return resultobj; | |
13597 | fail: | |
13598 | return NULL; | |
13599 | } | |
13600 | ||
13601 | ||
13602 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13603 | PyObject *resultobj; | |
13604 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13605 | int arg2 ; | |
13606 | PyObject * obj0 = 0 ; | |
13607 | char *kwnames[] = { | |
13608 | (char *) "self",(char *) "m_wheelRotation", NULL | |
13609 | }; | |
13610 | ||
13611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&arg2)) goto fail; | |
13612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13613 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
13614 | ||
13615 | Py_INCREF(Py_None); resultobj = Py_None; | |
13616 | return resultobj; | |
13617 | fail: | |
13618 | return NULL; | |
13619 | } | |
13620 | ||
13621 | ||
13622 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13623 | PyObject *resultobj; | |
13624 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13625 | int result; | |
13626 | PyObject * obj0 = 0 ; | |
13627 | char *kwnames[] = { | |
13628 | (char *) "self", NULL | |
13629 | }; | |
13630 | ||
13631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
13632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13633 | result = (int) ((arg1)->m_wheelRotation); | |
13634 | ||
13635 | resultobj = PyInt_FromLong((long)result); | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | return NULL; | |
13639 | } | |
13640 | ||
13641 | ||
13642 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13643 | PyObject *resultobj; | |
13644 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13645 | int arg2 ; | |
13646 | PyObject * obj0 = 0 ; | |
13647 | char *kwnames[] = { | |
13648 | (char *) "self",(char *) "m_wheelDelta", NULL | |
13649 | }; | |
13650 | ||
13651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&arg2)) goto fail; | |
13652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13653 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
13654 | ||
13655 | Py_INCREF(Py_None); resultobj = Py_None; | |
13656 | return resultobj; | |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
13662 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13663 | PyObject *resultobj; | |
13664 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13665 | int result; | |
13666 | PyObject * obj0 = 0 ; | |
13667 | char *kwnames[] = { | |
13668 | (char *) "self", NULL | |
13669 | }; | |
13670 | ||
13671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
13672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13673 | result = (int) ((arg1)->m_wheelDelta); | |
13674 | ||
13675 | resultobj = PyInt_FromLong((long)result); | |
13676 | return resultobj; | |
13677 | fail: | |
13678 | return NULL; | |
13679 | } | |
13680 | ||
13681 | ||
13682 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13683 | PyObject *resultobj; | |
13684 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13685 | int arg2 ; | |
13686 | PyObject * obj0 = 0 ; | |
13687 | char *kwnames[] = { | |
13688 | (char *) "self",(char *) "m_linesPerAction", NULL | |
13689 | }; | |
13690 | ||
13691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&arg2)) goto fail; | |
13692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13693 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
13694 | ||
13695 | Py_INCREF(Py_None); resultobj = Py_None; | |
13696 | return resultobj; | |
13697 | fail: | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
13702 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13703 | PyObject *resultobj; | |
13704 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13705 | int result; | |
13706 | PyObject * obj0 = 0 ; | |
13707 | char *kwnames[] = { | |
13708 | (char *) "self", NULL | |
13709 | }; | |
13710 | ||
13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
13712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13713 | result = (int) ((arg1)->m_linesPerAction); | |
13714 | ||
13715 | resultobj = PyInt_FromLong((long)result); | |
13716 | return resultobj; | |
13717 | fail: | |
13718 | return NULL; | |
13719 | } | |
13720 | ||
13721 | ||
13722 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
13723 | PyObject *obj; | |
13724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13725 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
13726 | Py_INCREF(obj); | |
13727 | return Py_BuildValue((char *)""); | |
13728 | } | |
13729 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13730 | PyObject *resultobj; | |
e811c8ce RD |
13731 | int arg1 = (int) 0 ; |
13732 | int arg2 = (int) 0 ; | |
d14a1e28 RD |
13733 | wxSetCursorEvent *result; |
13734 | char *kwnames[] = { | |
13735 | (char *) "x",(char *) "y", NULL | |
13736 | }; | |
13737 | ||
13738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SetCursorEvent",kwnames,&arg1,&arg2)) goto fail; | |
13739 | { | |
13740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13741 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
13742 | ||
13743 | wxPyEndAllowThreads(__tstate); | |
13744 | if (PyErr_Occurred()) SWIG_fail; | |
13745 | } | |
13746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
13747 | return resultobj; | |
13748 | fail: | |
13749 | return NULL; | |
13750 | } | |
13751 | ||
13752 | ||
13753 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13754 | PyObject *resultobj; | |
13755 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 13756 | int result; |
d14a1e28 RD |
13757 | PyObject * obj0 = 0 ; |
13758 | char *kwnames[] = { | |
13759 | (char *) "self", NULL | |
13760 | }; | |
13761 | ||
13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
13763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13766 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13767 | |
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
13771 | resultobj = PyInt_FromLong((long)result); | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj; | |
13780 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 13781 | int result; |
d14a1e28 RD |
13782 | PyObject * obj0 = 0 ; |
13783 | char *kwnames[] = { | |
13784 | (char *) "self", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
13788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13789 | { | |
13790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13791 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13792 | |
13793 | wxPyEndAllowThreads(__tstate); | |
13794 | if (PyErr_Occurred()) SWIG_fail; | |
13795 | } | |
13796 | resultobj = PyInt_FromLong((long)result); | |
13797 | return resultobj; | |
13798 | fail: | |
13799 | return NULL; | |
13800 | } | |
13801 | ||
13802 | ||
13803 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13804 | PyObject *resultobj; | |
13805 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13806 | wxCursor *arg2 = 0 ; | |
13807 | PyObject * obj0 = 0 ; | |
13808 | PyObject * obj1 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self",(char *) "cursor", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
13814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13816 | if (arg2 == NULL) { | |
13817 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13818 | } | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | Py_INCREF(Py_None); resultobj = Py_None; | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13836 | wxCursor *result; | |
13837 | PyObject * obj0 = 0 ; | |
13838 | char *kwnames[] = { | |
13839 | (char *) "self", NULL | |
13840 | }; | |
13841 | ||
13842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
13843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13844 | { | |
13845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13846 | { | |
13847 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
13848 | result = (wxCursor *) &_result_ref; | |
13849 | } | |
13850 | ||
13851 | wxPyEndAllowThreads(__tstate); | |
13852 | if (PyErr_Occurred()) SWIG_fail; | |
13853 | } | |
13854 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
13855 | return resultobj; | |
13856 | fail: | |
13857 | return NULL; | |
13858 | } | |
13859 | ||
13860 | ||
13861 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13862 | PyObject *resultobj; | |
13863 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13864 | bool result; | |
13865 | PyObject * obj0 = 0 ; | |
13866 | char *kwnames[] = { | |
13867 | (char *) "self", NULL | |
13868 | }; | |
13869 | ||
13870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
13871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | resultobj = PyInt_FromLong((long)result); | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
13887 | PyObject *obj; | |
13888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13889 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
13890 | Py_INCREF(obj); | |
13891 | return Py_BuildValue((char *)""); | |
13892 | } | |
13893 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13894 | PyObject *resultobj; | |
13895 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13896 | wxKeyEvent *result; | |
13897 | char *kwnames[] = { | |
13898 | (char *) "keyType", NULL | |
13899 | }; | |
13900 | ||
13901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_KeyEvent",kwnames,&arg1)) goto fail; | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
13910 | return resultobj; | |
13911 | fail: | |
13912 | return NULL; | |
13913 | } | |
13914 | ||
13915 | ||
13916 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13917 | PyObject *resultobj; | |
13918 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13919 | bool result; | |
13920 | PyObject * obj0 = 0 ; | |
13921 | char *kwnames[] = { | |
13922 | (char *) "self", NULL | |
13923 | }; | |
13924 | ||
13925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13927 | { | |
13928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13929 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
13930 | ||
13931 | wxPyEndAllowThreads(__tstate); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
13934 | resultobj = PyInt_FromLong((long)result); | |
13935 | return resultobj; | |
13936 | fail: | |
13937 | return NULL; | |
13938 | } | |
13939 | ||
13940 | ||
13941 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13942 | PyObject *resultobj; | |
13943 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13944 | bool result; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | char *kwnames[] = { | |
13947 | (char *) "self", NULL | |
13948 | }; | |
13949 | ||
13950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | resultobj = PyInt_FromLong((long)result); | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13967 | PyObject *resultobj; | |
13968 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13969 | bool result; | |
13970 | PyObject * obj0 = 0 ; | |
13971 | char *kwnames[] = { | |
13972 | (char *) "self", NULL | |
13973 | }; | |
13974 | ||
13975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
13976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13977 | { | |
13978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13979 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
13980 | ||
13981 | wxPyEndAllowThreads(__tstate); | |
13982 | if (PyErr_Occurred()) SWIG_fail; | |
13983 | } | |
13984 | resultobj = PyInt_FromLong((long)result); | |
13985 | return resultobj; | |
13986 | fail: | |
13987 | return NULL; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13992 | PyObject *resultobj; | |
13993 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13994 | bool result; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14002 | { | |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
14009 | resultobj = PyInt_FromLong((long)result); | |
14010 | return resultobj; | |
14011 | fail: | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
14016 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14017 | PyObject *resultobj; | |
14018 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14019 | bool result; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | char *kwnames[] = { | |
14022 | (char *) "self", NULL | |
14023 | }; | |
14024 | ||
14025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
14026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14027 | { | |
14028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14029 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
14030 | ||
14031 | wxPyEndAllowThreads(__tstate); | |
14032 | if (PyErr_Occurred()) SWIG_fail; | |
14033 | } | |
14034 | resultobj = PyInt_FromLong((long)result); | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14042 | PyObject *resultobj; | |
14043 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14044 | int result; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "self", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14052 | { | |
14053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14054 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
14055 | ||
14056 | wxPyEndAllowThreads(__tstate); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
14059 | resultobj = PyInt_FromLong((long)result); | |
14060 | return resultobj; | |
14061 | fail: | |
14062 | return NULL; | |
14063 | } | |
14064 | ||
14065 | ||
14066 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14067 | PyObject *resultobj; | |
14068 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14069 | int result; | |
14070 | PyObject * obj0 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "self", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
14076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14077 | { | |
14078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14079 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
14080 | ||
14081 | wxPyEndAllowThreads(__tstate); | |
14082 | if (PyErr_Occurred()) SWIG_fail; | |
14083 | } | |
14084 | resultobj = PyInt_FromLong((long)result); | |
14085 | return resultobj; | |
14086 | fail: | |
14087 | return NULL; | |
14088 | } | |
14089 | ||
14090 | ||
14091 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14092 | PyObject *resultobj; | |
14093 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14094 | unsigned int result; |
d14a1e28 RD |
14095 | PyObject * obj0 = 0 ; |
14096 | char *kwnames[] = { | |
14097 | (char *) "self", NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
14101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14102 | { | |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14104 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
14105 | |
14106 | wxPyEndAllowThreads(__tstate); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | } | |
a41e16b6 | 14109 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14110 | return resultobj; |
14111 | fail: | |
14112 | return NULL; | |
14113 | } | |
14114 | ||
14115 | ||
14116 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14117 | PyObject *resultobj; | |
14118 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14119 | unsigned int result; |
d14a1e28 RD |
14120 | PyObject * obj0 = 0 ; |
14121 | char *kwnames[] = { | |
14122 | (char *) "self", NULL | |
14123 | }; | |
14124 | ||
14125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
14126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14127 | { | |
14128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14129 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
14130 | |
14131 | wxPyEndAllowThreads(__tstate); | |
14132 | if (PyErr_Occurred()) SWIG_fail; | |
14133 | } | |
a41e16b6 | 14134 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14135 | return resultobj; |
14136 | fail: | |
14137 | return NULL; | |
14138 | } | |
14139 | ||
14140 | ||
14141 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14142 | PyObject *resultobj; | |
14143 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14144 | wxPoint result; | |
14145 | PyObject * obj0 = 0 ; | |
14146 | char *kwnames[] = { | |
14147 | (char *) "self", NULL | |
14148 | }; | |
14149 | ||
14150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | result = (arg1)->GetPosition(); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | { | |
14160 | wxPoint * resultptr; | |
14161 | resultptr = new wxPoint((wxPoint &) result); | |
14162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14163 | } | |
14164 | return resultobj; | |
14165 | fail: | |
14166 | return NULL; | |
14167 | } | |
14168 | ||
14169 | ||
14170 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14171 | PyObject *resultobj; | |
14172 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14173 | long *arg2 = (long *) 0 ; | |
14174 | long *arg3 = (long *) 0 ; | |
14175 | long temp2 ; | |
14176 | long temp3 ; | |
14177 | PyObject * obj0 = 0 ; | |
14178 | char *kwnames[] = { | |
14179 | (char *) "self", NULL | |
14180 | }; | |
14181 | ||
14182 | arg2 = &temp2; | |
14183 | arg3 = &temp3; | |
14184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
14185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14186 | { | |
14187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14188 | (arg1)->GetPosition(arg2,arg3); | |
14189 | ||
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
14193 | Py_INCREF(Py_None); resultobj = Py_None; | |
14194 | { | |
14195 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14196 | resultobj = t_output_helper(resultobj,o); | |
14197 | } | |
14198 | { | |
14199 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14200 | resultobj = t_output_helper(resultobj,o); | |
14201 | } | |
14202 | return resultobj; | |
14203 | fail: | |
14204 | return NULL; | |
14205 | } | |
14206 | ||
14207 | ||
14208 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14209 | PyObject *resultobj; | |
14210 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14211 | int result; |
d14a1e28 RD |
14212 | PyObject * obj0 = 0 ; |
14213 | char *kwnames[] = { | |
14214 | (char *) "self", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
14218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14219 | { | |
14220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14221 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14222 | |
14223 | wxPyEndAllowThreads(__tstate); | |
14224 | if (PyErr_Occurred()) SWIG_fail; | |
14225 | } | |
14226 | resultobj = PyInt_FromLong((long)result); | |
14227 | return resultobj; | |
14228 | fail: | |
14229 | return NULL; | |
14230 | } | |
14231 | ||
14232 | ||
14233 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14234 | PyObject *resultobj; | |
14235 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14236 | int result; |
d14a1e28 RD |
14237 | PyObject * obj0 = 0 ; |
14238 | char *kwnames[] = { | |
14239 | (char *) "self", NULL | |
14240 | }; | |
14241 | ||
14242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
14243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14244 | { | |
14245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14246 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14247 | |
14248 | wxPyEndAllowThreads(__tstate); | |
14249 | if (PyErr_Occurred()) SWIG_fail; | |
14250 | } | |
14251 | resultobj = PyInt_FromLong((long)result); | |
14252 | return resultobj; | |
14253 | fail: | |
14254 | return NULL; | |
14255 | } | |
14256 | ||
14257 | ||
14258 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14259 | PyObject *resultobj; | |
14260 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14261 | int arg2 ; |
d14a1e28 RD |
14262 | PyObject * obj0 = 0 ; |
14263 | char *kwnames[] = { | |
14264 | (char *) "self",(char *) "m_x", NULL | |
14265 | }; | |
14266 | ||
14267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
14268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14269 | if (arg1) (arg1)->m_x = arg2; | |
14270 | ||
14271 | Py_INCREF(Py_None); resultobj = Py_None; | |
14272 | return resultobj; | |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14279 | PyObject *resultobj; | |
14280 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14281 | int result; |
d14a1e28 RD |
14282 | PyObject * obj0 = 0 ; |
14283 | char *kwnames[] = { | |
14284 | (char *) "self", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14289 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
14290 | |
14291 | resultobj = PyInt_FromLong((long)result); | |
14292 | return resultobj; | |
14293 | fail: | |
14294 | return NULL; | |
14295 | } | |
14296 | ||
14297 | ||
14298 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14299 | PyObject *resultobj; | |
14300 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14301 | int arg2 ; |
d14a1e28 RD |
14302 | PyObject * obj0 = 0 ; |
14303 | char *kwnames[] = { | |
14304 | (char *) "self",(char *) "m_y", NULL | |
14305 | }; | |
14306 | ||
14307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
14308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14309 | if (arg1) (arg1)->m_y = arg2; | |
14310 | ||
14311 | Py_INCREF(Py_None); resultobj = Py_None; | |
14312 | return resultobj; | |
14313 | fail: | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
14318 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14319 | PyObject *resultobj; | |
14320 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14321 | int result; |
d14a1e28 RD |
14322 | PyObject * obj0 = 0 ; |
14323 | char *kwnames[] = { | |
14324 | (char *) "self", NULL | |
14325 | }; | |
14326 | ||
14327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14329 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
14330 | |
14331 | resultobj = PyInt_FromLong((long)result); | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
14338 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14339 | PyObject *resultobj; | |
14340 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14341 | long arg2 ; | |
14342 | PyObject * obj0 = 0 ; | |
14343 | char *kwnames[] = { | |
14344 | (char *) "self",(char *) "m_keyCode", NULL | |
14345 | }; | |
14346 | ||
14347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:KeyEvent_m_keyCode_set",kwnames,&obj0,&arg2)) goto fail; | |
14348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14349 | if (arg1) (arg1)->m_keyCode = arg2; | |
14350 | ||
14351 | Py_INCREF(Py_None); resultobj = Py_None; | |
14352 | return resultobj; | |
14353 | fail: | |
14354 | return NULL; | |
14355 | } | |
14356 | ||
14357 | ||
14358 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14359 | PyObject *resultobj; | |
14360 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14361 | long result; | |
14362 | PyObject * obj0 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
14368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14369 | result = (long) ((arg1)->m_keyCode); | |
14370 | ||
14371 | resultobj = PyInt_FromLong((long)result); | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14379 | PyObject *resultobj; | |
14380 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14381 | bool arg2 ; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | PyObject * obj1 = 0 ; | |
14384 | char *kwnames[] = { | |
14385 | (char *) "self",(char *) "m_controlDown", NULL | |
14386 | }; | |
14387 | ||
14388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14390 | { |
14391 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14392 | if (PyErr_Occurred()) SWIG_fail; | |
14393 | } | |
d14a1e28 RD |
14394 | if (arg1) (arg1)->m_controlDown = arg2; |
14395 | ||
14396 | Py_INCREF(Py_None); resultobj = Py_None; | |
14397 | return resultobj; | |
14398 | fail: | |
14399 | return NULL; | |
14400 | } | |
14401 | ||
14402 | ||
14403 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14404 | PyObject *resultobj; | |
14405 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14406 | bool result; | |
14407 | PyObject * obj0 = 0 ; | |
14408 | char *kwnames[] = { | |
14409 | (char *) "self", NULL | |
14410 | }; | |
14411 | ||
14412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14414 | result = (bool) ((arg1)->m_controlDown); | |
14415 | ||
14416 | resultobj = PyInt_FromLong((long)result); | |
14417 | return resultobj; | |
14418 | fail: | |
14419 | return NULL; | |
14420 | } | |
14421 | ||
14422 | ||
14423 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14424 | PyObject *resultobj; | |
14425 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14426 | bool arg2 ; | |
14427 | PyObject * obj0 = 0 ; | |
14428 | PyObject * obj1 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self",(char *) "m_shiftDown", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14435 | { |
14436 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
d14a1e28 RD |
14439 | if (arg1) (arg1)->m_shiftDown = arg2; |
14440 | ||
14441 | Py_INCREF(Py_None); resultobj = Py_None; | |
14442 | return resultobj; | |
14443 | fail: | |
14444 | return NULL; | |
14445 | } | |
14446 | ||
14447 | ||
14448 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14449 | PyObject *resultobj; | |
14450 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14451 | bool result; | |
14452 | PyObject * obj0 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "self", NULL | |
14455 | }; | |
14456 | ||
14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14459 | result = (bool) ((arg1)->m_shiftDown); | |
14460 | ||
14461 | resultobj = PyInt_FromLong((long)result); | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | return NULL; | |
14465 | } | |
14466 | ||
14467 | ||
14468 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14469 | PyObject *resultobj; | |
14470 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14471 | bool arg2 ; | |
14472 | PyObject * obj0 = 0 ; | |
14473 | PyObject * obj1 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self",(char *) "m_altDown", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14480 | { |
14481 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
d14a1e28 RD |
14484 | if (arg1) (arg1)->m_altDown = arg2; |
14485 | ||
14486 | Py_INCREF(Py_None); resultobj = Py_None; | |
14487 | return resultobj; | |
14488 | fail: | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14494 | PyObject *resultobj; | |
14495 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14496 | bool result; | |
14497 | PyObject * obj0 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14504 | result = (bool) ((arg1)->m_altDown); | |
14505 | ||
14506 | resultobj = PyInt_FromLong((long)result); | |
14507 | return resultobj; | |
14508 | fail: | |
14509 | return NULL; | |
14510 | } | |
14511 | ||
14512 | ||
14513 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14514 | PyObject *resultobj; | |
14515 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14516 | bool arg2 ; | |
14517 | PyObject * obj0 = 0 ; | |
14518 | PyObject * obj1 = 0 ; | |
14519 | char *kwnames[] = { | |
14520 | (char *) "self",(char *) "m_metaDown", NULL | |
14521 | }; | |
14522 | ||
14523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14525 | { |
14526 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14527 | if (PyErr_Occurred()) SWIG_fail; | |
14528 | } | |
d14a1e28 RD |
14529 | if (arg1) (arg1)->m_metaDown = arg2; |
14530 | ||
14531 | Py_INCREF(Py_None); resultobj = Py_None; | |
14532 | return resultobj; | |
14533 | fail: | |
14534 | return NULL; | |
14535 | } | |
14536 | ||
14537 | ||
14538 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14539 | PyObject *resultobj; | |
14540 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14541 | bool result; | |
14542 | PyObject * obj0 = 0 ; | |
14543 | char *kwnames[] = { | |
14544 | (char *) "self", NULL | |
14545 | }; | |
14546 | ||
14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14549 | result = (bool) ((arg1)->m_metaDown); | |
14550 | ||
14551 | resultobj = PyInt_FromLong((long)result); | |
14552 | return resultobj; | |
14553 | fail: | |
14554 | return NULL; | |
14555 | } | |
14556 | ||
14557 | ||
14558 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14559 | PyObject *resultobj; | |
14560 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14561 | bool arg2 ; | |
14562 | PyObject * obj0 = 0 ; | |
14563 | PyObject * obj1 = 0 ; | |
14564 | char *kwnames[] = { | |
14565 | (char *) "self",(char *) "m_scanCode", NULL | |
14566 | }; | |
14567 | ||
14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14570 | { |
14571 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14572 | if (PyErr_Occurred()) SWIG_fail; | |
14573 | } | |
d14a1e28 RD |
14574 | if (arg1) (arg1)->m_scanCode = arg2; |
14575 | ||
14576 | Py_INCREF(Py_None); resultobj = Py_None; | |
14577 | return resultobj; | |
14578 | fail: | |
14579 | return NULL; | |
14580 | } | |
14581 | ||
14582 | ||
14583 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14584 | PyObject *resultobj; | |
14585 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14586 | bool result; | |
14587 | PyObject * obj0 = 0 ; | |
14588 | char *kwnames[] = { | |
14589 | (char *) "self", NULL | |
14590 | }; | |
14591 | ||
14592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
14593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14594 | result = (bool) ((arg1)->m_scanCode); | |
14595 | ||
14596 | resultobj = PyInt_FromLong((long)result); | |
14597 | return resultobj; | |
14598 | fail: | |
14599 | return NULL; | |
14600 | } | |
14601 | ||
14602 | ||
14603 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj; | |
14605 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14606 | unsigned int arg2 ; |
d14a1e28 RD |
14607 | PyObject * obj0 = 0 ; |
14608 | PyObject * obj1 = 0 ; | |
14609 | char *kwnames[] = { | |
14610 | (char *) "self",(char *) "m_rawCode", NULL | |
14611 | }; | |
14612 | ||
14613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14615 | { |
14616 | arg2 = (unsigned int) SPyObj_AsUnsignedInt(obj1); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
d14a1e28 RD |
14619 | if (arg1) (arg1)->m_rawCode = arg2; |
14620 | ||
14621 | Py_INCREF(Py_None); resultobj = Py_None; | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
14628 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj; | |
14630 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14631 | unsigned int result; |
d14a1e28 RD |
14632 | PyObject * obj0 = 0 ; |
14633 | char *kwnames[] = { | |
14634 | (char *) "self", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
14638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14639 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 14640 | |
a41e16b6 | 14641 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14642 | return resultobj; |
14643 | fail: | |
14644 | return NULL; | |
14645 | } | |
14646 | ||
14647 | ||
14648 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14649 | PyObject *resultobj; | |
14650 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14651 | unsigned int arg2 ; |
d14a1e28 RD |
14652 | PyObject * obj0 = 0 ; |
14653 | PyObject * obj1 = 0 ; | |
14654 | char *kwnames[] = { | |
14655 | (char *) "self",(char *) "m_rawFlags", NULL | |
14656 | }; | |
14657 | ||
14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
14659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14660 | { |
14661 | arg2 = (unsigned int) SPyObj_AsUnsignedInt(obj1); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
d14a1e28 RD |
14664 | if (arg1) (arg1)->m_rawFlags = arg2; |
14665 | ||
14666 | Py_INCREF(Py_None); resultobj = Py_None; | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | return NULL; | |
14670 | } | |
14671 | ||
14672 | ||
14673 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14674 | PyObject *resultobj; | |
14675 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14676 | unsigned int result; |
d14a1e28 RD |
14677 | PyObject * obj0 = 0 ; |
14678 | char *kwnames[] = { | |
14679 | (char *) "self", NULL | |
14680 | }; | |
14681 | ||
14682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
14683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14684 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 14685 | |
a41e16b6 | 14686 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14687 | return resultobj; |
14688 | fail: | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
14694 | PyObject *obj; | |
14695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14696 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
14697 | Py_INCREF(obj); | |
14698 | return Py_BuildValue((char *)""); | |
14699 | } | |
14700 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14701 | PyObject *resultobj; | |
14702 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
14703 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
14704 | int arg2 = (int) 0 ; | |
14705 | wxSizeEvent *result; | |
14706 | wxSize temp1 ; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | char *kwnames[] = { | |
14709 | (char *) "sz",(char *) "winid", NULL | |
14710 | }; | |
14711 | ||
14712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_SizeEvent",kwnames,&obj0,&arg2)) goto fail; | |
14713 | if (obj0) { | |
14714 | { | |
14715 | arg1 = &temp1; | |
14716 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14717 | } | |
14718 | } | |
14719 | { | |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
14722 | ||
14723 | wxPyEndAllowThreads(__tstate); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
14726 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | return NULL; | |
14730 | } | |
14731 | ||
14732 | ||
14733 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14734 | PyObject *resultobj; | |
14735 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14736 | wxSize result; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | char *kwnames[] = { | |
14739 | (char *) "self", NULL | |
14740 | }; | |
14741 | ||
14742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
14743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14744 | { | |
14745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14746 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
14747 | ||
14748 | wxPyEndAllowThreads(__tstate); | |
14749 | if (PyErr_Occurred()) SWIG_fail; | |
14750 | } | |
14751 | { | |
14752 | wxSize * resultptr; | |
14753 | resultptr = new wxSize((wxSize &) result); | |
14754 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14755 | } | |
14756 | return resultobj; | |
14757 | fail: | |
14758 | return NULL; | |
14759 | } | |
14760 | ||
14761 | ||
14762 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14763 | PyObject *resultobj; | |
14764 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14765 | wxRect result; | |
14766 | PyObject * obj0 = 0 ; | |
14767 | char *kwnames[] = { | |
14768 | (char *) "self", NULL | |
14769 | }; | |
14770 | ||
14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
14772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14773 | { | |
14774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14775 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
14776 | ||
14777 | wxPyEndAllowThreads(__tstate); | |
14778 | if (PyErr_Occurred()) SWIG_fail; | |
14779 | } | |
14780 | { | |
14781 | wxRect * resultptr; | |
14782 | resultptr = new wxRect((wxRect &) result); | |
14783 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14784 | } | |
14785 | return resultobj; | |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14794 | wxRect arg2 ; | |
14795 | wxRect *argp2 ; | |
14796 | PyObject * obj0 = 0 ; | |
14797 | PyObject * obj1 = 0 ; | |
14798 | char *kwnames[] = { | |
14799 | (char *) "self",(char *) "rect", NULL | |
14800 | }; | |
14801 | ||
14802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14804 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14805 | arg2 = *argp2; | |
14806 | { | |
14807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14808 | (arg1)->SetRect(arg2); | |
14809 | ||
14810 | wxPyEndAllowThreads(__tstate); | |
14811 | if (PyErr_Occurred()) SWIG_fail; | |
14812 | } | |
14813 | Py_INCREF(Py_None); resultobj = Py_None; | |
14814 | return resultobj; | |
14815 | fail: | |
14816 | return NULL; | |
14817 | } | |
14818 | ||
14819 | ||
14820 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14821 | PyObject *resultobj; | |
14822 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14823 | wxSize arg2 ; | |
14824 | wxSize *argp2 ; | |
14825 | PyObject * obj0 = 0 ; | |
14826 | PyObject * obj1 = 0 ; | |
14827 | char *kwnames[] = { | |
14828 | (char *) "self",(char *) "size", NULL | |
14829 | }; | |
14830 | ||
14831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
14832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14833 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14834 | arg2 = *argp2; | |
14835 | { | |
14836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14837 | wxSizeEvent_SetSize(arg1,arg2); | |
14838 | ||
14839 | wxPyEndAllowThreads(__tstate); | |
14840 | if (PyErr_Occurred()) SWIG_fail; | |
14841 | } | |
14842 | Py_INCREF(Py_None); resultobj = Py_None; | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
14849 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
14851 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14852 | wxSize *arg2 = (wxSize *) 0 ; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | PyObject * obj1 = 0 ; | |
14855 | char *kwnames[] = { | |
14856 | (char *) "self",(char *) "m_size", NULL | |
14857 | }; | |
14858 | ||
14859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
14860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14861 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14862 | if (arg1) (arg1)->m_size = *arg2; | |
14863 | ||
14864 | Py_INCREF(Py_None); resultobj = Py_None; | |
14865 | return resultobj; | |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14874 | wxSize *result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "self", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
14881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14882 | result = (wxSize *)& ((arg1)->m_size); | |
14883 | ||
14884 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
14885 | return resultobj; | |
14886 | fail: | |
14887 | return NULL; | |
14888 | } | |
14889 | ||
14890 | ||
14891 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14892 | PyObject *resultobj; | |
14893 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14894 | wxRect *arg2 = (wxRect *) 0 ; | |
14895 | PyObject * obj0 = 0 ; | |
14896 | PyObject * obj1 = 0 ; | |
14897 | char *kwnames[] = { | |
14898 | (char *) "self",(char *) "m_rect", NULL | |
14899 | }; | |
14900 | ||
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14904 | if (arg1) (arg1)->m_rect = *arg2; | |
14905 | ||
14906 | Py_INCREF(Py_None); resultobj = Py_None; | |
14907 | return resultobj; | |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14914 | PyObject *resultobj; | |
14915 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14916 | wxRect *result; | |
14917 | PyObject * obj0 = 0 ; | |
14918 | char *kwnames[] = { | |
14919 | (char *) "self", NULL | |
14920 | }; | |
14921 | ||
14922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14924 | result = (wxRect *)& ((arg1)->m_rect); | |
14925 | ||
14926 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14934 | PyObject *obj; | |
14935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14936 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
14937 | Py_INCREF(obj); | |
14938 | return Py_BuildValue((char *)""); | |
14939 | } | |
14940 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14941 | PyObject *resultobj; | |
14942 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
14943 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
14944 | int arg2 = (int) 0 ; | |
14945 | wxMoveEvent *result; | |
14946 | wxPoint temp1 ; | |
14947 | PyObject * obj0 = 0 ; | |
14948 | char *kwnames[] = { | |
14949 | (char *) "pos",(char *) "winid", NULL | |
14950 | }; | |
14951 | ||
14952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_MoveEvent",kwnames,&obj0,&arg2)) goto fail; | |
14953 | if (obj0) { | |
14954 | { | |
14955 | arg1 = &temp1; | |
14956 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
14957 | } | |
14958 | } | |
14959 | { | |
14960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14961 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
14962 | ||
14963 | wxPyEndAllowThreads(__tstate); | |
14964 | if (PyErr_Occurred()) SWIG_fail; | |
14965 | } | |
14966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
14967 | return resultobj; | |
14968 | fail: | |
14969 | return NULL; | |
14970 | } | |
14971 | ||
14972 | ||
14973 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14974 | PyObject *resultobj; | |
14975 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14976 | wxPoint result; | |
14977 | PyObject * obj0 = 0 ; | |
14978 | char *kwnames[] = { | |
14979 | (char *) "self", NULL | |
14980 | }; | |
14981 | ||
14982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14984 | { | |
14985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14986 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
14987 | ||
14988 | wxPyEndAllowThreads(__tstate); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
14990 | } | |
14991 | { | |
14992 | wxPoint * resultptr; | |
14993 | resultptr = new wxPoint((wxPoint &) result); | |
14994 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14995 | } | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | return NULL; | |
14999 | } | |
15000 | ||
15001 | ||
15002 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15003 | PyObject *resultobj; | |
15004 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15005 | wxRect result; | |
15006 | PyObject * obj0 = 0 ; | |
15007 | char *kwnames[] = { | |
15008 | (char *) "self", NULL | |
15009 | }; | |
15010 | ||
15011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15013 | { | |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
15016 | ||
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
15020 | { | |
15021 | wxRect * resultptr; | |
15022 | resultptr = new wxRect((wxRect &) result); | |
15023 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15024 | } | |
15025 | return resultobj; | |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
15031 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15034 | wxRect arg2 ; | |
15035 | wxRect *argp2 ; | |
15036 | PyObject * obj0 = 0 ; | |
15037 | PyObject * obj1 = 0 ; | |
15038 | char *kwnames[] = { | |
15039 | (char *) "self",(char *) "rect", NULL | |
15040 | }; | |
15041 | ||
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15044 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15045 | arg2 = *argp2; | |
15046 | { | |
15047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15048 | (arg1)->SetRect(arg2); | |
15049 | ||
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
15053 | Py_INCREF(Py_None); resultobj = Py_None; | |
15054 | return resultobj; | |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj; | |
15062 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15063 | wxPoint arg2 ; | |
15064 | wxPoint *argp2 ; | |
15065 | PyObject * obj0 = 0 ; | |
15066 | PyObject * obj1 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self",(char *) "pos", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15073 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15074 | arg2 = *argp2; | |
15075 | { | |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15077 | wxMoveEvent_SetPosition(arg1,arg2); | |
15078 | ||
15079 | wxPyEndAllowThreads(__tstate); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | } | |
15082 | Py_INCREF(Py_None); resultobj = Py_None; | |
15083 | return resultobj; | |
15084 | fail: | |
15085 | return NULL; | |
15086 | } | |
15087 | ||
15088 | ||
15089 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15090 | PyObject *resultobj; | |
15091 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15092 | wxPoint *arg2 = (wxPoint *) 0 ; | |
15093 | PyObject * obj0 = 0 ; | |
15094 | PyObject * obj1 = 0 ; | |
15095 | char *kwnames[] = { | |
15096 | (char *) "self",(char *) "m_pos", NULL | |
15097 | }; | |
15098 | ||
15099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15102 | if (arg1) (arg1)->m_pos = *arg2; | |
15103 | ||
15104 | Py_INCREF(Py_None); resultobj = Py_None; | |
15105 | return resultobj; | |
15106 | fail: | |
15107 | return NULL; | |
15108 | } | |
15109 | ||
15110 | ||
15111 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15112 | PyObject *resultobj; | |
15113 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15114 | wxPoint *result; | |
15115 | PyObject * obj0 = 0 ; | |
15116 | char *kwnames[] = { | |
15117 | (char *) "self", NULL | |
15118 | }; | |
15119 | ||
15120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15122 | result = (wxPoint *)& ((arg1)->m_pos); | |
15123 | ||
15124 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
15125 | return resultobj; | |
15126 | fail: | |
15127 | return NULL; | |
15128 | } | |
15129 | ||
15130 | ||
15131 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15132 | PyObject *resultobj; | |
15133 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15134 | wxRect *arg2 = (wxRect *) 0 ; | |
15135 | PyObject * obj0 = 0 ; | |
15136 | PyObject * obj1 = 0 ; | |
15137 | char *kwnames[] = { | |
15138 | (char *) "self",(char *) "m_rect", NULL | |
15139 | }; | |
15140 | ||
15141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15144 | if (arg1) (arg1)->m_rect = *arg2; | |
15145 | ||
15146 | Py_INCREF(Py_None); resultobj = Py_None; | |
15147 | return resultobj; | |
15148 | fail: | |
15149 | return NULL; | |
15150 | } | |
15151 | ||
15152 | ||
15153 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15154 | PyObject *resultobj; | |
15155 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15156 | wxRect *result; | |
15157 | PyObject * obj0 = 0 ; | |
15158 | char *kwnames[] = { | |
15159 | (char *) "self", NULL | |
15160 | }; | |
15161 | ||
15162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15164 | result = (wxRect *)& ((arg1)->m_rect); | |
15165 | ||
15166 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
15167 | return resultobj; | |
15168 | fail: | |
15169 | return NULL; | |
15170 | } | |
15171 | ||
15172 | ||
15173 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
15174 | PyObject *obj; | |
15175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15176 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
15177 | Py_INCREF(obj); | |
15178 | return Py_BuildValue((char *)""); | |
15179 | } | |
15180 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15181 | PyObject *resultobj; | |
15182 | int arg1 = (int) 0 ; | |
15183 | wxPaintEvent *result; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "Id", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaintEvent",kwnames,&arg1)) goto fail; | |
15189 | { | |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
15192 | ||
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
15197 | return resultobj; | |
15198 | fail: | |
15199 | return NULL; | |
15200 | } | |
15201 | ||
15202 | ||
15203 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
15204 | PyObject *obj; | |
15205 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15206 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
15207 | Py_INCREF(obj); | |
15208 | return Py_BuildValue((char *)""); | |
15209 | } | |
15210 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj; | |
15212 | int arg1 = (int) 0 ; | |
15213 | wxNcPaintEvent *result; | |
15214 | char *kwnames[] = { | |
15215 | (char *) "winid", NULL | |
15216 | }; | |
15217 | ||
15218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_NcPaintEvent",kwnames,&arg1)) goto fail; | |
15219 | { | |
15220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15221 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
15222 | ||
15223 | wxPyEndAllowThreads(__tstate); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
15227 | return resultobj; | |
15228 | fail: | |
15229 | return NULL; | |
15230 | } | |
15231 | ||
15232 | ||
15233 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
15234 | PyObject *obj; | |
15235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15236 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
15237 | Py_INCREF(obj); | |
15238 | return Py_BuildValue((char *)""); | |
15239 | } | |
15240 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15241 | PyObject *resultobj; | |
15242 | int arg1 = (int) 0 ; | |
15243 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
15244 | wxEraseEvent *result; | |
15245 | PyObject * obj1 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "Id",(char *) "dc", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_EraseEvent",kwnames,&arg1,&obj1)) goto fail; | |
15251 | if (obj1) { | |
15252 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15253 | } | |
15254 | { | |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
15257 | ||
15258 | wxPyEndAllowThreads(__tstate); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
15261 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
15271 | wxDC *result; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | { | |
15287 | resultobj = wxPyMake_wxObject(result); | |
15288 | } | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
15295 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
15296 | PyObject *obj; | |
15297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15298 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
15299 | Py_INCREF(obj); | |
15300 | return Py_BuildValue((char *)""); | |
15301 | } | |
15302 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15303 | PyObject *resultobj; | |
15304 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15305 | int arg2 = (int) 0 ; | |
15306 | wxFocusEvent *result; | |
15307 | char *kwnames[] = { | |
15308 | (char *) "type",(char *) "winid", NULL | |
15309 | }; | |
15310 | ||
15311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_FocusEvent",kwnames,&arg1,&arg2)) goto fail; | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
15320 | return resultobj; | |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
15326 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15327 | PyObject *resultobj; | |
15328 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15329 | wxWindow *result; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15337 | { | |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
15340 | ||
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
15344 | { | |
15345 | resultobj = wxPyMake_wxObject(result); | |
15346 | } | |
15347 | return resultobj; | |
15348 | fail: | |
15349 | return NULL; | |
15350 | } | |
15351 | ||
15352 | ||
15353 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15354 | PyObject *resultobj; | |
15355 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15357 | PyObject * obj0 = 0 ; | |
15358 | PyObject * obj1 = 0 ; | |
15359 | char *kwnames[] = { | |
15360 | (char *) "self",(char *) "win", NULL | |
15361 | }; | |
15362 | ||
15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15365 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15366 | { | |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | (arg1)->SetWindow(arg2); | |
15369 | ||
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
15373 | Py_INCREF(Py_None); resultobj = Py_None; | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
15380 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15381 | PyObject *obj; | |
15382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15383 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
15384 | Py_INCREF(obj); | |
15385 | return Py_BuildValue((char *)""); | |
15386 | } | |
15387 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15388 | PyObject *resultobj; | |
15389 | wxWindow *arg1 = (wxWindow *) NULL ; | |
15390 | wxChildFocusEvent *result; | |
15391 | PyObject * obj0 = 0 ; | |
15392 | char *kwnames[] = { | |
15393 | (char *) "win", NULL | |
15394 | }; | |
15395 | ||
15396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
15397 | if (obj0) { | |
15398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15399 | } | |
15400 | { | |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15402 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
15403 | ||
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
15407 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
15408 | return resultobj; | |
15409 | fail: | |
15410 | return NULL; | |
15411 | } | |
15412 | ||
15413 | ||
15414 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15415 | PyObject *resultobj; | |
15416 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
15417 | wxWindow *result; | |
15418 | PyObject * obj0 = 0 ; | |
15419 | char *kwnames[] = { | |
15420 | (char *) "self", NULL | |
15421 | }; | |
15422 | ||
15423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15425 | { | |
15426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15427 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
15428 | ||
15429 | wxPyEndAllowThreads(__tstate); | |
15430 | if (PyErr_Occurred()) SWIG_fail; | |
15431 | } | |
15432 | { | |
15433 | resultobj = wxPyMake_wxObject(result); | |
15434 | } | |
15435 | return resultobj; | |
15436 | fail: | |
15437 | return NULL; | |
15438 | } | |
15439 | ||
15440 | ||
15441 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15442 | PyObject *obj; | |
15443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15444 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
15445 | Py_INCREF(obj); | |
15446 | return Py_BuildValue((char *)""); | |
15447 | } | |
15448 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15449 | PyObject *resultobj; | |
15450 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 15451 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15452 | int arg3 = (int) 0 ; |
15453 | wxActivateEvent *result; | |
15454 | PyObject * obj1 = 0 ; | |
15455 | char *kwnames[] = { | |
15456 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
15457 | }; | |
15458 | ||
15459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iOi:new_ActivateEvent",kwnames,&arg1,&obj1,&arg3)) goto fail; | |
15460 | if (obj1) { | |
a41e16b6 RD |
15461 | { |
15462 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15463 | if (PyErr_Occurred()) SWIG_fail; | |
15464 | } | |
d14a1e28 RD |
15465 | } |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
15474 | return resultobj; | |
15475 | fail: | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15481 | PyObject *resultobj; | |
15482 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
15483 | bool result; | |
15484 | PyObject * obj0 = 0 ; | |
15485 | char *kwnames[] = { | |
15486 | (char *) "self", NULL | |
15487 | }; | |
15488 | ||
15489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15491 | { | |
15492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15493 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
15494 | ||
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | resultobj = PyInt_FromLong((long)result); | |
15499 | return resultobj; | |
15500 | fail: | |
15501 | return NULL; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
15506 | PyObject *obj; | |
15507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15508 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
15509 | Py_INCREF(obj); | |
15510 | return Py_BuildValue((char *)""); | |
15511 | } | |
15512 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj; | |
15514 | int arg1 = (int) 0 ; | |
15515 | wxInitDialogEvent *result; | |
15516 | char *kwnames[] = { | |
15517 | (char *) "Id", NULL | |
15518 | }; | |
15519 | ||
15520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_InitDialogEvent",kwnames,&arg1)) goto fail; | |
15521 | { | |
15522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15523 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
15524 | ||
15525 | wxPyEndAllowThreads(__tstate); | |
15526 | if (PyErr_Occurred()) SWIG_fail; | |
15527 | } | |
15528 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
15529 | return resultobj; | |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
15536 | PyObject *obj; | |
15537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15538 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
15539 | Py_INCREF(obj); | |
15540 | return Py_BuildValue((char *)""); | |
15541 | } | |
15542 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15543 | PyObject *resultobj; | |
15544 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15545 | int arg2 = (int) 0 ; | |
15546 | wxMenu *arg3 = (wxMenu *) NULL ; | |
15547 | wxMenuEvent *result; | |
15548 | PyObject * obj2 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_MenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
15554 | if (obj2) { | |
15555 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15556 | } | |
15557 | { | |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
15565 | return resultobj; | |
15566 | fail: | |
15567 | return NULL; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15572 | PyObject *resultobj; | |
15573 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15574 | int result; | |
15575 | PyObject * obj0 = 0 ; | |
15576 | char *kwnames[] = { | |
15577 | (char *) "self", NULL | |
15578 | }; | |
15579 | ||
15580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15582 | { | |
15583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15584 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
15585 | ||
15586 | wxPyEndAllowThreads(__tstate); | |
15587 | if (PyErr_Occurred()) SWIG_fail; | |
15588 | } | |
15589 | resultobj = PyInt_FromLong((long)result); | |
15590 | return resultobj; | |
15591 | fail: | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15599 | bool result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | char *kwnames[] = { | |
15602 | (char *) "self", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
15610 | ||
15611 | wxPyEndAllowThreads(__tstate); | |
15612 | if (PyErr_Occurred()) SWIG_fail; | |
15613 | } | |
15614 | resultobj = PyInt_FromLong((long)result); | |
15615 | return resultobj; | |
15616 | fail: | |
15617 | return NULL; | |
15618 | } | |
15619 | ||
15620 | ||
15621 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15622 | PyObject *resultobj; | |
15623 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15624 | wxMenu *result; | |
15625 | PyObject * obj0 = 0 ; | |
15626 | char *kwnames[] = { | |
15627 | (char *) "self", NULL | |
15628 | }; | |
15629 | ||
15630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15632 | { | |
15633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15634 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
15635 | ||
15636 | wxPyEndAllowThreads(__tstate); | |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
15638 | } | |
15639 | { | |
15640 | resultobj = wxPyMake_wxObject(result); | |
15641 | } | |
15642 | return resultobj; | |
15643 | fail: | |
15644 | return NULL; | |
15645 | } | |
15646 | ||
15647 | ||
15648 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
15649 | PyObject *obj; | |
15650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15651 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
15652 | Py_INCREF(obj); | |
15653 | return Py_BuildValue((char *)""); | |
15654 | } | |
15655 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15658 | int arg2 = (int) 0 ; | |
15659 | wxCloseEvent *result; | |
15660 | char *kwnames[] = { | |
15661 | (char *) "type",(char *) "winid", NULL | |
15662 | }; | |
15663 | ||
15664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CloseEvent",kwnames,&arg1,&arg2)) goto fail; | |
15665 | { | |
15666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15667 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
15668 | ||
15669 | wxPyEndAllowThreads(__tstate); | |
15670 | if (PyErr_Occurred()) SWIG_fail; | |
15671 | } | |
15672 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
15673 | return resultobj; | |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
15679 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15680 | PyObject *resultobj; | |
15681 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15682 | bool arg2 ; | |
15683 | PyObject * obj0 = 0 ; | |
15684 | PyObject * obj1 = 0 ; | |
15685 | char *kwnames[] = { | |
15686 | (char *) "self",(char *) "logOff", NULL | |
15687 | }; | |
15688 | ||
15689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
15691 | { |
15692 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
d14a1e28 RD |
15695 | { |
15696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15697 | (arg1)->SetLoggingOff(arg2); | |
15698 | ||
15699 | wxPyEndAllowThreads(__tstate); | |
15700 | if (PyErr_Occurred()) SWIG_fail; | |
15701 | } | |
15702 | Py_INCREF(Py_None); resultobj = Py_None; | |
15703 | return resultobj; | |
15704 | fail: | |
15705 | return NULL; | |
15706 | } | |
15707 | ||
15708 | ||
15709 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15710 | PyObject *resultobj; | |
15711 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15712 | bool result; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self", NULL | |
15716 | }; | |
15717 | ||
15718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15720 | { | |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15722 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
15723 | ||
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
15727 | resultobj = PyInt_FromLong((long)result); | |
15728 | return resultobj; | |
15729 | fail: | |
15730 | return NULL; | |
15731 | } | |
15732 | ||
15733 | ||
15734 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15735 | PyObject *resultobj; | |
15736 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 15737 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15738 | PyObject * obj0 = 0 ; |
15739 | PyObject * obj1 = 0 ; | |
15740 | char *kwnames[] = { | |
15741 | (char *) "self",(char *) "veto", NULL | |
15742 | }; | |
15743 | ||
15744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15746 | if (obj1) { | |
a41e16b6 RD |
15747 | { |
15748 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
d14a1e28 RD |
15751 | } |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | (arg1)->Veto(arg2); | |
15755 | ||
15756 | wxPyEndAllowThreads(__tstate); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
15759 | Py_INCREF(Py_None); resultobj = Py_None; | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15769 | bool arg2 ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self",(char *) "canVeto", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
15778 | { |
15779 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
d14a1e28 RD |
15782 | { |
15783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15784 | (arg1)->SetCanVeto(arg2); | |
15785 | ||
15786 | wxPyEndAllowThreads(__tstate); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | } | |
15789 | Py_INCREF(Py_None); resultobj = Py_None; | |
15790 | return resultobj; | |
15791 | fail: | |
15792 | return NULL; | |
15793 | } | |
15794 | ||
15795 | ||
15796 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15797 | PyObject *resultobj; | |
15798 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15799 | bool result; | |
15800 | PyObject * obj0 = 0 ; | |
15801 | char *kwnames[] = { | |
15802 | (char *) "self", NULL | |
15803 | }; | |
15804 | ||
15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15807 | { | |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15809 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
15810 | ||
15811 | wxPyEndAllowThreads(__tstate); | |
15812 | if (PyErr_Occurred()) SWIG_fail; | |
15813 | } | |
15814 | resultobj = PyInt_FromLong((long)result); | |
15815 | return resultobj; | |
15816 | fail: | |
15817 | return NULL; | |
15818 | } | |
15819 | ||
15820 | ||
15821 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15822 | PyObject *resultobj; | |
15823 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15824 | bool result; | |
15825 | PyObject * obj0 = 0 ; | |
15826 | char *kwnames[] = { | |
15827 | (char *) "self", NULL | |
15828 | }; | |
15829 | ||
15830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15832 | { | |
15833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15834 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
15835 | ||
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | resultobj = PyInt_FromLong((long)result); | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
15847 | PyObject *obj; | |
15848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15849 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
15850 | Py_INCREF(obj); | |
15851 | return Py_BuildValue((char *)""); | |
15852 | } | |
15853 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15854 | PyObject *resultobj; | |
15855 | int arg1 = (int) 0 ; | |
e811c8ce | 15856 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15857 | wxShowEvent *result; |
15858 | PyObject * obj1 = 0 ; | |
15859 | char *kwnames[] = { | |
15860 | (char *) "winid",(char *) "show", NULL | |
15861 | }; | |
15862 | ||
15863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_ShowEvent",kwnames,&arg1,&obj1)) goto fail; | |
15864 | if (obj1) { | |
a41e16b6 RD |
15865 | { |
15866 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15867 | if (PyErr_Occurred()) SWIG_fail; | |
15868 | } | |
d14a1e28 RD |
15869 | } |
15870 | { | |
15871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15872 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
15873 | ||
15874 | wxPyEndAllowThreads(__tstate); | |
15875 | if (PyErr_Occurred()) SWIG_fail; | |
15876 | } | |
15877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15885 | PyObject *resultobj; | |
15886 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15887 | bool arg2 ; | |
15888 | PyObject * obj0 = 0 ; | |
15889 | PyObject * obj1 = 0 ; | |
15890 | char *kwnames[] = { | |
15891 | (char *) "self",(char *) "show", NULL | |
15892 | }; | |
15893 | ||
15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
15896 | { |
15897 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
d14a1e28 RD |
15900 | { |
15901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15902 | (arg1)->SetShow(arg2); | |
15903 | ||
15904 | wxPyEndAllowThreads(__tstate); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
15906 | } | |
15907 | Py_INCREF(Py_None); resultobj = Py_None; | |
15908 | return resultobj; | |
15909 | fail: | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
15914 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15917 | bool result; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | char *kwnames[] = { | |
15920 | (char *) "self", NULL | |
15921 | }; | |
15922 | ||
15923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15925 | { | |
15926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15927 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
15928 | ||
15929 | wxPyEndAllowThreads(__tstate); | |
15930 | if (PyErr_Occurred()) SWIG_fail; | |
15931 | } | |
15932 | resultobj = PyInt_FromLong((long)result); | |
15933 | return resultobj; | |
15934 | fail: | |
15935 | return NULL; | |
15936 | } | |
15937 | ||
15938 | ||
15939 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
15940 | PyObject *obj; | |
15941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15942 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
15943 | Py_INCREF(obj); | |
15944 | return Py_BuildValue((char *)""); | |
15945 | } | |
15946 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15947 | PyObject *resultobj; | |
15948 | int arg1 = (int) 0 ; | |
e811c8ce | 15949 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15950 | wxIconizeEvent *result; |
15951 | PyObject * obj1 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "id",(char *) "iconized", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_IconizeEvent",kwnames,&arg1,&obj1)) goto fail; | |
15957 | if (obj1) { | |
a41e16b6 RD |
15958 | { |
15959 | arg2 = (bool) SPyObj_AsBool(obj1); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
d14a1e28 RD |
15962 | } |
15963 | { | |
15964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15965 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
15966 | ||
15967 | wxPyEndAllowThreads(__tstate); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | } | |
15970 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
15971 | return resultobj; | |
15972 | fail: | |
15973 | return NULL; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15978 | PyObject *resultobj; | |
15979 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
15980 | bool result; | |
15981 | PyObject * obj0 = 0 ; | |
15982 | char *kwnames[] = { | |
15983 | (char *) "self", NULL | |
15984 | }; | |
15985 | ||
15986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15988 | { | |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | result = (bool)(arg1)->Iconized(); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | resultobj = PyInt_FromLong((long)result); | |
15996 | return resultobj; | |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
16002 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16003 | PyObject *obj; | |
16004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16005 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
16006 | Py_INCREF(obj); | |
16007 | return Py_BuildValue((char *)""); | |
16008 | } | |
16009 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16010 | PyObject *resultobj; | |
16011 | int arg1 = (int) 0 ; | |
16012 | wxMaximizeEvent *result; | |
16013 | char *kwnames[] = { | |
16014 | (char *) "id", NULL | |
16015 | }; | |
16016 | ||
16017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MaximizeEvent",kwnames,&arg1)) goto fail; | |
16018 | { | |
16019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16020 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
16021 | ||
16022 | wxPyEndAllowThreads(__tstate); | |
16023 | if (PyErr_Occurred()) SWIG_fail; | |
16024 | } | |
16025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
16026 | return resultobj; | |
16027 | fail: | |
16028 | return NULL; | |
16029 | } | |
16030 | ||
16031 | ||
16032 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16033 | PyObject *obj; | |
16034 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16035 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
16036 | Py_INCREF(obj); | |
16037 | return Py_BuildValue((char *)""); | |
16038 | } | |
16039 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16040 | PyObject *resultobj; | |
16041 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
16042 | wxPoint result; | |
16043 | PyObject * obj0 = 0 ; | |
16044 | char *kwnames[] = { | |
16045 | (char *) "self", NULL | |
16046 | }; | |
16047 | ||
16048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16050 | { | |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16052 | result = (arg1)->GetPosition(); | |
16053 | ||
16054 | wxPyEndAllowThreads(__tstate); | |
16055 | if (PyErr_Occurred()) SWIG_fail; | |
16056 | } | |
16057 | { | |
16058 | wxPoint * resultptr; | |
16059 | resultptr = new wxPoint((wxPoint &) result); | |
16060 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
16061 | } | |
16062 | return resultobj; | |
16063 | fail: | |
16064 | return NULL; | |
16065 | } | |
16066 | ||
16067 | ||
16068 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16069 | PyObject *resultobj; | |
16070 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
16071 | int result; | |
16072 | PyObject * obj0 = 0 ; | |
16073 | char *kwnames[] = { | |
16074 | (char *) "self", NULL | |
16075 | }; | |
16076 | ||
16077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
16078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16079 | { | |
16080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16081 | result = (int)(arg1)->GetNumberOfFiles(); | |
16082 | ||
16083 | wxPyEndAllowThreads(__tstate); | |
16084 | if (PyErr_Occurred()) SWIG_fail; | |
16085 | } | |
16086 | resultobj = PyInt_FromLong((long)result); | |
16087 | return resultobj; | |
16088 | fail: | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
16093 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16094 | PyObject *resultobj; | |
16095 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
16096 | PyObject *result; | |
16097 | PyObject * obj0 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
16103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | resultobj = result; | |
16112 | return resultobj; | |
16113 | fail: | |
16114 | return NULL; | |
16115 | } | |
16116 | ||
16117 | ||
16118 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
16119 | PyObject *obj; | |
16120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16121 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
16122 | Py_INCREF(obj); | |
16123 | return Py_BuildValue((char *)""); | |
16124 | } | |
16125 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16126 | PyObject *resultobj; | |
e811c8ce | 16127 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16128 | wxUpdateUIEvent *result; |
16129 | char *kwnames[] = { | |
16130 | (char *) "commandId", NULL | |
16131 | }; | |
16132 | ||
16133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_UpdateUIEvent",kwnames,&arg1)) goto fail; | |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
16137 | ||
16138 | wxPyEndAllowThreads(__tstate); | |
16139 | if (PyErr_Occurred()) SWIG_fail; | |
16140 | } | |
16141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16151 | bool result; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "self", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
16158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
16166 | resultobj = PyInt_FromLong((long)result); | |
16167 | return resultobj; | |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16174 | PyObject *resultobj; | |
16175 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16176 | bool result; | |
16177 | PyObject * obj0 = 0 ; | |
16178 | char *kwnames[] = { | |
16179 | (char *) "self", NULL | |
16180 | }; | |
16181 | ||
16182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
16183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16184 | { | |
16185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16186 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
16187 | ||
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
16191 | resultobj = PyInt_FromLong((long)result); | |
16192 | return resultobj; | |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
16198 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16199 | PyObject *resultobj; | |
16200 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16201 | wxString result; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "self", NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
16208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16209 | { | |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
16212 | ||
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
16216 | { | |
16217 | #if wxUSE_UNICODE | |
16218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16219 | #else | |
16220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16221 | #endif | |
16222 | } | |
16223 | return resultobj; | |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16232 | bool result; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | char *kwnames[] = { | |
16235 | (char *) "self", NULL | |
16236 | }; | |
16237 | ||
16238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
16239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16240 | { | |
16241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16242 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
16243 | ||
16244 | wxPyEndAllowThreads(__tstate); | |
16245 | if (PyErr_Occurred()) SWIG_fail; | |
16246 | } | |
16247 | resultobj = PyInt_FromLong((long)result); | |
16248 | return resultobj; | |
16249 | fail: | |
16250 | return NULL; | |
16251 | } | |
16252 | ||
16253 | ||
16254 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16255 | PyObject *resultobj; | |
16256 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16257 | bool result; | |
16258 | PyObject * obj0 = 0 ; | |
16259 | char *kwnames[] = { | |
16260 | (char *) "self", NULL | |
16261 | }; | |
16262 | ||
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
16264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16265 | { | |
16266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16267 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
16268 | ||
16269 | wxPyEndAllowThreads(__tstate); | |
16270 | if (PyErr_Occurred()) SWIG_fail; | |
16271 | } | |
16272 | resultobj = PyInt_FromLong((long)result); | |
16273 | return resultobj; | |
16274 | fail: | |
16275 | return NULL; | |
16276 | } | |
16277 | ||
16278 | ||
16279 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16280 | PyObject *resultobj; | |
16281 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16282 | bool result; | |
16283 | PyObject * obj0 = 0 ; | |
16284 | char *kwnames[] = { | |
16285 | (char *) "self", NULL | |
16286 | }; | |
16287 | ||
16288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
16289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16290 | { | |
16291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16292 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
16293 | ||
16294 | wxPyEndAllowThreads(__tstate); | |
16295 | if (PyErr_Occurred()) SWIG_fail; | |
16296 | } | |
16297 | resultobj = PyInt_FromLong((long)result); | |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
16304 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16305 | PyObject *resultobj; | |
16306 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16307 | bool arg2 ; | |
16308 | PyObject * obj0 = 0 ; | |
16309 | PyObject * obj1 = 0 ; | |
16310 | char *kwnames[] = { | |
16311 | (char *) "self",(char *) "check", NULL | |
16312 | }; | |
16313 | ||
16314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
16315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16316 | { |
16317 | arg2 = (bool) SPyObj_AsBool(obj1); | |
16318 | if (PyErr_Occurred()) SWIG_fail; | |
16319 | } | |
d14a1e28 RD |
16320 | { |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16322 | (arg1)->Check(arg2); | |
16323 | ||
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
16327 | Py_INCREF(Py_None); resultobj = Py_None; | |
16328 | return resultobj; | |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
16334 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16335 | PyObject *resultobj; | |
16336 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16337 | bool arg2 ; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | PyObject * obj1 = 0 ; | |
16340 | char *kwnames[] = { | |
16341 | (char *) "self",(char *) "enable", NULL | |
16342 | }; | |
16343 | ||
16344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16346 | { |
16347 | arg2 = (bool) SPyObj_AsBool(obj1); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
d14a1e28 RD |
16350 | { |
16351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16352 | (arg1)->Enable(arg2); | |
16353 | ||
16354 | wxPyEndAllowThreads(__tstate); | |
16355 | if (PyErr_Occurred()) SWIG_fail; | |
16356 | } | |
16357 | Py_INCREF(Py_None); resultobj = Py_None; | |
16358 | return resultobj; | |
16359 | fail: | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16367 | wxString *arg2 = 0 ; | |
e811c8ce | 16368 | bool temp2 = False ; |
d14a1e28 RD |
16369 | PyObject * obj0 = 0 ; |
16370 | PyObject * obj1 = 0 ; | |
16371 | char *kwnames[] = { | |
16372 | (char *) "self",(char *) "text", NULL | |
16373 | }; | |
16374 | ||
16375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
16376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16377 | { | |
16378 | arg2 = wxString_in_helper(obj1); | |
16379 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16380 | temp2 = True; |
d14a1e28 RD |
16381 | } |
16382 | { | |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | (arg1)->SetText((wxString const &)*arg2); | |
16385 | ||
16386 | wxPyEndAllowThreads(__tstate); | |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
16388 | } | |
16389 | Py_INCREF(Py_None); resultobj = Py_None; | |
16390 | { | |
16391 | if (temp2) | |
16392 | delete arg2; | |
16393 | } | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | { | |
16397 | if (temp2) | |
16398 | delete arg2; | |
16399 | } | |
16400 | return NULL; | |
16401 | } | |
16402 | ||
16403 | ||
16404 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16405 | PyObject *resultobj; | |
16406 | long arg1 ; | |
16407 | char *kwnames[] = { | |
16408 | (char *) "updateInterval", NULL | |
16409 | }; | |
16410 | ||
16411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:UpdateUIEvent_SetUpdateInterval",kwnames,&arg1)) goto fail; | |
16412 | { | |
16413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16414 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
16415 | ||
16416 | wxPyEndAllowThreads(__tstate); | |
16417 | if (PyErr_Occurred()) SWIG_fail; | |
16418 | } | |
16419 | Py_INCREF(Py_None); resultobj = Py_None; | |
16420 | return resultobj; | |
16421 | fail: | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
16426 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16427 | PyObject *resultobj; | |
16428 | long result; | |
16429 | char *kwnames[] = { | |
16430 | NULL | |
16431 | }; | |
16432 | ||
16433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
16434 | { | |
16435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16436 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
16437 | ||
16438 | wxPyEndAllowThreads(__tstate); | |
16439 | if (PyErr_Occurred()) SWIG_fail; | |
16440 | } | |
16441 | resultobj = PyInt_FromLong((long)result); | |
16442 | return resultobj; | |
16443 | fail: | |
16444 | return NULL; | |
16445 | } | |
16446 | ||
16447 | ||
16448 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16449 | PyObject *resultobj; | |
16450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16451 | bool result; | |
16452 | PyObject * obj0 = 0 ; | |
16453 | char *kwnames[] = { | |
16454 | (char *) "win", NULL | |
16455 | }; | |
16456 | ||
16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
16458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16459 | { | |
16460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16461 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
16462 | ||
16463 | wxPyEndAllowThreads(__tstate); | |
16464 | if (PyErr_Occurred()) SWIG_fail; | |
16465 | } | |
16466 | resultobj = PyInt_FromLong((long)result); | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
16473 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj; | |
16475 | char *kwnames[] = { | |
16476 | NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
16480 | { | |
16481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16482 | wxUpdateUIEvent::ResetUpdateTime(); | |
16483 | ||
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
16487 | Py_INCREF(Py_None); resultobj = Py_None; | |
16488 | return resultobj; | |
16489 | fail: | |
16490 | return NULL; | |
16491 | } | |
16492 | ||
16493 | ||
16494 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16495 | PyObject *resultobj; | |
16496 | int arg1 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "mode", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:UpdateUIEvent_SetMode",kwnames,&arg1)) goto fail; | |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | Py_INCREF(Py_None); resultobj = Py_None; | |
16510 | return resultobj; | |
16511 | fail: | |
16512 | return NULL; | |
16513 | } | |
16514 | ||
16515 | ||
16516 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16517 | PyObject *resultobj; | |
16518 | int result; | |
16519 | char *kwnames[] = { | |
16520 | NULL | |
16521 | }; | |
16522 | ||
16523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
16524 | { | |
16525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16526 | result = (int)wxUpdateUIEvent::GetMode(); | |
16527 | ||
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | resultobj = PyInt_FromLong((long)result); | |
16532 | return resultobj; | |
16533 | fail: | |
16534 | return NULL; | |
16535 | } | |
16536 | ||
16537 | ||
16538 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
16539 | PyObject *obj; | |
16540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16541 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
16542 | Py_INCREF(obj); | |
16543 | return Py_BuildValue((char *)""); | |
16544 | } | |
16545 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16546 | PyObject *resultobj; | |
16547 | wxSysColourChangedEvent *result; | |
16548 | char *kwnames[] = { | |
16549 | NULL | |
16550 | }; | |
16551 | ||
16552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16568 | PyObject *obj; | |
16569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16570 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
16571 | Py_INCREF(obj); | |
16572 | return Py_BuildValue((char *)""); | |
16573 | } | |
16574 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16575 | PyObject *resultobj; | |
e811c8ce | 16576 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16577 | wxWindow *arg2 = (wxWindow *) NULL ; |
16578 | wxMouseCaptureChangedEvent *result; | |
16579 | PyObject * obj1 = 0 ; | |
16580 | char *kwnames[] = { | |
16581 | (char *) "winid",(char *) "gainedCapture", NULL | |
16582 | }; | |
16583 | ||
16584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_MouseCaptureChangedEvent",kwnames,&arg1,&obj1)) goto fail; | |
16585 | if (obj1) { | |
16586 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16587 | } | |
16588 | { | |
16589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16590 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
16591 | ||
16592 | wxPyEndAllowThreads(__tstate); | |
16593 | if (PyErr_Occurred()) SWIG_fail; | |
16594 | } | |
16595 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
16596 | return resultobj; | |
16597 | fail: | |
16598 | return NULL; | |
16599 | } | |
16600 | ||
16601 | ||
16602 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16603 | PyObject *resultobj; | |
16604 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
16605 | wxWindow *result; | |
16606 | PyObject * obj0 = 0 ; | |
16607 | char *kwnames[] = { | |
16608 | (char *) "self", NULL | |
16609 | }; | |
16610 | ||
16611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
16612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16613 | { | |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16615 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
16616 | ||
16617 | wxPyEndAllowThreads(__tstate); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
16620 | { | |
16621 | resultobj = wxPyMake_wxObject(result); | |
16622 | } | |
16623 | return resultobj; | |
16624 | fail: | |
16625 | return NULL; | |
16626 | } | |
16627 | ||
16628 | ||
16629 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16630 | PyObject *obj; | |
16631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16632 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
16633 | Py_INCREF(obj); | |
16634 | return Py_BuildValue((char *)""); | |
16635 | } | |
16636 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxDisplayChangedEvent *result; | |
16639 | char *kwnames[] = { | |
16640 | NULL | |
16641 | }; | |
16642 | ||
16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
16644 | { | |
16645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16646 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
16647 | ||
16648 | wxPyEndAllowThreads(__tstate); | |
16649 | if (PyErr_Occurred()) SWIG_fail; | |
16650 | } | |
16651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
16652 | return resultobj; | |
16653 | fail: | |
16654 | return NULL; | |
16655 | } | |
16656 | ||
16657 | ||
16658 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16659 | PyObject *obj; | |
16660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16661 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
16662 | Py_INCREF(obj); | |
16663 | return Py_BuildValue((char *)""); | |
16664 | } | |
16665 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16666 | PyObject *resultobj; | |
e811c8ce | 16667 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16668 | wxPaletteChangedEvent *result; |
16669 | char *kwnames[] = { | |
16670 | (char *) "id", NULL | |
16671 | }; | |
16672 | ||
16673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaletteChangedEvent",kwnames,&arg1)) goto fail; | |
16674 | { | |
16675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16676 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
16677 | ||
16678 | wxPyEndAllowThreads(__tstate); | |
16679 | if (PyErr_Occurred()) SWIG_fail; | |
16680 | } | |
16681 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
16682 | return resultobj; | |
16683 | fail: | |
16684 | return NULL; | |
16685 | } | |
16686 | ||
16687 | ||
16688 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16689 | PyObject *resultobj; | |
16690 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16691 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16692 | PyObject * obj0 = 0 ; | |
16693 | PyObject * obj1 = 0 ; | |
16694 | char *kwnames[] = { | |
16695 | (char *) "self",(char *) "win", NULL | |
16696 | }; | |
16697 | ||
16698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
16699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16701 | { | |
16702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16703 | (arg1)->SetChangedWindow(arg2); | |
16704 | ||
16705 | wxPyEndAllowThreads(__tstate); | |
16706 | if (PyErr_Occurred()) SWIG_fail; | |
16707 | } | |
16708 | Py_INCREF(Py_None); resultobj = Py_None; | |
16709 | return resultobj; | |
16710 | fail: | |
16711 | return NULL; | |
16712 | } | |
16713 | ||
16714 | ||
16715 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16716 | PyObject *resultobj; | |
16717 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16718 | wxWindow *result; | |
16719 | PyObject * obj0 = 0 ; | |
16720 | char *kwnames[] = { | |
16721 | (char *) "self", NULL | |
16722 | }; | |
16723 | ||
16724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
16725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | { | |
16734 | resultobj = wxPyMake_wxObject(result); | |
16735 | } | |
16736 | return resultobj; | |
16737 | fail: | |
16738 | return NULL; | |
16739 | } | |
16740 | ||
16741 | ||
16742 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16743 | PyObject *obj; | |
16744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16745 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
16746 | Py_INCREF(obj); | |
16747 | return Py_BuildValue((char *)""); | |
16748 | } | |
16749 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16750 | PyObject *resultobj; | |
e811c8ce | 16751 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16752 | wxQueryNewPaletteEvent *result; |
16753 | char *kwnames[] = { | |
16754 | (char *) "winid", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_QueryNewPaletteEvent",kwnames,&arg1)) goto fail; | |
16758 | { | |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16760 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
16761 | ||
16762 | wxPyEndAllowThreads(__tstate); | |
16763 | if (PyErr_Occurred()) SWIG_fail; | |
16764 | } | |
16765 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
16766 | return resultobj; | |
16767 | fail: | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16773 | PyObject *resultobj; | |
16774 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16775 | bool arg2 ; | |
16776 | PyObject * obj0 = 0 ; | |
16777 | PyObject * obj1 = 0 ; | |
16778 | char *kwnames[] = { | |
16779 | (char *) "self",(char *) "realized", NULL | |
16780 | }; | |
16781 | ||
16782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
16783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16784 | { |
16785 | arg2 = (bool) SPyObj_AsBool(obj1); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
d14a1e28 RD |
16788 | { |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | (arg1)->SetPaletteRealized(arg2); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | Py_INCREF(Py_None); resultobj = Py_None; | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
16802 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16803 | PyObject *resultobj; | |
16804 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16805 | bool result; | |
16806 | PyObject * obj0 = 0 ; | |
16807 | char *kwnames[] = { | |
16808 | (char *) "self", NULL | |
16809 | }; | |
16810 | ||
16811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
16812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16813 | { | |
16814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16815 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
16816 | ||
16817 | wxPyEndAllowThreads(__tstate); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | resultobj = PyInt_FromLong((long)result); | |
16821 | return resultobj; | |
16822 | fail: | |
16823 | return NULL; | |
16824 | } | |
16825 | ||
16826 | ||
16827 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
16828 | PyObject *obj; | |
16829 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16830 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
16831 | Py_INCREF(obj); | |
16832 | return Py_BuildValue((char *)""); | |
16833 | } | |
16834 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16835 | PyObject *resultobj; | |
16836 | wxNavigationKeyEvent *result; | |
16837 | char *kwnames[] = { | |
16838 | NULL | |
16839 | }; | |
16840 | ||
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
16842 | { | |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16844 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
16845 | ||
16846 | wxPyEndAllowThreads(__tstate); | |
16847 | if (PyErr_Occurred()) SWIG_fail; | |
16848 | } | |
16849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
16856 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16857 | PyObject *resultobj; | |
16858 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16859 | bool result; | |
16860 | PyObject * obj0 = 0 ; | |
16861 | char *kwnames[] = { | |
16862 | (char *) "self", NULL | |
16863 | }; | |
16864 | ||
16865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
16866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16867 | { | |
16868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16869 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
16870 | ||
16871 | wxPyEndAllowThreads(__tstate); | |
16872 | if (PyErr_Occurred()) SWIG_fail; | |
16873 | } | |
16874 | resultobj = PyInt_FromLong((long)result); | |
16875 | return resultobj; | |
16876 | fail: | |
16877 | return NULL; | |
16878 | } | |
16879 | ||
16880 | ||
16881 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16882 | PyObject *resultobj; | |
16883 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16884 | bool arg2 ; | |
16885 | PyObject * obj0 = 0 ; | |
16886 | PyObject * obj1 = 0 ; | |
16887 | char *kwnames[] = { | |
16888 | (char *) "self",(char *) "bForward", NULL | |
16889 | }; | |
16890 | ||
16891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
16892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16893 | { |
16894 | arg2 = (bool) SPyObj_AsBool(obj1); | |
16895 | if (PyErr_Occurred()) SWIG_fail; | |
16896 | } | |
d14a1e28 RD |
16897 | { |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | (arg1)->SetDirection(arg2); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | Py_INCREF(Py_None); resultobj = Py_None; | |
16905 | return resultobj; | |
16906 | fail: | |
16907 | return NULL; | |
16908 | } | |
16909 | ||
16910 | ||
16911 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16912 | PyObject *resultobj; | |
16913 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16914 | bool result; | |
16915 | PyObject * obj0 = 0 ; | |
16916 | char *kwnames[] = { | |
16917 | (char *) "self", NULL | |
16918 | }; | |
16919 | ||
16920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
16921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16922 | { | |
16923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16924 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
16925 | ||
16926 | wxPyEndAllowThreads(__tstate); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | resultobj = PyInt_FromLong((long)result); | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
16936 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16937 | PyObject *resultobj; | |
16938 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16939 | bool arg2 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | PyObject * obj1 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "self",(char *) "bIs", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
16947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
16948 | { |
16949 | arg2 = (bool) SPyObj_AsBool(obj1); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
d14a1e28 RD |
16952 | { |
16953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16954 | (arg1)->SetWindowChange(arg2); | |
16955 | ||
16956 | wxPyEndAllowThreads(__tstate); | |
16957 | if (PyErr_Occurred()) SWIG_fail; | |
16958 | } | |
16959 | Py_INCREF(Py_None); resultobj = Py_None; | |
16960 | return resultobj; | |
16961 | fail: | |
16962 | return NULL; | |
16963 | } | |
16964 | ||
16965 | ||
16966 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16967 | PyObject *resultobj; | |
16968 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16969 | wxWindow *result; | |
16970 | PyObject * obj0 = 0 ; | |
16971 | char *kwnames[] = { | |
16972 | (char *) "self", NULL | |
16973 | }; | |
16974 | ||
16975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
16976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16977 | { | |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | { | |
16985 | resultobj = wxPyMake_wxObject(result); | |
16986 | } | |
16987 | return resultobj; | |
16988 | fail: | |
16989 | return NULL; | |
16990 | } | |
16991 | ||
16992 | ||
16993 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16994 | PyObject *resultobj; | |
16995 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16997 | PyObject * obj0 = 0 ; | |
16998 | PyObject * obj1 = 0 ; | |
16999 | char *kwnames[] = { | |
17000 | (char *) "self",(char *) "win", NULL | |
17001 | }; | |
17002 | ||
17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
17004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17006 | { | |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17008 | (arg1)->SetCurrentFocus(arg2); | |
17009 | ||
17010 | wxPyEndAllowThreads(__tstate); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
17013 | Py_INCREF(Py_None); resultobj = Py_None; | |
17014 | return resultobj; | |
17015 | fail: | |
17016 | return NULL; | |
17017 | } | |
17018 | ||
17019 | ||
17020 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
17021 | PyObject *obj; | |
17022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17023 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
17024 | Py_INCREF(obj); | |
17025 | return Py_BuildValue((char *)""); | |
17026 | } | |
17027 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17028 | PyObject *resultobj; | |
17029 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17030 | wxWindowCreateEvent *result; | |
17031 | PyObject * obj0 = 0 ; | |
17032 | char *kwnames[] = { | |
17033 | (char *) "win", NULL | |
17034 | }; | |
17035 | ||
17036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
17037 | if (obj0) { | |
17038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17039 | } | |
17040 | { | |
17041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17042 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
17043 | ||
17044 | wxPyEndAllowThreads(__tstate); | |
17045 | if (PyErr_Occurred()) SWIG_fail; | |
17046 | } | |
17047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
17048 | return resultobj; | |
17049 | fail: | |
17050 | return NULL; | |
17051 | } | |
17052 | ||
17053 | ||
17054 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17055 | PyObject *resultobj; | |
17056 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
17057 | wxWindow *result; | |
17058 | PyObject * obj0 = 0 ; | |
17059 | char *kwnames[] = { | |
17060 | (char *) "self", NULL | |
17061 | }; | |
17062 | ||
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17065 | { | |
17066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17067 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
17068 | ||
17069 | wxPyEndAllowThreads(__tstate); | |
17070 | if (PyErr_Occurred()) SWIG_fail; | |
17071 | } | |
17072 | { | |
17073 | resultobj = wxPyMake_wxObject(result); | |
17074 | } | |
17075 | return resultobj; | |
17076 | fail: | |
17077 | return NULL; | |
17078 | } | |
17079 | ||
17080 | ||
17081 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
17082 | PyObject *obj; | |
17083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17084 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
17085 | Py_INCREF(obj); | |
17086 | return Py_BuildValue((char *)""); | |
17087 | } | |
17088 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17089 | PyObject *resultobj; | |
17090 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17091 | wxWindowDestroyEvent *result; | |
17092 | PyObject * obj0 = 0 ; | |
17093 | char *kwnames[] = { | |
17094 | (char *) "win", NULL | |
17095 | }; | |
17096 | ||
17097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
17098 | if (obj0) { | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17100 | } | |
17101 | { | |
17102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17103 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
17104 | ||
17105 | wxPyEndAllowThreads(__tstate); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
17108 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
17109 | return resultobj; | |
17110 | fail: | |
17111 | return NULL; | |
17112 | } | |
17113 | ||
17114 | ||
17115 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17116 | PyObject *resultobj; | |
17117 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
17118 | wxWindow *result; | |
17119 | PyObject * obj0 = 0 ; | |
17120 | char *kwnames[] = { | |
17121 | (char *) "self", NULL | |
17122 | }; | |
17123 | ||
17124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17126 | { | |
17127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17128 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
17129 | ||
17130 | wxPyEndAllowThreads(__tstate); | |
17131 | if (PyErr_Occurred()) SWIG_fail; | |
17132 | } | |
17133 | { | |
17134 | resultobj = wxPyMake_wxObject(result); | |
17135 | } | |
17136 | return resultobj; | |
17137 | fail: | |
17138 | return NULL; | |
17139 | } | |
17140 | ||
17141 | ||
17142 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
17143 | PyObject *obj; | |
17144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17145 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
17146 | Py_INCREF(obj); | |
17147 | return Py_BuildValue((char *)""); | |
17148 | } | |
17149 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17150 | PyObject *resultobj; | |
17151 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 17152 | int arg2 = (int) 0 ; |
d14a1e28 RD |
17153 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17154 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17155 | wxContextMenuEvent *result; | |
17156 | wxPoint temp3 ; | |
17157 | PyObject * obj2 = 0 ; | |
17158 | char *kwnames[] = { | |
17159 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
17160 | }; | |
17161 | ||
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_ContextMenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
17163 | if (obj2) { | |
17164 | { | |
17165 | arg3 = &temp3; | |
17166 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17167 | } | |
17168 | } | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
17177 | return resultobj; | |
17178 | fail: | |
17179 | return NULL; | |
17180 | } | |
17181 | ||
17182 | ||
17183 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17184 | PyObject *resultobj; | |
17185 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
17186 | wxPoint *result; | |
17187 | PyObject * obj0 = 0 ; | |
17188 | char *kwnames[] = { | |
17189 | (char *) "self", NULL | |
17190 | }; | |
17191 | ||
17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | { | |
17197 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
17198 | result = (wxPoint *) &_result_ref; | |
17199 | } | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
17205 | return resultobj; | |
17206 | fail: | |
17207 | return NULL; | |
17208 | } | |
17209 | ||
17210 | ||
17211 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17212 | PyObject *resultobj; | |
17213 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
17214 | wxPoint *arg2 = 0 ; | |
17215 | wxPoint temp2 ; | |
17216 | PyObject * obj0 = 0 ; | |
17217 | PyObject * obj1 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self",(char *) "pos", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17224 | { | |
17225 | arg2 = &temp2; | |
17226 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17227 | } | |
17228 | { | |
17229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17230 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
17231 | ||
17232 | wxPyEndAllowThreads(__tstate); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | } | |
17235 | Py_INCREF(Py_None); resultobj = Py_None; | |
17236 | return resultobj; | |
17237 | fail: | |
17238 | return NULL; | |
17239 | } | |
17240 | ||
17241 | ||
17242 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17243 | PyObject *obj; | |
17244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17245 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
17246 | Py_INCREF(obj); | |
17247 | return Py_BuildValue((char *)""); | |
17248 | } | |
17249 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxIdleEvent *result; | |
17252 | char *kwnames[] = { | |
17253 | NULL | |
17254 | }; | |
17255 | ||
17256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
17257 | { | |
17258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17259 | result = (wxIdleEvent *)new wxIdleEvent(); | |
17260 | ||
17261 | wxPyEndAllowThreads(__tstate); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 17274 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17275 | PyObject * obj0 = 0 ; |
17276 | PyObject * obj1 = 0 ; | |
17277 | char *kwnames[] = { | |
17278 | (char *) "self",(char *) "needMore", NULL | |
17279 | }; | |
17280 | ||
17281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
17282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17283 | if (obj1) { | |
a41e16b6 RD |
17284 | { |
17285 | arg2 = (bool) SPyObj_AsBool(obj1); | |
17286 | if (PyErr_Occurred()) SWIG_fail; | |
17287 | } | |
d14a1e28 RD |
17288 | } |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | (arg1)->RequestMore(arg2); | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
17296 | Py_INCREF(Py_None); resultobj = Py_None; | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
17303 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17304 | PyObject *resultobj; | |
17305 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
17306 | bool result; | |
17307 | PyObject * obj0 = 0 ; | |
17308 | char *kwnames[] = { | |
17309 | (char *) "self", NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
17313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17314 | { | |
17315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17316 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
17317 | ||
17318 | wxPyEndAllowThreads(__tstate); | |
17319 | if (PyErr_Occurred()) SWIG_fail; | |
17320 | } | |
17321 | resultobj = PyInt_FromLong((long)result); | |
17322 | return resultobj; | |
17323 | fail: | |
17324 | return NULL; | |
17325 | } | |
17326 | ||
17327 | ||
17328 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17329 | PyObject *resultobj; | |
17330 | int arg1 ; | |
17331 | char *kwnames[] = { | |
17332 | (char *) "mode", NULL | |
17333 | }; | |
17334 | ||
17335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IdleEvent_SetMode",kwnames,&arg1)) goto fail; | |
17336 | { | |
17337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17338 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
17339 | ||
17340 | wxPyEndAllowThreads(__tstate); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
17343 | Py_INCREF(Py_None); resultobj = Py_None; | |
17344 | return resultobj; | |
17345 | fail: | |
17346 | return NULL; | |
17347 | } | |
17348 | ||
17349 | ||
17350 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17351 | PyObject *resultobj; | |
17352 | int result; | |
17353 | char *kwnames[] = { | |
17354 | NULL | |
17355 | }; | |
17356 | ||
17357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
17358 | { | |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | result = (int)wxIdleEvent::GetMode(); | |
17361 | ||
17362 | wxPyEndAllowThreads(__tstate); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | resultobj = PyInt_FromLong((long)result); | |
17366 | return resultobj; | |
17367 | fail: | |
17368 | return NULL; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17373 | PyObject *resultobj; | |
17374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17375 | bool result; | |
17376 | PyObject * obj0 = 0 ; | |
17377 | char *kwnames[] = { | |
17378 | (char *) "win", NULL | |
17379 | }; | |
17380 | ||
17381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
17382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = (bool)wxIdleEvent::CanSend(arg1); | |
17386 | ||
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = PyInt_FromLong((long)result); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
17394 | } | |
17395 | ||
17396 | ||
17397 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
17398 | PyObject *obj; | |
17399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17400 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
17401 | Py_INCREF(obj); | |
17402 | return Py_BuildValue((char *)""); | |
17403 | } | |
17404 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17405 | PyObject *resultobj; | |
17406 | int arg1 = (int) 0 ; | |
17407 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
17408 | wxPyEvent *result; | |
17409 | char *kwnames[] = { | |
17410 | (char *) "winid",(char *) "commandType", NULL | |
17411 | }; | |
17412 | ||
17413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyEvent",kwnames,&arg1,&arg2)) goto fail; | |
17414 | { | |
17415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17416 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
17417 | ||
17418 | wxPyEndAllowThreads(__tstate); | |
17419 | if (PyErr_Occurred()) SWIG_fail; | |
17420 | } | |
17421 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
17422 | return resultobj; | |
17423 | fail: | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17429 | PyObject *resultobj; | |
17430 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17431 | PyObject * obj0 = 0 ; | |
17432 | char *kwnames[] = { | |
17433 | (char *) "self", NULL | |
17434 | }; | |
17435 | ||
17436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
17437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17438 | { | |
17439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17440 | delete arg1; | |
17441 | ||
17442 | wxPyEndAllowThreads(__tstate); | |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
17444 | } | |
17445 | Py_INCREF(Py_None); resultobj = Py_None; | |
17446 | return resultobj; | |
17447 | fail: | |
17448 | return NULL; | |
17449 | } | |
17450 | ||
17451 | ||
17452 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17453 | PyObject *resultobj; | |
17454 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17455 | PyObject *arg2 = (PyObject *) 0 ; | |
17456 | PyObject * obj0 = 0 ; | |
17457 | PyObject * obj1 = 0 ; | |
17458 | char *kwnames[] = { | |
17459 | (char *) "self",(char *) "self", NULL | |
17460 | }; | |
17461 | ||
17462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17464 | arg2 = obj1; | |
17465 | { | |
17466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17467 | (arg1)->SetSelf(arg2); | |
17468 | ||
17469 | wxPyEndAllowThreads(__tstate); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
17472 | Py_INCREF(Py_None); resultobj = Py_None; | |
17473 | return resultobj; | |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17480 | PyObject *resultobj; | |
17481 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17482 | PyObject *result; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | char *kwnames[] = { | |
17485 | (char *) "self", NULL | |
17486 | }; | |
17487 | ||
17488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | result = (PyObject *)(arg1)->GetSelf(); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | resultobj = result; | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
17505 | PyObject *obj; | |
17506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17507 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
17508 | Py_INCREF(obj); | |
17509 | return Py_BuildValue((char *)""); | |
17510 | } | |
17511 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17512 | PyObject *resultobj; | |
17513 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17514 | int arg2 = (int) 0 ; | |
17515 | wxPyCommandEvent *result; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "commandType",(char *) "id", NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyCommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
17535 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17536 | PyObject *resultobj; | |
17537 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17538 | PyObject * obj0 = 0 ; | |
17539 | char *kwnames[] = { | |
17540 | (char *) "self", NULL | |
17541 | }; | |
17542 | ||
17543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
17544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | delete arg1; | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | Py_INCREF(Py_None); resultobj = Py_None; | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17562 | PyObject *arg2 = (PyObject *) 0 ; | |
17563 | PyObject * obj0 = 0 ; | |
17564 | PyObject * obj1 = 0 ; | |
17565 | char *kwnames[] = { | |
17566 | (char *) "self",(char *) "self", NULL | |
17567 | }; | |
17568 | ||
17569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17571 | arg2 = obj1; | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | (arg1)->SetSelf(arg2); | |
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_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17589 | PyObject *result; | |
17590 | PyObject * obj0 = 0 ; | |
17591 | char *kwnames[] = { | |
17592 | (char *) "self", NULL | |
17593 | }; | |
17594 | ||
17595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17597 | { | |
17598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17599 | result = (PyObject *)(arg1)->GetSelf(); | |
17600 | ||
17601 | wxPyEndAllowThreads(__tstate); | |
17602 | if (PyErr_Occurred()) SWIG_fail; | |
17603 | } | |
17604 | resultobj = result; | |
17605 | return resultobj; | |
17606 | fail: | |
17607 | return NULL; | |
17608 | } | |
17609 | ||
17610 | ||
17611 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
17612 | PyObject *obj; | |
17613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17614 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
17615 | Py_INCREF(obj); | |
17616 | return Py_BuildValue((char *)""); | |
17617 | } | |
17618 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17619 | PyObject *resultobj; | |
17620 | wxPyApp *result; | |
17621 | char *kwnames[] = { | |
17622 | NULL | |
17623 | }; | |
17624 | ||
17625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
17626 | { | |
17627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17628 | result = (wxPyApp *)new_wxPyApp(); | |
17629 | ||
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | { | |
17634 | resultobj = wxPyMake_wxObject(result); | |
17635 | } | |
17636 | return resultobj; | |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
17642 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17643 | PyObject *resultobj; | |
17644 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17645 | PyObject * obj0 = 0 ; | |
17646 | char *kwnames[] = { | |
17647 | (char *) "self", NULL | |
17648 | }; | |
17649 | ||
17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
17651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17652 | { | |
17653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17654 | delete arg1; | |
17655 | ||
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | Py_INCREF(Py_None); resultobj = Py_None; | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj; | |
17668 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17669 | PyObject *arg2 = (PyObject *) 0 ; | |
17670 | PyObject *arg3 = (PyObject *) 0 ; | |
17671 | PyObject * obj0 = 0 ; | |
17672 | PyObject * obj1 = 0 ; | |
17673 | PyObject * obj2 = 0 ; | |
17674 | char *kwnames[] = { | |
17675 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17676 | }; | |
17677 | ||
17678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17680 | arg2 = obj1; | |
17681 | arg3 = obj2; | |
17682 | { | |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17685 | ||
17686 | wxPyEndAllowThreads(__tstate); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | Py_INCREF(Py_None); resultobj = Py_None; | |
17690 | return resultobj; | |
17691 | fail: | |
17692 | return NULL; | |
17693 | } | |
17694 | ||
17695 | ||
17696 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17697 | PyObject *resultobj; | |
17698 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17699 | wxString result; | |
17700 | PyObject * obj0 = 0 ; | |
17701 | char *kwnames[] = { | |
17702 | (char *) "self", NULL | |
17703 | }; | |
17704 | ||
17705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
17706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17707 | { | |
17708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17709 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
17710 | ||
17711 | wxPyEndAllowThreads(__tstate); | |
17712 | if (PyErr_Occurred()) SWIG_fail; | |
17713 | } | |
17714 | { | |
17715 | #if wxUSE_UNICODE | |
17716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17717 | #else | |
17718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17719 | #endif | |
17720 | } | |
17721 | return resultobj; | |
17722 | fail: | |
17723 | return NULL; | |
17724 | } | |
17725 | ||
17726 | ||
17727 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17728 | PyObject *resultobj; | |
17729 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17730 | wxString *arg2 = 0 ; | |
e811c8ce | 17731 | bool temp2 = False ; |
d14a1e28 RD |
17732 | PyObject * obj0 = 0 ; |
17733 | PyObject * obj1 = 0 ; | |
17734 | char *kwnames[] = { | |
17735 | (char *) "self",(char *) "name", NULL | |
17736 | }; | |
17737 | ||
17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
17739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17740 | { | |
17741 | arg2 = wxString_in_helper(obj1); | |
17742 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17743 | temp2 = True; |
d14a1e28 RD |
17744 | } |
17745 | { | |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | (arg1)->SetAppName((wxString const &)*arg2); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
17752 | Py_INCREF(Py_None); resultobj = Py_None; | |
17753 | { | |
17754 | if (temp2) | |
17755 | delete arg2; | |
17756 | } | |
17757 | return resultobj; | |
17758 | fail: | |
17759 | { | |
17760 | if (temp2) | |
17761 | delete arg2; | |
17762 | } | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17768 | PyObject *resultobj; | |
17769 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17770 | wxString result; | |
17771 | PyObject * obj0 = 0 ; | |
17772 | char *kwnames[] = { | |
17773 | (char *) "self", NULL | |
17774 | }; | |
17775 | ||
17776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
17777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17778 | { | |
17779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17780 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
17781 | ||
17782 | wxPyEndAllowThreads(__tstate); | |
17783 | if (PyErr_Occurred()) SWIG_fail; | |
17784 | } | |
17785 | { | |
17786 | #if wxUSE_UNICODE | |
17787 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17788 | #else | |
17789 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17790 | #endif | |
17791 | } | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17801 | wxString *arg2 = 0 ; | |
e811c8ce | 17802 | bool temp2 = False ; |
d14a1e28 RD |
17803 | PyObject * obj0 = 0 ; |
17804 | PyObject * obj1 = 0 ; | |
17805 | char *kwnames[] = { | |
17806 | (char *) "self",(char *) "name", NULL | |
17807 | }; | |
17808 | ||
17809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
17810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17811 | { | |
17812 | arg2 = wxString_in_helper(obj1); | |
17813 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17814 | temp2 = True; |
d14a1e28 RD |
17815 | } |
17816 | { | |
17817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17818 | (arg1)->SetClassName((wxString const &)*arg2); | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
17823 | Py_INCREF(Py_None); resultobj = Py_None; | |
17824 | { | |
17825 | if (temp2) | |
17826 | delete arg2; | |
17827 | } | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | { | |
17831 | if (temp2) | |
17832 | delete arg2; | |
17833 | } | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
17838 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17839 | PyObject *resultobj; | |
17840 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17841 | wxString *result; | |
17842 | PyObject * obj0 = 0 ; | |
17843 | char *kwnames[] = { | |
17844 | (char *) "self", NULL | |
17845 | }; | |
17846 | ||
17847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
17848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17849 | { | |
17850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17851 | { | |
17852 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
17853 | result = (wxString *) &_result_ref; | |
17854 | } | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
cc6dd355 RD |
17859 | { |
17860 | #if wxUSE_UNICODE | |
17861 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17862 | #else | |
17863 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17864 | #endif | |
17865 | } | |
d14a1e28 RD |
17866 | return resultobj; |
17867 | fail: | |
17868 | return NULL; | |
17869 | } | |
17870 | ||
17871 | ||
17872 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17873 | PyObject *resultobj; | |
17874 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17875 | wxString *arg2 = 0 ; | |
e811c8ce | 17876 | bool temp2 = False ; |
d14a1e28 RD |
17877 | PyObject * obj0 = 0 ; |
17878 | PyObject * obj1 = 0 ; | |
17879 | char *kwnames[] = { | |
17880 | (char *) "self",(char *) "name", NULL | |
17881 | }; | |
17882 | ||
17883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
17884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17885 | { | |
17886 | arg2 = wxString_in_helper(obj1); | |
17887 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17888 | temp2 = True; |
d14a1e28 RD |
17889 | } |
17890 | { | |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | (arg1)->SetVendorName((wxString const &)*arg2); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | Py_INCREF(Py_None); resultobj = Py_None; | |
17898 | { | |
17899 | if (temp2) | |
17900 | delete arg2; | |
17901 | } | |
17902 | return resultobj; | |
17903 | fail: | |
17904 | { | |
17905 | if (temp2) | |
17906 | delete arg2; | |
17907 | } | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
17912 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17913 | PyObject *resultobj; | |
17914 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17915 | wxAppTraits *result; | |
17916 | PyObject * obj0 = 0 ; | |
17917 | char *kwnames[] = { | |
17918 | (char *) "self", NULL | |
17919 | }; | |
17920 | ||
17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
17922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17923 | { | |
17924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17925 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
17930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17940 | PyObject * obj0 = 0 ; | |
17941 | char *kwnames[] = { | |
17942 | (char *) "self", NULL | |
17943 | }; | |
17944 | ||
17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
17946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17947 | { | |
17948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17949 | (arg1)->ProcessPendingEvents(); | |
17950 | ||
17951 | wxPyEndAllowThreads(__tstate); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | } | |
17954 | Py_INCREF(Py_None); resultobj = Py_None; | |
17955 | return resultobj; | |
17956 | fail: | |
17957 | return NULL; | |
17958 | } | |
17959 | ||
17960 | ||
17961 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17962 | PyObject *resultobj; | |
17963 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 17964 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17965 | bool result; |
17966 | PyObject * obj0 = 0 ; | |
17967 | PyObject * obj1 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17974 | if (obj1) { | |
a41e16b6 RD |
17975 | { |
17976 | arg2 = (bool) SPyObj_AsBool(obj1); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
d14a1e28 RD |
17979 | } |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | result = (bool)(arg1)->Yield(arg2); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | resultobj = PyInt_FromLong((long)result); | |
17988 | return resultobj; | |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17997 | PyObject * obj0 = 0 ; | |
17998 | char *kwnames[] = { | |
17999 | (char *) "self", NULL | |
18000 | }; | |
18001 | ||
18002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
18003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18004 | { | |
18005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18006 | (arg1)->WakeUpIdle(); | |
18007 | ||
18008 | wxPyEndAllowThreads(__tstate); | |
18009 | if (PyErr_Occurred()) SWIG_fail; | |
18010 | } | |
18011 | Py_INCREF(Py_None); resultobj = Py_None; | |
18012 | return resultobj; | |
18013 | fail: | |
18014 | return NULL; | |
18015 | } | |
18016 | ||
18017 | ||
18018 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18019 | PyObject *resultobj; | |
18020 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18021 | int result; | |
18022 | PyObject * obj0 = 0 ; | |
18023 | char *kwnames[] = { | |
18024 | (char *) "self", NULL | |
18025 | }; | |
18026 | ||
18027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
18028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | result = (int)(arg1)->MainLoop(); | |
18032 | ||
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | resultobj = PyInt_FromLong((long)result); | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | return NULL; | |
18040 | } | |
18041 | ||
18042 | ||
18043 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18044 | PyObject *resultobj; | |
18045 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | char *kwnames[] = { | |
18048 | (char *) "self", NULL | |
18049 | }; | |
18050 | ||
18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
18052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18053 | { | |
18054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18055 | (arg1)->Exit(); | |
18056 | ||
18057 | wxPyEndAllowThreads(__tstate); | |
18058 | if (PyErr_Occurred()) SWIG_fail; | |
18059 | } | |
18060 | Py_INCREF(Py_None); resultobj = Py_None; | |
18061 | return resultobj; | |
18062 | fail: | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
18067 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18068 | PyObject *resultobj; | |
18069 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18070 | PyObject * obj0 = 0 ; | |
18071 | char *kwnames[] = { | |
18072 | (char *) "self", NULL | |
18073 | }; | |
18074 | ||
18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
18076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18077 | { | |
18078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18079 | (arg1)->ExitMainLoop(); | |
18080 | ||
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | Py_INCREF(Py_None); resultobj = Py_None; | |
18085 | return resultobj; | |
18086 | fail: | |
18087 | return NULL; | |
18088 | } | |
18089 | ||
18090 | ||
18091 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18092 | PyObject *resultobj; | |
18093 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18094 | bool result; | |
18095 | PyObject * obj0 = 0 ; | |
18096 | char *kwnames[] = { | |
18097 | (char *) "self", NULL | |
18098 | }; | |
18099 | ||
18100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
18101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18102 | { | |
18103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18104 | result = (bool)(arg1)->Pending(); | |
18105 | ||
18106 | wxPyEndAllowThreads(__tstate); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
18109 | resultobj = PyInt_FromLong((long)result); | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
18116 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18117 | PyObject *resultobj; | |
18118 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18119 | bool result; | |
18120 | PyObject * obj0 = 0 ; | |
18121 | char *kwnames[] = { | |
18122 | (char *) "self", NULL | |
18123 | }; | |
18124 | ||
18125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
18126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18127 | { | |
18128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18129 | result = (bool)(arg1)->Dispatch(); | |
18130 | ||
18131 | wxPyEndAllowThreads(__tstate); | |
18132 | if (PyErr_Occurred()) SWIG_fail; | |
18133 | } | |
18134 | resultobj = PyInt_FromLong((long)result); | |
18135 | return resultobj; | |
18136 | fail: | |
18137 | return NULL; | |
18138 | } | |
18139 | ||
18140 | ||
18141 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18142 | PyObject *resultobj; | |
18143 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18144 | bool result; | |
18145 | PyObject * obj0 = 0 ; | |
18146 | char *kwnames[] = { | |
18147 | (char *) "self", NULL | |
18148 | }; | |
18149 | ||
18150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
18151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18152 | { | |
18153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18154 | result = (bool)(arg1)->ProcessIdle(); | |
18155 | ||
18156 | wxPyEndAllowThreads(__tstate); | |
18157 | if (PyErr_Occurred()) SWIG_fail; | |
18158 | } | |
18159 | resultobj = PyInt_FromLong((long)result); | |
18160 | return resultobj; | |
18161 | fail: | |
18162 | return NULL; | |
18163 | } | |
18164 | ||
18165 | ||
18166 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18167 | PyObject *resultobj; | |
18168 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18170 | wxIdleEvent *arg3 = 0 ; | |
18171 | bool result; | |
18172 | PyObject * obj0 = 0 ; | |
18173 | PyObject * obj1 = 0 ; | |
18174 | PyObject * obj2 = 0 ; | |
18175 | char *kwnames[] = { | |
18176 | (char *) "self",(char *) "win",(char *) "event", NULL | |
18177 | }; | |
18178 | ||
18179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18182 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18183 | if (arg3 == NULL) { | |
18184 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18185 | } | |
18186 | { | |
18187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18188 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
18189 | ||
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | resultobj = PyInt_FromLong((long)result); | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
d14a1e28 RD |
18200 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
18201 | PyObject *resultobj; | |
18202 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18203 | bool result; | |
18204 | PyObject * obj0 = 0 ; | |
18205 | char *kwnames[] = { | |
18206 | (char *) "self", NULL | |
18207 | }; | |
18208 | ||
18209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
18210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18211 | { | |
18212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18213 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
18214 | ||
18215 | wxPyEndAllowThreads(__tstate); | |
18216 | if (PyErr_Occurred()) SWIG_fail; | |
18217 | } | |
18218 | resultobj = PyInt_FromLong((long)result); | |
18219 | return resultobj; | |
18220 | fail: | |
18221 | return NULL; | |
18222 | } | |
18223 | ||
18224 | ||
18225 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18226 | PyObject *resultobj; | |
18227 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18228 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18229 | PyObject * obj0 = 0 ; | |
18230 | PyObject * obj1 = 0 ; | |
18231 | char *kwnames[] = { | |
18232 | (char *) "self",(char *) "win", NULL | |
18233 | }; | |
18234 | ||
18235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
18236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18237 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18238 | { | |
18239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18240 | (arg1)->SetTopWindow(arg2); | |
18241 | ||
18242 | wxPyEndAllowThreads(__tstate); | |
18243 | if (PyErr_Occurred()) SWIG_fail; | |
18244 | } | |
18245 | Py_INCREF(Py_None); resultobj = Py_None; | |
18246 | return resultobj; | |
18247 | fail: | |
18248 | return NULL; | |
18249 | } | |
18250 | ||
18251 | ||
18252 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18253 | PyObject *resultobj; | |
18254 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18255 | wxWindow *result; | |
18256 | PyObject * obj0 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
18262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18263 | { | |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | { | |
18271 | resultobj = wxPyMake_wxObject(result); | |
18272 | } | |
18273 | return resultobj; | |
18274 | fail: | |
18275 | return NULL; | |
18276 | } | |
18277 | ||
18278 | ||
18279 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18280 | PyObject *resultobj; | |
18281 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18282 | bool arg2 ; | |
18283 | PyObject * obj0 = 0 ; | |
18284 | PyObject * obj1 = 0 ; | |
18285 | char *kwnames[] = { | |
18286 | (char *) "self",(char *) "flag", NULL | |
18287 | }; | |
18288 | ||
18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
18290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
18291 | { |
18292 | arg2 = (bool) SPyObj_AsBool(obj1); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | } | |
d14a1e28 RD |
18295 | { |
18296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18297 | (arg1)->SetExitOnFrameDelete(arg2); | |
18298 | ||
18299 | wxPyEndAllowThreads(__tstate); | |
18300 | if (PyErr_Occurred()) SWIG_fail; | |
18301 | } | |
18302 | Py_INCREF(Py_None); resultobj = Py_None; | |
18303 | return resultobj; | |
18304 | fail: | |
18305 | return NULL; | |
18306 | } | |
18307 | ||
18308 | ||
18309 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18310 | PyObject *resultobj; | |
18311 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18312 | bool result; | |
18313 | PyObject * obj0 = 0 ; | |
18314 | char *kwnames[] = { | |
18315 | (char *) "self", NULL | |
18316 | }; | |
18317 | ||
18318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
18319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18320 | { | |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | resultobj = PyInt_FromLong((long)result); | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18335 | PyObject *resultobj; | |
18336 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18337 | bool arg2 ; | |
18338 | PyObject * obj0 = 0 ; | |
18339 | PyObject * obj1 = 0 ; | |
18340 | char *kwnames[] = { | |
18341 | (char *) "self",(char *) "flag", NULL | |
18342 | }; | |
18343 | ||
18344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
18345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
18346 | { |
18347 | arg2 = (bool) SPyObj_AsBool(obj1); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
d14a1e28 RD |
18350 | { |
18351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18352 | (arg1)->SetUseBestVisual(arg2); | |
18353 | ||
18354 | wxPyEndAllowThreads(__tstate); | |
18355 | if (PyErr_Occurred()) SWIG_fail; | |
18356 | } | |
18357 | Py_INCREF(Py_None); resultobj = Py_None; | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18365 | PyObject *resultobj; | |
18366 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18367 | bool result; | |
18368 | PyObject * obj0 = 0 ; | |
18369 | char *kwnames[] = { | |
18370 | (char *) "self", NULL | |
18371 | }; | |
18372 | ||
18373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
18374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | resultobj = PyInt_FromLong((long)result); | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
18389 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18390 | PyObject *resultobj; | |
18391 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18392 | int arg2 ; | |
18393 | PyObject * obj0 = 0 ; | |
18394 | char *kwnames[] = { | |
18395 | (char *) "self",(char *) "mode", NULL | |
18396 | }; | |
18397 | ||
18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetPrintMode",kwnames,&obj0,&arg2)) goto fail; | |
18399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18400 | { | |
18401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18402 | (arg1)->SetPrintMode(arg2); | |
18403 | ||
18404 | wxPyEndAllowThreads(__tstate); | |
18405 | if (PyErr_Occurred()) SWIG_fail; | |
18406 | } | |
18407 | Py_INCREF(Py_None); resultobj = Py_None; | |
18408 | return resultobj; | |
18409 | fail: | |
18410 | return NULL; | |
18411 | } | |
18412 | ||
18413 | ||
18414 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18415 | PyObject *resultobj; | |
18416 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18417 | int result; | |
18418 | PyObject * obj0 = 0 ; | |
18419 | char *kwnames[] = { | |
18420 | (char *) "self", NULL | |
18421 | }; | |
18422 | ||
18423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
18424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18425 | { | |
18426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18427 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
18428 | ||
18429 | wxPyEndAllowThreads(__tstate); | |
18430 | if (PyErr_Occurred()) SWIG_fail; | |
18431 | } | |
18432 | resultobj = PyInt_FromLong((long)result); | |
18433 | return resultobj; | |
18434 | fail: | |
18435 | return NULL; | |
18436 | } | |
18437 | ||
18438 | ||
6c3b4aae | 18439 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18440 | PyObject *resultobj; |
18441 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 18442 | int arg2 ; |
d14a1e28 RD |
18443 | PyObject * obj0 = 0 ; |
18444 | char *kwnames[] = { | |
6c3b4aae | 18445 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
18446 | }; |
18447 | ||
6c3b4aae | 18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetAssertMode",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 RD |
18449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18450 | { | |
18451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 18452 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
18453 | |
18454 | wxPyEndAllowThreads(__tstate); | |
18455 | if (PyErr_Occurred()) SWIG_fail; | |
18456 | } | |
6c3b4aae | 18457 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
18458 | return resultobj; |
18459 | fail: | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
6c3b4aae | 18464 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18465 | PyObject *resultobj; |
18466 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 18467 | int result; |
d14a1e28 RD |
18468 | PyObject * obj0 = 0 ; |
18469 | char *kwnames[] = { | |
6c3b4aae | 18470 | (char *) "self", NULL |
d14a1e28 RD |
18471 | }; |
18472 | ||
6c3b4aae | 18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
18474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18475 | { | |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 18477 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
18478 | |
18479 | wxPyEndAllowThreads(__tstate); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
6c3b4aae | 18482 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
18483 | return resultobj; |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
18489 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18490 | PyObject *resultobj; | |
18491 | bool result; | |
18492 | char *kwnames[] = { | |
18493 | NULL | |
18494 | }; | |
18495 | ||
18496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
18497 | { | |
18498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18499 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
18500 | ||
18501 | wxPyEndAllowThreads(__tstate); | |
18502 | if (PyErr_Occurred()) SWIG_fail; | |
18503 | } | |
18504 | resultobj = PyInt_FromLong((long)result); | |
18505 | return resultobj; | |
18506 | fail: | |
18507 | return NULL; | |
18508 | } | |
18509 | ||
18510 | ||
18511 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18512 | PyObject *resultobj; | |
18513 | long result; | |
18514 | char *kwnames[] = { | |
18515 | NULL | |
18516 | }; | |
18517 | ||
18518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | resultobj = PyInt_FromLong((long)result); | |
18527 | return resultobj; | |
18528 | fail: | |
18529 | return NULL; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18534 | PyObject *resultobj; | |
18535 | long result; | |
18536 | char *kwnames[] = { | |
18537 | NULL | |
18538 | }; | |
18539 | ||
18540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
18541 | { | |
18542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18543 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
18544 | ||
18545 | wxPyEndAllowThreads(__tstate); | |
18546 | if (PyErr_Occurred()) SWIG_fail; | |
18547 | } | |
18548 | resultobj = PyInt_FromLong((long)result); | |
18549 | return resultobj; | |
18550 | fail: | |
18551 | return NULL; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18556 | PyObject *resultobj; | |
18557 | long result; | |
18558 | char *kwnames[] = { | |
18559 | NULL | |
18560 | }; | |
18561 | ||
18562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
18563 | { | |
18564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18565 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
18566 | ||
18567 | wxPyEndAllowThreads(__tstate); | |
18568 | if (PyErr_Occurred()) SWIG_fail; | |
18569 | } | |
18570 | resultobj = PyInt_FromLong((long)result); | |
18571 | return resultobj; | |
18572 | fail: | |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
18577 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18578 | PyObject *resultobj; | |
18579 | wxString result; | |
18580 | char *kwnames[] = { | |
18581 | NULL | |
18582 | }; | |
18583 | ||
18584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | { | |
18593 | #if wxUSE_UNICODE | |
18594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18595 | #else | |
18596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18597 | #endif | |
18598 | } | |
18599 | return resultobj; | |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | bool arg1 ; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "val", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
18614 | { |
18615 | arg1 = (bool) SPyObj_AsBool(obj0); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
d14a1e28 RD |
18618 | { |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18620 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | Py_INCREF(Py_None); resultobj = Py_None; | |
18626 | return resultobj; | |
18627 | fail: | |
18628 | return NULL; | |
18629 | } | |
18630 | ||
18631 | ||
18632 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18633 | PyObject *resultobj; | |
18634 | long arg1 ; | |
18635 | char *kwnames[] = { | |
18636 | (char *) "val", NULL | |
18637 | }; | |
18638 | ||
18639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacAboutMenuItemId",kwnames,&arg1)) goto fail; | |
18640 | { | |
18641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18642 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
18643 | ||
18644 | wxPyEndAllowThreads(__tstate); | |
18645 | if (PyErr_Occurred()) SWIG_fail; | |
18646 | } | |
18647 | Py_INCREF(Py_None); resultobj = Py_None; | |
18648 | return resultobj; | |
18649 | fail: | |
18650 | return NULL; | |
18651 | } | |
18652 | ||
18653 | ||
18654 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18655 | PyObject *resultobj; | |
18656 | long arg1 ; | |
18657 | char *kwnames[] = { | |
18658 | (char *) "val", NULL | |
18659 | }; | |
18660 | ||
18661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacPreferencesMenuItemId",kwnames,&arg1)) goto fail; | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
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_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18677 | PyObject *resultobj; | |
18678 | long arg1 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "val", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacExitMenuItemId",kwnames,&arg1)) goto fail; | |
18684 | { | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | wxPyApp::SetMacExitMenuItemId(arg1); | |
18687 | ||
18688 | wxPyEndAllowThreads(__tstate); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | Py_INCREF(Py_None); resultobj = Py_None; | |
18692 | return resultobj; | |
18693 | fail: | |
18694 | return NULL; | |
18695 | } | |
18696 | ||
18697 | ||
18698 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18699 | PyObject *resultobj; | |
18700 | wxString *arg1 = 0 ; | |
e811c8ce | 18701 | bool temp1 = False ; |
d14a1e28 RD |
18702 | PyObject * obj0 = 0 ; |
18703 | char *kwnames[] = { | |
18704 | (char *) "val", NULL | |
18705 | }; | |
18706 | ||
18707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
18708 | { | |
18709 | arg1 = wxString_in_helper(obj0); | |
18710 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 18711 | temp1 = True; |
d14a1e28 RD |
18712 | } |
18713 | { | |
18714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18715 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
18716 | ||
18717 | wxPyEndAllowThreads(__tstate); | |
18718 | if (PyErr_Occurred()) SWIG_fail; | |
18719 | } | |
18720 | Py_INCREF(Py_None); resultobj = Py_None; | |
18721 | { | |
18722 | if (temp1) | |
18723 | delete arg1; | |
18724 | } | |
18725 | return resultobj; | |
18726 | fail: | |
18727 | { | |
18728 | if (temp1) | |
18729 | delete arg1; | |
18730 | } | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
18735 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18736 | PyObject *resultobj; | |
18737 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
18744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18745 | { | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | (arg1)->_BootstrapApp(); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
18752 | Py_INCREF(Py_None); resultobj = Py_None; | |
18753 | return resultobj; | |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | int result; | |
18762 | char *kwnames[] = { | |
18763 | NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
18767 | { | |
18768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18769 | result = (int)PyApp_GetComCtl32Version(); | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
18774 | resultobj = PyInt_FromLong((long)result); | |
18775 | return resultobj; | |
18776 | fail: | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
18781 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
18782 | PyObject *obj; | |
18783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18784 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
18785 | Py_INCREF(obj); | |
18786 | return Py_BuildValue((char *)""); | |
18787 | } | |
18788 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | char *kwnames[] = { | |
18791 | NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
18795 | { | |
18796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18797 | wxExit(); | |
18798 | ||
18799 | wxPyEndAllowThreads(__tstate); | |
18800 | if (PyErr_Occurred()) SWIG_fail; | |
18801 | } | |
18802 | Py_INCREF(Py_None); resultobj = Py_None; | |
18803 | return resultobj; | |
18804 | fail: | |
18805 | return NULL; | |
18806 | } | |
18807 | ||
18808 | ||
18809 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18810 | PyObject *resultobj; | |
18811 | bool result; | |
18812 | char *kwnames[] = { | |
18813 | NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
18817 | { | |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | result = (bool)wxYield(); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | resultobj = PyInt_FromLong((long)result); | |
18825 | return resultobj; | |
18826 | fail: | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18832 | PyObject *resultobj; | |
18833 | bool result; | |
18834 | char *kwnames[] = { | |
18835 | NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
18839 | { | |
18840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18841 | result = (bool)wxYieldIfNeeded(); | |
18842 | ||
18843 | wxPyEndAllowThreads(__tstate); | |
18844 | if (PyErr_Occurred()) SWIG_fail; | |
18845 | } | |
18846 | resultobj = PyInt_FromLong((long)result); | |
18847 | return resultobj; | |
18848 | fail: | |
18849 | return NULL; | |
18850 | } | |
18851 | ||
18852 | ||
18853 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18854 | PyObject *resultobj; | |
18855 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 18856 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18857 | bool result; |
18858 | PyObject * obj0 = 0 ; | |
18859 | PyObject * obj1 = 0 ; | |
18860 | char *kwnames[] = { | |
18861 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
18862 | }; | |
18863 | ||
18864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
18865 | if (obj0) { | |
18866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18867 | } | |
18868 | if (obj1) { | |
a41e16b6 RD |
18869 | { |
18870 | arg2 = (bool) SPyObj_AsBool(obj1); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
d14a1e28 RD |
18873 | } |
18874 | { | |
18875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18876 | result = (bool)wxSafeYield(arg1,arg2); | |
18877 | ||
18878 | wxPyEndAllowThreads(__tstate); | |
18879 | if (PyErr_Occurred()) SWIG_fail; | |
18880 | } | |
18881 | resultobj = PyInt_FromLong((long)result); | |
18882 | return resultobj; | |
18883 | fail: | |
18884 | return NULL; | |
18885 | } | |
18886 | ||
18887 | ||
18888 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18889 | PyObject *resultobj; | |
18890 | char *kwnames[] = { | |
18891 | NULL | |
18892 | }; | |
18893 | ||
18894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
18895 | { | |
18896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18897 | wxWakeUpIdle(); | |
18898 | ||
18899 | wxPyEndAllowThreads(__tstate); | |
18900 | if (PyErr_Occurred()) SWIG_fail; | |
18901 | } | |
18902 | Py_INCREF(Py_None); resultobj = Py_None; | |
18903 | return resultobj; | |
18904 | fail: | |
18905 | return NULL; | |
18906 | } | |
18907 | ||
18908 | ||
18909 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18910 | PyObject *resultobj; | |
18911 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
18912 | wxEvent *arg2 = 0 ; | |
18913 | PyObject * obj0 = 0 ; | |
18914 | PyObject * obj1 = 0 ; | |
18915 | char *kwnames[] = { | |
18916 | (char *) "dest",(char *) "event", NULL | |
18917 | }; | |
18918 | ||
18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
18920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18921 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18922 | if (arg2 == NULL) { | |
18923 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18924 | } | |
18925 | { | |
18926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18927 | wxPostEvent(arg1,*arg2); | |
18928 | ||
18929 | wxPyEndAllowThreads(__tstate); | |
18930 | if (PyErr_Occurred()) SWIG_fail; | |
18931 | } | |
18932 | Py_INCREF(Py_None); resultobj = Py_None; | |
18933 | return resultobj; | |
18934 | fail: | |
18935 | return NULL; | |
18936 | } | |
18937 | ||
18938 | ||
18939 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18940 | PyObject *resultobj; | |
18941 | char *kwnames[] = { | |
18942 | NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
18946 | { | |
18947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18948 | wxApp_CleanUp(); | |
18949 | ||
18950 | wxPyEndAllowThreads(__tstate); | |
18951 | if (PyErr_Occurred()) SWIG_fail; | |
18952 | } | |
18953 | Py_INCREF(Py_None); resultobj = Py_None; | |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
18960 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18961 | PyObject *resultobj; | |
18962 | wxPyApp *result; | |
18963 | char *kwnames[] = { | |
18964 | NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
18968 | { | |
18969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18970 | result = (wxPyApp *)wxGetApp(); | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
18975 | { | |
18976 | resultobj = wxPyMake_wxObject(result); | |
18977 | } | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
1e0c8722 RD |
18984 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
18985 | PyObject *resultobj; | |
18986 | int arg1 = (int) 0 ; | |
18987 | int arg2 = (int) 0 ; | |
18988 | int arg3 = (int) 0 ; | |
18989 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
18990 | wxAcceleratorEntry *result; | |
18991 | PyObject * obj3 = 0 ; | |
18992 | char *kwnames[] = { | |
18993 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
18994 | }; | |
18995 | ||
18996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiiO:new_AcceleratorEntry",kwnames,&arg1,&arg2,&arg3,&obj3)) goto fail; | |
18997 | if (obj3) { | |
18998 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18999 | } | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
19007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
19008 | return resultobj; | |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
19014 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19015 | PyObject *resultobj; | |
19016 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19017 | PyObject * obj0 = 0 ; | |
19018 | char *kwnames[] = { | |
19019 | (char *) "self", NULL | |
19020 | }; | |
19021 | ||
19022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
19023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19024 | { | |
19025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19026 | delete arg1; | |
19027 | ||
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | Py_INCREF(Py_None); resultobj = Py_None; | |
19032 | return resultobj; | |
19033 | fail: | |
19034 | return NULL; | |
19035 | } | |
19036 | ||
19037 | ||
19038 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19039 | PyObject *resultobj; | |
19040 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19041 | int arg2 ; | |
19042 | int arg3 ; | |
19043 | int arg4 ; | |
19044 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
19045 | PyObject * obj0 = 0 ; | |
19046 | PyObject * obj4 = 0 ; | |
19047 | char *kwnames[] = { | |
19048 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
19049 | }; | |
19050 | ||
19051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii|O:AcceleratorEntry_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
19052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19053 | if (obj4) { | |
19054 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19055 | } | |
19056 | { | |
19057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19058 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
19059 | ||
19060 | wxPyEndAllowThreads(__tstate); | |
19061 | if (PyErr_Occurred()) SWIG_fail; | |
19062 | } | |
19063 | Py_INCREF(Py_None); resultobj = Py_None; | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj; | |
19072 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19073 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
19074 | PyObject * obj0 = 0 ; | |
19075 | PyObject * obj1 = 0 ; | |
19076 | char *kwnames[] = { | |
19077 | (char *) "self",(char *) "item", NULL | |
19078 | }; | |
19079 | ||
19080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
19081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19082 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19083 | { | |
19084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19085 | (arg1)->SetMenuItem(arg2); | |
19086 | ||
19087 | wxPyEndAllowThreads(__tstate); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | } | |
19090 | Py_INCREF(Py_None); resultobj = Py_None; | |
19091 | return resultobj; | |
19092 | fail: | |
19093 | return NULL; | |
19094 | } | |
19095 | ||
19096 | ||
19097 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19098 | PyObject *resultobj; | |
19099 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19100 | wxMenuItem *result; | |
19101 | PyObject * obj0 = 0 ; | |
19102 | char *kwnames[] = { | |
19103 | (char *) "self", NULL | |
19104 | }; | |
19105 | ||
19106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
19107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19108 | { | |
19109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19110 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
19111 | ||
19112 | wxPyEndAllowThreads(__tstate); | |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
19114 | } | |
19115 | { | |
19116 | resultobj = wxPyMake_wxObject(result); | |
19117 | } | |
19118 | return resultobj; | |
19119 | fail: | |
19120 | return NULL; | |
19121 | } | |
19122 | ||
19123 | ||
19124 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19125 | PyObject *resultobj; | |
19126 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19127 | int result; | |
19128 | PyObject * obj0 = 0 ; | |
19129 | char *kwnames[] = { | |
19130 | (char *) "self", NULL | |
19131 | }; | |
19132 | ||
19133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
19134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | result = (int)(arg1)->GetFlags(); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | resultobj = PyInt_FromLong((long)result); | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19152 | int result; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
19159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19160 | { | |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = (int)(arg1)->GetKeyCode(); | |
19163 | ||
19164 | wxPyEndAllowThreads(__tstate); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | } | |
19167 | resultobj = PyInt_FromLong((long)result); | |
19168 | return resultobj; | |
19169 | fail: | |
19170 | return NULL; | |
19171 | } | |
19172 | ||
19173 | ||
19174 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19175 | PyObject *resultobj; | |
19176 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
19177 | int result; | |
19178 | PyObject * obj0 = 0 ; | |
19179 | char *kwnames[] = { | |
19180 | (char *) "self", NULL | |
19181 | }; | |
19182 | ||
19183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
19184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19185 | { | |
19186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19187 | result = (int)(arg1)->GetCommand(); | |
19188 | ||
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | resultobj = PyInt_FromLong((long)result); | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
19199 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
19200 | PyObject *obj; | |
19201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19202 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
19203 | Py_INCREF(obj); | |
19204 | return Py_BuildValue((char *)""); | |
19205 | } | |
19206 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19207 | PyObject *resultobj; | |
19208 | int arg1 ; | |
19209 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
19210 | wxAcceleratorTable *result; | |
19211 | PyObject * obj0 = 0 ; | |
19212 | char *kwnames[] = { | |
19213 | (char *) "n", NULL | |
19214 | }; | |
19215 | ||
19216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
19217 | { | |
19218 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
19219 | if (arg2) arg1 = PyList_Size(obj0); | |
19220 | else arg1 = 0; | |
19221 | } | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
19230 | { | |
19231 | delete [] arg2; | |
19232 | } | |
19233 | return resultobj; | |
19234 | fail: | |
19235 | { | |
19236 | delete [] arg2; | |
19237 | } | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
19242 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19243 | PyObject *resultobj; | |
19244 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
19245 | PyObject * obj0 = 0 ; | |
19246 | char *kwnames[] = { | |
19247 | (char *) "self", NULL | |
19248 | }; | |
19249 | ||
19250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
19251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19252 | { | |
19253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19254 | delete arg1; | |
19255 | ||
19256 | wxPyEndAllowThreads(__tstate); | |
19257 | if (PyErr_Occurred()) SWIG_fail; | |
19258 | } | |
19259 | Py_INCREF(Py_None); resultobj = Py_None; | |
19260 | return resultobj; | |
19261 | fail: | |
19262 | return NULL; | |
19263 | } | |
19264 | ||
19265 | ||
19266 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19267 | PyObject *resultobj; | |
19268 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
19269 | bool result; | |
19270 | PyObject * obj0 = 0 ; | |
19271 | char *kwnames[] = { | |
19272 | (char *) "self", NULL | |
19273 | }; | |
19274 | ||
19275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
19276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19277 | { | |
19278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19279 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
19280 | ||
19281 | wxPyEndAllowThreads(__tstate); | |
19282 | if (PyErr_Occurred()) SWIG_fail; | |
19283 | } | |
19284 | resultobj = PyInt_FromLong((long)result); | |
19285 | return resultobj; | |
19286 | fail: | |
19287 | return NULL; | |
19288 | } | |
19289 | ||
19290 | ||
19291 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
19292 | PyObject *obj; | |
19293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19294 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
19295 | Py_INCREF(obj); | |
19296 | return Py_BuildValue((char *)""); | |
19297 | } | |
19298 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
19299 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
19300 | return 1; | |
19301 | } | |
19302 | ||
19303 | ||
19304 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
19305 | PyObject *pyobj; | |
19306 | ||
19307 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
19308 | return pyobj; | |
19309 | } | |
19310 | ||
19311 | ||
19312 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19313 | PyObject *resultobj; | |
19314 | wxString *arg1 = 0 ; | |
19315 | wxAcceleratorEntry *result; | |
19316 | bool temp1 = False ; | |
19317 | PyObject * obj0 = 0 ; | |
19318 | char *kwnames[] = { | |
19319 | (char *) "label", NULL | |
19320 | }; | |
19321 | ||
19322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
19323 | { | |
19324 | arg1 = wxString_in_helper(obj0); | |
19325 | if (arg1 == NULL) SWIG_fail; | |
19326 | temp1 = True; | |
19327 | } | |
19328 | { | |
19329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19330 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
19331 | ||
19332 | wxPyEndAllowThreads(__tstate); | |
19333 | if (PyErr_Occurred()) SWIG_fail; | |
19334 | } | |
19335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
19336 | { | |
19337 | if (temp1) | |
19338 | delete arg1; | |
19339 | } | |
19340 | return resultobj; | |
19341 | fail: | |
19342 | { | |
19343 | if (temp1) | |
19344 | delete arg1; | |
19345 | } | |
19346 | return NULL; | |
19347 | } | |
19348 | ||
19349 | ||
e811c8ce RD |
19350 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
19351 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
19352 | return 1; | |
19353 | } | |
19354 | ||
19355 | ||
19356 | static PyObject *_wrap_PanelNameStr_get() { | |
19357 | PyObject *pyobj; | |
19358 | ||
19359 | { | |
19360 | #if wxUSE_UNICODE | |
19361 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19362 | #else | |
19363 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19364 | #endif | |
19365 | } | |
19366 | return pyobj; | |
19367 | } | |
19368 | ||
19369 | ||
d14a1e28 RD |
19370 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
19371 | PyObject *resultobj; | |
19372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19373 | int arg2 ; |
d14a1e28 RD |
19374 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19375 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19376 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19377 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19378 | long arg5 = (long) 0 ; | |
19379 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
19380 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19381 | wxWindow *result; | |
19382 | wxPoint temp3 ; | |
19383 | wxSize temp4 ; | |
e811c8ce | 19384 | bool temp6 = False ; |
d14a1e28 RD |
19385 | PyObject * obj0 = 0 ; |
19386 | PyObject * obj2 = 0 ; | |
19387 | PyObject * obj3 = 0 ; | |
19388 | PyObject * obj5 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Window",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
19394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19395 | if (obj2) { | |
19396 | { | |
19397 | arg3 = &temp3; | |
19398 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19399 | } | |
19400 | } | |
19401 | if (obj3) { | |
19402 | { | |
19403 | arg4 = &temp4; | |
19404 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19405 | } | |
19406 | } | |
19407 | if (obj5) { | |
19408 | { | |
19409 | arg6 = wxString_in_helper(obj5); | |
19410 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 19411 | temp6 = True; |
d14a1e28 RD |
19412 | } |
19413 | } | |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19416 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19417 | ||
19418 | wxPyEndAllowThreads(__tstate); | |
19419 | if (PyErr_Occurred()) SWIG_fail; | |
19420 | } | |
19421 | { | |
19422 | resultobj = wxPyMake_wxObject(result); | |
19423 | } | |
19424 | { | |
19425 | if (temp6) | |
19426 | delete arg6; | |
19427 | } | |
19428 | return resultobj; | |
19429 | fail: | |
19430 | { | |
19431 | if (temp6) | |
19432 | delete arg6; | |
19433 | } | |
19434 | return NULL; | |
19435 | } | |
19436 | ||
19437 | ||
19438 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19439 | PyObject *resultobj; | |
19440 | wxWindow *result; | |
19441 | char *kwnames[] = { | |
19442 | NULL | |
19443 | }; | |
19444 | ||
19445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
19446 | { | |
19447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19448 | result = (wxWindow *)new wxWindow(); | |
19449 | ||
19450 | wxPyEndAllowThreads(__tstate); | |
19451 | if (PyErr_Occurred()) SWIG_fail; | |
19452 | } | |
19453 | { | |
19454 | resultobj = wxPyMake_wxObject(result); | |
19455 | } | |
19456 | return resultobj; | |
19457 | fail: | |
19458 | return NULL; | |
19459 | } | |
19460 | ||
19461 | ||
19462 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19463 | PyObject *resultobj; | |
19464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19465 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 19466 | int arg3 ; |
d14a1e28 RD |
19467 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19468 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19469 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19470 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19471 | long arg6 = (long) 0 ; | |
19472 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
19473 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19474 | bool result; | |
19475 | wxPoint temp4 ; | |
19476 | wxSize temp5 ; | |
e811c8ce | 19477 | bool temp7 = False ; |
d14a1e28 RD |
19478 | PyObject * obj0 = 0 ; |
19479 | PyObject * obj1 = 0 ; | |
19480 | PyObject * obj3 = 0 ; | |
19481 | PyObject * obj4 = 0 ; | |
19482 | PyObject * obj6 = 0 ; | |
19483 | char *kwnames[] = { | |
19484 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19485 | }; | |
19486 | ||
19487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Window_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
19488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19490 | if (obj3) { | |
19491 | { | |
19492 | arg4 = &temp4; | |
19493 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19494 | } | |
19495 | } | |
19496 | if (obj4) { | |
19497 | { | |
19498 | arg5 = &temp5; | |
19499 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19500 | } | |
19501 | } | |
19502 | if (obj6) { | |
19503 | { | |
19504 | arg7 = wxString_in_helper(obj6); | |
19505 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 19506 | temp7 = True; |
d14a1e28 RD |
19507 | } |
19508 | } | |
19509 | { | |
19510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19511 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19512 | ||
19513 | wxPyEndAllowThreads(__tstate); | |
19514 | if (PyErr_Occurred()) SWIG_fail; | |
19515 | } | |
19516 | resultobj = PyInt_FromLong((long)result); | |
19517 | { | |
19518 | if (temp7) | |
19519 | delete arg7; | |
19520 | } | |
19521 | return resultobj; | |
19522 | fail: | |
19523 | { | |
19524 | if (temp7) | |
19525 | delete arg7; | |
19526 | } | |
19527 | return NULL; | |
19528 | } | |
19529 | ||
19530 | ||
19531 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19532 | PyObject *resultobj; | |
19533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19534 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19535 | bool result; |
19536 | PyObject * obj0 = 0 ; | |
19537 | PyObject * obj1 = 0 ; | |
19538 | char *kwnames[] = { | |
19539 | (char *) "self",(char *) "force", NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
19543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19544 | if (obj1) { | |
a41e16b6 RD |
19545 | { |
19546 | arg2 = (bool) SPyObj_AsBool(obj1); | |
19547 | if (PyErr_Occurred()) SWIG_fail; | |
19548 | } | |
d14a1e28 RD |
19549 | } |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | result = (bool)(arg1)->Close(arg2); | |
19553 | ||
19554 | wxPyEndAllowThreads(__tstate); | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | } | |
19557 | resultobj = PyInt_FromLong((long)result); | |
19558 | return resultobj; | |
19559 | fail: | |
19560 | return NULL; | |
19561 | } | |
19562 | ||
19563 | ||
19564 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19565 | PyObject *resultobj; | |
19566 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19567 | bool result; | |
19568 | PyObject * obj0 = 0 ; | |
19569 | char *kwnames[] = { | |
19570 | (char *) "self", NULL | |
19571 | }; | |
19572 | ||
19573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
19574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19575 | { | |
19576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19577 | result = (bool)(arg1)->Destroy(); | |
19578 | ||
19579 | wxPyEndAllowThreads(__tstate); | |
19580 | if (PyErr_Occurred()) SWIG_fail; | |
19581 | } | |
19582 | resultobj = PyInt_FromLong((long)result); | |
19583 | return resultobj; | |
19584 | fail: | |
19585 | return NULL; | |
19586 | } | |
19587 | ||
19588 | ||
19589 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19590 | PyObject *resultobj; | |
19591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19592 | bool result; | |
19593 | PyObject * obj0 = 0 ; | |
19594 | char *kwnames[] = { | |
19595 | (char *) "self", NULL | |
19596 | }; | |
19597 | ||
19598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
19599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19600 | { | |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19602 | result = (bool)(arg1)->DestroyChildren(); | |
19603 | ||
19604 | wxPyEndAllowThreads(__tstate); | |
19605 | if (PyErr_Occurred()) SWIG_fail; | |
19606 | } | |
19607 | resultobj = PyInt_FromLong((long)result); | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | return NULL; | |
19611 | } | |
19612 | ||
19613 | ||
19614 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19615 | PyObject *resultobj; | |
19616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19617 | bool result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "self", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
19624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19625 | { | |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
19632 | resultobj = PyInt_FromLong((long)result); | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | return NULL; | |
19636 | } | |
19637 | ||
19638 | ||
19639 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19640 | PyObject *resultobj; | |
19641 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19642 | wxString *arg2 = 0 ; | |
e811c8ce | 19643 | bool temp2 = False ; |
d14a1e28 RD |
19644 | PyObject * obj0 = 0 ; |
19645 | PyObject * obj1 = 0 ; | |
19646 | char *kwnames[] = { | |
19647 | (char *) "self",(char *) "title", NULL | |
19648 | }; | |
19649 | ||
19650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
19651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19652 | { | |
19653 | arg2 = wxString_in_helper(obj1); | |
19654 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19655 | temp2 = True; |
d14a1e28 RD |
19656 | } |
19657 | { | |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | (arg1)->SetTitle((wxString const &)*arg2); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
19664 | Py_INCREF(Py_None); resultobj = Py_None; | |
19665 | { | |
19666 | if (temp2) | |
19667 | delete arg2; | |
19668 | } | |
19669 | return resultobj; | |
19670 | fail: | |
19671 | { | |
19672 | if (temp2) | |
19673 | delete arg2; | |
19674 | } | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19682 | wxString result; | |
19683 | PyObject * obj0 = 0 ; | |
19684 | char *kwnames[] = { | |
19685 | (char *) "self", NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
19689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19690 | { | |
19691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19692 | result = ((wxWindow const *)arg1)->GetTitle(); | |
19693 | ||
19694 | wxPyEndAllowThreads(__tstate); | |
19695 | if (PyErr_Occurred()) SWIG_fail; | |
19696 | } | |
19697 | { | |
19698 | #if wxUSE_UNICODE | |
19699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19700 | #else | |
19701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19702 | #endif | |
19703 | } | |
19704 | return resultobj; | |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19713 | wxString *arg2 = 0 ; | |
e811c8ce | 19714 | bool temp2 = False ; |
d14a1e28 RD |
19715 | PyObject * obj0 = 0 ; |
19716 | PyObject * obj1 = 0 ; | |
19717 | char *kwnames[] = { | |
19718 | (char *) "self",(char *) "label", NULL | |
19719 | }; | |
19720 | ||
19721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
19722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19723 | { | |
19724 | arg2 = wxString_in_helper(obj1); | |
19725 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19726 | temp2 = True; |
d14a1e28 RD |
19727 | } |
19728 | { | |
19729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19730 | (arg1)->SetLabel((wxString const &)*arg2); | |
19731 | ||
19732 | wxPyEndAllowThreads(__tstate); | |
19733 | if (PyErr_Occurred()) SWIG_fail; | |
19734 | } | |
19735 | Py_INCREF(Py_None); resultobj = Py_None; | |
19736 | { | |
19737 | if (temp2) | |
19738 | delete arg2; | |
19739 | } | |
19740 | return resultobj; | |
19741 | fail: | |
19742 | { | |
19743 | if (temp2) | |
19744 | delete arg2; | |
19745 | } | |
19746 | return NULL; | |
19747 | } | |
19748 | ||
19749 | ||
19750 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19751 | PyObject *resultobj; | |
19752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19753 | wxString result; | |
19754 | PyObject * obj0 = 0 ; | |
19755 | char *kwnames[] = { | |
19756 | (char *) "self", NULL | |
19757 | }; | |
19758 | ||
19759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
19760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | result = ((wxWindow const *)arg1)->GetLabel(); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
19768 | { | |
19769 | #if wxUSE_UNICODE | |
19770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19771 | #else | |
19772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19773 | #endif | |
19774 | } | |
19775 | return resultobj; | |
19776 | fail: | |
19777 | return NULL; | |
19778 | } | |
19779 | ||
19780 | ||
19781 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19782 | PyObject *resultobj; | |
19783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19784 | wxString *arg2 = 0 ; | |
e811c8ce | 19785 | bool temp2 = False ; |
d14a1e28 RD |
19786 | PyObject * obj0 = 0 ; |
19787 | PyObject * obj1 = 0 ; | |
19788 | char *kwnames[] = { | |
19789 | (char *) "self",(char *) "name", NULL | |
19790 | }; | |
19791 | ||
19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
19793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19794 | { | |
19795 | arg2 = wxString_in_helper(obj1); | |
19796 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19797 | temp2 = True; |
d14a1e28 RD |
19798 | } |
19799 | { | |
19800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19801 | (arg1)->SetName((wxString const &)*arg2); | |
19802 | ||
19803 | wxPyEndAllowThreads(__tstate); | |
19804 | if (PyErr_Occurred()) SWIG_fail; | |
19805 | } | |
19806 | Py_INCREF(Py_None); resultobj = Py_None; | |
19807 | { | |
19808 | if (temp2) | |
19809 | delete arg2; | |
19810 | } | |
19811 | return resultobj; | |
19812 | fail: | |
19813 | { | |
19814 | if (temp2) | |
19815 | delete arg2; | |
19816 | } | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
19821 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19822 | PyObject *resultobj; | |
19823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19824 | wxString result; | |
19825 | PyObject * obj0 = 0 ; | |
19826 | char *kwnames[] = { | |
19827 | (char *) "self", NULL | |
19828 | }; | |
19829 | ||
19830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
19831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19832 | { | |
19833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19834 | result = ((wxWindow const *)arg1)->GetName(); | |
19835 | ||
19836 | wxPyEndAllowThreads(__tstate); | |
19837 | if (PyErr_Occurred()) SWIG_fail; | |
19838 | } | |
19839 | { | |
19840 | #if wxUSE_UNICODE | |
19841 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19842 | #else | |
19843 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19844 | #endif | |
19845 | } | |
19846 | return resultobj; | |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
19852 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19853 | PyObject *resultobj; | |
19854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19855 | int arg2 ; |
d14a1e28 RD |
19856 | PyObject * obj0 = 0 ; |
19857 | char *kwnames[] = { | |
19858 | (char *) "self",(char *) "winid", NULL | |
19859 | }; | |
19860 | ||
19861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_SetId",kwnames,&obj0,&arg2)) goto fail; | |
19862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19863 | { | |
19864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19865 | (arg1)->SetId(arg2); | |
19866 | ||
19867 | wxPyEndAllowThreads(__tstate); | |
19868 | if (PyErr_Occurred()) SWIG_fail; | |
19869 | } | |
19870 | Py_INCREF(Py_None); resultobj = Py_None; | |
19871 | return resultobj; | |
19872 | fail: | |
19873 | return NULL; | |
19874 | } | |
19875 | ||
19876 | ||
19877 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19878 | PyObject *resultobj; | |
19879 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19880 | int result; |
d14a1e28 RD |
19881 | PyObject * obj0 = 0 ; |
19882 | char *kwnames[] = { | |
19883 | (char *) "self", NULL | |
19884 | }; | |
19885 | ||
19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
19887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19888 | { | |
19889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 19890 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
19891 | |
19892 | wxPyEndAllowThreads(__tstate); | |
19893 | if (PyErr_Occurred()) SWIG_fail; | |
19894 | } | |
19895 | resultobj = PyInt_FromLong((long)result); | |
19896 | return resultobj; | |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
19902 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19903 | PyObject *resultobj; | |
19904 | int result; | |
19905 | char *kwnames[] = { | |
19906 | NULL | |
19907 | }; | |
19908 | ||
19909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | result = (int)wxWindow::NewControlId(); | |
19913 | ||
19914 | wxPyEndAllowThreads(__tstate); | |
19915 | if (PyErr_Occurred()) SWIG_fail; | |
19916 | } | |
19917 | resultobj = PyInt_FromLong((long)result); | |
19918 | return resultobj; | |
19919 | fail: | |
19920 | return NULL; | |
19921 | } | |
19922 | ||
19923 | ||
19924 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19925 | PyObject *resultobj; | |
19926 | int arg1 ; | |
19927 | int result; | |
19928 | char *kwnames[] = { | |
19929 | (char *) "winid", NULL | |
19930 | }; | |
19931 | ||
19932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_NextControlId",kwnames,&arg1)) goto fail; | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19935 | result = (int)wxWindow::NextControlId(arg1); | |
19936 | ||
19937 | wxPyEndAllowThreads(__tstate); | |
19938 | if (PyErr_Occurred()) SWIG_fail; | |
19939 | } | |
19940 | resultobj = PyInt_FromLong((long)result); | |
19941 | return resultobj; | |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | int arg1 ; | |
19950 | int result; | |
19951 | char *kwnames[] = { | |
19952 | (char *) "winid", NULL | |
19953 | }; | |
19954 | ||
19955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_PrevControlId",kwnames,&arg1)) goto fail; | |
19956 | { | |
19957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19958 | result = (int)wxWindow::PrevControlId(arg1); | |
19959 | ||
19960 | wxPyEndAllowThreads(__tstate); | |
19961 | if (PyErr_Occurred()) SWIG_fail; | |
19962 | } | |
19963 | resultobj = PyInt_FromLong((long)result); | |
19964 | return resultobj; | |
19965 | fail: | |
19966 | return NULL; | |
19967 | } | |
19968 | ||
19969 | ||
19970 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19971 | PyObject *resultobj; | |
19972 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19973 | wxSize *arg2 = 0 ; | |
19974 | wxSize temp2 ; | |
19975 | PyObject * obj0 = 0 ; | |
19976 | PyObject * obj1 = 0 ; | |
19977 | char *kwnames[] = { | |
19978 | (char *) "self",(char *) "size", NULL | |
19979 | }; | |
19980 | ||
19981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
19982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19983 | { | |
19984 | arg2 = &temp2; | |
19985 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19986 | } | |
19987 | { | |
19988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19989 | (arg1)->SetSize((wxSize const &)*arg2); | |
19990 | ||
19991 | wxPyEndAllowThreads(__tstate); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | } | |
19994 | Py_INCREF(Py_None); resultobj = Py_None; | |
19995 | return resultobj; | |
19996 | fail: | |
19997 | return NULL; | |
19998 | } | |
19999 | ||
20000 | ||
20001 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20002 | PyObject *resultobj; | |
20003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20004 | int arg2 ; | |
20005 | int arg3 ; | |
20006 | int arg4 ; | |
20007 | int arg5 ; | |
20008 | int arg6 = (int) wxSIZE_AUTO ; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | char *kwnames[] = { | |
20011 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
20012 | }; | |
20013 | ||
20014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:Window_SetDimensions",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
20015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20016 | { | |
20017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20018 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
20019 | ||
20020 | wxPyEndAllowThreads(__tstate); | |
20021 | if (PyErr_Occurred()) SWIG_fail; | |
20022 | } | |
20023 | Py_INCREF(Py_None); resultobj = Py_None; | |
20024 | return resultobj; | |
20025 | fail: | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
20030 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20031 | PyObject *resultobj; | |
20032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20033 | wxRect *arg2 = 0 ; | |
20034 | int arg3 = (int) wxSIZE_AUTO ; | |
20035 | wxRect temp2 ; | |
20036 | PyObject * obj0 = 0 ; | |
20037 | PyObject * obj1 = 0 ; | |
20038 | char *kwnames[] = { | |
20039 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
20040 | }; | |
20041 | ||
20042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_SetRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
20043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20044 | { | |
20045 | arg2 = &temp2; | |
20046 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20047 | } | |
20048 | { | |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
20051 | ||
20052 | wxPyEndAllowThreads(__tstate); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | } | |
20055 | Py_INCREF(Py_None); resultobj = Py_None; | |
20056 | return resultobj; | |
20057 | fail: | |
20058 | return NULL; | |
20059 | } | |
20060 | ||
20061 | ||
20062 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20063 | PyObject *resultobj; | |
20064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20065 | int arg2 ; | |
20066 | int arg3 ; | |
20067 | PyObject * obj0 = 0 ; | |
20068 | char *kwnames[] = { | |
20069 | (char *) "self",(char *) "width",(char *) "height", NULL | |
20070 | }; | |
20071 | ||
20072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20074 | { | |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | (arg1)->SetSize(arg2,arg3); | |
20077 | ||
20078 | wxPyEndAllowThreads(__tstate); | |
20079 | if (PyErr_Occurred()) SWIG_fail; | |
20080 | } | |
20081 | Py_INCREF(Py_None); resultobj = Py_None; | |
20082 | return resultobj; | |
20083 | fail: | |
20084 | return NULL; | |
20085 | } | |
20086 | ||
20087 | ||
20088 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20089 | PyObject *resultobj; | |
20090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20091 | wxPoint *arg2 = 0 ; | |
20092 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
20093 | wxPoint temp2 ; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | PyObject * obj1 = 0 ; | |
20096 | char *kwnames[] = { | |
20097 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
20098 | }; | |
20099 | ||
20100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_Move",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
20101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20102 | { | |
20103 | arg2 = &temp2; | |
20104 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20105 | } | |
20106 | { | |
20107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20108 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
20109 | ||
20110 | wxPyEndAllowThreads(__tstate); | |
20111 | if (PyErr_Occurred()) SWIG_fail; | |
20112 | } | |
20113 | Py_INCREF(Py_None); resultobj = Py_None; | |
20114 | return resultobj; | |
20115 | fail: | |
20116 | return NULL; | |
20117 | } | |
20118 | ||
20119 | ||
20120 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20121 | PyObject *resultobj; | |
20122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20123 | int arg2 ; | |
20124 | int arg3 ; | |
20125 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | char *kwnames[] = { | |
20128 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
20129 | }; | |
20130 | ||
20131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Window_MoveXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
20132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20133 | { | |
20134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20135 | (arg1)->Move(arg2,arg3,arg4); | |
20136 | ||
20137 | wxPyEndAllowThreads(__tstate); | |
20138 | if (PyErr_Occurred()) SWIG_fail; | |
20139 | } | |
20140 | Py_INCREF(Py_None); resultobj = Py_None; | |
20141 | return resultobj; | |
20142 | fail: | |
20143 | return NULL; | |
20144 | } | |
20145 | ||
20146 | ||
20147 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20148 | PyObject *resultobj; | |
20149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20150 | PyObject * obj0 = 0 ; | |
20151 | char *kwnames[] = { | |
20152 | (char *) "self", NULL | |
20153 | }; | |
20154 | ||
20155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
20156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20157 | { | |
20158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20159 | (arg1)->Raise(); | |
20160 | ||
20161 | wxPyEndAllowThreads(__tstate); | |
20162 | if (PyErr_Occurred()) SWIG_fail; | |
20163 | } | |
20164 | Py_INCREF(Py_None); resultobj = Py_None; | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
20171 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20172 | PyObject *resultobj; | |
20173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20174 | PyObject * obj0 = 0 ; | |
20175 | char *kwnames[] = { | |
20176 | (char *) "self", NULL | |
20177 | }; | |
20178 | ||
20179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
20180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20181 | { | |
20182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20183 | (arg1)->Lower(); | |
20184 | ||
20185 | wxPyEndAllowThreads(__tstate); | |
20186 | if (PyErr_Occurred()) SWIG_fail; | |
20187 | } | |
20188 | Py_INCREF(Py_None); resultobj = Py_None; | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20198 | wxSize *arg2 = 0 ; | |
20199 | wxSize temp2 ; | |
20200 | PyObject * obj0 = 0 ; | |
20201 | PyObject * obj1 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self",(char *) "size", NULL | |
20204 | }; | |
20205 | ||
20206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
20207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20208 | { | |
20209 | arg2 = &temp2; | |
20210 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20211 | } | |
20212 | { | |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
20215 | ||
20216 | wxPyEndAllowThreads(__tstate); | |
20217 | if (PyErr_Occurred()) SWIG_fail; | |
20218 | } | |
20219 | Py_INCREF(Py_None); resultobj = Py_None; | |
20220 | return resultobj; | |
20221 | fail: | |
20222 | return NULL; | |
20223 | } | |
20224 | ||
20225 | ||
20226 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20229 | int arg2 ; | |
20230 | int arg3 ; | |
20231 | PyObject * obj0 = 0 ; | |
20232 | char *kwnames[] = { | |
20233 | (char *) "self",(char *) "width",(char *) "height", NULL | |
20234 | }; | |
20235 | ||
20236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetClientSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20238 | { | |
20239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20240 | (arg1)->SetClientSize(arg2,arg3); | |
20241 | ||
20242 | wxPyEndAllowThreads(__tstate); | |
20243 | if (PyErr_Occurred()) SWIG_fail; | |
20244 | } | |
20245 | Py_INCREF(Py_None); resultobj = Py_None; | |
20246 | return resultobj; | |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
20252 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20253 | PyObject *resultobj; | |
20254 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20255 | wxRect *arg2 = 0 ; | |
20256 | wxRect temp2 ; | |
20257 | PyObject * obj0 = 0 ; | |
20258 | PyObject * obj1 = 0 ; | |
20259 | char *kwnames[] = { | |
20260 | (char *) "self",(char *) "rect", NULL | |
20261 | }; | |
20262 | ||
20263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
20264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20265 | { | |
20266 | arg2 = &temp2; | |
20267 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20268 | } | |
20269 | { | |
20270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20271 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
20272 | ||
20273 | wxPyEndAllowThreads(__tstate); | |
20274 | if (PyErr_Occurred()) SWIG_fail; | |
20275 | } | |
20276 | Py_INCREF(Py_None); resultobj = Py_None; | |
20277 | return resultobj; | |
20278 | fail: | |
20279 | return NULL; | |
20280 | } | |
20281 | ||
20282 | ||
20283 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20284 | PyObject *resultobj; | |
20285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20286 | wxPoint result; | |
20287 | PyObject * obj0 = 0 ; | |
20288 | char *kwnames[] = { | |
20289 | (char *) "self", NULL | |
20290 | }; | |
20291 | ||
20292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
20293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20296 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
20297 | |
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | { | |
20302 | wxPoint * resultptr; | |
20303 | resultptr = new wxPoint((wxPoint &) result); | |
20304 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20305 | } | |
20306 | return resultobj; | |
20307 | fail: | |
20308 | return NULL; | |
20309 | } | |
20310 | ||
20311 | ||
20312 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20313 | PyObject *resultobj; | |
20314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20315 | int *arg2 = (int *) 0 ; | |
20316 | int *arg3 = (int *) 0 ; | |
20317 | int temp2 ; | |
20318 | int temp3 ; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | char *kwnames[] = { | |
20321 | (char *) "self", NULL | |
20322 | }; | |
20323 | ||
20324 | arg2 = &temp2; | |
20325 | arg3 = &temp3; | |
20326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
20327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20328 | { | |
20329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20330 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
20331 | |
20332 | wxPyEndAllowThreads(__tstate); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
20335 | Py_INCREF(Py_None); resultobj = Py_None; | |
20336 | { | |
20337 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20338 | resultobj = t_output_helper(resultobj,o); | |
20339 | } | |
20340 | { | |
20341 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20342 | resultobj = t_output_helper(resultobj,o); | |
20343 | } | |
20344 | return resultobj; | |
20345 | fail: | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
20350 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20351 | PyObject *resultobj; | |
20352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20353 | wxSize result; | |
20354 | PyObject * obj0 = 0 ; | |
20355 | char *kwnames[] = { | |
20356 | (char *) "self", NULL | |
20357 | }; | |
20358 | ||
20359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
20360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20361 | { | |
20362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20363 | result = ((wxWindow const *)arg1)->GetSize(); | |
20364 | ||
20365 | wxPyEndAllowThreads(__tstate); | |
20366 | if (PyErr_Occurred()) SWIG_fail; | |
20367 | } | |
20368 | { | |
20369 | wxSize * resultptr; | |
20370 | resultptr = new wxSize((wxSize &) result); | |
20371 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20372 | } | |
20373 | return resultobj; | |
20374 | fail: | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
20379 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20380 | PyObject *resultobj; | |
20381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20382 | int *arg2 = (int *) 0 ; | |
20383 | int *arg3 = (int *) 0 ; | |
20384 | int temp2 ; | |
20385 | int temp3 ; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "self", NULL | |
20389 | }; | |
20390 | ||
20391 | arg2 = &temp2; | |
20392 | arg3 = &temp3; | |
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
20394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20395 | { | |
20396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20397 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
20398 | ||
20399 | wxPyEndAllowThreads(__tstate); | |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
20401 | } | |
20402 | Py_INCREF(Py_None); resultobj = Py_None; | |
20403 | { | |
20404 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20405 | resultobj = t_output_helper(resultobj,o); | |
20406 | } | |
20407 | { | |
20408 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20409 | resultobj = t_output_helper(resultobj,o); | |
20410 | } | |
20411 | return resultobj; | |
20412 | fail: | |
20413 | return NULL; | |
20414 | } | |
20415 | ||
20416 | ||
20417 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20418 | PyObject *resultobj; | |
20419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20420 | wxRect result; | |
20421 | PyObject * obj0 = 0 ; | |
20422 | char *kwnames[] = { | |
20423 | (char *) "self", NULL | |
20424 | }; | |
20425 | ||
20426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
20427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20428 | { | |
20429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20430 | result = ((wxWindow const *)arg1)->GetRect(); | |
20431 | ||
20432 | wxPyEndAllowThreads(__tstate); | |
20433 | if (PyErr_Occurred()) SWIG_fail; | |
20434 | } | |
20435 | { | |
20436 | wxRect * resultptr; | |
20437 | resultptr = new wxRect((wxRect &) result); | |
20438 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20439 | } | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
20446 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20447 | PyObject *resultobj; | |
20448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20449 | wxSize result; | |
20450 | PyObject * obj0 = 0 ; | |
20451 | char *kwnames[] = { | |
20452 | (char *) "self", NULL | |
20453 | }; | |
20454 | ||
20455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
20456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20457 | { | |
20458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20459 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
20460 | ||
20461 | wxPyEndAllowThreads(__tstate); | |
20462 | if (PyErr_Occurred()) SWIG_fail; | |
20463 | } | |
20464 | { | |
20465 | wxSize * resultptr; | |
20466 | resultptr = new wxSize((wxSize &) result); | |
20467 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20468 | } | |
20469 | return resultobj; | |
20470 | fail: | |
20471 | return NULL; | |
20472 | } | |
20473 | ||
20474 | ||
20475 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20476 | PyObject *resultobj; | |
20477 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20478 | int *arg2 = (int *) 0 ; | |
20479 | int *arg3 = (int *) 0 ; | |
20480 | int temp2 ; | |
20481 | int temp3 ; | |
20482 | PyObject * obj0 = 0 ; | |
20483 | char *kwnames[] = { | |
20484 | (char *) "self", NULL | |
20485 | }; | |
20486 | ||
20487 | arg2 = &temp2; | |
20488 | arg3 = &temp3; | |
20489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
20490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20491 | { | |
20492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20493 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
20494 | ||
20495 | wxPyEndAllowThreads(__tstate); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
20498 | Py_INCREF(Py_None); resultobj = Py_None; | |
20499 | { | |
20500 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20501 | resultobj = t_output_helper(resultobj,o); | |
20502 | } | |
20503 | { | |
20504 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20505 | resultobj = t_output_helper(resultobj,o); | |
20506 | } | |
20507 | return resultobj; | |
20508 | fail: | |
20509 | return NULL; | |
20510 | } | |
20511 | ||
20512 | ||
20513 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20514 | PyObject *resultobj; | |
20515 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20516 | wxPoint result; | |
20517 | PyObject * obj0 = 0 ; | |
20518 | char *kwnames[] = { | |
20519 | (char *) "self", NULL | |
20520 | }; | |
20521 | ||
20522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
20523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20524 | { | |
20525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20526 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
20527 | ||
20528 | wxPyEndAllowThreads(__tstate); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
20531 | { | |
20532 | wxPoint * resultptr; | |
20533 | resultptr = new wxPoint((wxPoint &) result); | |
20534 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20535 | } | |
20536 | return resultobj; | |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
20542 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20543 | PyObject *resultobj; | |
20544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20545 | wxRect result; | |
20546 | PyObject * obj0 = 0 ; | |
20547 | char *kwnames[] = { | |
20548 | (char *) "self", NULL | |
20549 | }; | |
20550 | ||
20551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
20552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20553 | { | |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
20556 | ||
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
20560 | { | |
20561 | wxRect * resultptr; | |
20562 | resultptr = new wxRect((wxRect &) result); | |
20563 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20564 | } | |
20565 | return resultobj; | |
20566 | fail: | |
20567 | return NULL; | |
20568 | } | |
20569 | ||
20570 | ||
20571 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20572 | PyObject *resultobj; | |
20573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20574 | wxSize result; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | char *kwnames[] = { | |
20577 | (char *) "self", NULL | |
20578 | }; | |
20579 | ||
20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
20581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20582 | { | |
20583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20584 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
20585 | ||
20586 | wxPyEndAllowThreads(__tstate); | |
20587 | if (PyErr_Occurred()) SWIG_fail; | |
20588 | } | |
20589 | { | |
20590 | wxSize * resultptr; | |
20591 | resultptr = new wxSize((wxSize &) result); | |
20592 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20593 | } | |
20594 | return resultobj; | |
20595 | fail: | |
20596 | return NULL; | |
20597 | } | |
20598 | ||
20599 | ||
20600 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20601 | PyObject *resultobj; | |
20602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20603 | int *arg2 = (int *) 0 ; | |
20604 | int *arg3 = (int *) 0 ; | |
20605 | int temp2 ; | |
20606 | int temp3 ; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self", NULL | |
20610 | }; | |
20611 | ||
20612 | arg2 = &temp2; | |
20613 | arg3 = &temp3; | |
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
20615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20616 | { | |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
20619 | ||
20620 | wxPyEndAllowThreads(__tstate); | |
20621 | if (PyErr_Occurred()) SWIG_fail; | |
20622 | } | |
20623 | Py_INCREF(Py_None); resultobj = Py_None; | |
20624 | { | |
20625 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20626 | resultobj = t_output_helper(resultobj,o); | |
20627 | } | |
20628 | { | |
20629 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20630 | resultobj = t_output_helper(resultobj,o); | |
20631 | } | |
20632 | return resultobj; | |
20633 | fail: | |
20634 | return NULL; | |
20635 | } | |
20636 | ||
20637 | ||
20638 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20639 | PyObject *resultobj; | |
20640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20641 | wxSize result; | |
20642 | PyObject * obj0 = 0 ; | |
20643 | char *kwnames[] = { | |
20644 | (char *) "self", NULL | |
20645 | }; | |
20646 | ||
20647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
20648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20649 | { | |
20650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20651 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
20652 | ||
20653 | wxPyEndAllowThreads(__tstate); | |
20654 | if (PyErr_Occurred()) SWIG_fail; | |
20655 | } | |
20656 | { | |
20657 | wxSize * resultptr; | |
20658 | resultptr = new wxSize((wxSize &) result); | |
20659 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20660 | } | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20670 | int arg2 = (int) wxBOTH ; | |
20671 | PyObject * obj0 = 0 ; | |
20672 | char *kwnames[] = { | |
20673 | (char *) "self",(char *) "direction", NULL | |
20674 | }; | |
20675 | ||
20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_Center",kwnames,&obj0,&arg2)) goto fail; | |
20677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20678 | { | |
20679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20680 | (arg1)->Center(arg2); | |
20681 | ||
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
20685 | Py_INCREF(Py_None); resultobj = Py_None; | |
20686 | return resultobj; | |
20687 | fail: | |
20688 | return NULL; | |
20689 | } | |
20690 | ||
20691 | ||
20692 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20693 | PyObject *resultobj; | |
20694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20695 | int arg2 = (int) wxBOTH ; | |
20696 | PyObject * obj0 = 0 ; | |
20697 | char *kwnames[] = { | |
20698 | (char *) "self",(char *) "dir", NULL | |
20699 | }; | |
20700 | ||
20701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnScreen",kwnames,&obj0,&arg2)) goto fail; | |
20702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | (arg1)->CenterOnScreen(arg2); | |
20706 | ||
20707 | wxPyEndAllowThreads(__tstate); | |
20708 | if (PyErr_Occurred()) SWIG_fail; | |
20709 | } | |
20710 | Py_INCREF(Py_None); resultobj = Py_None; | |
20711 | return resultobj; | |
20712 | fail: | |
20713 | return NULL; | |
20714 | } | |
20715 | ||
20716 | ||
20717 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20718 | PyObject *resultobj; | |
20719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20720 | int arg2 = (int) wxBOTH ; | |
20721 | PyObject * obj0 = 0 ; | |
20722 | char *kwnames[] = { | |
20723 | (char *) "self",(char *) "dir", NULL | |
20724 | }; | |
20725 | ||
20726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnParent",kwnames,&obj0,&arg2)) goto fail; | |
20727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | (arg1)->CenterOnParent(arg2); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
20735 | Py_INCREF(Py_None); resultobj = Py_None; | |
20736 | return resultobj; | |
20737 | fail: | |
20738 | return NULL; | |
20739 | } | |
20740 | ||
20741 | ||
20742 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20743 | PyObject *resultobj; | |
20744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20745 | PyObject * obj0 = 0 ; | |
20746 | char *kwnames[] = { | |
20747 | (char *) "self", NULL | |
20748 | }; | |
20749 | ||
20750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
20751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20752 | { | |
20753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20754 | (arg1)->Fit(); | |
20755 | ||
20756 | wxPyEndAllowThreads(__tstate); | |
20757 | if (PyErr_Occurred()) SWIG_fail; | |
20758 | } | |
20759 | Py_INCREF(Py_None); resultobj = Py_None; | |
20760 | return resultobj; | |
20761 | fail: | |
20762 | return NULL; | |
20763 | } | |
20764 | ||
20765 | ||
20766 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20767 | PyObject *resultobj; | |
20768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20769 | PyObject * obj0 = 0 ; | |
20770 | char *kwnames[] = { | |
20771 | (char *) "self", NULL | |
20772 | }; | |
20773 | ||
20774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
20775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20776 | { | |
20777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20778 | (arg1)->FitInside(); | |
20779 | ||
20780 | wxPyEndAllowThreads(__tstate); | |
20781 | if (PyErr_Occurred()) SWIG_fail; | |
20782 | } | |
20783 | Py_INCREF(Py_None); resultobj = Py_None; | |
20784 | return resultobj; | |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
20790 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20791 | PyObject *resultobj; | |
20792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20793 | int arg2 ; | |
20794 | int arg3 ; | |
20795 | int arg4 = (int) -1 ; | |
20796 | int arg5 = (int) -1 ; | |
20797 | int arg6 = (int) -1 ; | |
20798 | int arg7 = (int) -1 ; | |
20799 | PyObject * obj0 = 0 ; | |
20800 | char *kwnames[] = { | |
20801 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
20802 | }; | |
20803 | ||
20804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiii:Window_SetSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
20805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20806 | { | |
20807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20808 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
20809 | ||
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | Py_INCREF(Py_None); resultobj = Py_None; | |
20814 | return resultobj; | |
20815 | fail: | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
20820 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20821 | PyObject *resultobj; | |
20822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20823 | int arg2 ; | |
20824 | int arg3 ; | |
20825 | int arg4 = (int) -1 ; | |
20826 | int arg5 = (int) -1 ; | |
20827 | PyObject * obj0 = 0 ; | |
20828 | char *kwnames[] = { | |
20829 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
20830 | }; | |
20831 | ||
20832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_SetVirtualSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
20833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20834 | { | |
20835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20836 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
20837 | ||
20838 | wxPyEndAllowThreads(__tstate); | |
20839 | if (PyErr_Occurred()) SWIG_fail; | |
20840 | } | |
20841 | Py_INCREF(Py_None); resultobj = Py_None; | |
20842 | return resultobj; | |
20843 | fail: | |
20844 | return NULL; | |
20845 | } | |
20846 | ||
20847 | ||
20848 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20849 | PyObject *resultobj; | |
20850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20851 | int result; | |
20852 | PyObject * obj0 = 0 ; | |
20853 | char *kwnames[] = { | |
20854 | (char *) "self", NULL | |
20855 | }; | |
20856 | ||
20857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
20858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20859 | { | |
20860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20861 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
20862 | ||
20863 | wxPyEndAllowThreads(__tstate); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
20865 | } | |
20866 | resultobj = PyInt_FromLong((long)result); | |
20867 | return resultobj; | |
20868 | fail: | |
20869 | return NULL; | |
20870 | } | |
20871 | ||
20872 | ||
20873 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20874 | PyObject *resultobj; | |
20875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20876 | int result; | |
20877 | PyObject * obj0 = 0 ; | |
20878 | char *kwnames[] = { | |
20879 | (char *) "self", NULL | |
20880 | }; | |
20881 | ||
20882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
20883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20884 | { | |
20885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20886 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
20887 | ||
20888 | wxPyEndAllowThreads(__tstate); | |
20889 | if (PyErr_Occurred()) SWIG_fail; | |
20890 | } | |
20891 | resultobj = PyInt_FromLong((long)result); | |
20892 | return resultobj; | |
20893 | fail: | |
20894 | return NULL; | |
20895 | } | |
20896 | ||
20897 | ||
20898 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20899 | PyObject *resultobj; | |
20900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20901 | int result; | |
20902 | PyObject * obj0 = 0 ; | |
20903 | char *kwnames[] = { | |
20904 | (char *) "self", NULL | |
20905 | }; | |
20906 | ||
20907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
20908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20909 | { | |
20910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20911 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
20912 | ||
20913 | wxPyEndAllowThreads(__tstate); | |
20914 | if (PyErr_Occurred()) SWIG_fail; | |
20915 | } | |
20916 | resultobj = PyInt_FromLong((long)result); | |
20917 | return resultobj; | |
20918 | fail: | |
20919 | return NULL; | |
20920 | } | |
20921 | ||
20922 | ||
20923 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20924 | PyObject *resultobj; | |
20925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20926 | int result; | |
20927 | PyObject * obj0 = 0 ; | |
20928 | char *kwnames[] = { | |
20929 | (char *) "self", NULL | |
20930 | }; | |
20931 | ||
20932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
20933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20934 | { | |
20935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20936 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
20937 | ||
20938 | wxPyEndAllowThreads(__tstate); | |
20939 | if (PyErr_Occurred()) SWIG_fail; | |
20940 | } | |
20941 | resultobj = PyInt_FromLong((long)result); | |
20942 | return resultobj; | |
20943 | fail: | |
20944 | return NULL; | |
20945 | } | |
20946 | ||
20947 | ||
20948 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20949 | PyObject *resultobj; | |
20950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20951 | wxSize result; | |
20952 | PyObject * obj0 = 0 ; | |
20953 | char *kwnames[] = { | |
20954 | (char *) "self", NULL | |
20955 | }; | |
20956 | ||
20957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
20958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20959 | { | |
20960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20961 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
20962 | ||
20963 | wxPyEndAllowThreads(__tstate); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | { | |
20967 | wxSize * resultptr; | |
20968 | resultptr = new wxSize((wxSize &) result); | |
20969 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20970 | } | |
20971 | return resultobj; | |
20972 | fail: | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
20977 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20978 | PyObject *resultobj; | |
20979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20980 | wxSize *arg2 = 0 ; | |
20981 | wxSize temp2 ; | |
20982 | PyObject * obj0 = 0 ; | |
20983 | PyObject * obj1 = 0 ; | |
20984 | char *kwnames[] = { | |
20985 | (char *) "self",(char *) "size", NULL | |
20986 | }; | |
20987 | ||
20988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
20989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20990 | { | |
20991 | arg2 = &temp2; | |
20992 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20993 | } | |
20994 | { | |
20995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20996 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
20997 | ||
20998 | wxPyEndAllowThreads(__tstate); | |
20999 | if (PyErr_Occurred()) SWIG_fail; | |
21000 | } | |
21001 | Py_INCREF(Py_None); resultobj = Py_None; | |
21002 | return resultobj; | |
21003 | fail: | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21009 | PyObject *resultobj; | |
21010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21011 | int arg2 ; | |
21012 | int arg3 ; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | char *kwnames[] = { | |
21015 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21016 | }; | |
21017 | ||
21018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetVirtualSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
21019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21020 | { | |
21021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21022 | (arg1)->SetVirtualSize(arg2,arg3); | |
21023 | ||
21024 | wxPyEndAllowThreads(__tstate); | |
21025 | if (PyErr_Occurred()) SWIG_fail; | |
21026 | } | |
21027 | Py_INCREF(Py_None); resultobj = Py_None; | |
21028 | return resultobj; | |
21029 | fail: | |
21030 | return NULL; | |
21031 | } | |
21032 | ||
21033 | ||
21034 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21035 | PyObject *resultobj; | |
21036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21037 | wxSize result; | |
21038 | PyObject * obj0 = 0 ; | |
21039 | char *kwnames[] = { | |
21040 | (char *) "self", NULL | |
21041 | }; | |
21042 | ||
21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
21044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21045 | { | |
21046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21047 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
21048 | ||
21049 | wxPyEndAllowThreads(__tstate); | |
21050 | if (PyErr_Occurred()) SWIG_fail; | |
21051 | } | |
21052 | { | |
21053 | wxSize * resultptr; | |
21054 | resultptr = new wxSize((wxSize &) result); | |
21055 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21056 | } | |
21057 | return resultobj; | |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
21063 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21064 | PyObject *resultobj; | |
21065 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21066 | int *arg2 = (int *) 0 ; | |
21067 | int *arg3 = (int *) 0 ; | |
21068 | int temp2 ; | |
21069 | int temp3 ; | |
21070 | PyObject * obj0 = 0 ; | |
21071 | char *kwnames[] = { | |
21072 | (char *) "self", NULL | |
21073 | }; | |
21074 | ||
21075 | arg2 = &temp2; | |
21076 | arg3 = &temp3; | |
21077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
21078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21079 | { | |
21080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21081 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
21082 | ||
21083 | wxPyEndAllowThreads(__tstate); | |
21084 | if (PyErr_Occurred()) SWIG_fail; | |
21085 | } | |
21086 | Py_INCREF(Py_None); resultobj = Py_None; | |
21087 | { | |
21088 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21089 | resultobj = t_output_helper(resultobj,o); | |
21090 | } | |
21091 | { | |
21092 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21093 | resultobj = t_output_helper(resultobj,o); | |
21094 | } | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
21101 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21102 | PyObject *resultobj; | |
21103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21104 | wxSize result; | |
21105 | PyObject * obj0 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "self", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
21111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21112 | { | |
21113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21114 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
21115 | ||
21116 | wxPyEndAllowThreads(__tstate); | |
21117 | if (PyErr_Occurred()) SWIG_fail; | |
21118 | } | |
21119 | { | |
21120 | wxSize * resultptr; | |
21121 | resultptr = new wxSize((wxSize &) result); | |
21122 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21123 | } | |
21124 | return resultobj; | |
21125 | fail: | |
21126 | return NULL; | |
21127 | } | |
21128 | ||
21129 | ||
21130 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21131 | PyObject *resultobj; | |
21132 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21133 | bool arg2 = (bool) True ; |
d14a1e28 RD |
21134 | bool result; |
21135 | PyObject * obj0 = 0 ; | |
21136 | PyObject * obj1 = 0 ; | |
21137 | char *kwnames[] = { | |
21138 | (char *) "self",(char *) "show", NULL | |
21139 | }; | |
21140 | ||
21141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
21142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21143 | if (obj1) { | |
a41e16b6 RD |
21144 | { |
21145 | arg2 = (bool) SPyObj_AsBool(obj1); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
d14a1e28 RD |
21148 | } |
21149 | { | |
21150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21151 | result = (bool)(arg1)->Show(arg2); | |
21152 | ||
21153 | wxPyEndAllowThreads(__tstate); | |
21154 | if (PyErr_Occurred()) SWIG_fail; | |
21155 | } | |
21156 | resultobj = PyInt_FromLong((long)result); | |
21157 | return resultobj; | |
21158 | fail: | |
21159 | return NULL; | |
21160 | } | |
21161 | ||
21162 | ||
21163 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21164 | PyObject *resultobj; | |
21165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21166 | bool result; | |
21167 | PyObject * obj0 = 0 ; | |
21168 | char *kwnames[] = { | |
21169 | (char *) "self", NULL | |
21170 | }; | |
21171 | ||
21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
21173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21174 | { | |
21175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21176 | result = (bool)(arg1)->Hide(); | |
21177 | ||
21178 | wxPyEndAllowThreads(__tstate); | |
21179 | if (PyErr_Occurred()) SWIG_fail; | |
21180 | } | |
21181 | resultobj = PyInt_FromLong((long)result); | |
21182 | return resultobj; | |
21183 | fail: | |
21184 | return NULL; | |
21185 | } | |
21186 | ||
21187 | ||
21188 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21189 | PyObject *resultobj; | |
21190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21191 | bool arg2 = (bool) True ; |
d14a1e28 RD |
21192 | bool result; |
21193 | PyObject * obj0 = 0 ; | |
21194 | PyObject * obj1 = 0 ; | |
21195 | char *kwnames[] = { | |
21196 | (char *) "self",(char *) "enable", NULL | |
21197 | }; | |
21198 | ||
21199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
21200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21201 | if (obj1) { | |
a41e16b6 RD |
21202 | { |
21203 | arg2 = (bool) SPyObj_AsBool(obj1); | |
21204 | if (PyErr_Occurred()) SWIG_fail; | |
21205 | } | |
d14a1e28 RD |
21206 | } |
21207 | { | |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21209 | result = (bool)(arg1)->Enable(arg2); | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
21212 | if (PyErr_Occurred()) SWIG_fail; | |
21213 | } | |
21214 | resultobj = PyInt_FromLong((long)result); | |
21215 | return resultobj; | |
21216 | fail: | |
21217 | return NULL; | |
21218 | } | |
21219 | ||
21220 | ||
21221 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21222 | PyObject *resultobj; | |
21223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21224 | bool result; | |
21225 | PyObject * obj0 = 0 ; | |
21226 | char *kwnames[] = { | |
21227 | (char *) "self", NULL | |
21228 | }; | |
21229 | ||
21230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
21231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | result = (bool)(arg1)->Disable(); | |
21235 | ||
21236 | wxPyEndAllowThreads(__tstate); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | resultobj = PyInt_FromLong((long)result); | |
21240 | return resultobj; | |
21241 | fail: | |
21242 | return NULL; | |
21243 | } | |
21244 | ||
21245 | ||
21246 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21247 | PyObject *resultobj; | |
21248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21249 | bool result; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | char *kwnames[] = { | |
21252 | (char *) "self", NULL | |
21253 | }; | |
21254 | ||
21255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
21256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21257 | { | |
21258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21259 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
21260 | ||
21261 | wxPyEndAllowThreads(__tstate); | |
21262 | if (PyErr_Occurred()) SWIG_fail; | |
21263 | } | |
21264 | resultobj = PyInt_FromLong((long)result); | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21274 | bool result; | |
21275 | PyObject * obj0 = 0 ; | |
21276 | char *kwnames[] = { | |
21277 | (char *) "self", NULL | |
21278 | }; | |
21279 | ||
21280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
21281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21282 | { | |
21283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21284 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
21285 | ||
21286 | wxPyEndAllowThreads(__tstate); | |
21287 | if (PyErr_Occurred()) SWIG_fail; | |
21288 | } | |
21289 | resultobj = PyInt_FromLong((long)result); | |
21290 | return resultobj; | |
21291 | fail: | |
21292 | return NULL; | |
21293 | } | |
21294 | ||
21295 | ||
21296 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21297 | PyObject *resultobj; | |
21298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21299 | long arg2 ; | |
21300 | PyObject * obj0 = 0 ; | |
21301 | char *kwnames[] = { | |
21302 | (char *) "self",(char *) "style", NULL | |
21303 | }; | |
21304 | ||
21305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
21306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | (arg1)->SetWindowStyleFlag(arg2); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | Py_INCREF(Py_None); resultobj = Py_None; | |
21315 | return resultobj; | |
21316 | fail: | |
21317 | return NULL; | |
21318 | } | |
21319 | ||
21320 | ||
21321 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21322 | PyObject *resultobj; | |
21323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21324 | long result; | |
21325 | PyObject * obj0 = 0 ; | |
21326 | char *kwnames[] = { | |
21327 | (char *) "self", NULL | |
21328 | }; | |
21329 | ||
21330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
21331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21332 | { | |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | resultobj = PyInt_FromLong((long)result); | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj; | |
21348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21349 | long arg2 ; | |
21350 | PyObject * obj0 = 0 ; | |
21351 | char *kwnames[] = { | |
21352 | (char *) "self",(char *) "style", NULL | |
21353 | }; | |
21354 | ||
21355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyle",kwnames,&obj0,&arg2)) goto fail; | |
21356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21357 | { | |
21358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21359 | (arg1)->SetWindowStyle(arg2); | |
21360 | ||
21361 | wxPyEndAllowThreads(__tstate); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | } | |
21364 | Py_INCREF(Py_None); resultobj = Py_None; | |
21365 | return resultobj; | |
21366 | fail: | |
21367 | return NULL; | |
21368 | } | |
21369 | ||
21370 | ||
21371 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21372 | PyObject *resultobj; | |
21373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21374 | long result; | |
21375 | PyObject * obj0 = 0 ; | |
21376 | char *kwnames[] = { | |
21377 | (char *) "self", NULL | |
21378 | }; | |
21379 | ||
21380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
21381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21382 | { | |
21383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21384 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
21385 | ||
21386 | wxPyEndAllowThreads(__tstate); | |
21387 | if (PyErr_Occurred()) SWIG_fail; | |
21388 | } | |
21389 | resultobj = PyInt_FromLong((long)result); | |
21390 | return resultobj; | |
21391 | fail: | |
21392 | return NULL; | |
21393 | } | |
21394 | ||
21395 | ||
21396 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21397 | PyObject *resultobj; | |
21398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21399 | int arg2 ; | |
21400 | bool result; | |
21401 | PyObject * obj0 = 0 ; | |
21402 | char *kwnames[] = { | |
21403 | (char *) "self",(char *) "flag", NULL | |
21404 | }; | |
21405 | ||
21406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
21407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21408 | { | |
21409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21410 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
21411 | ||
21412 | wxPyEndAllowThreads(__tstate); | |
21413 | if (PyErr_Occurred()) SWIG_fail; | |
21414 | } | |
21415 | resultobj = PyInt_FromLong((long)result); | |
21416 | return resultobj; | |
21417 | fail: | |
21418 | return NULL; | |
21419 | } | |
21420 | ||
21421 | ||
21422 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21423 | PyObject *resultobj; | |
21424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21425 | bool result; | |
21426 | PyObject * obj0 = 0 ; | |
21427 | char *kwnames[] = { | |
21428 | (char *) "self", NULL | |
21429 | }; | |
21430 | ||
21431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
21432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21433 | { | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
21440 | resultobj = PyInt_FromLong((long)result); | |
21441 | return resultobj; | |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
21447 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21448 | PyObject *resultobj; | |
21449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21450 | long arg2 ; | |
21451 | PyObject * obj0 = 0 ; | |
21452 | char *kwnames[] = { | |
21453 | (char *) "self",(char *) "exStyle", NULL | |
21454 | }; | |
21455 | ||
21456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetExtraStyle",kwnames,&obj0,&arg2)) goto fail; | |
21457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21458 | { | |
21459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21460 | (arg1)->SetExtraStyle(arg2); | |
21461 | ||
21462 | wxPyEndAllowThreads(__tstate); | |
21463 | if (PyErr_Occurred()) SWIG_fail; | |
21464 | } | |
21465 | Py_INCREF(Py_None); resultobj = Py_None; | |
21466 | return resultobj; | |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21475 | long result; | |
21476 | PyObject * obj0 = 0 ; | |
21477 | char *kwnames[] = { | |
21478 | (char *) "self", NULL | |
21479 | }; | |
21480 | ||
21481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
21482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21483 | { | |
21484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21485 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
21486 | ||
21487 | wxPyEndAllowThreads(__tstate); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | } | |
21490 | resultobj = PyInt_FromLong((long)result); | |
21491 | return resultobj; | |
21492 | fail: | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
21497 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21498 | PyObject *resultobj; | |
21499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21500 | bool arg2 = (bool) True ; |
d14a1e28 RD |
21501 | PyObject * obj0 = 0 ; |
21502 | PyObject * obj1 = 0 ; | |
21503 | char *kwnames[] = { | |
21504 | (char *) "self",(char *) "modal", NULL | |
21505 | }; | |
21506 | ||
21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
21508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21509 | if (obj1) { | |
a41e16b6 RD |
21510 | { |
21511 | arg2 = (bool) SPyObj_AsBool(obj1); | |
21512 | if (PyErr_Occurred()) SWIG_fail; | |
21513 | } | |
d14a1e28 RD |
21514 | } |
21515 | { | |
21516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21517 | (arg1)->MakeModal(arg2); | |
21518 | ||
21519 | wxPyEndAllowThreads(__tstate); | |
21520 | if (PyErr_Occurred()) SWIG_fail; | |
21521 | } | |
21522 | Py_INCREF(Py_None); resultobj = Py_None; | |
21523 | return resultobj; | |
21524 | fail: | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
21529 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21530 | PyObject *resultobj; | |
21531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21532 | bool arg2 ; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | PyObject * obj1 = 0 ; | |
21535 | char *kwnames[] = { | |
21536 | (char *) "self",(char *) "enableTheme", NULL | |
21537 | }; | |
21538 | ||
21539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
21540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
21541 | { |
21542 | arg2 = (bool) SPyObj_AsBool(obj1); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
d14a1e28 RD |
21545 | { |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | (arg1)->SetThemeEnabled(arg2); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
21552 | Py_INCREF(Py_None); resultobj = Py_None; | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | return NULL; | |
21556 | } | |
21557 | ||
21558 | ||
21559 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21560 | PyObject *resultobj; | |
21561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21562 | bool result; | |
21563 | PyObject * obj0 = 0 ; | |
21564 | char *kwnames[] = { | |
21565 | (char *) "self", NULL | |
21566 | }; | |
21567 | ||
21568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
21569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21570 | { | |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21572 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
21573 | ||
21574 | wxPyEndAllowThreads(__tstate); | |
21575 | if (PyErr_Occurred()) SWIG_fail; | |
21576 | } | |
21577 | resultobj = PyInt_FromLong((long)result); | |
21578 | return resultobj; | |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
21584 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21585 | PyObject *resultobj; | |
21586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21587 | bool result; | |
21588 | PyObject * obj0 = 0 ; | |
21589 | char *kwnames[] = { | |
21590 | (char *) "self", NULL | |
21591 | }; | |
21592 | ||
21593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
21594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21595 | { | |
21596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21597 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
21598 | ||
21599 | wxPyEndAllowThreads(__tstate); | |
21600 | if (PyErr_Occurred()) SWIG_fail; | |
21601 | } | |
21602 | resultobj = PyInt_FromLong((long)result); | |
21603 | return resultobj; | |
21604 | fail: | |
21605 | return NULL; | |
21606 | } | |
21607 | ||
21608 | ||
21609 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21610 | PyObject *resultobj; | |
21611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21612 | PyObject * obj0 = 0 ; | |
21613 | char *kwnames[] = { | |
21614 | (char *) "self", NULL | |
21615 | }; | |
21616 | ||
21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
21618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21619 | { | |
21620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21621 | (arg1)->SetFocus(); | |
21622 | ||
21623 | wxPyEndAllowThreads(__tstate); | |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
21625 | } | |
21626 | Py_INCREF(Py_None); resultobj = Py_None; | |
21627 | return resultobj; | |
21628 | fail: | |
21629 | return NULL; | |
21630 | } | |
21631 | ||
21632 | ||
21633 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21634 | PyObject *resultobj; | |
21635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21636 | PyObject * obj0 = 0 ; | |
21637 | char *kwnames[] = { | |
21638 | (char *) "self", NULL | |
21639 | }; | |
21640 | ||
21641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
21642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21643 | { | |
21644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21645 | (arg1)->SetFocusFromKbd(); | |
21646 | ||
21647 | wxPyEndAllowThreads(__tstate); | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | Py_INCREF(Py_None); resultobj = Py_None; | |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj; | |
21659 | wxWindow *result; | |
21660 | char *kwnames[] = { | |
21661 | NULL | |
21662 | }; | |
21663 | ||
21664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
21665 | { | |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | result = (wxWindow *)wxWindow::FindFocus(); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
21672 | { | |
21673 | resultobj = wxPyMake_wxObject(result); | |
21674 | } | |
21675 | return resultobj; | |
21676 | fail: | |
21677 | return NULL; | |
21678 | } | |
21679 | ||
21680 | ||
21681 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21682 | PyObject *resultobj; | |
21683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21684 | bool result; | |
21685 | PyObject * obj0 = 0 ; | |
21686 | char *kwnames[] = { | |
21687 | (char *) "self", NULL | |
21688 | }; | |
21689 | ||
21690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
21691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21692 | { | |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
21699 | resultobj = PyInt_FromLong((long)result); | |
21700 | return resultobj; | |
21701 | fail: | |
21702 | return NULL; | |
21703 | } | |
21704 | ||
21705 | ||
21706 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21707 | PyObject *resultobj; | |
21708 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21709 | bool result; | |
21710 | PyObject * obj0 = 0 ; | |
21711 | char *kwnames[] = { | |
21712 | (char *) "self", NULL | |
21713 | }; | |
21714 | ||
21715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
21716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21717 | { | |
21718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21719 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
21720 | ||
21721 | wxPyEndAllowThreads(__tstate); | |
21722 | if (PyErr_Occurred()) SWIG_fail; | |
21723 | } | |
21724 | resultobj = PyInt_FromLong((long)result); | |
21725 | return resultobj; | |
21726 | fail: | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
21731 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21732 | PyObject *resultobj; | |
21733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21734 | wxWindow *result; | |
21735 | PyObject * obj0 = 0 ; | |
21736 | char *kwnames[] = { | |
21737 | (char *) "self", NULL | |
21738 | }; | |
21739 | ||
21740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
21741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | { | |
21750 | resultobj = wxPyMake_wxObject(result); | |
21751 | } | |
21752 | return resultobj; | |
21753 | fail: | |
21754 | return NULL; | |
21755 | } | |
21756 | ||
21757 | ||
21758 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21759 | PyObject *resultobj; | |
21760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21761 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21762 | wxWindow *result; | |
21763 | PyObject * obj0 = 0 ; | |
21764 | PyObject * obj1 = 0 ; | |
21765 | char *kwnames[] = { | |
21766 | (char *) "self",(char *) "child", NULL | |
21767 | }; | |
21768 | ||
21769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21771 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21772 | { | |
21773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21774 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
21775 | ||
21776 | wxPyEndAllowThreads(__tstate); | |
21777 | if (PyErr_Occurred()) SWIG_fail; | |
21778 | } | |
21779 | { | |
21780 | resultobj = wxPyMake_wxObject(result); | |
21781 | } | |
21782 | return resultobj; | |
21783 | fail: | |
21784 | return NULL; | |
21785 | } | |
21786 | ||
21787 | ||
21788 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21789 | PyObject *resultobj; | |
21790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21791 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21792 | PyObject * obj0 = 0 ; | |
21793 | PyObject * obj1 = 0 ; | |
21794 | char *kwnames[] = { | |
21795 | (char *) "self",(char *) "win", NULL | |
21796 | }; | |
21797 | ||
21798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21800 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21801 | { | |
21802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21803 | (arg1)->SetTmpDefaultItem(arg2); | |
21804 | ||
21805 | wxPyEndAllowThreads(__tstate); | |
21806 | if (PyErr_Occurred()) SWIG_fail; | |
21807 | } | |
21808 | Py_INCREF(Py_None); resultobj = Py_None; | |
21809 | return resultobj; | |
21810 | fail: | |
21811 | return NULL; | |
21812 | } | |
21813 | ||
21814 | ||
21815 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21816 | PyObject *resultobj; | |
21817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21818 | PyObject *result; | |
21819 | PyObject * obj0 = 0 ; | |
21820 | char *kwnames[] = { | |
21821 | (char *) "self", NULL | |
21822 | }; | |
21823 | ||
21824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
21825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21826 | { | |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | resultobj = result; | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21843 | wxWindow *result; | |
21844 | PyObject * obj0 = 0 ; | |
21845 | char *kwnames[] = { | |
21846 | (char *) "self", NULL | |
21847 | }; | |
21848 | ||
21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
21850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21851 | { | |
21852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21853 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
21854 | ||
21855 | wxPyEndAllowThreads(__tstate); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | } | |
21858 | { | |
21859 | resultobj = wxPyMake_wxObject(result); | |
21860 | } | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
21867 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21868 | PyObject *resultobj; | |
21869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21870 | wxWindow *result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | char *kwnames[] = { | |
21873 | (char *) "self", NULL | |
21874 | }; | |
21875 | ||
21876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
21877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21878 | { | |
21879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21880 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
21881 | ||
21882 | wxPyEndAllowThreads(__tstate); | |
21883 | if (PyErr_Occurred()) SWIG_fail; | |
21884 | } | |
21885 | { | |
21886 | resultobj = wxPyMake_wxObject(result); | |
21887 | } | |
21888 | return resultobj; | |
21889 | fail: | |
21890 | return NULL; | |
21891 | } | |
21892 | ||
21893 | ||
21894 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21895 | PyObject *resultobj; | |
21896 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21897 | bool result; | |
21898 | PyObject * obj0 = 0 ; | |
21899 | char *kwnames[] = { | |
21900 | (char *) "self", NULL | |
21901 | }; | |
21902 | ||
21903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
21904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21905 | { | |
21906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21907 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
21908 | ||
21909 | wxPyEndAllowThreads(__tstate); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
21911 | } | |
21912 | resultobj = PyInt_FromLong((long)result); | |
21913 | return resultobj; | |
21914 | fail: | |
21915 | return NULL; | |
21916 | } | |
21917 | ||
21918 | ||
21919 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21920 | PyObject *resultobj; | |
21921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21922 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21923 | bool result; | |
21924 | PyObject * obj0 = 0 ; | |
21925 | PyObject * obj1 = 0 ; | |
21926 | char *kwnames[] = { | |
21927 | (char *) "self",(char *) "newParent", NULL | |
21928 | }; | |
21929 | ||
21930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
21931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21933 | { | |
21934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21935 | result = (bool)(arg1)->Reparent(arg2); | |
21936 | ||
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | resultobj = PyInt_FromLong((long)result); | |
21941 | return resultobj; | |
21942 | fail: | |
21943 | return NULL; | |
21944 | } | |
21945 | ||
21946 | ||
21947 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21948 | PyObject *resultobj; | |
21949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21951 | PyObject * obj0 = 0 ; | |
21952 | PyObject * obj1 = 0 ; | |
21953 | char *kwnames[] = { | |
21954 | (char *) "self",(char *) "child", NULL | |
21955 | }; | |
21956 | ||
21957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
21958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21959 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21960 | { | |
21961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21962 | (arg1)->AddChild(arg2); | |
21963 | ||
21964 | wxPyEndAllowThreads(__tstate); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
21966 | } | |
21967 | Py_INCREF(Py_None); resultobj = Py_None; | |
21968 | return resultobj; | |
21969 | fail: | |
21970 | return NULL; | |
21971 | } | |
21972 | ||
21973 | ||
21974 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21975 | PyObject *resultobj; | |
21976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21977 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21978 | PyObject * obj0 = 0 ; | |
21979 | PyObject * obj1 = 0 ; | |
21980 | char *kwnames[] = { | |
21981 | (char *) "self",(char *) "child", NULL | |
21982 | }; | |
21983 | ||
21984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
21985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21987 | { | |
21988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21989 | (arg1)->RemoveChild(arg2); | |
21990 | ||
21991 | wxPyEndAllowThreads(__tstate); | |
21992 | if (PyErr_Occurred()) SWIG_fail; | |
21993 | } | |
21994 | Py_INCREF(Py_None); resultobj = Py_None; | |
21995 | return resultobj; | |
21996 | fail: | |
21997 | return NULL; | |
21998 | } | |
21999 | ||
22000 | ||
22001 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22002 | PyObject *resultobj; | |
22003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22004 | long arg2 ; | |
22005 | wxWindow *result; | |
22006 | PyObject * obj0 = 0 ; | |
22007 | char *kwnames[] = { | |
22008 | (char *) "self",(char *) "winid", NULL | |
22009 | }; | |
22010 | ||
22011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_FindWindowById",kwnames,&obj0,&arg2)) goto fail; | |
22012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22013 | { | |
22014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22015 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
22016 | ||
22017 | wxPyEndAllowThreads(__tstate); | |
22018 | if (PyErr_Occurred()) SWIG_fail; | |
22019 | } | |
22020 | { | |
22021 | resultobj = wxPyMake_wxObject(result); | |
22022 | } | |
22023 | return resultobj; | |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
22029 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22030 | PyObject *resultobj; | |
22031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22032 | wxString *arg2 = 0 ; | |
22033 | wxWindow *result; | |
e811c8ce | 22034 | bool temp2 = False ; |
d14a1e28 RD |
22035 | PyObject * obj0 = 0 ; |
22036 | PyObject * obj1 = 0 ; | |
22037 | char *kwnames[] = { | |
22038 | (char *) "self",(char *) "name", NULL | |
22039 | }; | |
22040 | ||
22041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
22042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22043 | { | |
22044 | arg2 = wxString_in_helper(obj1); | |
22045 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22046 | temp2 = True; |
d14a1e28 RD |
22047 | } |
22048 | { | |
22049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22050 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
22051 | ||
22052 | wxPyEndAllowThreads(__tstate); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
22055 | { | |
22056 | resultobj = wxPyMake_wxObject(result); | |
22057 | } | |
22058 | { | |
22059 | if (temp2) | |
22060 | delete arg2; | |
22061 | } | |
22062 | return resultobj; | |
22063 | fail: | |
22064 | { | |
22065 | if (temp2) | |
22066 | delete arg2; | |
22067 | } | |
22068 | return NULL; | |
22069 | } | |
22070 | ||
22071 | ||
22072 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22073 | PyObject *resultobj; | |
22074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22075 | wxEvtHandler *result; | |
22076 | PyObject * obj0 = 0 ; | |
22077 | char *kwnames[] = { | |
22078 | (char *) "self", NULL | |
22079 | }; | |
22080 | ||
22081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
22082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | { | |
22091 | resultobj = wxPyMake_wxObject(result); | |
22092 | } | |
22093 | return resultobj; | |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
22099 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22100 | PyObject *resultobj; | |
22101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22102 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
22103 | PyObject * obj0 = 0 ; | |
22104 | PyObject * obj1 = 0 ; | |
22105 | char *kwnames[] = { | |
22106 | (char *) "self",(char *) "handler", NULL | |
22107 | }; | |
22108 | ||
22109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
22110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22111 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22112 | { | |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | (arg1)->SetEventHandler(arg2); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | Py_INCREF(Py_None); resultobj = Py_None; | |
22120 | return resultobj; | |
22121 | fail: | |
22122 | return NULL; | |
22123 | } | |
22124 | ||
22125 | ||
22126 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22127 | PyObject *resultobj; | |
22128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22129 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
22130 | PyObject * obj0 = 0 ; | |
22131 | PyObject * obj1 = 0 ; | |
22132 | char *kwnames[] = { | |
22133 | (char *) "self",(char *) "handler", NULL | |
22134 | }; | |
22135 | ||
22136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
22137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22138 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22139 | { | |
22140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22141 | (arg1)->PushEventHandler(arg2); | |
22142 | ||
22143 | wxPyEndAllowThreads(__tstate); | |
22144 | if (PyErr_Occurred()) SWIG_fail; | |
22145 | } | |
22146 | Py_INCREF(Py_None); resultobj = Py_None; | |
22147 | return resultobj; | |
22148 | fail: | |
22149 | return NULL; | |
22150 | } | |
22151 | ||
22152 | ||
22153 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22154 | PyObject *resultobj; | |
22155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22156 | bool arg2 = (bool) False ; |
d14a1e28 RD |
22157 | wxEvtHandler *result; |
22158 | PyObject * obj0 = 0 ; | |
22159 | PyObject * obj1 = 0 ; | |
22160 | char *kwnames[] = { | |
22161 | (char *) "self",(char *) "deleteHandler", NULL | |
22162 | }; | |
22163 | ||
22164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
22165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22166 | if (obj1) { | |
a41e16b6 RD |
22167 | { |
22168 | arg2 = (bool) SPyObj_AsBool(obj1); | |
22169 | if (PyErr_Occurred()) SWIG_fail; | |
22170 | } | |
d14a1e28 RD |
22171 | } |
22172 | { | |
22173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22174 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
22175 | ||
22176 | wxPyEndAllowThreads(__tstate); | |
22177 | if (PyErr_Occurred()) SWIG_fail; | |
22178 | } | |
22179 | { | |
22180 | resultobj = wxPyMake_wxObject(result); | |
22181 | } | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | return NULL; | |
22185 | } | |
22186 | ||
22187 | ||
22188 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22189 | PyObject *resultobj; | |
22190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22191 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
22192 | bool result; | |
22193 | PyObject * obj0 = 0 ; | |
22194 | PyObject * obj1 = 0 ; | |
22195 | char *kwnames[] = { | |
22196 | (char *) "self",(char *) "handler", NULL | |
22197 | }; | |
22198 | ||
22199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
22200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22201 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22202 | { | |
22203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22204 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
22205 | ||
22206 | wxPyEndAllowThreads(__tstate); | |
22207 | if (PyErr_Occurred()) SWIG_fail; | |
22208 | } | |
22209 | resultobj = PyInt_FromLong((long)result); | |
22210 | return resultobj; | |
22211 | fail: | |
22212 | return NULL; | |
22213 | } | |
22214 | ||
22215 | ||
22216 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22217 | PyObject *resultobj; | |
22218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22219 | wxValidator *arg2 = 0 ; | |
22220 | PyObject * obj0 = 0 ; | |
22221 | PyObject * obj1 = 0 ; | |
22222 | char *kwnames[] = { | |
22223 | (char *) "self",(char *) "validator", NULL | |
22224 | }; | |
22225 | ||
22226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
22227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22229 | if (arg2 == NULL) { | |
22230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22231 | } | |
22232 | { | |
22233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22234 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
22235 | ||
22236 | wxPyEndAllowThreads(__tstate); | |
22237 | if (PyErr_Occurred()) SWIG_fail; | |
22238 | } | |
22239 | Py_INCREF(Py_None); resultobj = Py_None; | |
22240 | return resultobj; | |
22241 | fail: | |
22242 | return NULL; | |
22243 | } | |
22244 | ||
22245 | ||
22246 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22247 | PyObject *resultobj; | |
22248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22249 | wxValidator *result; | |
22250 | PyObject * obj0 = 0 ; | |
22251 | char *kwnames[] = { | |
22252 | (char *) "self", NULL | |
22253 | }; | |
22254 | ||
22255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
22256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22257 | { | |
22258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22259 | result = (wxValidator *)(arg1)->GetValidator(); | |
22260 | ||
22261 | wxPyEndAllowThreads(__tstate); | |
22262 | if (PyErr_Occurred()) SWIG_fail; | |
22263 | } | |
22264 | { | |
22265 | resultobj = wxPyMake_wxObject(result); | |
22266 | } | |
22267 | return resultobj; | |
22268 | fail: | |
22269 | return NULL; | |
22270 | } | |
22271 | ||
22272 | ||
22273 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22274 | PyObject *resultobj; | |
22275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22276 | wxAcceleratorTable *arg2 = 0 ; | |
22277 | PyObject * obj0 = 0 ; | |
22278 | PyObject * obj1 = 0 ; | |
22279 | char *kwnames[] = { | |
22280 | (char *) "self",(char *) "accel", NULL | |
22281 | }; | |
22282 | ||
22283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
22284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22285 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22286 | if (arg2 == NULL) { | |
22287 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22288 | } | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | Py_INCREF(Py_None); resultobj = Py_None; | |
22297 | return resultobj; | |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
22303 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22304 | PyObject *resultobj; | |
22305 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22306 | wxAcceleratorTable *result; | |
22307 | PyObject * obj0 = 0 ; | |
22308 | char *kwnames[] = { | |
22309 | (char *) "self", NULL | |
22310 | }; | |
22311 | ||
22312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
22313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22314 | { | |
22315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22316 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
22317 | ||
22318 | wxPyEndAllowThreads(__tstate); | |
22319 | if (PyErr_Occurred()) SWIG_fail; | |
22320 | } | |
22321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
22322 | return resultobj; | |
22323 | fail: | |
22324 | return NULL; | |
22325 | } | |
22326 | ||
22327 | ||
22328 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22329 | PyObject *resultobj; | |
22330 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22331 | int arg2 ; | |
22332 | int arg3 ; | |
22333 | int arg4 ; | |
22334 | bool result; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | char *kwnames[] = { | |
22337 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
22338 | }; | |
22339 | ||
22340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:Window_RegisterHotKey",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
22341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22342 | { | |
22343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22344 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
22345 | ||
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | resultobj = PyInt_FromLong((long)result); | |
22350 | return resultobj; | |
22351 | fail: | |
22352 | return NULL; | |
22353 | } | |
22354 | ||
22355 | ||
22356 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22357 | PyObject *resultobj; | |
22358 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22359 | int arg2 ; | |
22360 | bool result; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | char *kwnames[] = { | |
22363 | (char *) "self",(char *) "hotkeyId", NULL | |
22364 | }; | |
22365 | ||
22366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_UnregisterHotKey",kwnames,&obj0,&arg2)) goto fail; | |
22367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22368 | { | |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
22371 | ||
22372 | wxPyEndAllowThreads(__tstate); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | resultobj = PyInt_FromLong((long)result); | |
22376 | return resultobj; | |
22377 | fail: | |
22378 | return NULL; | |
22379 | } | |
22380 | ||
22381 | ||
22382 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22383 | PyObject *resultobj; | |
22384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22385 | wxPoint *arg2 = 0 ; | |
22386 | wxPoint result; | |
22387 | wxPoint temp2 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | char *kwnames[] = { | |
22391 | (char *) "self",(char *) "pt", NULL | |
22392 | }; | |
22393 | ||
22394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22396 | { | |
22397 | arg2 = &temp2; | |
22398 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22399 | } | |
22400 | { | |
22401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22402 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22403 | ||
22404 | wxPyEndAllowThreads(__tstate); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
22407 | { | |
22408 | wxPoint * resultptr; | |
22409 | resultptr = new wxPoint((wxPoint &) result); | |
22410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22411 | } | |
22412 | return resultobj; | |
22413 | fail: | |
22414 | return NULL; | |
22415 | } | |
22416 | ||
22417 | ||
22418 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22419 | PyObject *resultobj; | |
22420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22421 | wxSize *arg2 = 0 ; | |
22422 | wxSize result; | |
22423 | wxSize temp2 ; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | PyObject * obj1 = 0 ; | |
22426 | char *kwnames[] = { | |
22427 | (char *) "self",(char *) "sz", NULL | |
22428 | }; | |
22429 | ||
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22432 | { | |
22433 | arg2 = &temp2; | |
22434 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22435 | } | |
22436 | { | |
22437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22438 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22439 | ||
22440 | wxPyEndAllowThreads(__tstate); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | } | |
22443 | { | |
22444 | wxSize * resultptr; | |
22445 | resultptr = new wxSize((wxSize &) result); | |
22446 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22447 | } | |
22448 | return resultobj; | |
22449 | fail: | |
22450 | return NULL; | |
22451 | } | |
22452 | ||
22453 | ||
22454 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22455 | PyObject *resultobj; | |
22456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22457 | wxPoint *arg2 = 0 ; | |
22458 | wxPoint result; | |
22459 | wxPoint temp2 ; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | PyObject * obj1 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self",(char *) "pt", NULL | |
22464 | }; | |
22465 | ||
22466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
22467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22468 | { | |
22469 | arg2 = &temp2; | |
22470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22471 | } | |
22472 | { | |
22473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22474 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22475 | ||
22476 | wxPyEndAllowThreads(__tstate); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
22478 | } | |
22479 | { | |
22480 | wxPoint * resultptr; | |
22481 | resultptr = new wxPoint((wxPoint &) result); | |
22482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22483 | } | |
22484 | return resultobj; | |
22485 | fail: | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
22490 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22491 | PyObject *resultobj; | |
22492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22493 | wxSize *arg2 = 0 ; | |
22494 | wxSize result; | |
22495 | wxSize temp2 ; | |
22496 | PyObject * obj0 = 0 ; | |
22497 | PyObject * obj1 = 0 ; | |
22498 | char *kwnames[] = { | |
22499 | (char *) "self",(char *) "sz", NULL | |
22500 | }; | |
22501 | ||
22502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
22503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22504 | { | |
22505 | arg2 = &temp2; | |
22506 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22507 | } | |
22508 | { | |
22509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22510 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22511 | ||
22512 | wxPyEndAllowThreads(__tstate); | |
22513 | if (PyErr_Occurred()) SWIG_fail; | |
22514 | } | |
22515 | { | |
22516 | wxSize * resultptr; | |
22517 | resultptr = new wxSize((wxSize &) result); | |
22518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22519 | } | |
22520 | return resultobj; | |
22521 | fail: | |
22522 | return NULL; | |
22523 | } | |
22524 | ||
22525 | ||
22526 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22527 | PyObject *resultobj; | |
22528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22529 | wxPoint *arg2 = 0 ; | |
22530 | wxPoint result; | |
22531 | wxPoint temp2 ; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | PyObject * obj1 = 0 ; | |
22534 | char *kwnames[] = { | |
22535 | (char *) "self",(char *) "pt", NULL | |
22536 | }; | |
22537 | ||
22538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22540 | { | |
22541 | arg2 = &temp2; | |
22542 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22543 | } | |
22544 | { | |
22545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22546 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
22547 | ||
22548 | wxPyEndAllowThreads(__tstate); | |
22549 | if (PyErr_Occurred()) SWIG_fail; | |
22550 | } | |
22551 | { | |
22552 | wxPoint * resultptr; | |
22553 | resultptr = new wxPoint((wxPoint &) result); | |
22554 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22555 | } | |
22556 | return resultobj; | |
22557 | fail: | |
22558 | return NULL; | |
22559 | } | |
22560 | ||
22561 | ||
22562 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22563 | PyObject *resultobj; | |
22564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22565 | wxSize *arg2 = 0 ; | |
22566 | wxSize result; | |
22567 | wxSize temp2 ; | |
22568 | PyObject * obj0 = 0 ; | |
22569 | PyObject * obj1 = 0 ; | |
22570 | char *kwnames[] = { | |
22571 | (char *) "self",(char *) "sz", NULL | |
22572 | }; | |
22573 | ||
22574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22576 | { | |
22577 | arg2 = &temp2; | |
22578 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22579 | } | |
22580 | { | |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | { | |
22588 | wxSize * resultptr; | |
22589 | resultptr = new wxSize((wxSize &) result); | |
22590 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22591 | } | |
22592 | return resultobj; | |
22593 | fail: | |
22594 | return NULL; | |
22595 | } | |
22596 | ||
22597 | ||
22598 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22599 | PyObject *resultobj; | |
22600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22601 | int arg2 ; | |
22602 | int arg3 ; | |
22603 | PyObject * obj0 = 0 ; | |
22604 | char *kwnames[] = { | |
22605 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22606 | }; | |
22607 | ||
22608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_WarpPointer",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22610 | { | |
22611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22612 | (arg1)->WarpPointer(arg2,arg3); | |
22613 | ||
22614 | wxPyEndAllowThreads(__tstate); | |
22615 | if (PyErr_Occurred()) SWIG_fail; | |
22616 | } | |
22617 | Py_INCREF(Py_None); resultobj = Py_None; | |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
22624 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22625 | PyObject *resultobj; | |
22626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22627 | PyObject * obj0 = 0 ; | |
22628 | char *kwnames[] = { | |
22629 | (char *) "self", NULL | |
22630 | }; | |
22631 | ||
22632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
22633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22634 | { | |
22635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22636 | (arg1)->CaptureMouse(); | |
22637 | ||
22638 | wxPyEndAllowThreads(__tstate); | |
22639 | if (PyErr_Occurred()) SWIG_fail; | |
22640 | } | |
22641 | Py_INCREF(Py_None); resultobj = Py_None; | |
22642 | return resultobj; | |
22643 | fail: | |
22644 | return NULL; | |
22645 | } | |
22646 | ||
22647 | ||
22648 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22649 | PyObject *resultobj; | |
22650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22651 | PyObject * obj0 = 0 ; | |
22652 | char *kwnames[] = { | |
22653 | (char *) "self", NULL | |
22654 | }; | |
22655 | ||
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
22657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | (arg1)->ReleaseMouse(); | |
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_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxWindow *result; | |
22675 | char *kwnames[] = { | |
22676 | NULL | |
22677 | }; | |
22678 | ||
22679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
22680 | { | |
22681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22682 | result = (wxWindow *)wxWindow::GetCapture(); | |
22683 | ||
22684 | wxPyEndAllowThreads(__tstate); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | } | |
22687 | { | |
22688 | resultobj = wxPyMake_wxObject(result); | |
22689 | } | |
22690 | return resultobj; | |
22691 | fail: | |
22692 | return NULL; | |
22693 | } | |
22694 | ||
22695 | ||
22696 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22697 | PyObject *resultobj; | |
22698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22699 | bool result; | |
22700 | PyObject * obj0 = 0 ; | |
22701 | char *kwnames[] = { | |
22702 | (char *) "self", NULL | |
22703 | }; | |
22704 | ||
22705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
22706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22707 | { | |
22708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22709 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
22710 | ||
22711 | wxPyEndAllowThreads(__tstate); | |
22712 | if (PyErr_Occurred()) SWIG_fail; | |
22713 | } | |
22714 | resultobj = PyInt_FromLong((long)result); | |
22715 | return resultobj; | |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22724 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22725 | wxRect *arg3 = (wxRect *) NULL ; |
22726 | PyObject * obj0 = 0 ; | |
22727 | PyObject * obj1 = 0 ; | |
22728 | PyObject * obj2 = 0 ; | |
22729 | char *kwnames[] = { | |
22730 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
22731 | }; | |
22732 | ||
22733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22735 | if (obj1) { | |
a41e16b6 RD |
22736 | { |
22737 | arg2 = (bool) SPyObj_AsBool(obj1); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
d14a1e28 RD |
22740 | } |
22741 | if (obj2) { | |
22742 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22743 | } | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | Py_INCREF(Py_None); resultobj = Py_None; | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | return NULL; | |
22755 | } | |
22756 | ||
22757 | ||
22758 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22759 | PyObject *resultobj; | |
22760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22761 | wxRect *arg2 = 0 ; | |
22762 | wxRect temp2 ; | |
22763 | PyObject * obj0 = 0 ; | |
22764 | PyObject * obj1 = 0 ; | |
22765 | char *kwnames[] = { | |
22766 | (char *) "self",(char *) "rect", NULL | |
22767 | }; | |
22768 | ||
22769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
22770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22771 | { | |
22772 | arg2 = &temp2; | |
22773 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22774 | } | |
22775 | { | |
22776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22777 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
22778 | ||
22779 | wxPyEndAllowThreads(__tstate); | |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
22781 | } | |
22782 | Py_INCREF(Py_None); resultobj = Py_None; | |
22783 | return resultobj; | |
22784 | fail: | |
22785 | return NULL; | |
22786 | } | |
22787 | ||
22788 | ||
22789 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22790 | PyObject *resultobj; | |
22791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22792 | PyObject * obj0 = 0 ; | |
22793 | char *kwnames[] = { | |
22794 | (char *) "self", NULL | |
22795 | }; | |
22796 | ||
22797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
22798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22799 | { | |
22800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22801 | (arg1)->Update(); | |
22802 | ||
22803 | wxPyEndAllowThreads(__tstate); | |
22804 | if (PyErr_Occurred()) SWIG_fail; | |
22805 | } | |
22806 | Py_INCREF(Py_None); resultobj = Py_None; | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
22813 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22814 | PyObject *resultobj; | |
22815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22816 | PyObject * obj0 = 0 ; | |
22817 | char *kwnames[] = { | |
22818 | (char *) "self", NULL | |
22819 | }; | |
22820 | ||
22821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
22822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22823 | { | |
22824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22825 | (arg1)->ClearBackground(); | |
22826 | ||
22827 | wxPyEndAllowThreads(__tstate); | |
22828 | if (PyErr_Occurred()) SWIG_fail; | |
22829 | } | |
22830 | Py_INCREF(Py_None); resultobj = Py_None; | |
22831 | return resultobj; | |
22832 | fail: | |
22833 | return NULL; | |
22834 | } | |
22835 | ||
22836 | ||
22837 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22838 | PyObject *resultobj; | |
22839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22840 | PyObject * obj0 = 0 ; | |
22841 | char *kwnames[] = { | |
22842 | (char *) "self", NULL | |
22843 | }; | |
22844 | ||
22845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
22846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22847 | { | |
22848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22849 | (arg1)->Freeze(); | |
22850 | ||
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | Py_INCREF(Py_None); resultobj = Py_None; | |
22855 | return resultobj; | |
22856 | fail: | |
22857 | return NULL; | |
22858 | } | |
22859 | ||
22860 | ||
22861 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22862 | PyObject *resultobj; | |
22863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22864 | PyObject * obj0 = 0 ; | |
22865 | char *kwnames[] = { | |
22866 | (char *) "self", NULL | |
22867 | }; | |
22868 | ||
22869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
22870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22871 | { | |
22872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22873 | (arg1)->Thaw(); | |
22874 | ||
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | Py_INCREF(Py_None); resultobj = Py_None; | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
22882 | } | |
22883 | ||
22884 | ||
22885 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22888 | wxDC *arg2 = 0 ; | |
22889 | PyObject * obj0 = 0 ; | |
22890 | PyObject * obj1 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self",(char *) "dc", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22897 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22898 | if (arg2 == NULL) { | |
22899 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22900 | } | |
22901 | { | |
22902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22903 | (arg1)->PrepareDC(*arg2); | |
22904 | ||
22905 | wxPyEndAllowThreads(__tstate); | |
22906 | if (PyErr_Occurred()) SWIG_fail; | |
22907 | } | |
22908 | Py_INCREF(Py_None); resultobj = Py_None; | |
22909 | return resultobj; | |
22910 | fail: | |
22911 | return NULL; | |
22912 | } | |
22913 | ||
22914 | ||
22915 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22916 | PyObject *resultobj; | |
22917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22918 | wxRegion *result; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | char *kwnames[] = { | |
22921 | (char *) "self", NULL | |
22922 | }; | |
22923 | ||
22924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
22925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22926 | { | |
22927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22928 | { | |
22929 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
22930 | result = (wxRegion *) &_result_ref; | |
22931 | } | |
22932 | ||
22933 | wxPyEndAllowThreads(__tstate); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
22936 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
22937 | return resultobj; | |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
22943 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22944 | PyObject *resultobj; | |
22945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22946 | wxRect result; | |
22947 | PyObject * obj0 = 0 ; | |
22948 | char *kwnames[] = { | |
22949 | (char *) "self", NULL | |
22950 | }; | |
22951 | ||
22952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
22953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22954 | { | |
22955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22956 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
22957 | ||
22958 | wxPyEndAllowThreads(__tstate); | |
22959 | if (PyErr_Occurred()) SWIG_fail; | |
22960 | } | |
22961 | { | |
22962 | wxRect * resultptr; | |
22963 | resultptr = new wxRect((wxRect &) result); | |
22964 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
22965 | } | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22975 | int arg2 ; | |
22976 | int arg3 ; | |
22977 | int arg4 = (int) 1 ; | |
22978 | int arg5 = (int) 1 ; | |
22979 | bool result; | |
22980 | PyObject * obj0 = 0 ; | |
22981 | char *kwnames[] = { | |
22982 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_IsExposed",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22987 | { | |
22988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22989 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
22990 | ||
22991 | wxPyEndAllowThreads(__tstate); | |
22992 | if (PyErr_Occurred()) SWIG_fail; | |
22993 | } | |
22994 | resultobj = PyInt_FromLong((long)result); | |
22995 | return resultobj; | |
22996 | fail: | |
22997 | return NULL; | |
22998 | } | |
22999 | ||
23000 | ||
23001 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23002 | PyObject *resultobj; | |
23003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23004 | wxPoint *arg2 = 0 ; | |
23005 | bool result; | |
23006 | wxPoint temp2 ; | |
23007 | PyObject * obj0 = 0 ; | |
23008 | PyObject * obj1 = 0 ; | |
23009 | char *kwnames[] = { | |
23010 | (char *) "self",(char *) "pt", NULL | |
23011 | }; | |
23012 | ||
23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
23014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23015 | { | |
23016 | arg2 = &temp2; | |
23017 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23018 | } | |
23019 | { | |
23020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23021 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
23022 | ||
23023 | wxPyEndAllowThreads(__tstate); | |
23024 | if (PyErr_Occurred()) SWIG_fail; | |
23025 | } | |
23026 | resultobj = PyInt_FromLong((long)result); | |
23027 | return resultobj; | |
23028 | fail: | |
23029 | return NULL; | |
23030 | } | |
23031 | ||
23032 | ||
23033 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23034 | PyObject *resultobj; | |
23035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23036 | wxRect *arg2 = 0 ; | |
23037 | bool result; | |
23038 | wxRect temp2 ; | |
23039 | PyObject * obj0 = 0 ; | |
23040 | PyObject * obj1 = 0 ; | |
23041 | char *kwnames[] = { | |
23042 | (char *) "self",(char *) "rect", NULL | |
23043 | }; | |
23044 | ||
23045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
23046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23047 | { | |
23048 | arg2 = &temp2; | |
23049 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23050 | } | |
23051 | { | |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
23054 | ||
23055 | wxPyEndAllowThreads(__tstate); | |
23056 | if (PyErr_Occurred()) SWIG_fail; | |
23057 | } | |
23058 | resultobj = PyInt_FromLong((long)result); | |
23059 | return resultobj; | |
23060 | fail: | |
23061 | return NULL; | |
23062 | } | |
23063 | ||
23064 | ||
23065 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23066 | PyObject *resultobj; | |
23067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23068 | wxColour *arg2 = 0 ; | |
23069 | bool result; | |
23070 | wxColour temp2 ; | |
23071 | PyObject * obj0 = 0 ; | |
23072 | PyObject * obj1 = 0 ; | |
23073 | char *kwnames[] = { | |
23074 | (char *) "self",(char *) "colour", NULL | |
23075 | }; | |
23076 | ||
23077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23079 | { | |
23080 | arg2 = &temp2; | |
23081 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23082 | } | |
23083 | { | |
23084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23085 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
23086 | ||
23087 | wxPyEndAllowThreads(__tstate); | |
23088 | if (PyErr_Occurred()) SWIG_fail; | |
23089 | } | |
23090 | resultobj = PyInt_FromLong((long)result); | |
23091 | return resultobj; | |
23092 | fail: | |
23093 | return NULL; | |
23094 | } | |
23095 | ||
23096 | ||
23097 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23098 | PyObject *resultobj; | |
23099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23100 | wxColour *arg2 = 0 ; | |
23101 | bool result; | |
23102 | wxColour temp2 ; | |
23103 | PyObject * obj0 = 0 ; | |
23104 | PyObject * obj1 = 0 ; | |
23105 | char *kwnames[] = { | |
23106 | (char *) "self",(char *) "colour", NULL | |
23107 | }; | |
23108 | ||
23109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23111 | { | |
23112 | arg2 = &temp2; | |
23113 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23114 | } | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
23118 | ||
23119 | wxPyEndAllowThreads(__tstate); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
23121 | } | |
23122 | resultobj = PyInt_FromLong((long)result); | |
23123 | return resultobj; | |
23124 | fail: | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
23129 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23130 | PyObject *resultobj; | |
23131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23132 | wxColour result; | |
23133 | PyObject * obj0 = 0 ; | |
23134 | char *kwnames[] = { | |
23135 | (char *) "self", NULL | |
23136 | }; | |
23137 | ||
23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
23139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23140 | { | |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
23147 | { | |
23148 | wxColour * resultptr; | |
23149 | resultptr = new wxColour((wxColour &) result); | |
23150 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23151 | } | |
23152 | return resultobj; | |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
23158 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23159 | PyObject *resultobj; | |
23160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23161 | wxColour result; | |
23162 | PyObject * obj0 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
23168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
23172 | ||
23173 | wxPyEndAllowThreads(__tstate); | |
23174 | if (PyErr_Occurred()) SWIG_fail; | |
23175 | } | |
23176 | { | |
23177 | wxColour * resultptr; | |
23178 | resultptr = new wxColour((wxColour &) result); | |
23179 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23180 | } | |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
23187 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23188 | PyObject *resultobj; | |
23189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23190 | wxCursor *arg2 = 0 ; | |
23191 | bool result; | |
23192 | PyObject * obj0 = 0 ; | |
23193 | PyObject * obj1 = 0 ; | |
23194 | char *kwnames[] = { | |
23195 | (char *) "self",(char *) "cursor", NULL | |
23196 | }; | |
23197 | ||
23198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
23199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23200 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23201 | if (arg2 == NULL) { | |
23202 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23203 | } | |
23204 | { | |
23205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23206 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | resultobj = PyInt_FromLong((long)result); | |
23212 | return resultobj; | |
23213 | fail: | |
23214 | return NULL; | |
23215 | } | |
23216 | ||
23217 | ||
23218 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23219 | PyObject *resultobj; | |
23220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23221 | wxCursor *result; | |
23222 | PyObject * obj0 = 0 ; | |
23223 | char *kwnames[] = { | |
23224 | (char *) "self", NULL | |
23225 | }; | |
23226 | ||
23227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
23228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23229 | { | |
23230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23231 | { | |
23232 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
23233 | result = (wxCursor *) &_result_ref; | |
23234 | } | |
23235 | ||
23236 | wxPyEndAllowThreads(__tstate); | |
23237 | if (PyErr_Occurred()) SWIG_fail; | |
23238 | } | |
23239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
23240 | return resultobj; | |
23241 | fail: | |
23242 | return NULL; | |
23243 | } | |
23244 | ||
23245 | ||
23246 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23247 | PyObject *resultobj; | |
23248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23249 | wxFont *arg2 = 0 ; | |
23250 | bool result; | |
23251 | PyObject * obj0 = 0 ; | |
23252 | PyObject * obj1 = 0 ; | |
23253 | char *kwnames[] = { | |
23254 | (char *) "self",(char *) "font", NULL | |
23255 | }; | |
23256 | ||
23257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
23258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23260 | if (arg2 == NULL) { | |
23261 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23262 | } | |
23263 | { | |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
23266 | ||
23267 | wxPyEndAllowThreads(__tstate); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | } | |
23270 | resultobj = PyInt_FromLong((long)result); | |
23271 | return resultobj; | |
23272 | fail: | |
23273 | return NULL; | |
23274 | } | |
23275 | ||
23276 | ||
23277 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23278 | PyObject *resultobj; | |
23279 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23280 | wxFont *result; | |
23281 | PyObject * obj0 = 0 ; | |
23282 | char *kwnames[] = { | |
23283 | (char *) "self", NULL | |
23284 | }; | |
23285 | ||
23286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
23287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23288 | { | |
23289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23290 | { | |
23291 | wxFont &_result_ref = (arg1)->GetFont(); | |
23292 | result = (wxFont *) &_result_ref; | |
23293 | } | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
23299 | return resultobj; | |
23300 | fail: | |
23301 | return NULL; | |
23302 | } | |
23303 | ||
23304 | ||
23305 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23306 | PyObject *resultobj; | |
23307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23308 | wxCaret *arg2 = (wxCaret *) 0 ; | |
23309 | PyObject * obj0 = 0 ; | |
23310 | PyObject * obj1 = 0 ; | |
23311 | char *kwnames[] = { | |
23312 | (char *) "self",(char *) "caret", NULL | |
23313 | }; | |
23314 | ||
23315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
23316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | (arg1)->SetCaret(arg2); | |
23321 | ||
23322 | wxPyEndAllowThreads(__tstate); | |
23323 | if (PyErr_Occurred()) SWIG_fail; | |
23324 | } | |
23325 | Py_INCREF(Py_None); resultobj = Py_None; | |
23326 | return resultobj; | |
23327 | fail: | |
23328 | return NULL; | |
23329 | } | |
23330 | ||
23331 | ||
23332 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23333 | PyObject *resultobj; | |
23334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23335 | wxCaret *result; | |
23336 | PyObject * obj0 = 0 ; | |
23337 | char *kwnames[] = { | |
23338 | (char *) "self", NULL | |
23339 | }; | |
23340 | ||
23341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
23342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23343 | { | |
23344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23345 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
23346 | ||
23347 | wxPyEndAllowThreads(__tstate); | |
23348 | if (PyErr_Occurred()) SWIG_fail; | |
23349 | } | |
23350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
23351 | return resultobj; | |
23352 | fail: | |
23353 | return NULL; | |
23354 | } | |
23355 | ||
23356 | ||
23357 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23358 | PyObject *resultobj; | |
23359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23360 | int result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | char *kwnames[] = { | |
23363 | (char *) "self", NULL | |
23364 | }; | |
23365 | ||
23366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
23367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23368 | { | |
23369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23370 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
23371 | ||
23372 | wxPyEndAllowThreads(__tstate); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
23374 | } | |
23375 | resultobj = PyInt_FromLong((long)result); | |
23376 | return resultobj; | |
23377 | fail: | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
23382 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23383 | PyObject *resultobj; | |
23384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23385 | int result; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
23392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23393 | { | |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | resultobj = PyInt_FromLong((long)result); | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23410 | wxString *arg2 = 0 ; | |
23411 | int *arg3 = (int *) 0 ; | |
23412 | int *arg4 = (int *) 0 ; | |
e811c8ce | 23413 | bool temp2 = False ; |
d14a1e28 RD |
23414 | int temp3 ; |
23415 | int temp4 ; | |
23416 | PyObject * obj0 = 0 ; | |
23417 | PyObject * obj1 = 0 ; | |
23418 | char *kwnames[] = { | |
23419 | (char *) "self",(char *) "string", NULL | |
23420 | }; | |
23421 | ||
23422 | arg3 = &temp3; | |
23423 | arg4 = &temp4; | |
23424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
23425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23426 | { | |
23427 | arg2 = wxString_in_helper(obj1); | |
23428 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23429 | temp2 = True; |
d14a1e28 RD |
23430 | } |
23431 | { | |
23432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23433 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
23434 | ||
23435 | wxPyEndAllowThreads(__tstate); | |
23436 | if (PyErr_Occurred()) SWIG_fail; | |
23437 | } | |
23438 | Py_INCREF(Py_None); resultobj = Py_None; | |
23439 | { | |
23440 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23441 | resultobj = t_output_helper(resultobj,o); | |
23442 | } | |
23443 | { | |
23444 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23445 | resultobj = t_output_helper(resultobj,o); | |
23446 | } | |
23447 | { | |
23448 | if (temp2) | |
23449 | delete arg2; | |
23450 | } | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | { | |
23454 | if (temp2) | |
23455 | delete arg2; | |
23456 | } | |
23457 | return NULL; | |
23458 | } | |
23459 | ||
23460 | ||
23461 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23462 | PyObject *resultobj; | |
23463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23464 | wxString *arg2 = 0 ; | |
23465 | int *arg3 = (int *) 0 ; | |
23466 | int *arg4 = (int *) 0 ; | |
23467 | int *arg5 = (int *) 0 ; | |
23468 | int *arg6 = (int *) 0 ; | |
23469 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 23470 | bool temp2 = False ; |
d14a1e28 RD |
23471 | int temp3 ; |
23472 | int temp4 ; | |
23473 | int temp5 ; | |
23474 | int temp6 ; | |
23475 | PyObject * obj0 = 0 ; | |
23476 | PyObject * obj1 = 0 ; | |
23477 | PyObject * obj2 = 0 ; | |
23478 | char *kwnames[] = { | |
23479 | (char *) "self",(char *) "string",(char *) "font", NULL | |
23480 | }; | |
23481 | ||
23482 | arg3 = &temp3; | |
23483 | arg4 = &temp4; | |
23484 | arg5 = &temp5; | |
23485 | arg6 = &temp6; | |
23486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23488 | { | |
23489 | arg2 = wxString_in_helper(obj1); | |
23490 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23491 | temp2 = True; |
d14a1e28 RD |
23492 | } |
23493 | if (obj2) { | |
23494 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23495 | } | |
23496 | { | |
23497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23498 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
23499 | ||
23500 | wxPyEndAllowThreads(__tstate); | |
23501 | if (PyErr_Occurred()) SWIG_fail; | |
23502 | } | |
23503 | Py_INCREF(Py_None); resultobj = Py_None; | |
23504 | { | |
23505 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23506 | resultobj = t_output_helper(resultobj,o); | |
23507 | } | |
23508 | { | |
23509 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23510 | resultobj = t_output_helper(resultobj,o); | |
23511 | } | |
23512 | { | |
23513 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
23514 | resultobj = t_output_helper(resultobj,o); | |
23515 | } | |
23516 | { | |
23517 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
23518 | resultobj = t_output_helper(resultobj,o); | |
23519 | } | |
23520 | { | |
23521 | if (temp2) | |
23522 | delete arg2; | |
23523 | } | |
23524 | return resultobj; | |
23525 | fail: | |
23526 | { | |
23527 | if (temp2) | |
23528 | delete arg2; | |
23529 | } | |
23530 | return NULL; | |
23531 | } | |
23532 | ||
23533 | ||
23534 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23535 | PyObject *resultobj; | |
23536 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23537 | int *arg2 = (int *) 0 ; | |
23538 | int *arg3 = (int *) 0 ; | |
23539 | int temp2 ; | |
23540 | int temp3 ; | |
23541 | PyObject * obj0 = 0 ; | |
23542 | PyObject * obj1 = 0 ; | |
23543 | PyObject * obj2 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23550 | { | |
23551 | temp2 = PyInt_AsLong(obj1); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | arg2 = &temp2; | |
23554 | } | |
23555 | { | |
23556 | temp3 = PyInt_AsLong(obj2); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | arg3 = &temp3; | |
23559 | } | |
23560 | { | |
23561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23562 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
23563 | ||
23564 | wxPyEndAllowThreads(__tstate); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | } | |
23567 | Py_INCREF(Py_None); resultobj = Py_None; | |
23568 | { | |
23569 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23570 | resultobj = t_output_helper(resultobj,o); | |
23571 | } | |
23572 | { | |
23573 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23574 | resultobj = t_output_helper(resultobj,o); | |
23575 | } | |
23576 | return resultobj; | |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
23582 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23583 | PyObject *resultobj; | |
23584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23585 | int *arg2 = (int *) 0 ; | |
23586 | int *arg3 = (int *) 0 ; | |
23587 | int temp2 ; | |
23588 | int temp3 ; | |
23589 | PyObject * obj0 = 0 ; | |
23590 | PyObject * obj1 = 0 ; | |
23591 | PyObject * obj2 = 0 ; | |
23592 | char *kwnames[] = { | |
23593 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23594 | }; | |
23595 | ||
23596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23598 | { | |
23599 | temp2 = PyInt_AsLong(obj1); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | arg2 = &temp2; | |
23602 | } | |
23603 | { | |
23604 | temp3 = PyInt_AsLong(obj2); | |
23605 | if (PyErr_Occurred()) SWIG_fail; | |
23606 | arg3 = &temp3; | |
23607 | } | |
23608 | { | |
23609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23610 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
23611 | ||
23612 | wxPyEndAllowThreads(__tstate); | |
23613 | if (PyErr_Occurred()) SWIG_fail; | |
23614 | } | |
23615 | Py_INCREF(Py_None); resultobj = Py_None; | |
23616 | { | |
23617 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23618 | resultobj = t_output_helper(resultobj,o); | |
23619 | } | |
23620 | { | |
23621 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23622 | resultobj = t_output_helper(resultobj,o); | |
23623 | } | |
23624 | return resultobj; | |
23625 | fail: | |
23626 | return NULL; | |
23627 | } | |
23628 | ||
23629 | ||
23630 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23631 | PyObject *resultobj; | |
23632 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23633 | wxPoint *arg2 = 0 ; | |
23634 | wxPoint result; | |
23635 | wxPoint temp2 ; | |
23636 | PyObject * obj0 = 0 ; | |
23637 | PyObject * obj1 = 0 ; | |
23638 | char *kwnames[] = { | |
23639 | (char *) "self",(char *) "pt", NULL | |
23640 | }; | |
23641 | ||
23642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
23643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23644 | { | |
23645 | arg2 = &temp2; | |
23646 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23647 | } | |
23648 | { | |
23649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23650 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
23651 | ||
23652 | wxPyEndAllowThreads(__tstate); | |
23653 | if (PyErr_Occurred()) SWIG_fail; | |
23654 | } | |
23655 | { | |
23656 | wxPoint * resultptr; | |
23657 | resultptr = new wxPoint((wxPoint &) result); | |
23658 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23659 | } | |
23660 | return resultobj; | |
23661 | fail: | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
23666 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23667 | PyObject *resultobj; | |
23668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23669 | wxPoint *arg2 = 0 ; | |
23670 | wxPoint result; | |
23671 | wxPoint temp2 ; | |
23672 | PyObject * obj0 = 0 ; | |
23673 | PyObject * obj1 = 0 ; | |
23674 | char *kwnames[] = { | |
23675 | (char *) "self",(char *) "pt", NULL | |
23676 | }; | |
23677 | ||
23678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
23679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23680 | { | |
23681 | arg2 = &temp2; | |
23682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23683 | } | |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | { | |
23692 | wxPoint * resultptr; | |
23693 | resultptr = new wxPoint((wxPoint &) result); | |
23694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23695 | } | |
23696 | return resultobj; | |
23697 | fail: | |
23698 | return NULL; | |
23699 | } | |
23700 | ||
23701 | ||
23702 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23703 | PyObject *resultobj; | |
23704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
23705 | int arg2 ; |
23706 | int arg3 ; | |
d14a1e28 RD |
23707 | int result; |
23708 | PyObject * obj0 = 0 ; | |
23709 | char *kwnames[] = { | |
23710 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23711 | }; | |
23712 | ||
23713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23715 | { | |
23716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23717 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
23718 | ||
23719 | wxPyEndAllowThreads(__tstate); | |
23720 | if (PyErr_Occurred()) SWIG_fail; | |
23721 | } | |
23722 | resultobj = PyInt_FromLong((long)result); | |
23723 | return resultobj; | |
23724 | fail: | |
23725 | return NULL; | |
23726 | } | |
23727 | ||
23728 | ||
23729 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23730 | PyObject *resultobj; | |
23731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23732 | wxPoint *arg2 = 0 ; | |
23733 | int result; | |
23734 | wxPoint temp2 ; | |
23735 | PyObject * obj0 = 0 ; | |
23736 | PyObject * obj1 = 0 ; | |
23737 | char *kwnames[] = { | |
23738 | (char *) "self",(char *) "pt", NULL | |
23739 | }; | |
23740 | ||
23741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23743 | { | |
23744 | arg2 = &temp2; | |
23745 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23746 | } | |
23747 | { | |
23748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23749 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
23750 | ||
23751 | wxPyEndAllowThreads(__tstate); | |
23752 | if (PyErr_Occurred()) SWIG_fail; | |
23753 | } | |
23754 | resultobj = PyInt_FromLong((long)result); | |
23755 | return resultobj; | |
23756 | fail: | |
23757 | return NULL; | |
23758 | } | |
23759 | ||
23760 | ||
23761 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23762 | PyObject *resultobj; | |
23763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23764 | long arg2 ; | |
23765 | int result; | |
23766 | PyObject * obj0 = 0 ; | |
23767 | char *kwnames[] = { | |
23768 | (char *) "self",(char *) "flags", NULL | |
23769 | }; | |
23770 | ||
23771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_GetBorderFlags",kwnames,&obj0,&arg2)) goto fail; | |
23772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23773 | { | |
23774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23775 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
23776 | ||
23777 | wxPyEndAllowThreads(__tstate); | |
23778 | if (PyErr_Occurred()) SWIG_fail; | |
23779 | } | |
23780 | resultobj = PyInt_FromLong((long)result); | |
23781 | return resultobj; | |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23788 | PyObject *resultobj; | |
23789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23790 | int result; | |
23791 | PyObject * obj0 = 0 ; | |
23792 | char *kwnames[] = { | |
23793 | (char *) "self", NULL | |
23794 | }; | |
23795 | ||
23796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
23797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23798 | { | |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
23805 | resultobj = PyInt_FromLong((long)result); | |
23806 | return resultobj; | |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
23812 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23813 | PyObject *resultobj; | |
23814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23815 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
23816 | PyObject * obj0 = 0 ; | |
23817 | char *kwnames[] = { | |
23818 | (char *) "self",(char *) "flags", NULL | |
23819 | }; | |
23820 | ||
23821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Window_UpdateWindowUI",kwnames,&obj0,&arg2)) goto fail; | |
23822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23823 | { | |
23824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23825 | (arg1)->UpdateWindowUI(arg2); | |
23826 | ||
23827 | wxPyEndAllowThreads(__tstate); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
23829 | } | |
23830 | Py_INCREF(Py_None); resultobj = Py_None; | |
23831 | return resultobj; | |
23832 | fail: | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
23837 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23838 | PyObject *resultobj; | |
23839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23840 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23841 | int arg3 ; | |
23842 | int arg4 ; | |
23843 | bool result; | |
23844 | PyObject * obj0 = 0 ; | |
23845 | PyObject * obj1 = 0 ; | |
23846 | char *kwnames[] = { | |
23847 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
23848 | }; | |
23849 | ||
23850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Window_PopupMenuXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
23851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23852 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23853 | { | |
23854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23855 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
23856 | ||
23857 | wxPyEndAllowThreads(__tstate); | |
23858 | if (PyErr_Occurred()) SWIG_fail; | |
23859 | } | |
23860 | resultobj = PyInt_FromLong((long)result); | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
23867 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23868 | PyObject *resultobj; | |
23869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23870 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23871 | wxPoint *arg3 = 0 ; | |
23872 | bool result; | |
23873 | wxPoint temp3 ; | |
23874 | PyObject * obj0 = 0 ; | |
23875 | PyObject * obj1 = 0 ; | |
23876 | PyObject * obj2 = 0 ; | |
23877 | char *kwnames[] = { | |
23878 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
23879 | }; | |
23880 | ||
23881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23883 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23884 | { | |
23885 | arg3 = &temp3; | |
23886 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23887 | } | |
23888 | { | |
23889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23890 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
23891 | ||
23892 | wxPyEndAllowThreads(__tstate); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
23895 | resultobj = PyInt_FromLong((long)result); | |
23896 | return resultobj; | |
23897 | fail: | |
23898 | return NULL; | |
23899 | } | |
23900 | ||
23901 | ||
23902 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23903 | PyObject *resultobj; | |
23904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23905 | long result; | |
23906 | PyObject * obj0 = 0 ; | |
23907 | char *kwnames[] = { | |
23908 | (char *) "self", NULL | |
23909 | }; | |
23910 | ||
23911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
23912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23913 | { | |
23914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23915 | result = (long)wxWindow_GetHandle(arg1); | |
23916 | ||
23917 | wxPyEndAllowThreads(__tstate); | |
23918 | if (PyErr_Occurred()) SWIG_fail; | |
23919 | } | |
23920 | resultobj = PyInt_FromLong((long)result); | |
23921 | return resultobj; | |
23922 | fail: | |
23923 | return NULL; | |
23924 | } | |
23925 | ||
23926 | ||
23927 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23928 | PyObject *resultobj; | |
23929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23930 | int arg2 ; | |
23931 | bool result; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self",(char *) "orient", NULL | |
23935 | }; | |
23936 | ||
23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasScrollbar",kwnames,&obj0,&arg2)) goto fail; | |
23938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23939 | { | |
23940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23941 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
23942 | ||
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | resultobj = PyInt_FromLong((long)result); | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23956 | int arg2 ; | |
23957 | int arg3 ; | |
23958 | int arg4 ; | |
23959 | int arg5 ; | |
e811c8ce | 23960 | bool arg6 = (bool) True ; |
d14a1e28 RD |
23961 | PyObject * obj0 = 0 ; |
23962 | PyObject * obj5 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
23965 | }; | |
23966 | ||
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Window_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
23968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23969 | if (obj5) { | |
a41e16b6 RD |
23970 | { |
23971 | arg6 = (bool) SPyObj_AsBool(obj5); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
d14a1e28 RD |
23974 | } |
23975 | { | |
23976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23977 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
23978 | ||
23979 | wxPyEndAllowThreads(__tstate); | |
23980 | if (PyErr_Occurred()) SWIG_fail; | |
23981 | } | |
23982 | Py_INCREF(Py_None); resultobj = Py_None; | |
23983 | return resultobj; | |
23984 | fail: | |
23985 | return NULL; | |
23986 | } | |
23987 | ||
23988 | ||
23989 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23990 | PyObject *resultobj; | |
23991 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23992 | int arg2 ; | |
23993 | int arg3 ; | |
e811c8ce | 23994 | bool arg4 = (bool) True ; |
d14a1e28 RD |
23995 | PyObject * obj0 = 0 ; |
23996 | PyObject * obj3 = 0 ; | |
23997 | char *kwnames[] = { | |
23998 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
23999 | }; | |
24000 | ||
24001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_SetScrollPos",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
24002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24003 | if (obj3) { | |
a41e16b6 RD |
24004 | { |
24005 | arg4 = (bool) SPyObj_AsBool(obj3); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | } | |
d14a1e28 RD |
24008 | } |
24009 | { | |
24010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24011 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
24012 | ||
24013 | wxPyEndAllowThreads(__tstate); | |
24014 | if (PyErr_Occurred()) SWIG_fail; | |
24015 | } | |
24016 | Py_INCREF(Py_None); resultobj = Py_None; | |
24017 | return resultobj; | |
24018 | fail: | |
24019 | return NULL; | |
24020 | } | |
24021 | ||
24022 | ||
24023 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24024 | PyObject *resultobj; | |
24025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24026 | int arg2 ; | |
24027 | int result; | |
24028 | PyObject * obj0 = 0 ; | |
24029 | char *kwnames[] = { | |
24030 | (char *) "self",(char *) "orient", NULL | |
24031 | }; | |
24032 | ||
24033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollPos",kwnames,&obj0,&arg2)) goto fail; | |
24034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24035 | { | |
24036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24037 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
24038 | ||
24039 | wxPyEndAllowThreads(__tstate); | |
24040 | if (PyErr_Occurred()) SWIG_fail; | |
24041 | } | |
24042 | resultobj = PyInt_FromLong((long)result); | |
24043 | return resultobj; | |
24044 | fail: | |
24045 | return NULL; | |
24046 | } | |
24047 | ||
24048 | ||
24049 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24050 | PyObject *resultobj; | |
24051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24052 | int arg2 ; | |
24053 | int result; | |
24054 | PyObject * obj0 = 0 ; | |
24055 | char *kwnames[] = { | |
24056 | (char *) "self",(char *) "orient", NULL | |
24057 | }; | |
24058 | ||
24059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollThumb",kwnames,&obj0,&arg2)) goto fail; | |
24060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24061 | { | |
24062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24063 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
24064 | ||
24065 | wxPyEndAllowThreads(__tstate); | |
24066 | if (PyErr_Occurred()) SWIG_fail; | |
24067 | } | |
24068 | resultobj = PyInt_FromLong((long)result); | |
24069 | return resultobj; | |
24070 | fail: | |
24071 | return NULL; | |
24072 | } | |
24073 | ||
24074 | ||
24075 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24076 | PyObject *resultobj; | |
24077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24078 | int arg2 ; | |
24079 | int result; | |
24080 | PyObject * obj0 = 0 ; | |
24081 | char *kwnames[] = { | |
24082 | (char *) "self",(char *) "orient", NULL | |
24083 | }; | |
24084 | ||
24085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollRange",kwnames,&obj0,&arg2)) goto fail; | |
24086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
24090 | ||
24091 | wxPyEndAllowThreads(__tstate); | |
24092 | if (PyErr_Occurred()) SWIG_fail; | |
24093 | } | |
24094 | resultobj = PyInt_FromLong((long)result); | |
24095 | return resultobj; | |
24096 | fail: | |
24097 | return NULL; | |
24098 | } | |
24099 | ||
24100 | ||
24101 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24102 | PyObject *resultobj; | |
24103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24104 | int arg2 ; | |
24105 | int arg3 ; | |
24106 | wxRect *arg4 = (wxRect *) NULL ; | |
24107 | PyObject * obj0 = 0 ; | |
24108 | PyObject * obj3 = 0 ; | |
24109 | char *kwnames[] = { | |
24110 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
24111 | }; | |
24112 | ||
24113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_ScrollWindow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
24114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24115 | if (obj3) { | |
24116 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24117 | } | |
24118 | { | |
24119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24120 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
24121 | ||
24122 | wxPyEndAllowThreads(__tstate); | |
24123 | if (PyErr_Occurred()) SWIG_fail; | |
24124 | } | |
24125 | Py_INCREF(Py_None); resultobj = Py_None; | |
24126 | return resultobj; | |
24127 | fail: | |
24128 | return NULL; | |
24129 | } | |
24130 | ||
24131 | ||
24132 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24133 | PyObject *resultobj; | |
24134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24135 | int arg2 ; | |
24136 | bool result; | |
24137 | PyObject * obj0 = 0 ; | |
24138 | char *kwnames[] = { | |
24139 | (char *) "self",(char *) "lines", NULL | |
24140 | }; | |
24141 | ||
24142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollLines",kwnames,&obj0,&arg2)) goto fail; | |
24143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24144 | { | |
24145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24146 | result = (bool)(arg1)->ScrollLines(arg2); | |
24147 | ||
24148 | wxPyEndAllowThreads(__tstate); | |
24149 | if (PyErr_Occurred()) SWIG_fail; | |
24150 | } | |
24151 | resultobj = PyInt_FromLong((long)result); | |
24152 | return resultobj; | |
24153 | fail: | |
24154 | return NULL; | |
24155 | } | |
24156 | ||
24157 | ||
24158 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24159 | PyObject *resultobj; | |
24160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24161 | int arg2 ; | |
24162 | bool result; | |
24163 | PyObject * obj0 = 0 ; | |
24164 | char *kwnames[] = { | |
24165 | (char *) "self",(char *) "pages", NULL | |
24166 | }; | |
24167 | ||
24168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollPages",kwnames,&obj0,&arg2)) goto fail; | |
24169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24170 | { | |
24171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24172 | result = (bool)(arg1)->ScrollPages(arg2); | |
24173 | ||
24174 | wxPyEndAllowThreads(__tstate); | |
24175 | if (PyErr_Occurred()) SWIG_fail; | |
24176 | } | |
24177 | resultobj = PyInt_FromLong((long)result); | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
24184 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24185 | PyObject *resultobj; | |
24186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24187 | bool result; | |
24188 | PyObject * obj0 = 0 ; | |
24189 | char *kwnames[] = { | |
24190 | (char *) "self", NULL | |
24191 | }; | |
24192 | ||
24193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
24194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24195 | { | |
24196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24197 | result = (bool)(arg1)->LineUp(); | |
24198 | ||
24199 | wxPyEndAllowThreads(__tstate); | |
24200 | if (PyErr_Occurred()) SWIG_fail; | |
24201 | } | |
24202 | resultobj = PyInt_FromLong((long)result); | |
24203 | return resultobj; | |
24204 | fail: | |
24205 | return NULL; | |
24206 | } | |
24207 | ||
24208 | ||
24209 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24210 | PyObject *resultobj; | |
24211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24212 | bool result; | |
24213 | PyObject * obj0 = 0 ; | |
24214 | char *kwnames[] = { | |
24215 | (char *) "self", NULL | |
24216 | }; | |
24217 | ||
24218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
24219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = (bool)(arg1)->LineDown(); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | resultobj = PyInt_FromLong((long)result); | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24237 | bool result; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
24244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24245 | { | |
24246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24247 | result = (bool)(arg1)->PageUp(); | |
24248 | ||
24249 | wxPyEndAllowThreads(__tstate); | |
24250 | if (PyErr_Occurred()) SWIG_fail; | |
24251 | } | |
24252 | resultobj = PyInt_FromLong((long)result); | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24262 | bool result; | |
24263 | PyObject * obj0 = 0 ; | |
24264 | char *kwnames[] = { | |
24265 | (char *) "self", NULL | |
24266 | }; | |
24267 | ||
24268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
24269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24270 | { | |
24271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24272 | result = (bool)(arg1)->PageDown(); | |
24273 | ||
24274 | wxPyEndAllowThreads(__tstate); | |
24275 | if (PyErr_Occurred()) SWIG_fail; | |
24276 | } | |
24277 | resultobj = PyInt_FromLong((long)result); | |
24278 | return resultobj; | |
24279 | fail: | |
24280 | return NULL; | |
24281 | } | |
24282 | ||
24283 | ||
24284 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24285 | PyObject *resultobj; | |
24286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24287 | wxString *arg2 = 0 ; | |
e811c8ce | 24288 | bool temp2 = False ; |
d14a1e28 RD |
24289 | PyObject * obj0 = 0 ; |
24290 | PyObject * obj1 = 0 ; | |
24291 | char *kwnames[] = { | |
24292 | (char *) "self",(char *) "text", NULL | |
24293 | }; | |
24294 | ||
24295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
24296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24297 | { | |
24298 | arg2 = wxString_in_helper(obj1); | |
24299 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24300 | temp2 = True; |
d14a1e28 RD |
24301 | } |
24302 | { | |
24303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24304 | (arg1)->SetHelpText((wxString const &)*arg2); | |
24305 | ||
24306 | wxPyEndAllowThreads(__tstate); | |
24307 | if (PyErr_Occurred()) SWIG_fail; | |
24308 | } | |
24309 | Py_INCREF(Py_None); resultobj = Py_None; | |
24310 | { | |
24311 | if (temp2) | |
24312 | delete arg2; | |
24313 | } | |
24314 | return resultobj; | |
24315 | fail: | |
24316 | { | |
24317 | if (temp2) | |
24318 | delete arg2; | |
24319 | } | |
24320 | return NULL; | |
24321 | } | |
24322 | ||
24323 | ||
24324 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24325 | PyObject *resultobj; | |
24326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24327 | wxString *arg2 = 0 ; | |
e811c8ce | 24328 | bool temp2 = False ; |
d14a1e28 RD |
24329 | PyObject * obj0 = 0 ; |
24330 | PyObject * obj1 = 0 ; | |
24331 | char *kwnames[] = { | |
24332 | (char *) "self",(char *) "text", NULL | |
24333 | }; | |
24334 | ||
24335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
24336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24337 | { | |
24338 | arg2 = wxString_in_helper(obj1); | |
24339 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24340 | temp2 = True; |
d14a1e28 RD |
24341 | } |
24342 | { | |
24343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24344 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
24345 | ||
24346 | wxPyEndAllowThreads(__tstate); | |
24347 | if (PyErr_Occurred()) SWIG_fail; | |
24348 | } | |
24349 | Py_INCREF(Py_None); resultobj = Py_None; | |
24350 | { | |
24351 | if (temp2) | |
24352 | delete arg2; | |
24353 | } | |
24354 | return resultobj; | |
24355 | fail: | |
24356 | { | |
24357 | if (temp2) | |
24358 | delete arg2; | |
24359 | } | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
24364 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24367 | wxString result; | |
24368 | PyObject * obj0 = 0 ; | |
24369 | char *kwnames[] = { | |
24370 | (char *) "self", NULL | |
24371 | }; | |
24372 | ||
24373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
24374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24375 | { | |
24376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24377 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
24378 | ||
24379 | wxPyEndAllowThreads(__tstate); | |
24380 | if (PyErr_Occurred()) SWIG_fail; | |
24381 | } | |
24382 | { | |
24383 | #if wxUSE_UNICODE | |
24384 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24385 | #else | |
24386 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24387 | #endif | |
24388 | } | |
24389 | return resultobj; | |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
24395 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24396 | PyObject *resultobj; | |
24397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24398 | wxString *arg2 = 0 ; | |
e811c8ce | 24399 | bool temp2 = False ; |
d14a1e28 RD |
24400 | PyObject * obj0 = 0 ; |
24401 | PyObject * obj1 = 0 ; | |
24402 | char *kwnames[] = { | |
24403 | (char *) "self",(char *) "tip", NULL | |
24404 | }; | |
24405 | ||
24406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
24407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24408 | { | |
24409 | arg2 = wxString_in_helper(obj1); | |
24410 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24411 | temp2 = True; |
d14a1e28 RD |
24412 | } |
24413 | { | |
24414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24415 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24416 | ||
24417 | wxPyEndAllowThreads(__tstate); | |
24418 | if (PyErr_Occurred()) SWIG_fail; | |
24419 | } | |
24420 | Py_INCREF(Py_None); resultobj = Py_None; | |
24421 | { | |
24422 | if (temp2) | |
24423 | delete arg2; | |
24424 | } | |
24425 | return resultobj; | |
24426 | fail: | |
24427 | { | |
24428 | if (temp2) | |
24429 | delete arg2; | |
24430 | } | |
24431 | return NULL; | |
24432 | } | |
24433 | ||
24434 | ||
24435 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24436 | PyObject *resultobj; | |
24437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24438 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
24439 | PyObject * obj0 = 0 ; | |
24440 | PyObject * obj1 = 0 ; | |
24441 | char *kwnames[] = { | |
24442 | (char *) "self",(char *) "tip", NULL | |
24443 | }; | |
24444 | ||
24445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24447 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24448 | { | |
24449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24450 | (arg1)->SetToolTip(arg2); | |
24451 | ||
24452 | wxPyEndAllowThreads(__tstate); | |
24453 | if (PyErr_Occurred()) SWIG_fail; | |
24454 | } | |
24455 | Py_INCREF(Py_None); resultobj = Py_None; | |
24456 | return resultobj; | |
24457 | fail: | |
24458 | return NULL; | |
24459 | } | |
24460 | ||
24461 | ||
24462 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24463 | PyObject *resultobj; | |
24464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24465 | wxToolTip *result; | |
24466 | PyObject * obj0 = 0 ; | |
24467 | char *kwnames[] = { | |
24468 | (char *) "self", NULL | |
24469 | }; | |
24470 | ||
24471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
24472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24473 | { | |
24474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24475 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
24476 | ||
24477 | wxPyEndAllowThreads(__tstate); | |
24478 | if (PyErr_Occurred()) SWIG_fail; | |
24479 | } | |
24480 | { | |
24481 | resultobj = wxPyMake_wxObject(result); | |
24482 | } | |
24483 | return resultobj; | |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
24489 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24490 | PyObject *resultobj; | |
24491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 24492 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
24493 | PyObject * obj0 = 0 ; |
24494 | PyObject * obj1 = 0 ; | |
24495 | char *kwnames[] = { | |
24496 | (char *) "self",(char *) "dropTarget", NULL | |
24497 | }; | |
24498 | ||
24499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
24500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7722248d | 24501 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24502 | { |
24503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24504 | (arg1)->SetDropTarget(arg2); | |
24505 | ||
24506 | wxPyEndAllowThreads(__tstate); | |
24507 | if (PyErr_Occurred()) SWIG_fail; | |
24508 | } | |
24509 | Py_INCREF(Py_None); resultobj = Py_None; | |
24510 | return resultobj; | |
24511 | fail: | |
24512 | return NULL; | |
24513 | } | |
24514 | ||
24515 | ||
24516 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24517 | PyObject *resultobj; | |
24518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 24519 | wxPyDropTarget *result; |
d14a1e28 RD |
24520 | PyObject * obj0 = 0 ; |
24521 | char *kwnames[] = { | |
24522 | (char *) "self", NULL | |
24523 | }; | |
24524 | ||
24525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
24526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24527 | { | |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 24529 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
24530 | |
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
7722248d | 24534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
24535 | return resultobj; |
24536 | fail: | |
24537 | return NULL; | |
24538 | } | |
24539 | ||
24540 | ||
24541 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24542 | PyObject *resultobj; | |
24543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24544 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
24545 | PyObject * obj0 = 0 ; | |
24546 | PyObject * obj1 = 0 ; | |
24547 | char *kwnames[] = { | |
24548 | (char *) "self",(char *) "constraints", NULL | |
24549 | }; | |
24550 | ||
24551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
24552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24553 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24554 | { | |
24555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24556 | (arg1)->SetConstraints(arg2); | |
24557 | ||
24558 | wxPyEndAllowThreads(__tstate); | |
24559 | if (PyErr_Occurred()) SWIG_fail; | |
24560 | } | |
24561 | Py_INCREF(Py_None); resultobj = Py_None; | |
24562 | return resultobj; | |
24563 | fail: | |
24564 | return NULL; | |
24565 | } | |
24566 | ||
24567 | ||
24568 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24569 | PyObject *resultobj; | |
24570 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24571 | wxLayoutConstraints *result; | |
24572 | PyObject * obj0 = 0 ; | |
24573 | char *kwnames[] = { | |
24574 | (char *) "self", NULL | |
24575 | }; | |
24576 | ||
24577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
24578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24579 | { | |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24596 | bool arg2 ; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | PyObject * obj1 = 0 ; | |
24599 | char *kwnames[] = { | |
24600 | (char *) "self",(char *) "autoLayout", NULL | |
24601 | }; | |
24602 | ||
24603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
24604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
24605 | { |
24606 | arg2 = (bool) SPyObj_AsBool(obj1); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | } | |
d14a1e28 RD |
24609 | { |
24610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24611 | (arg1)->SetAutoLayout(arg2); | |
24612 | ||
24613 | wxPyEndAllowThreads(__tstate); | |
24614 | if (PyErr_Occurred()) SWIG_fail; | |
24615 | } | |
24616 | Py_INCREF(Py_None); resultobj = Py_None; | |
24617 | return resultobj; | |
24618 | fail: | |
24619 | return NULL; | |
24620 | } | |
24621 | ||
24622 | ||
24623 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24624 | PyObject *resultobj; | |
24625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24626 | bool result; | |
24627 | PyObject * obj0 = 0 ; | |
24628 | char *kwnames[] = { | |
24629 | (char *) "self", NULL | |
24630 | }; | |
24631 | ||
24632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
24633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | resultobj = PyInt_FromLong((long)result); | |
24642 | return resultobj; | |
24643 | fail: | |
24644 | return NULL; | |
24645 | } | |
24646 | ||
24647 | ||
24648 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24649 | PyObject *resultobj; | |
24650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24651 | bool result; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
24658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (bool)(arg1)->Layout(); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | resultobj = PyInt_FromLong((long)result); | |
24667 | return resultobj; | |
24668 | fail: | |
24669 | return NULL; | |
24670 | } | |
24671 | ||
24672 | ||
24673 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24674 | PyObject *resultobj; | |
24675 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24676 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 24677 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24678 | PyObject * obj0 = 0 ; |
24679 | PyObject * obj1 = 0 ; | |
24680 | PyObject * obj2 = 0 ; | |
24681 | char *kwnames[] = { | |
24682 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24683 | }; | |
24684 | ||
24685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24687 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24688 | if (obj2) { | |
a41e16b6 RD |
24689 | { |
24690 | arg3 = (bool) SPyObj_AsBool(obj2); | |
24691 | if (PyErr_Occurred()) SWIG_fail; | |
24692 | } | |
d14a1e28 RD |
24693 | } |
24694 | { | |
24695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24696 | (arg1)->SetSizer(arg2,arg3); | |
24697 | ||
24698 | wxPyEndAllowThreads(__tstate); | |
24699 | if (PyErr_Occurred()) SWIG_fail; | |
24700 | } | |
24701 | Py_INCREF(Py_None); resultobj = Py_None; | |
24702 | return resultobj; | |
24703 | fail: | |
24704 | return NULL; | |
24705 | } | |
24706 | ||
24707 | ||
24708 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24709 | PyObject *resultobj; | |
24710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24711 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 24712 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24713 | PyObject * obj0 = 0 ; |
24714 | PyObject * obj1 = 0 ; | |
24715 | PyObject * obj2 = 0 ; | |
24716 | char *kwnames[] = { | |
24717 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24718 | }; | |
24719 | ||
24720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24723 | if (obj2) { | |
a41e16b6 RD |
24724 | { |
24725 | arg3 = (bool) SPyObj_AsBool(obj2); | |
24726 | if (PyErr_Occurred()) SWIG_fail; | |
24727 | } | |
d14a1e28 RD |
24728 | } |
24729 | { | |
24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24731 | (arg1)->SetSizerAndFit(arg2,arg3); | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
24736 | Py_INCREF(Py_None); resultobj = Py_None; | |
24737 | return resultobj; | |
24738 | fail: | |
24739 | return NULL; | |
24740 | } | |
24741 | ||
24742 | ||
24743 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24744 | PyObject *resultobj; | |
24745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24746 | wxSizer *result; | |
24747 | PyObject * obj0 = 0 ; | |
24748 | char *kwnames[] = { | |
24749 | (char *) "self", NULL | |
24750 | }; | |
24751 | ||
24752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
24753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24754 | { | |
24755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24756 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
24757 | ||
24758 | wxPyEndAllowThreads(__tstate); | |
24759 | if (PyErr_Occurred()) SWIG_fail; | |
24760 | } | |
24761 | { | |
24762 | resultobj = wxPyMake_wxSizer(result); | |
24763 | } | |
24764 | return resultobj; | |
24765 | fail: | |
24766 | return NULL; | |
24767 | } | |
24768 | ||
24769 | ||
24770 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24771 | PyObject *resultobj; | |
24772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24773 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24774 | PyObject * obj0 = 0 ; | |
24775 | PyObject * obj1 = 0 ; | |
24776 | char *kwnames[] = { | |
24777 | (char *) "self",(char *) "sizer", NULL | |
24778 | }; | |
24779 | ||
24780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
24781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24783 | { | |
24784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24785 | (arg1)->SetContainingSizer(arg2); | |
24786 | ||
24787 | wxPyEndAllowThreads(__tstate); | |
24788 | if (PyErr_Occurred()) SWIG_fail; | |
24789 | } | |
24790 | Py_INCREF(Py_None); resultobj = Py_None; | |
24791 | return resultobj; | |
24792 | fail: | |
24793 | return NULL; | |
24794 | } | |
24795 | ||
24796 | ||
24797 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24798 | PyObject *resultobj; | |
24799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24800 | wxSizer *result; | |
24801 | PyObject * obj0 = 0 ; | |
24802 | char *kwnames[] = { | |
24803 | (char *) "self", NULL | |
24804 | }; | |
24805 | ||
24806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
24807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24808 | { | |
24809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24810 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
24811 | ||
24812 | wxPyEndAllowThreads(__tstate); | |
24813 | if (PyErr_Occurred()) SWIG_fail; | |
24814 | } | |
24815 | { | |
24816 | resultobj = wxPyMake_wxSizer(result); | |
24817 | } | |
24818 | return resultobj; | |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
24824 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
24825 | PyObject *obj; | |
24826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24827 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
24828 | Py_INCREF(obj); | |
24829 | return Py_BuildValue((char *)""); | |
24830 | } | |
24831 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24832 | PyObject *resultobj; | |
24833 | long arg1 ; | |
24834 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24835 | wxWindow *result; | |
24836 | PyObject * obj1 = 0 ; | |
24837 | char *kwnames[] = { | |
24838 | (char *) "id",(char *) "parent", NULL | |
24839 | }; | |
24840 | ||
24841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l|O:FindWindowById",kwnames,&arg1,&obj1)) goto fail; | |
24842 | if (obj1) { | |
24843 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24844 | } | |
24845 | { | |
24846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24847 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
24848 | ||
24849 | wxPyEndAllowThreads(__tstate); | |
24850 | if (PyErr_Occurred()) SWIG_fail; | |
24851 | } | |
24852 | { | |
24853 | resultobj = wxPyMake_wxObject(result); | |
24854 | } | |
24855 | return resultobj; | |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24862 | PyObject *resultobj; | |
24863 | wxString *arg1 = 0 ; | |
24864 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24865 | wxWindow *result; | |
e811c8ce | 24866 | bool temp1 = False ; |
d14a1e28 RD |
24867 | PyObject * obj0 = 0 ; |
24868 | PyObject * obj1 = 0 ; | |
24869 | char *kwnames[] = { | |
24870 | (char *) "name",(char *) "parent", NULL | |
24871 | }; | |
24872 | ||
24873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24874 | { | |
24875 | arg1 = wxString_in_helper(obj0); | |
24876 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24877 | temp1 = True; |
d14a1e28 RD |
24878 | } |
24879 | if (obj1) { | |
24880 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24881 | } | |
24882 | { | |
24883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24884 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
24885 | ||
24886 | wxPyEndAllowThreads(__tstate); | |
24887 | if (PyErr_Occurred()) SWIG_fail; | |
24888 | } | |
24889 | { | |
24890 | resultobj = wxPyMake_wxObject(result); | |
24891 | } | |
24892 | { | |
24893 | if (temp1) | |
24894 | delete arg1; | |
24895 | } | |
24896 | return resultobj; | |
24897 | fail: | |
24898 | { | |
24899 | if (temp1) | |
24900 | delete arg1; | |
24901 | } | |
24902 | return NULL; | |
24903 | } | |
24904 | ||
24905 | ||
24906 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24907 | PyObject *resultobj; | |
24908 | wxString *arg1 = 0 ; | |
24909 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24910 | wxWindow *result; | |
e811c8ce | 24911 | bool temp1 = False ; |
d14a1e28 RD |
24912 | PyObject * obj0 = 0 ; |
24913 | PyObject * obj1 = 0 ; | |
24914 | char *kwnames[] = { | |
24915 | (char *) "label",(char *) "parent", NULL | |
24916 | }; | |
24917 | ||
24918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
24919 | { | |
24920 | arg1 = wxString_in_helper(obj0); | |
24921 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24922 | temp1 = True; |
d14a1e28 RD |
24923 | } |
24924 | if (obj1) { | |
24925 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24926 | } | |
24927 | { | |
24928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24929 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
24930 | ||
24931 | wxPyEndAllowThreads(__tstate); | |
24932 | if (PyErr_Occurred()) SWIG_fail; | |
24933 | } | |
24934 | { | |
24935 | resultobj = wxPyMake_wxObject(result); | |
24936 | } | |
24937 | { | |
24938 | if (temp1) | |
24939 | delete arg1; | |
24940 | } | |
24941 | return resultobj; | |
24942 | fail: | |
24943 | { | |
24944 | if (temp1) | |
24945 | delete arg1; | |
24946 | } | |
24947 | return NULL; | |
24948 | } | |
24949 | ||
24950 | ||
24951 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24952 | PyObject *resultobj; | |
24953 | unsigned long arg1 ; | |
24954 | wxWindow *result; | |
24955 | PyObject * obj0 = 0 ; | |
24956 | char *kwnames[] = { | |
24957 | (char *) "hWnd", NULL | |
24958 | }; | |
24959 | ||
24960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
a41e16b6 RD |
24961 | { |
24962 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
24963 | if (PyErr_Occurred()) SWIG_fail; | |
24964 | } | |
d14a1e28 RD |
24965 | { |
24966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24967 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
24968 | ||
24969 | wxPyEndAllowThreads(__tstate); | |
24970 | if (PyErr_Occurred()) SWIG_fail; | |
24971 | } | |
24972 | { | |
24973 | resultobj = wxPyMake_wxObject(result); | |
24974 | } | |
24975 | return resultobj; | |
24976 | fail: | |
24977 | return NULL; | |
24978 | } | |
24979 | ||
24980 | ||
24981 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24982 | PyObject *resultobj; | |
24983 | wxValidator *result; | |
24984 | char *kwnames[] = { | |
24985 | NULL | |
24986 | }; | |
24987 | ||
24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
24989 | { | |
24990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24991 | result = (wxValidator *)new wxValidator(); | |
24992 | ||
24993 | wxPyEndAllowThreads(__tstate); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | } | |
24996 | { | |
24997 | resultobj = wxPyMake_wxObject(result); | |
24998 | } | |
24999 | return resultobj; | |
25000 | fail: | |
25001 | return NULL; | |
25002 | } | |
25003 | ||
25004 | ||
25005 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25006 | PyObject *resultobj; | |
25007 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25008 | wxValidator *result; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | char *kwnames[] = { | |
25011 | (char *) "self", NULL | |
25012 | }; | |
25013 | ||
25014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
25015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25016 | { | |
25017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25018 | result = (wxValidator *)(arg1)->Clone(); | |
25019 | ||
25020 | wxPyEndAllowThreads(__tstate); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
25022 | } | |
25023 | { | |
25024 | resultobj = wxPyMake_wxObject(result); | |
25025 | } | |
25026 | return resultobj; | |
25027 | fail: | |
25028 | return NULL; | |
25029 | } | |
25030 | ||
25031 | ||
25032 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25033 | PyObject *resultobj; | |
25034 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25035 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25036 | bool result; | |
25037 | PyObject * obj0 = 0 ; | |
25038 | PyObject * obj1 = 0 ; | |
25039 | char *kwnames[] = { | |
25040 | (char *) "self",(char *) "parent", NULL | |
25041 | }; | |
25042 | ||
25043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
25044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25045 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | result = (bool)(arg1)->Validate(arg2); | |
25049 | ||
25050 | wxPyEndAllowThreads(__tstate); | |
25051 | if (PyErr_Occurred()) SWIG_fail; | |
25052 | } | |
25053 | resultobj = PyInt_FromLong((long)result); | |
25054 | return resultobj; | |
25055 | fail: | |
25056 | return NULL; | |
25057 | } | |
25058 | ||
25059 | ||
25060 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25061 | PyObject *resultobj; | |
25062 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25063 | bool result; | |
25064 | PyObject * obj0 = 0 ; | |
25065 | char *kwnames[] = { | |
25066 | (char *) "self", NULL | |
25067 | }; | |
25068 | ||
25069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
25070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25071 | { | |
25072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25073 | result = (bool)(arg1)->TransferToWindow(); | |
25074 | ||
25075 | wxPyEndAllowThreads(__tstate); | |
25076 | if (PyErr_Occurred()) SWIG_fail; | |
25077 | } | |
25078 | resultobj = PyInt_FromLong((long)result); | |
25079 | return resultobj; | |
25080 | fail: | |
25081 | return NULL; | |
25082 | } | |
25083 | ||
25084 | ||
25085 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25086 | PyObject *resultobj; | |
25087 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25088 | bool result; | |
25089 | PyObject * obj0 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self", NULL | |
25092 | }; | |
25093 | ||
25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
25095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25096 | { | |
25097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25098 | result = (bool)(arg1)->TransferFromWindow(); | |
25099 | ||
25100 | wxPyEndAllowThreads(__tstate); | |
25101 | if (PyErr_Occurred()) SWIG_fail; | |
25102 | } | |
25103 | resultobj = PyInt_FromLong((long)result); | |
25104 | return resultobj; | |
25105 | fail: | |
25106 | return NULL; | |
25107 | } | |
25108 | ||
25109 | ||
25110 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25111 | PyObject *resultobj; | |
25112 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25113 | wxWindow *result; | |
25114 | PyObject * obj0 = 0 ; | |
25115 | char *kwnames[] = { | |
25116 | (char *) "self", NULL | |
25117 | }; | |
25118 | ||
25119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
25120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25121 | { | |
25122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25123 | result = (wxWindow *)(arg1)->GetWindow(); | |
25124 | ||
25125 | wxPyEndAllowThreads(__tstate); | |
25126 | if (PyErr_Occurred()) SWIG_fail; | |
25127 | } | |
25128 | { | |
25129 | resultobj = wxPyMake_wxObject(result); | |
25130 | } | |
25131 | return resultobj; | |
25132 | fail: | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
25137 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25138 | PyObject *resultobj; | |
25139 | wxValidator *arg1 = (wxValidator *) 0 ; | |
25140 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25141 | PyObject * obj0 = 0 ; | |
25142 | PyObject * obj1 = 0 ; | |
25143 | char *kwnames[] = { | |
25144 | (char *) "self",(char *) "window", NULL | |
25145 | }; | |
25146 | ||
25147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
25148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25149 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25150 | { | |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | (arg1)->SetWindow(arg2); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
25157 | Py_INCREF(Py_None); resultobj = Py_None; | |
25158 | return resultobj; | |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
25164 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25165 | PyObject *resultobj; | |
25166 | bool result; | |
25167 | char *kwnames[] = { | |
25168 | NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
25172 | { | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | result = (bool)wxValidator::IsSilent(); | |
25175 | ||
25176 | wxPyEndAllowThreads(__tstate); | |
25177 | if (PyErr_Occurred()) SWIG_fail; | |
25178 | } | |
25179 | resultobj = PyInt_FromLong((long)result); | |
25180 | return resultobj; | |
25181 | fail: | |
25182 | return NULL; | |
25183 | } | |
25184 | ||
25185 | ||
25186 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25187 | PyObject *resultobj; | |
e811c8ce | 25188 | int arg1 = (int) True ; |
d14a1e28 RD |
25189 | char *kwnames[] = { |
25190 | (char *) "doIt", NULL | |
25191 | }; | |
25192 | ||
25193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:Validator_SetBellOnError",kwnames,&arg1)) goto fail; | |
25194 | { | |
25195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25196 | wxValidator::SetBellOnError(arg1); | |
25197 | ||
25198 | wxPyEndAllowThreads(__tstate); | |
25199 | if (PyErr_Occurred()) SWIG_fail; | |
25200 | } | |
25201 | Py_INCREF(Py_None); resultobj = Py_None; | |
25202 | return resultobj; | |
25203 | fail: | |
25204 | return NULL; | |
25205 | } | |
25206 | ||
25207 | ||
25208 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
25209 | PyObject *obj; | |
25210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25211 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
25212 | Py_INCREF(obj); | |
25213 | return Py_BuildValue((char *)""); | |
25214 | } | |
25215 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25216 | PyObject *resultobj; | |
25217 | wxPyValidator *result; | |
25218 | char *kwnames[] = { | |
25219 | NULL | |
25220 | }; | |
25221 | ||
25222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
25223 | { | |
25224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25225 | result = (wxPyValidator *)new wxPyValidator(); | |
25226 | ||
25227 | wxPyEndAllowThreads(__tstate); | |
25228 | if (PyErr_Occurred()) SWIG_fail; | |
25229 | } | |
25230 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | return NULL; | |
25234 | } | |
25235 | ||
25236 | ||
25237 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25238 | PyObject *resultobj; | |
25239 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
25240 | PyObject *arg2 = (PyObject *) 0 ; | |
25241 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 25242 | int arg4 = (int) True ; |
d14a1e28 RD |
25243 | PyObject * obj0 = 0 ; |
25244 | PyObject * obj1 = 0 ; | |
25245 | PyObject * obj2 = 0 ; | |
25246 | char *kwnames[] = { | |
25247 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25248 | }; | |
25249 | ||
25250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
25251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25252 | arg2 = obj1; | |
25253 | arg3 = obj2; | |
25254 | { | |
25255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25256 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25257 | ||
25258 | wxPyEndAllowThreads(__tstate); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
25261 | Py_INCREF(Py_None); resultobj = Py_None; | |
25262 | return resultobj; | |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
25268 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
25269 | PyObject *obj; | |
25270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25271 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
25272 | Py_INCREF(obj); | |
25273 | return Py_BuildValue((char *)""); | |
25274 | } | |
25275 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
25276 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
25277 | return 1; | |
25278 | } | |
25279 | ||
25280 | ||
25281 | static PyObject *_wrap_DefaultValidator_get() { | |
25282 | PyObject *pyobj; | |
25283 | ||
25284 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
25285 | return pyobj; | |
25286 | } | |
25287 | ||
25288 | ||
25289 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25290 | PyObject *resultobj; | |
25291 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25292 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25293 | long arg2 = (long) 0 ; | |
25294 | wxMenu *result; | |
e811c8ce | 25295 | bool temp1 = False ; |
d14a1e28 RD |
25296 | PyObject * obj0 = 0 ; |
25297 | char *kwnames[] = { | |
25298 | (char *) "title",(char *) "style", NULL | |
25299 | }; | |
25300 | ||
25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Ol:new_Menu",kwnames,&obj0,&arg2)) goto fail; | |
25302 | if (obj0) { | |
25303 | { | |
25304 | arg1 = wxString_in_helper(obj0); | |
25305 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25306 | temp1 = True; |
d14a1e28 RD |
25307 | } |
25308 | } | |
25309 | { | |
25310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25311 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
25312 | ||
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | { | |
25317 | resultobj = wxPyMake_wxObject(result); | |
25318 | } | |
25319 | { | |
25320 | if (temp1) | |
25321 | delete arg1; | |
25322 | } | |
25323 | return resultobj; | |
25324 | fail: | |
25325 | { | |
25326 | if (temp1) | |
25327 | delete arg1; | |
25328 | } | |
25329 | return NULL; | |
25330 | } | |
25331 | ||
25332 | ||
25333 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25334 | PyObject *resultobj; | |
25335 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25336 | int arg2 ; | |
25337 | wxString *arg3 = 0 ; | |
25338 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25339 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25340 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 25341 | wxMenuItem *result; |
e811c8ce RD |
25342 | bool temp3 = False ; |
25343 | bool temp4 = False ; | |
d14a1e28 RD |
25344 | PyObject * obj0 = 0 ; |
25345 | PyObject * obj2 = 0 ; | |
25346 | PyObject * obj3 = 0 ; | |
25347 | char *kwnames[] = { | |
242b7b46 | 25348 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25349 | }; |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Append",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25353 | { | |
25354 | arg3 = wxString_in_helper(obj2); | |
25355 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25356 | temp3 = True; |
d14a1e28 RD |
25357 | } |
25358 | if (obj3) { | |
25359 | { | |
25360 | arg4 = wxString_in_helper(obj3); | |
25361 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25362 | temp4 = True; |
d14a1e28 RD |
25363 | } |
25364 | } | |
25365 | { | |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25367 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
25368 | |
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
a41e16b6 RD |
25372 | { |
25373 | resultobj = wxPyMake_wxObject(result); | |
25374 | } | |
d14a1e28 RD |
25375 | { |
25376 | if (temp3) | |
25377 | delete arg3; | |
25378 | } | |
25379 | { | |
25380 | if (temp4) | |
25381 | delete arg4; | |
25382 | } | |
25383 | return resultobj; | |
25384 | fail: | |
25385 | { | |
25386 | if (temp3) | |
25387 | delete arg3; | |
25388 | } | |
25389 | { | |
25390 | if (temp4) | |
25391 | delete arg4; | |
25392 | } | |
25393 | return NULL; | |
25394 | } | |
25395 | ||
25396 | ||
25397 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25398 | PyObject *resultobj; | |
25399 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 25400 | wxMenuItem *result; |
d14a1e28 RD |
25401 | PyObject * obj0 = 0 ; |
25402 | char *kwnames[] = { | |
25403 | (char *) "self", NULL | |
25404 | }; | |
25405 | ||
25406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
25407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25408 | { | |
25409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25410 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
25411 | |
25412 | wxPyEndAllowThreads(__tstate); | |
25413 | if (PyErr_Occurred()) SWIG_fail; | |
25414 | } | |
a41e16b6 RD |
25415 | { |
25416 | resultobj = wxPyMake_wxObject(result); | |
25417 | } | |
d14a1e28 RD |
25418 | return resultobj; |
25419 | fail: | |
25420 | return NULL; | |
25421 | } | |
25422 | ||
25423 | ||
25424 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25425 | PyObject *resultobj; | |
25426 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25427 | int arg2 ; | |
25428 | wxString *arg3 = 0 ; | |
25429 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25430 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 25431 | wxMenuItem *result; |
e811c8ce RD |
25432 | bool temp3 = False ; |
25433 | bool temp4 = False ; | |
d14a1e28 RD |
25434 | PyObject * obj0 = 0 ; |
25435 | PyObject * obj2 = 0 ; | |
25436 | PyObject * obj3 = 0 ; | |
25437 | char *kwnames[] = { | |
242b7b46 | 25438 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25439 | }; |
25440 | ||
25441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25443 | { | |
25444 | arg3 = wxString_in_helper(obj2); | |
25445 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25446 | temp3 = True; |
d14a1e28 RD |
25447 | } |
25448 | if (obj3) { | |
25449 | { | |
25450 | arg4 = wxString_in_helper(obj3); | |
25451 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25452 | temp4 = True; |
d14a1e28 RD |
25453 | } |
25454 | } | |
25455 | { | |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25457 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
25458 | |
25459 | wxPyEndAllowThreads(__tstate); | |
25460 | if (PyErr_Occurred()) SWIG_fail; | |
25461 | } | |
a41e16b6 RD |
25462 | { |
25463 | resultobj = wxPyMake_wxObject(result); | |
25464 | } | |
d14a1e28 RD |
25465 | { |
25466 | if (temp3) | |
25467 | delete arg3; | |
25468 | } | |
25469 | { | |
25470 | if (temp4) | |
25471 | delete arg4; | |
25472 | } | |
25473 | return resultobj; | |
25474 | fail: | |
25475 | { | |
25476 | if (temp3) | |
25477 | delete arg3; | |
25478 | } | |
25479 | { | |
25480 | if (temp4) | |
25481 | delete arg4; | |
25482 | } | |
25483 | return NULL; | |
25484 | } | |
25485 | ||
25486 | ||
25487 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25488 | PyObject *resultobj; | |
25489 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25490 | int arg2 ; | |
25491 | wxString *arg3 = 0 ; | |
25492 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25493 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 25494 | wxMenuItem *result; |
e811c8ce RD |
25495 | bool temp3 = False ; |
25496 | bool temp4 = False ; | |
d14a1e28 RD |
25497 | PyObject * obj0 = 0 ; |
25498 | PyObject * obj2 = 0 ; | |
25499 | PyObject * obj3 = 0 ; | |
25500 | char *kwnames[] = { | |
242b7b46 | 25501 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25502 | }; |
25503 | ||
25504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25506 | { | |
25507 | arg3 = wxString_in_helper(obj2); | |
25508 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25509 | temp3 = True; |
d14a1e28 RD |
25510 | } |
25511 | if (obj3) { | |
25512 | { | |
25513 | arg4 = wxString_in_helper(obj3); | |
25514 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25515 | temp4 = True; |
d14a1e28 RD |
25516 | } |
25517 | } | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25520 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
25521 | |
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
a41e16b6 RD |
25525 | { |
25526 | resultobj = wxPyMake_wxObject(result); | |
25527 | } | |
d14a1e28 RD |
25528 | { |
25529 | if (temp3) | |
25530 | delete arg3; | |
25531 | } | |
25532 | { | |
25533 | if (temp4) | |
25534 | delete arg4; | |
25535 | } | |
25536 | return resultobj; | |
25537 | fail: | |
25538 | { | |
25539 | if (temp3) | |
25540 | delete arg3; | |
25541 | } | |
25542 | { | |
25543 | if (temp4) | |
25544 | delete arg4; | |
25545 | } | |
25546 | return NULL; | |
25547 | } | |
25548 | ||
25549 | ||
25550 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25551 | PyObject *resultobj; | |
25552 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25553 | int arg2 ; | |
25554 | wxString *arg3 = 0 ; | |
25555 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25556 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25557 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 25558 | wxMenuItem *result; |
e811c8ce RD |
25559 | bool temp3 = False ; |
25560 | bool temp5 = False ; | |
d14a1e28 RD |
25561 | PyObject * obj0 = 0 ; |
25562 | PyObject * obj2 = 0 ; | |
25563 | PyObject * obj3 = 0 ; | |
25564 | PyObject * obj4 = 0 ; | |
25565 | char *kwnames[] = { | |
242b7b46 | 25566 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25567 | }; |
25568 | ||
25569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_AppendMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25571 | { | |
25572 | arg3 = wxString_in_helper(obj2); | |
25573 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25574 | temp3 = True; |
d14a1e28 RD |
25575 | } |
25576 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25577 | if (obj4) { | |
25578 | { | |
25579 | arg5 = wxString_in_helper(obj4); | |
25580 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 25581 | temp5 = True; |
d14a1e28 RD |
25582 | } |
25583 | } | |
25584 | { | |
25585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25586 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
25587 | |
25588 | wxPyEndAllowThreads(__tstate); | |
25589 | if (PyErr_Occurred()) SWIG_fail; | |
25590 | } | |
a41e16b6 RD |
25591 | { |
25592 | resultobj = wxPyMake_wxObject(result); | |
25593 | } | |
d14a1e28 RD |
25594 | { |
25595 | if (temp3) | |
25596 | delete arg3; | |
25597 | } | |
25598 | { | |
25599 | if (temp5) | |
25600 | delete arg5; | |
25601 | } | |
25602 | return resultobj; | |
25603 | fail: | |
25604 | { | |
25605 | if (temp3) | |
25606 | delete arg3; | |
25607 | } | |
25608 | { | |
25609 | if (temp5) | |
25610 | delete arg5; | |
25611 | } | |
25612 | return NULL; | |
25613 | } | |
25614 | ||
25615 | ||
25616 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25617 | PyObject *resultobj; | |
25618 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25619 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 25620 | wxMenuItem *result; |
d14a1e28 RD |
25621 | PyObject * obj0 = 0 ; |
25622 | PyObject * obj1 = 0 ; | |
25623 | char *kwnames[] = { | |
25624 | (char *) "self",(char *) "item", NULL | |
25625 | }; | |
25626 | ||
25627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
25628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25629 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25630 | { | |
25631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25632 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
25633 | |
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
a41e16b6 RD |
25637 | { |
25638 | resultobj = wxPyMake_wxObject(result); | |
25639 | } | |
d14a1e28 RD |
25640 | return resultobj; |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
25646 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25647 | PyObject *resultobj; | |
25648 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25649 | PyObject * obj0 = 0 ; | |
25650 | char *kwnames[] = { | |
25651 | (char *) "self", NULL | |
25652 | }; | |
25653 | ||
25654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
25655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | (arg1)->Break(); | |
25659 | ||
25660 | wxPyEndAllowThreads(__tstate); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
25663 | Py_INCREF(Py_None); resultobj = Py_None; | |
25664 | return resultobj; | |
25665 | fail: | |
25666 | return NULL; | |
25667 | } | |
25668 | ||
25669 | ||
25670 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25671 | PyObject *resultobj; | |
25672 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25673 | size_t arg2 ; | |
25674 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 25675 | wxMenuItem *result; |
d14a1e28 RD |
25676 | PyObject * obj0 = 0 ; |
25677 | PyObject * obj1 = 0 ; | |
25678 | PyObject * obj2 = 0 ; | |
25679 | char *kwnames[] = { | |
25680 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
25681 | }; | |
25682 | ||
25683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25685 | { |
25686 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
25688 | } | |
d14a1e28 RD |
25689 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25690 | { | |
25691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25692 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
25693 | |
25694 | wxPyEndAllowThreads(__tstate); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
a41e16b6 RD |
25697 | { |
25698 | resultobj = wxPyMake_wxObject(result); | |
25699 | } | |
d14a1e28 RD |
25700 | return resultobj; |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25707 | PyObject *resultobj; | |
25708 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25709 | size_t arg2 ; | |
25710 | int arg3 ; | |
25711 | wxString *arg4 = 0 ; | |
25712 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25713 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25714 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 25715 | wxMenuItem *result; |
e811c8ce RD |
25716 | bool temp4 = False ; |
25717 | bool temp5 = False ; | |
d14a1e28 RD |
25718 | PyObject * obj0 = 0 ; |
25719 | PyObject * obj1 = 0 ; | |
25720 | PyObject * obj3 = 0 ; | |
25721 | PyObject * obj4 = 0 ; | |
25722 | char *kwnames[] = { | |
242b7b46 | 25723 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25724 | }; |
25725 | ||
25726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|Oi:Menu_Insert",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
25727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25728 | { |
25729 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25730 | if (PyErr_Occurred()) SWIG_fail; | |
25731 | } | |
d14a1e28 RD |
25732 | { |
25733 | arg4 = wxString_in_helper(obj3); | |
25734 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25735 | temp4 = True; |
d14a1e28 RD |
25736 | } |
25737 | if (obj4) { | |
25738 | { | |
25739 | arg5 = wxString_in_helper(obj4); | |
25740 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 25741 | temp5 = True; |
d14a1e28 RD |
25742 | } |
25743 | } | |
25744 | { | |
25745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25746 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
25747 | |
25748 | wxPyEndAllowThreads(__tstate); | |
25749 | if (PyErr_Occurred()) SWIG_fail; | |
25750 | } | |
a41e16b6 RD |
25751 | { |
25752 | resultobj = wxPyMake_wxObject(result); | |
25753 | } | |
d14a1e28 RD |
25754 | { |
25755 | if (temp4) | |
25756 | delete arg4; | |
25757 | } | |
25758 | { | |
25759 | if (temp5) | |
25760 | delete arg5; | |
25761 | } | |
25762 | return resultobj; | |
25763 | fail: | |
25764 | { | |
25765 | if (temp4) | |
25766 | delete arg4; | |
25767 | } | |
25768 | { | |
25769 | if (temp5) | |
25770 | delete arg5; | |
25771 | } | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
25776 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25777 | PyObject *resultobj; | |
25778 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25779 | size_t arg2 ; | |
a41e16b6 | 25780 | wxMenuItem *result; |
d14a1e28 RD |
25781 | PyObject * obj0 = 0 ; |
25782 | PyObject * obj1 = 0 ; | |
25783 | char *kwnames[] = { | |
25784 | (char *) "self",(char *) "pos", NULL | |
25785 | }; | |
25786 | ||
25787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
25788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25789 | { |
25790 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25791 | if (PyErr_Occurred()) SWIG_fail; | |
25792 | } | |
d14a1e28 RD |
25793 | { |
25794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25795 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
25796 | |
25797 | wxPyEndAllowThreads(__tstate); | |
25798 | if (PyErr_Occurred()) SWIG_fail; | |
25799 | } | |
a41e16b6 RD |
25800 | { |
25801 | resultobj = wxPyMake_wxObject(result); | |
25802 | } | |
d14a1e28 RD |
25803 | return resultobj; |
25804 | fail: | |
25805 | return NULL; | |
25806 | } | |
25807 | ||
25808 | ||
25809 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25810 | PyObject *resultobj; | |
25811 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25812 | size_t arg2 ; | |
25813 | int arg3 ; | |
25814 | wxString *arg4 = 0 ; | |
25815 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25816 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 25817 | wxMenuItem *result; |
e811c8ce RD |
25818 | bool temp4 = False ; |
25819 | bool temp5 = False ; | |
d14a1e28 RD |
25820 | PyObject * obj0 = 0 ; |
25821 | PyObject * obj1 = 0 ; | |
25822 | PyObject * obj3 = 0 ; | |
25823 | PyObject * obj4 = 0 ; | |
25824 | char *kwnames[] = { | |
242b7b46 | 25825 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25826 | }; |
25827 | ||
25828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25830 | { |
25831 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25832 | if (PyErr_Occurred()) SWIG_fail; | |
25833 | } | |
d14a1e28 RD |
25834 | { |
25835 | arg4 = wxString_in_helper(obj3); | |
25836 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25837 | temp4 = True; |
d14a1e28 RD |
25838 | } |
25839 | if (obj4) { | |
25840 | { | |
25841 | arg5 = wxString_in_helper(obj4); | |
25842 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 25843 | temp5 = True; |
d14a1e28 RD |
25844 | } |
25845 | } | |
25846 | { | |
25847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25848 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
25849 | |
25850 | wxPyEndAllowThreads(__tstate); | |
25851 | if (PyErr_Occurred()) SWIG_fail; | |
25852 | } | |
a41e16b6 RD |
25853 | { |
25854 | resultobj = wxPyMake_wxObject(result); | |
25855 | } | |
d14a1e28 RD |
25856 | { |
25857 | if (temp4) | |
25858 | delete arg4; | |
25859 | } | |
25860 | { | |
25861 | if (temp5) | |
25862 | delete arg5; | |
25863 | } | |
25864 | return resultobj; | |
25865 | fail: | |
25866 | { | |
25867 | if (temp4) | |
25868 | delete arg4; | |
25869 | } | |
25870 | { | |
25871 | if (temp5) | |
25872 | delete arg5; | |
25873 | } | |
25874 | return NULL; | |
25875 | } | |
25876 | ||
25877 | ||
25878 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25879 | PyObject *resultobj; | |
25880 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25881 | size_t arg2 ; | |
25882 | int arg3 ; | |
25883 | wxString *arg4 = 0 ; | |
25884 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25885 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 25886 | wxMenuItem *result; |
e811c8ce RD |
25887 | bool temp4 = False ; |
25888 | bool temp5 = False ; | |
d14a1e28 RD |
25889 | PyObject * obj0 = 0 ; |
25890 | PyObject * obj1 = 0 ; | |
25891 | PyObject * obj3 = 0 ; | |
25892 | PyObject * obj4 = 0 ; | |
25893 | char *kwnames[] = { | |
242b7b46 | 25894 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25895 | }; |
25896 | ||
25897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25899 | { |
25900 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25901 | if (PyErr_Occurred()) SWIG_fail; | |
25902 | } | |
d14a1e28 RD |
25903 | { |
25904 | arg4 = wxString_in_helper(obj3); | |
25905 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25906 | temp4 = True; |
d14a1e28 RD |
25907 | } |
25908 | if (obj4) { | |
25909 | { | |
25910 | arg5 = wxString_in_helper(obj4); | |
25911 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 25912 | temp5 = True; |
d14a1e28 RD |
25913 | } |
25914 | } | |
25915 | { | |
25916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25917 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
25918 | |
25919 | wxPyEndAllowThreads(__tstate); | |
25920 | if (PyErr_Occurred()) SWIG_fail; | |
25921 | } | |
a41e16b6 RD |
25922 | { |
25923 | resultobj = wxPyMake_wxObject(result); | |
25924 | } | |
d14a1e28 RD |
25925 | { |
25926 | if (temp4) | |
25927 | delete arg4; | |
25928 | } | |
25929 | { | |
25930 | if (temp5) | |
25931 | delete arg5; | |
25932 | } | |
25933 | return resultobj; | |
25934 | fail: | |
25935 | { | |
25936 | if (temp4) | |
25937 | delete arg4; | |
25938 | } | |
25939 | { | |
25940 | if (temp5) | |
25941 | delete arg5; | |
25942 | } | |
25943 | return NULL; | |
25944 | } | |
25945 | ||
25946 | ||
25947 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25948 | PyObject *resultobj; | |
25949 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25950 | size_t arg2 ; | |
25951 | int arg3 ; | |
25952 | wxString *arg4 = 0 ; | |
25953 | wxMenu *arg5 = (wxMenu *) 0 ; | |
25954 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25955 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 25956 | wxMenuItem *result; |
e811c8ce RD |
25957 | bool temp4 = False ; |
25958 | bool temp6 = False ; | |
d14a1e28 RD |
25959 | PyObject * obj0 = 0 ; |
25960 | PyObject * obj1 = 0 ; | |
25961 | PyObject * obj3 = 0 ; | |
25962 | PyObject * obj4 = 0 ; | |
25963 | PyObject * obj5 = 0 ; | |
25964 | char *kwnames[] = { | |
242b7b46 | 25965 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25966 | }; |
25967 | ||
25968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
25969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
25970 | { |
25971 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
25972 | if (PyErr_Occurred()) SWIG_fail; | |
25973 | } | |
d14a1e28 RD |
25974 | { |
25975 | arg4 = wxString_in_helper(obj3); | |
25976 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25977 | temp4 = True; |
d14a1e28 RD |
25978 | } |
25979 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25980 | if (obj5) { | |
25981 | { | |
25982 | arg6 = wxString_in_helper(obj5); | |
25983 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 25984 | temp6 = True; |
d14a1e28 RD |
25985 | } |
25986 | } | |
25987 | { | |
25988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 25989 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
25990 | |
25991 | wxPyEndAllowThreads(__tstate); | |
25992 | if (PyErr_Occurred()) SWIG_fail; | |
25993 | } | |
a41e16b6 RD |
25994 | { |
25995 | resultobj = wxPyMake_wxObject(result); | |
25996 | } | |
d14a1e28 RD |
25997 | { |
25998 | if (temp4) | |
25999 | delete arg4; | |
26000 | } | |
26001 | { | |
26002 | if (temp6) | |
26003 | delete arg6; | |
26004 | } | |
26005 | return resultobj; | |
26006 | fail: | |
26007 | { | |
26008 | if (temp4) | |
26009 | delete arg4; | |
26010 | } | |
26011 | { | |
26012 | if (temp6) | |
26013 | delete arg6; | |
26014 | } | |
26015 | return NULL; | |
26016 | } | |
26017 | ||
26018 | ||
26019 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26020 | PyObject *resultobj; | |
26021 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26022 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 26023 | wxMenuItem *result; |
d14a1e28 RD |
26024 | PyObject * obj0 = 0 ; |
26025 | PyObject * obj1 = 0 ; | |
26026 | char *kwnames[] = { | |
26027 | (char *) "self",(char *) "item", NULL | |
26028 | }; | |
26029 | ||
26030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
26031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26033 | { | |
26034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26035 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
26036 | |
26037 | wxPyEndAllowThreads(__tstate); | |
26038 | if (PyErr_Occurred()) SWIG_fail; | |
26039 | } | |
a41e16b6 RD |
26040 | { |
26041 | resultobj = wxPyMake_wxObject(result); | |
26042 | } | |
d14a1e28 RD |
26043 | return resultobj; |
26044 | fail: | |
26045 | return NULL; | |
26046 | } | |
26047 | ||
26048 | ||
26049 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26050 | PyObject *resultobj; | |
26051 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26052 | int arg2 ; | |
26053 | wxString *arg3 = 0 ; | |
26054 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26055 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26056 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 26057 | wxMenuItem *result; |
e811c8ce RD |
26058 | bool temp3 = False ; |
26059 | bool temp4 = False ; | |
d14a1e28 RD |
26060 | PyObject * obj0 = 0 ; |
26061 | PyObject * obj2 = 0 ; | |
26062 | PyObject * obj3 = 0 ; | |
26063 | char *kwnames[] = { | |
242b7b46 | 26064 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
26065 | }; |
26066 | ||
26067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Prepend",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
26068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26069 | { | |
26070 | arg3 = wxString_in_helper(obj2); | |
26071 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26072 | temp3 = True; |
d14a1e28 RD |
26073 | } |
26074 | if (obj3) { | |
26075 | { | |
26076 | arg4 = wxString_in_helper(obj3); | |
26077 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26078 | temp4 = True; |
d14a1e28 RD |
26079 | } |
26080 | } | |
26081 | { | |
26082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26083 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
26084 | |
26085 | wxPyEndAllowThreads(__tstate); | |
26086 | if (PyErr_Occurred()) SWIG_fail; | |
26087 | } | |
a41e16b6 RD |
26088 | { |
26089 | resultobj = wxPyMake_wxObject(result); | |
26090 | } | |
d14a1e28 RD |
26091 | { |
26092 | if (temp3) | |
26093 | delete arg3; | |
26094 | } | |
26095 | { | |
26096 | if (temp4) | |
26097 | delete arg4; | |
26098 | } | |
26099 | return resultobj; | |
26100 | fail: | |
26101 | { | |
26102 | if (temp3) | |
26103 | delete arg3; | |
26104 | } | |
26105 | { | |
26106 | if (temp4) | |
26107 | delete arg4; | |
26108 | } | |
26109 | return NULL; | |
26110 | } | |
26111 | ||
26112 | ||
26113 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26114 | PyObject *resultobj; | |
26115 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 26116 | wxMenuItem *result; |
d14a1e28 RD |
26117 | PyObject * obj0 = 0 ; |
26118 | char *kwnames[] = { | |
26119 | (char *) "self", NULL | |
26120 | }; | |
26121 | ||
26122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
26123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26124 | { | |
26125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26126 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
26127 | |
26128 | wxPyEndAllowThreads(__tstate); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
a41e16b6 RD |
26131 | { |
26132 | resultobj = wxPyMake_wxObject(result); | |
26133 | } | |
d14a1e28 RD |
26134 | return resultobj; |
26135 | fail: | |
26136 | return NULL; | |
26137 | } | |
26138 | ||
26139 | ||
26140 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26141 | PyObject *resultobj; | |
26142 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26143 | int arg2 ; | |
26144 | wxString *arg3 = 0 ; | |
26145 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26146 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 26147 | wxMenuItem *result; |
e811c8ce RD |
26148 | bool temp3 = False ; |
26149 | bool temp4 = False ; | |
d14a1e28 RD |
26150 | PyObject * obj0 = 0 ; |
26151 | PyObject * obj2 = 0 ; | |
26152 | PyObject * obj3 = 0 ; | |
26153 | char *kwnames[] = { | |
242b7b46 | 26154 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
26155 | }; |
26156 | ||
26157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
26158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26159 | { | |
26160 | arg3 = wxString_in_helper(obj2); | |
26161 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26162 | temp3 = True; |
d14a1e28 RD |
26163 | } |
26164 | if (obj3) { | |
26165 | { | |
26166 | arg4 = wxString_in_helper(obj3); | |
26167 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26168 | temp4 = True; |
d14a1e28 RD |
26169 | } |
26170 | } | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26173 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
26174 | |
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
a41e16b6 RD |
26178 | { |
26179 | resultobj = wxPyMake_wxObject(result); | |
26180 | } | |
d14a1e28 RD |
26181 | { |
26182 | if (temp3) | |
26183 | delete arg3; | |
26184 | } | |
26185 | { | |
26186 | if (temp4) | |
26187 | delete arg4; | |
26188 | } | |
26189 | return resultobj; | |
26190 | fail: | |
26191 | { | |
26192 | if (temp3) | |
26193 | delete arg3; | |
26194 | } | |
26195 | { | |
26196 | if (temp4) | |
26197 | delete arg4; | |
26198 | } | |
26199 | return NULL; | |
26200 | } | |
26201 | ||
26202 | ||
26203 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26204 | PyObject *resultobj; | |
26205 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26206 | int arg2 ; | |
26207 | wxString *arg3 = 0 ; | |
26208 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26209 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 26210 | wxMenuItem *result; |
e811c8ce RD |
26211 | bool temp3 = False ; |
26212 | bool temp4 = False ; | |
d14a1e28 RD |
26213 | PyObject * obj0 = 0 ; |
26214 | PyObject * obj2 = 0 ; | |
26215 | PyObject * obj3 = 0 ; | |
26216 | char *kwnames[] = { | |
242b7b46 | 26217 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
26218 | }; |
26219 | ||
26220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
26221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26222 | { | |
26223 | arg3 = wxString_in_helper(obj2); | |
26224 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26225 | temp3 = True; |
d14a1e28 RD |
26226 | } |
26227 | if (obj3) { | |
26228 | { | |
26229 | arg4 = wxString_in_helper(obj3); | |
26230 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26231 | temp4 = True; |
d14a1e28 RD |
26232 | } |
26233 | } | |
26234 | { | |
26235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26236 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
26237 | |
26238 | wxPyEndAllowThreads(__tstate); | |
26239 | if (PyErr_Occurred()) SWIG_fail; | |
26240 | } | |
a41e16b6 RD |
26241 | { |
26242 | resultobj = wxPyMake_wxObject(result); | |
26243 | } | |
d14a1e28 RD |
26244 | { |
26245 | if (temp3) | |
26246 | delete arg3; | |
26247 | } | |
26248 | { | |
26249 | if (temp4) | |
26250 | delete arg4; | |
26251 | } | |
26252 | return resultobj; | |
26253 | fail: | |
26254 | { | |
26255 | if (temp3) | |
26256 | delete arg3; | |
26257 | } | |
26258 | { | |
26259 | if (temp4) | |
26260 | delete arg4; | |
26261 | } | |
26262 | return NULL; | |
26263 | } | |
26264 | ||
26265 | ||
26266 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26267 | PyObject *resultobj; | |
26268 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26269 | int arg2 ; | |
26270 | wxString *arg3 = 0 ; | |
26271 | wxMenu *arg4 = (wxMenu *) 0 ; | |
26272 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
26273 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 26274 | wxMenuItem *result; |
e811c8ce RD |
26275 | bool temp3 = False ; |
26276 | bool temp5 = False ; | |
d14a1e28 RD |
26277 | PyObject * obj0 = 0 ; |
26278 | PyObject * obj2 = 0 ; | |
26279 | PyObject * obj3 = 0 ; | |
26280 | PyObject * obj4 = 0 ; | |
26281 | char *kwnames[] = { | |
242b7b46 | 26282 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
26283 | }; |
26284 | ||
26285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_PrependMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
26286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26287 | { | |
26288 | arg3 = wxString_in_helper(obj2); | |
26289 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26290 | temp3 = True; |
d14a1e28 RD |
26291 | } |
26292 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26293 | if (obj4) { | |
26294 | { | |
26295 | arg5 = wxString_in_helper(obj4); | |
26296 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 26297 | temp5 = True; |
d14a1e28 RD |
26298 | } |
26299 | } | |
26300 | { | |
26301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26302 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
26303 | |
26304 | wxPyEndAllowThreads(__tstate); | |
26305 | if (PyErr_Occurred()) SWIG_fail; | |
26306 | } | |
a41e16b6 RD |
26307 | { |
26308 | resultobj = wxPyMake_wxObject(result); | |
26309 | } | |
d14a1e28 RD |
26310 | { |
26311 | if (temp3) | |
26312 | delete arg3; | |
26313 | } | |
26314 | { | |
26315 | if (temp5) | |
26316 | delete arg5; | |
26317 | } | |
26318 | return resultobj; | |
26319 | fail: | |
26320 | { | |
26321 | if (temp3) | |
26322 | delete arg3; | |
26323 | } | |
26324 | { | |
26325 | if (temp5) | |
26326 | delete arg5; | |
26327 | } | |
26328 | return NULL; | |
26329 | } | |
26330 | ||
26331 | ||
26332 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26333 | PyObject *resultobj; | |
26334 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26335 | int arg2 ; | |
26336 | wxMenuItem *result; | |
26337 | PyObject * obj0 = 0 ; | |
26338 | char *kwnames[] = { | |
242b7b46 | 26339 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26340 | }; |
26341 | ||
26342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Remove",kwnames,&obj0,&arg2)) goto fail; | |
26343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26344 | { | |
26345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26346 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
26347 | ||
26348 | wxPyEndAllowThreads(__tstate); | |
26349 | if (PyErr_Occurred()) SWIG_fail; | |
26350 | } | |
26351 | { | |
26352 | resultobj = wxPyMake_wxObject(result); | |
26353 | } | |
26354 | return resultobj; | |
26355 | fail: | |
26356 | return NULL; | |
26357 | } | |
26358 | ||
26359 | ||
26360 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26361 | PyObject *resultobj; | |
26362 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26363 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26364 | wxMenuItem *result; | |
26365 | PyObject * obj0 = 0 ; | |
26366 | PyObject * obj1 = 0 ; | |
26367 | char *kwnames[] = { | |
26368 | (char *) "self",(char *) "item", NULL | |
26369 | }; | |
26370 | ||
26371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
26372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26373 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26374 | { | |
26375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26376 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
26377 | ||
26378 | wxPyEndAllowThreads(__tstate); | |
26379 | if (PyErr_Occurred()) SWIG_fail; | |
26380 | } | |
26381 | { | |
26382 | resultobj = wxPyMake_wxObject(result); | |
26383 | } | |
26384 | return resultobj; | |
26385 | fail: | |
26386 | return NULL; | |
26387 | } | |
26388 | ||
26389 | ||
26390 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26391 | PyObject *resultobj; | |
26392 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26393 | int arg2 ; | |
26394 | bool result; | |
26395 | PyObject * obj0 = 0 ; | |
26396 | char *kwnames[] = { | |
242b7b46 | 26397 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26398 | }; |
26399 | ||
26400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Delete",kwnames,&obj0,&arg2)) goto fail; | |
26401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26402 | { | |
26403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26404 | result = (bool)(arg1)->Delete(arg2); | |
26405 | ||
26406 | wxPyEndAllowThreads(__tstate); | |
26407 | if (PyErr_Occurred()) SWIG_fail; | |
26408 | } | |
26409 | resultobj = PyInt_FromLong((long)result); | |
26410 | return resultobj; | |
26411 | fail: | |
26412 | return NULL; | |
26413 | } | |
26414 | ||
26415 | ||
26416 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26417 | PyObject *resultobj; | |
26418 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26419 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26420 | bool result; | |
26421 | PyObject * obj0 = 0 ; | |
26422 | PyObject * obj1 = 0 ; | |
26423 | char *kwnames[] = { | |
26424 | (char *) "self",(char *) "item", NULL | |
26425 | }; | |
26426 | ||
26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
26428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26429 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26430 | { | |
26431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26432 | result = (bool)(arg1)->Delete(arg2); | |
26433 | ||
26434 | wxPyEndAllowThreads(__tstate); | |
26435 | if (PyErr_Occurred()) SWIG_fail; | |
26436 | } | |
26437 | resultobj = PyInt_FromLong((long)result); | |
26438 | return resultobj; | |
26439 | fail: | |
26440 | return NULL; | |
26441 | } | |
26442 | ||
26443 | ||
26444 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26445 | PyObject *resultobj; | |
26446 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26447 | PyObject * obj0 = 0 ; | |
26448 | char *kwnames[] = { | |
26449 | (char *) "self", NULL | |
26450 | }; | |
26451 | ||
26452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
26453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26454 | { | |
26455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26456 | wxMenu_Destroy(arg1); | |
26457 | ||
26458 | wxPyEndAllowThreads(__tstate); | |
26459 | if (PyErr_Occurred()) SWIG_fail; | |
26460 | } | |
26461 | Py_INCREF(Py_None); resultobj = Py_None; | |
26462 | return resultobj; | |
26463 | fail: | |
26464 | return NULL; | |
26465 | } | |
26466 | ||
26467 | ||
26468 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26469 | PyObject *resultobj; | |
26470 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26471 | int arg2 ; | |
26472 | bool result; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | char *kwnames[] = { | |
242b7b46 | 26475 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26476 | }; |
26477 | ||
26478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_DestroyId",kwnames,&obj0,&arg2)) goto fail; | |
26479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26480 | { | |
26481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26482 | result = (bool)(arg1)->Destroy(arg2); | |
26483 | ||
26484 | wxPyEndAllowThreads(__tstate); | |
26485 | if (PyErr_Occurred()) SWIG_fail; | |
26486 | } | |
26487 | resultobj = PyInt_FromLong((long)result); | |
26488 | return resultobj; | |
26489 | fail: | |
26490 | return NULL; | |
26491 | } | |
26492 | ||
26493 | ||
26494 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26495 | PyObject *resultobj; | |
26496 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26497 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26498 | bool result; | |
26499 | PyObject * obj0 = 0 ; | |
26500 | PyObject * obj1 = 0 ; | |
26501 | char *kwnames[] = { | |
26502 | (char *) "self",(char *) "item", NULL | |
26503 | }; | |
26504 | ||
26505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
26506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26507 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26508 | { | |
26509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26510 | result = (bool)(arg1)->Destroy(arg2); | |
26511 | ||
26512 | wxPyEndAllowThreads(__tstate); | |
26513 | if (PyErr_Occurred()) SWIG_fail; | |
26514 | } | |
26515 | resultobj = PyInt_FromLong((long)result); | |
26516 | return resultobj; | |
26517 | fail: | |
26518 | return NULL; | |
26519 | } | |
26520 | ||
26521 | ||
26522 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26523 | PyObject *resultobj; | |
26524 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26525 | size_t result; | |
26526 | PyObject * obj0 = 0 ; | |
26527 | char *kwnames[] = { | |
26528 | (char *) "self", NULL | |
26529 | }; | |
26530 | ||
26531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
26532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26533 | { | |
26534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26535 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
26536 | ||
26537 | wxPyEndAllowThreads(__tstate); | |
26538 | if (PyErr_Occurred()) SWIG_fail; | |
26539 | } | |
a41e16b6 | 26540 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
26541 | return resultobj; |
26542 | fail: | |
26543 | return NULL; | |
26544 | } | |
26545 | ||
26546 | ||
26547 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26548 | PyObject *resultobj; | |
26549 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26550 | PyObject *result; | |
26551 | PyObject * obj0 = 0 ; | |
26552 | char *kwnames[] = { | |
26553 | (char *) "self", NULL | |
26554 | }; | |
26555 | ||
26556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
26557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26558 | { | |
26559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26560 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
26561 | ||
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | resultobj = result; | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
26569 | } | |
26570 | ||
26571 | ||
26572 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26573 | PyObject *resultobj; | |
26574 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26575 | wxString *arg2 = 0 ; | |
26576 | int result; | |
e811c8ce | 26577 | bool temp2 = False ; |
d14a1e28 RD |
26578 | PyObject * obj0 = 0 ; |
26579 | PyObject * obj1 = 0 ; | |
26580 | char *kwnames[] = { | |
26581 | (char *) "self",(char *) "item", NULL | |
26582 | }; | |
26583 | ||
26584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
26585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26586 | { | |
26587 | arg2 = wxString_in_helper(obj1); | |
26588 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26589 | temp2 = True; |
d14a1e28 RD |
26590 | } |
26591 | { | |
26592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26593 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
26594 | ||
26595 | wxPyEndAllowThreads(__tstate); | |
26596 | if (PyErr_Occurred()) SWIG_fail; | |
26597 | } | |
26598 | resultobj = PyInt_FromLong((long)result); | |
26599 | { | |
26600 | if (temp2) | |
26601 | delete arg2; | |
26602 | } | |
26603 | return resultobj; | |
26604 | fail: | |
26605 | { | |
26606 | if (temp2) | |
26607 | delete arg2; | |
26608 | } | |
26609 | return NULL; | |
26610 | } | |
26611 | ||
26612 | ||
26613 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26614 | PyObject *resultobj; | |
26615 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26616 | int arg2 ; | |
26617 | wxMenuItem *result; | |
26618 | PyObject * obj0 = 0 ; | |
26619 | char *kwnames[] = { | |
242b7b46 | 26620 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26621 | }; |
26622 | ||
26623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
26624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26625 | { | |
26626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26627 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
26628 | ||
26629 | wxPyEndAllowThreads(__tstate); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | } | |
26632 | { | |
26633 | resultobj = wxPyMake_wxObject(result); | |
26634 | } | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
26641 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26642 | PyObject *resultobj; | |
26643 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26644 | size_t arg2 ; | |
26645 | wxMenuItem *result; | |
26646 | PyObject * obj0 = 0 ; | |
26647 | PyObject * obj1 = 0 ; | |
26648 | char *kwnames[] = { | |
26649 | (char *) "self",(char *) "position", NULL | |
26650 | }; | |
26651 | ||
26652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
26653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
26654 | { |
26655 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
26656 | if (PyErr_Occurred()) SWIG_fail; | |
26657 | } | |
d14a1e28 RD |
26658 | { |
26659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26660 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
26661 | ||
26662 | wxPyEndAllowThreads(__tstate); | |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
26664 | } | |
26665 | { | |
26666 | resultobj = wxPyMake_wxObject(result); | |
26667 | } | |
26668 | return resultobj; | |
26669 | fail: | |
26670 | return NULL; | |
26671 | } | |
26672 | ||
26673 | ||
26674 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26675 | PyObject *resultobj; | |
26676 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26677 | int arg2 ; | |
26678 | bool arg3 ; | |
26679 | PyObject * obj0 = 0 ; | |
26680 | PyObject * obj2 = 0 ; | |
26681 | char *kwnames[] = { | |
242b7b46 | 26682 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
26683 | }; |
26684 | ||
26685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
26687 | { |
26688 | arg3 = (bool) SPyObj_AsBool(obj2); | |
26689 | if (PyErr_Occurred()) SWIG_fail; | |
26690 | } | |
d14a1e28 RD |
26691 | { |
26692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26693 | (arg1)->Enable(arg2,arg3); | |
26694 | ||
26695 | wxPyEndAllowThreads(__tstate); | |
26696 | if (PyErr_Occurred()) SWIG_fail; | |
26697 | } | |
26698 | Py_INCREF(Py_None); resultobj = Py_None; | |
26699 | return resultobj; | |
26700 | fail: | |
26701 | return NULL; | |
26702 | } | |
26703 | ||
26704 | ||
26705 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26706 | PyObject *resultobj; | |
26707 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26708 | int arg2 ; | |
26709 | bool result; | |
26710 | PyObject * obj0 = 0 ; | |
26711 | char *kwnames[] = { | |
242b7b46 | 26712 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26713 | }; |
26714 | ||
26715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
26716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26717 | { | |
26718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26719 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
26720 | ||
26721 | wxPyEndAllowThreads(__tstate); | |
26722 | if (PyErr_Occurred()) SWIG_fail; | |
26723 | } | |
26724 | resultobj = PyInt_FromLong((long)result); | |
26725 | return resultobj; | |
26726 | fail: | |
26727 | return NULL; | |
26728 | } | |
26729 | ||
26730 | ||
26731 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26732 | PyObject *resultobj; | |
26733 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26734 | int arg2 ; | |
26735 | bool arg3 ; | |
26736 | PyObject * obj0 = 0 ; | |
26737 | PyObject * obj2 = 0 ; | |
26738 | char *kwnames[] = { | |
242b7b46 | 26739 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
26740 | }; |
26741 | ||
26742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
26744 | { |
26745 | arg3 = (bool) SPyObj_AsBool(obj2); | |
26746 | if (PyErr_Occurred()) SWIG_fail; | |
26747 | } | |
d14a1e28 RD |
26748 | { |
26749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26750 | (arg1)->Check(arg2,arg3); | |
26751 | ||
26752 | wxPyEndAllowThreads(__tstate); | |
26753 | if (PyErr_Occurred()) SWIG_fail; | |
26754 | } | |
26755 | Py_INCREF(Py_None); resultobj = Py_None; | |
26756 | return resultobj; | |
26757 | fail: | |
26758 | return NULL; | |
26759 | } | |
26760 | ||
26761 | ||
26762 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26763 | PyObject *resultobj; | |
26764 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26765 | int arg2 ; | |
26766 | bool result; | |
26767 | PyObject * obj0 = 0 ; | |
26768 | char *kwnames[] = { | |
242b7b46 | 26769 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26770 | }; |
26771 | ||
26772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
26773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26774 | { | |
26775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26776 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
26777 | ||
26778 | wxPyEndAllowThreads(__tstate); | |
26779 | if (PyErr_Occurred()) SWIG_fail; | |
26780 | } | |
26781 | resultobj = PyInt_FromLong((long)result); | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | return NULL; | |
26785 | } | |
26786 | ||
26787 | ||
26788 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26789 | PyObject *resultobj; | |
26790 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26791 | int arg2 ; | |
26792 | wxString *arg3 = 0 ; | |
e811c8ce | 26793 | bool temp3 = False ; |
d14a1e28 RD |
26794 | PyObject * obj0 = 0 ; |
26795 | PyObject * obj2 = 0 ; | |
26796 | char *kwnames[] = { | |
242b7b46 | 26797 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
26798 | }; |
26799 | ||
26800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26802 | { | |
26803 | arg3 = wxString_in_helper(obj2); | |
26804 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26805 | temp3 = True; |
d14a1e28 RD |
26806 | } |
26807 | { | |
26808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26809 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
26810 | ||
26811 | wxPyEndAllowThreads(__tstate); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
26814 | Py_INCREF(Py_None); resultobj = Py_None; | |
26815 | { | |
26816 | if (temp3) | |
26817 | delete arg3; | |
26818 | } | |
26819 | return resultobj; | |
26820 | fail: | |
26821 | { | |
26822 | if (temp3) | |
26823 | delete arg3; | |
26824 | } | |
26825 | return NULL; | |
26826 | } | |
26827 | ||
26828 | ||
26829 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26830 | PyObject *resultobj; | |
26831 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26832 | int arg2 ; | |
26833 | wxString result; | |
26834 | PyObject * obj0 = 0 ; | |
26835 | char *kwnames[] = { | |
242b7b46 | 26836 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26837 | }; |
26838 | ||
26839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
26840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26841 | { | |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26843 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
26848 | { | |
26849 | #if wxUSE_UNICODE | |
26850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26851 | #else | |
26852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26853 | #endif | |
26854 | } | |
26855 | return resultobj; | |
26856 | fail: | |
26857 | return NULL; | |
26858 | } | |
26859 | ||
26860 | ||
26861 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26862 | PyObject *resultobj; | |
26863 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26864 | int arg2 ; | |
26865 | wxString *arg3 = 0 ; | |
e811c8ce | 26866 | bool temp3 = False ; |
d14a1e28 RD |
26867 | PyObject * obj0 = 0 ; |
26868 | PyObject * obj2 = 0 ; | |
26869 | char *kwnames[] = { | |
242b7b46 | 26870 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
26871 | }; |
26872 | ||
26873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26875 | { | |
26876 | arg3 = wxString_in_helper(obj2); | |
26877 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26878 | temp3 = True; |
d14a1e28 RD |
26879 | } |
26880 | { | |
26881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26882 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
26883 | ||
26884 | wxPyEndAllowThreads(__tstate); | |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
26886 | } | |
26887 | Py_INCREF(Py_None); resultobj = Py_None; | |
26888 | { | |
26889 | if (temp3) | |
26890 | delete arg3; | |
26891 | } | |
26892 | return resultobj; | |
26893 | fail: | |
26894 | { | |
26895 | if (temp3) | |
26896 | delete arg3; | |
26897 | } | |
26898 | return NULL; | |
26899 | } | |
26900 | ||
26901 | ||
26902 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26903 | PyObject *resultobj; | |
26904 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26905 | int arg2 ; | |
26906 | wxString result; | |
26907 | PyObject * obj0 = 0 ; | |
26908 | char *kwnames[] = { | |
242b7b46 | 26909 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26910 | }; |
26911 | ||
26912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
26913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26914 | { | |
26915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26916 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
26917 | ||
26918 | wxPyEndAllowThreads(__tstate); | |
26919 | if (PyErr_Occurred()) SWIG_fail; | |
26920 | } | |
26921 | { | |
26922 | #if wxUSE_UNICODE | |
26923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26924 | #else | |
26925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26926 | #endif | |
26927 | } | |
26928 | return resultobj; | |
26929 | fail: | |
26930 | return NULL; | |
26931 | } | |
26932 | ||
26933 | ||
26934 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26935 | PyObject *resultobj; | |
26936 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26937 | wxString *arg2 = 0 ; | |
e811c8ce | 26938 | bool temp2 = False ; |
d14a1e28 RD |
26939 | PyObject * obj0 = 0 ; |
26940 | PyObject * obj1 = 0 ; | |
26941 | char *kwnames[] = { | |
26942 | (char *) "self",(char *) "title", NULL | |
26943 | }; | |
26944 | ||
26945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
26946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26947 | { | |
26948 | arg2 = wxString_in_helper(obj1); | |
26949 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26950 | temp2 = True; |
d14a1e28 RD |
26951 | } |
26952 | { | |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | (arg1)->SetTitle((wxString const &)*arg2); | |
26955 | ||
26956 | wxPyEndAllowThreads(__tstate); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
26958 | } | |
26959 | Py_INCREF(Py_None); resultobj = Py_None; | |
26960 | { | |
26961 | if (temp2) | |
26962 | delete arg2; | |
26963 | } | |
26964 | return resultobj; | |
26965 | fail: | |
26966 | { | |
26967 | if (temp2) | |
26968 | delete arg2; | |
26969 | } | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
26974 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26975 | PyObject *resultobj; | |
26976 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26977 | wxString result; | |
26978 | PyObject * obj0 = 0 ; | |
26979 | char *kwnames[] = { | |
26980 | (char *) "self", NULL | |
26981 | }; | |
26982 | ||
26983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
26984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26985 | { | |
26986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26987 | result = ((wxMenu const *)arg1)->GetTitle(); | |
26988 | ||
26989 | wxPyEndAllowThreads(__tstate); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | } | |
26992 | { | |
26993 | #if wxUSE_UNICODE | |
26994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26995 | #else | |
26996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26997 | #endif | |
26998 | } | |
26999 | return resultobj; | |
27000 | fail: | |
27001 | return NULL; | |
27002 | } | |
27003 | ||
27004 | ||
27005 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27006 | PyObject *resultobj; | |
27007 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27008 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
27009 | PyObject * obj0 = 0 ; | |
27010 | PyObject * obj1 = 0 ; | |
27011 | char *kwnames[] = { | |
27012 | (char *) "self",(char *) "handler", NULL | |
27013 | }; | |
27014 | ||
27015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
27016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27018 | { | |
27019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27020 | (arg1)->SetEventHandler(arg2); | |
27021 | ||
27022 | wxPyEndAllowThreads(__tstate); | |
27023 | if (PyErr_Occurred()) SWIG_fail; | |
27024 | } | |
27025 | Py_INCREF(Py_None); resultobj = Py_None; | |
27026 | return resultobj; | |
27027 | fail: | |
27028 | return NULL; | |
27029 | } | |
27030 | ||
27031 | ||
27032 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27033 | PyObject *resultobj; | |
27034 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27035 | wxEvtHandler *result; | |
27036 | PyObject * obj0 = 0 ; | |
27037 | char *kwnames[] = { | |
27038 | (char *) "self", NULL | |
27039 | }; | |
27040 | ||
27041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
27042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27043 | { | |
27044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27045 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
27046 | ||
27047 | wxPyEndAllowThreads(__tstate); | |
27048 | if (PyErr_Occurred()) SWIG_fail; | |
27049 | } | |
27050 | { | |
27051 | resultobj = wxPyMake_wxObject(result); | |
27052 | } | |
27053 | return resultobj; | |
27054 | fail: | |
27055 | return NULL; | |
27056 | } | |
27057 | ||
27058 | ||
27059 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27060 | PyObject *resultobj; | |
27061 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27062 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27063 | PyObject * obj0 = 0 ; | |
27064 | PyObject * obj1 = 0 ; | |
27065 | char *kwnames[] = { | |
27066 | (char *) "self",(char *) "win", NULL | |
27067 | }; | |
27068 | ||
27069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
27070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27071 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27072 | { | |
27073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27074 | (arg1)->SetInvokingWindow(arg2); | |
27075 | ||
27076 | wxPyEndAllowThreads(__tstate); | |
27077 | if (PyErr_Occurred()) SWIG_fail; | |
27078 | } | |
27079 | Py_INCREF(Py_None); resultobj = Py_None; | |
27080 | return resultobj; | |
27081 | fail: | |
27082 | return NULL; | |
27083 | } | |
27084 | ||
27085 | ||
27086 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27087 | PyObject *resultobj; | |
27088 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27089 | wxWindow *result; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | char *kwnames[] = { | |
27092 | (char *) "self", NULL | |
27093 | }; | |
27094 | ||
27095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
27096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27097 | { | |
27098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27099 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
27100 | ||
27101 | wxPyEndAllowThreads(__tstate); | |
27102 | if (PyErr_Occurred()) SWIG_fail; | |
27103 | } | |
27104 | { | |
27105 | resultobj = wxPyMake_wxObject(result); | |
27106 | } | |
27107 | return resultobj; | |
27108 | fail: | |
27109 | return NULL; | |
27110 | } | |
27111 | ||
27112 | ||
27113 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27114 | PyObject *resultobj; | |
27115 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27116 | long result; | |
27117 | PyObject * obj0 = 0 ; | |
27118 | char *kwnames[] = { | |
27119 | (char *) "self", NULL | |
27120 | }; | |
27121 | ||
27122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
27123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27124 | { | |
27125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27126 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
27127 | ||
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
27131 | resultobj = PyInt_FromLong((long)result); | |
27132 | return resultobj; | |
27133 | fail: | |
27134 | return NULL; | |
27135 | } | |
27136 | ||
27137 | ||
27138 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27139 | PyObject *resultobj; | |
27140 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27141 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
27142 | PyObject * obj0 = 0 ; | |
27143 | PyObject * obj1 = 0 ; | |
27144 | char *kwnames[] = { | |
27145 | (char *) "self",(char *) "source", NULL | |
27146 | }; | |
27147 | ||
27148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
27149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27150 | if (obj1) { | |
27151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27152 | } | |
27153 | { | |
27154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27155 | (arg1)->UpdateUI(arg2); | |
27156 | ||
27157 | wxPyEndAllowThreads(__tstate); | |
27158 | if (PyErr_Occurred()) SWIG_fail; | |
27159 | } | |
27160 | Py_INCREF(Py_None); resultobj = Py_None; | |
27161 | return resultobj; | |
27162 | fail: | |
27163 | return NULL; | |
27164 | } | |
27165 | ||
27166 | ||
27167 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27168 | PyObject *resultobj; | |
27169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27170 | wxMenuBar *result; | |
27171 | PyObject * obj0 = 0 ; | |
27172 | char *kwnames[] = { | |
27173 | (char *) "self", NULL | |
27174 | }; | |
27175 | ||
27176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
27177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27178 | { | |
27179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27180 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
27181 | ||
27182 | wxPyEndAllowThreads(__tstate); | |
27183 | if (PyErr_Occurred()) SWIG_fail; | |
27184 | } | |
27185 | { | |
27186 | resultobj = wxPyMake_wxObject(result); | |
27187 | } | |
27188 | return resultobj; | |
27189 | fail: | |
27190 | return NULL; | |
27191 | } | |
27192 | ||
27193 | ||
27194 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27195 | PyObject *resultobj; | |
27196 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27197 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
27198 | PyObject * obj0 = 0 ; | |
27199 | PyObject * obj1 = 0 ; | |
27200 | char *kwnames[] = { | |
27201 | (char *) "self",(char *) "menubar", NULL | |
27202 | }; | |
27203 | ||
27204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
27205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27206 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27207 | { | |
27208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27209 | (arg1)->Attach(arg2); | |
27210 | ||
27211 | wxPyEndAllowThreads(__tstate); | |
27212 | if (PyErr_Occurred()) SWIG_fail; | |
27213 | } | |
27214 | Py_INCREF(Py_None); resultobj = Py_None; | |
27215 | return resultobj; | |
27216 | fail: | |
27217 | return NULL; | |
27218 | } | |
27219 | ||
27220 | ||
27221 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27222 | PyObject *resultobj; | |
27223 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27224 | PyObject * obj0 = 0 ; | |
27225 | char *kwnames[] = { | |
27226 | (char *) "self", NULL | |
27227 | }; | |
27228 | ||
27229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
27230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27231 | { | |
27232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27233 | (arg1)->Detach(); | |
27234 | ||
27235 | wxPyEndAllowThreads(__tstate); | |
27236 | if (PyErr_Occurred()) SWIG_fail; | |
27237 | } | |
27238 | Py_INCREF(Py_None); resultobj = Py_None; | |
27239 | return resultobj; | |
27240 | fail: | |
27241 | return NULL; | |
27242 | } | |
27243 | ||
27244 | ||
27245 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27246 | PyObject *resultobj; | |
27247 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27248 | bool result; | |
27249 | PyObject * obj0 = 0 ; | |
27250 | char *kwnames[] = { | |
27251 | (char *) "self", NULL | |
27252 | }; | |
27253 | ||
27254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
27255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27256 | { | |
27257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27258 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
27259 | ||
27260 | wxPyEndAllowThreads(__tstate); | |
27261 | if (PyErr_Occurred()) SWIG_fail; | |
27262 | } | |
27263 | resultobj = PyInt_FromLong((long)result); | |
27264 | return resultobj; | |
27265 | fail: | |
27266 | return NULL; | |
27267 | } | |
27268 | ||
27269 | ||
27270 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27271 | PyObject *resultobj; | |
27272 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27273 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27274 | PyObject * obj0 = 0 ; | |
27275 | PyObject * obj1 = 0 ; | |
27276 | char *kwnames[] = { | |
27277 | (char *) "self",(char *) "parent", NULL | |
27278 | }; | |
27279 | ||
27280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
27281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27283 | { | |
27284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27285 | (arg1)->SetParent(arg2); | |
27286 | ||
27287 | wxPyEndAllowThreads(__tstate); | |
27288 | if (PyErr_Occurred()) SWIG_fail; | |
27289 | } | |
27290 | Py_INCREF(Py_None); resultobj = Py_None; | |
27291 | return resultobj; | |
27292 | fail: | |
27293 | return NULL; | |
27294 | } | |
27295 | ||
27296 | ||
27297 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27298 | PyObject *resultobj; | |
27299 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27300 | wxMenu *result; | |
27301 | PyObject * obj0 = 0 ; | |
27302 | char *kwnames[] = { | |
27303 | (char *) "self", NULL | |
27304 | }; | |
27305 | ||
27306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
27307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27308 | { | |
27309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27310 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
27311 | ||
27312 | wxPyEndAllowThreads(__tstate); | |
27313 | if (PyErr_Occurred()) SWIG_fail; | |
27314 | } | |
27315 | { | |
27316 | resultobj = wxPyMake_wxObject(result); | |
27317 | } | |
27318 | return resultobj; | |
27319 | fail: | |
27320 | return NULL; | |
27321 | } | |
27322 | ||
27323 | ||
27324 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
27325 | PyObject *obj; | |
27326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27327 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
27328 | Py_INCREF(obj); | |
27329 | return Py_BuildValue((char *)""); | |
27330 | } | |
27331 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27332 | PyObject *resultobj; | |
27333 | long arg1 = (long) 0 ; | |
27334 | wxMenuBar *result; | |
27335 | char *kwnames[] = { | |
27336 | (char *) "style", NULL | |
27337 | }; | |
27338 | ||
27339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|l:new_MenuBar",kwnames,&arg1)) goto fail; | |
27340 | { | |
27341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27342 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
27343 | ||
27344 | wxPyEndAllowThreads(__tstate); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | { | |
27348 | resultobj = wxPyMake_wxObject(result); | |
27349 | } | |
27350 | return resultobj; | |
27351 | fail: | |
27352 | return NULL; | |
27353 | } | |
27354 | ||
27355 | ||
27356 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27357 | PyObject *resultobj; | |
27358 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27359 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27360 | wxString *arg3 = 0 ; | |
27361 | bool result; | |
e811c8ce | 27362 | bool temp3 = False ; |
d14a1e28 RD |
27363 | PyObject * obj0 = 0 ; |
27364 | PyObject * obj1 = 0 ; | |
27365 | PyObject * obj2 = 0 ; | |
27366 | char *kwnames[] = { | |
27367 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
27368 | }; | |
27369 | ||
27370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27373 | { | |
27374 | arg3 = wxString_in_helper(obj2); | |
27375 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27376 | temp3 = True; |
d14a1e28 RD |
27377 | } |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27380 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
27381 | ||
27382 | wxPyEndAllowThreads(__tstate); | |
27383 | if (PyErr_Occurred()) SWIG_fail; | |
27384 | } | |
27385 | resultobj = PyInt_FromLong((long)result); | |
27386 | { | |
27387 | if (temp3) | |
27388 | delete arg3; | |
27389 | } | |
27390 | return resultobj; | |
27391 | fail: | |
27392 | { | |
27393 | if (temp3) | |
27394 | delete arg3; | |
27395 | } | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27403 | size_t arg2 ; | |
27404 | wxMenu *arg3 = (wxMenu *) 0 ; | |
27405 | wxString *arg4 = 0 ; | |
27406 | bool result; | |
e811c8ce | 27407 | bool temp4 = False ; |
d14a1e28 RD |
27408 | PyObject * obj0 = 0 ; |
27409 | PyObject * obj1 = 0 ; | |
27410 | PyObject * obj2 = 0 ; | |
27411 | PyObject * obj3 = 0 ; | |
27412 | char *kwnames[] = { | |
27413 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
27414 | }; | |
27415 | ||
27416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27418 | { |
27419 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27420 | if (PyErr_Occurred()) SWIG_fail; | |
27421 | } | |
d14a1e28 RD |
27422 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27423 | { | |
27424 | arg4 = wxString_in_helper(obj3); | |
27425 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27426 | temp4 = True; |
d14a1e28 RD |
27427 | } |
27428 | { | |
27429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27430 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
27431 | ||
27432 | wxPyEndAllowThreads(__tstate); | |
27433 | if (PyErr_Occurred()) SWIG_fail; | |
27434 | } | |
27435 | resultobj = PyInt_FromLong((long)result); | |
27436 | { | |
27437 | if (temp4) | |
27438 | delete arg4; | |
27439 | } | |
27440 | return resultobj; | |
27441 | fail: | |
27442 | { | |
27443 | if (temp4) | |
27444 | delete arg4; | |
27445 | } | |
27446 | return NULL; | |
27447 | } | |
27448 | ||
27449 | ||
27450 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27451 | PyObject *resultobj; | |
27452 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27453 | size_t result; | |
27454 | PyObject * obj0 = 0 ; | |
27455 | char *kwnames[] = { | |
27456 | (char *) "self", NULL | |
27457 | }; | |
27458 | ||
27459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
27460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27461 | { | |
27462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27463 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
27464 | ||
27465 | wxPyEndAllowThreads(__tstate); | |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | } | |
a41e16b6 | 27468 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
27469 | return resultobj; |
27470 | fail: | |
27471 | return NULL; | |
27472 | } | |
27473 | ||
27474 | ||
27475 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27476 | PyObject *resultobj; | |
27477 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27478 | size_t arg2 ; | |
27479 | wxMenu *result; | |
27480 | PyObject * obj0 = 0 ; | |
27481 | PyObject * obj1 = 0 ; | |
27482 | char *kwnames[] = { | |
27483 | (char *) "self",(char *) "pos", NULL | |
27484 | }; | |
27485 | ||
27486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27488 | { |
27489 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
d14a1e28 RD |
27492 | { |
27493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27494 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
27495 | ||
27496 | wxPyEndAllowThreads(__tstate); | |
27497 | if (PyErr_Occurred()) SWIG_fail; | |
27498 | } | |
27499 | { | |
27500 | resultobj = wxPyMake_wxObject(result); | |
27501 | } | |
27502 | return resultobj; | |
27503 | fail: | |
27504 | return NULL; | |
27505 | } | |
27506 | ||
27507 | ||
27508 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27509 | PyObject *resultobj; | |
27510 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27511 | size_t arg2 ; | |
27512 | wxMenu *arg3 = (wxMenu *) 0 ; | |
27513 | wxString *arg4 = 0 ; | |
27514 | wxMenu *result; | |
e811c8ce | 27515 | bool temp4 = False ; |
d14a1e28 RD |
27516 | PyObject * obj0 = 0 ; |
27517 | PyObject * obj1 = 0 ; | |
27518 | PyObject * obj2 = 0 ; | |
27519 | PyObject * obj3 = 0 ; | |
27520 | char *kwnames[] = { | |
27521 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
27522 | }; | |
27523 | ||
27524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27526 | { |
27527 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27528 | if (PyErr_Occurred()) SWIG_fail; | |
27529 | } | |
d14a1e28 RD |
27530 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27531 | { | |
27532 | arg4 = wxString_in_helper(obj3); | |
27533 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27534 | temp4 = True; |
d14a1e28 RD |
27535 | } |
27536 | { | |
27537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27538 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
27539 | ||
27540 | wxPyEndAllowThreads(__tstate); | |
27541 | if (PyErr_Occurred()) SWIG_fail; | |
27542 | } | |
27543 | { | |
27544 | resultobj = wxPyMake_wxObject(result); | |
27545 | } | |
27546 | { | |
27547 | if (temp4) | |
27548 | delete arg4; | |
27549 | } | |
27550 | return resultobj; | |
27551 | fail: | |
27552 | { | |
27553 | if (temp4) | |
27554 | delete arg4; | |
27555 | } | |
27556 | return NULL; | |
27557 | } | |
27558 | ||
27559 | ||
27560 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27561 | PyObject *resultobj; | |
27562 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27563 | size_t arg2 ; | |
27564 | wxMenu *result; | |
27565 | PyObject * obj0 = 0 ; | |
27566 | PyObject * obj1 = 0 ; | |
27567 | char *kwnames[] = { | |
27568 | (char *) "self",(char *) "pos", NULL | |
27569 | }; | |
27570 | ||
27571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
27572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27573 | { |
27574 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27575 | if (PyErr_Occurred()) SWIG_fail; | |
27576 | } | |
d14a1e28 RD |
27577 | { |
27578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27579 | result = (wxMenu *)(arg1)->Remove(arg2); | |
27580 | ||
27581 | wxPyEndAllowThreads(__tstate); | |
27582 | if (PyErr_Occurred()) SWIG_fail; | |
27583 | } | |
27584 | { | |
27585 | resultobj = wxPyMake_wxObject(result); | |
27586 | } | |
27587 | return resultobj; | |
27588 | fail: | |
27589 | return NULL; | |
27590 | } | |
27591 | ||
27592 | ||
27593 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27594 | PyObject *resultobj; | |
27595 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27596 | size_t arg2 ; | |
27597 | bool arg3 ; | |
27598 | PyObject * obj0 = 0 ; | |
27599 | PyObject * obj1 = 0 ; | |
27600 | PyObject * obj2 = 0 ; | |
27601 | char *kwnames[] = { | |
27602 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
27603 | }; | |
27604 | ||
27605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27607 | { |
27608 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | { | |
27612 | arg3 = (bool) SPyObj_AsBool(obj2); | |
27613 | if (PyErr_Occurred()) SWIG_fail; | |
27614 | } | |
d14a1e28 RD |
27615 | { |
27616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27617 | (arg1)->EnableTop(arg2,arg3); | |
27618 | ||
27619 | wxPyEndAllowThreads(__tstate); | |
27620 | if (PyErr_Occurred()) SWIG_fail; | |
27621 | } | |
27622 | Py_INCREF(Py_None); resultobj = Py_None; | |
27623 | return resultobj; | |
27624 | fail: | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
27629 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27630 | PyObject *resultobj; | |
27631 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27632 | size_t arg2 ; | |
27633 | bool result; | |
27634 | PyObject * obj0 = 0 ; | |
27635 | PyObject * obj1 = 0 ; | |
27636 | char *kwnames[] = { | |
27637 | (char *) "self",(char *) "pos", NULL | |
27638 | }; | |
27639 | ||
27640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
27641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27642 | { |
27643 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27644 | if (PyErr_Occurred()) SWIG_fail; | |
27645 | } | |
d14a1e28 RD |
27646 | { |
27647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27648 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
27649 | ||
27650 | wxPyEndAllowThreads(__tstate); | |
27651 | if (PyErr_Occurred()) SWIG_fail; | |
27652 | } | |
27653 | resultobj = PyInt_FromLong((long)result); | |
27654 | return resultobj; | |
27655 | fail: | |
27656 | return NULL; | |
27657 | } | |
27658 | ||
27659 | ||
27660 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27661 | PyObject *resultobj; | |
27662 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27663 | size_t arg2 ; | |
27664 | wxString *arg3 = 0 ; | |
e811c8ce | 27665 | bool temp3 = False ; |
d14a1e28 RD |
27666 | PyObject * obj0 = 0 ; |
27667 | PyObject * obj1 = 0 ; | |
27668 | PyObject * obj2 = 0 ; | |
27669 | char *kwnames[] = { | |
27670 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
27671 | }; | |
27672 | ||
27673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27675 | { |
27676 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
d14a1e28 RD |
27679 | { |
27680 | arg3 = wxString_in_helper(obj2); | |
27681 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27682 | temp3 = True; |
d14a1e28 RD |
27683 | } |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | Py_INCREF(Py_None); resultobj = Py_None; | |
27692 | { | |
27693 | if (temp3) | |
27694 | delete arg3; | |
27695 | } | |
27696 | return resultobj; | |
27697 | fail: | |
27698 | { | |
27699 | if (temp3) | |
27700 | delete arg3; | |
27701 | } | |
27702 | return NULL; | |
27703 | } | |
27704 | ||
27705 | ||
27706 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27707 | PyObject *resultobj; | |
27708 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27709 | size_t arg2 ; | |
27710 | wxString result; | |
27711 | PyObject * obj0 = 0 ; | |
27712 | PyObject * obj1 = 0 ; | |
27713 | char *kwnames[] = { | |
27714 | (char *) "self",(char *) "pos", NULL | |
27715 | }; | |
27716 | ||
27717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
27718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27719 | { |
27720 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
d14a1e28 RD |
27723 | { |
27724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27725 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
27726 | ||
27727 | wxPyEndAllowThreads(__tstate); | |
27728 | if (PyErr_Occurred()) SWIG_fail; | |
27729 | } | |
27730 | { | |
27731 | #if wxUSE_UNICODE | |
27732 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27733 | #else | |
27734 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27735 | #endif | |
27736 | } | |
27737 | return resultobj; | |
27738 | fail: | |
27739 | return NULL; | |
27740 | } | |
27741 | ||
27742 | ||
27743 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27744 | PyObject *resultobj; | |
27745 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27746 | wxString *arg2 = 0 ; | |
27747 | wxString *arg3 = 0 ; | |
27748 | int result; | |
e811c8ce RD |
27749 | bool temp2 = False ; |
27750 | bool temp3 = False ; | |
d14a1e28 RD |
27751 | PyObject * obj0 = 0 ; |
27752 | PyObject * obj1 = 0 ; | |
27753 | PyObject * obj2 = 0 ; | |
27754 | char *kwnames[] = { | |
27755 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
27756 | }; | |
27757 | ||
27758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27760 | { | |
27761 | arg2 = wxString_in_helper(obj1); | |
27762 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27763 | temp2 = True; |
d14a1e28 RD |
27764 | } |
27765 | { | |
27766 | arg3 = wxString_in_helper(obj2); | |
27767 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27768 | temp3 = True; |
d14a1e28 RD |
27769 | } |
27770 | { | |
27771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27772 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
27773 | ||
27774 | wxPyEndAllowThreads(__tstate); | |
27775 | if (PyErr_Occurred()) SWIG_fail; | |
27776 | } | |
27777 | resultobj = PyInt_FromLong((long)result); | |
27778 | { | |
27779 | if (temp2) | |
27780 | delete arg2; | |
27781 | } | |
27782 | { | |
27783 | if (temp3) | |
27784 | delete arg3; | |
27785 | } | |
27786 | return resultobj; | |
27787 | fail: | |
27788 | { | |
27789 | if (temp2) | |
27790 | delete arg2; | |
27791 | } | |
27792 | { | |
27793 | if (temp3) | |
27794 | delete arg3; | |
27795 | } | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
27800 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27801 | PyObject *resultobj; | |
27802 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27803 | int arg2 ; | |
27804 | wxMenuItem *result; | |
27805 | PyObject * obj0 = 0 ; | |
27806 | char *kwnames[] = { | |
242b7b46 | 27807 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27808 | }; |
27809 | ||
27810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
27811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27812 | { | |
27813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27814 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
27815 | ||
27816 | wxPyEndAllowThreads(__tstate); | |
27817 | if (PyErr_Occurred()) SWIG_fail; | |
27818 | } | |
27819 | { | |
27820 | resultobj = wxPyMake_wxObject(result); | |
27821 | } | |
27822 | return resultobj; | |
27823 | fail: | |
27824 | return NULL; | |
27825 | } | |
27826 | ||
27827 | ||
27828 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27829 | PyObject *resultobj; | |
27830 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27831 | wxString *arg2 = 0 ; | |
27832 | int result; | |
e811c8ce | 27833 | bool temp2 = False ; |
d14a1e28 RD |
27834 | PyObject * obj0 = 0 ; |
27835 | PyObject * obj1 = 0 ; | |
27836 | char *kwnames[] = { | |
27837 | (char *) "self",(char *) "title", NULL | |
27838 | }; | |
27839 | ||
27840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
27841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27842 | { | |
27843 | arg2 = wxString_in_helper(obj1); | |
27844 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27845 | temp2 = True; |
d14a1e28 RD |
27846 | } |
27847 | { | |
27848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27849 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
27850 | ||
27851 | wxPyEndAllowThreads(__tstate); | |
27852 | if (PyErr_Occurred()) SWIG_fail; | |
27853 | } | |
27854 | resultobj = PyInt_FromLong((long)result); | |
27855 | { | |
27856 | if (temp2) | |
27857 | delete arg2; | |
27858 | } | |
27859 | return resultobj; | |
27860 | fail: | |
27861 | { | |
27862 | if (temp2) | |
27863 | delete arg2; | |
27864 | } | |
27865 | return NULL; | |
27866 | } | |
27867 | ||
27868 | ||
27869 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27870 | PyObject *resultobj; | |
27871 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27872 | int arg2 ; | |
27873 | bool arg3 ; | |
27874 | PyObject * obj0 = 0 ; | |
27875 | PyObject * obj2 = 0 ; | |
27876 | char *kwnames[] = { | |
242b7b46 | 27877 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
27878 | }; |
27879 | ||
27880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27882 | { |
27883 | arg3 = (bool) SPyObj_AsBool(obj2); | |
27884 | if (PyErr_Occurred()) SWIG_fail; | |
27885 | } | |
d14a1e28 RD |
27886 | { |
27887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27888 | (arg1)->Enable(arg2,arg3); | |
27889 | ||
27890 | wxPyEndAllowThreads(__tstate); | |
27891 | if (PyErr_Occurred()) SWIG_fail; | |
27892 | } | |
27893 | Py_INCREF(Py_None); resultobj = Py_None; | |
27894 | return resultobj; | |
27895 | fail: | |
27896 | return NULL; | |
27897 | } | |
27898 | ||
27899 | ||
27900 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27901 | PyObject *resultobj; | |
27902 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27903 | int arg2 ; | |
27904 | bool arg3 ; | |
27905 | PyObject * obj0 = 0 ; | |
27906 | PyObject * obj2 = 0 ; | |
27907 | char *kwnames[] = { | |
242b7b46 | 27908 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
27909 | }; |
27910 | ||
27911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
27913 | { |
27914 | arg3 = (bool) SPyObj_AsBool(obj2); | |
27915 | if (PyErr_Occurred()) SWIG_fail; | |
27916 | } | |
d14a1e28 RD |
27917 | { |
27918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27919 | (arg1)->Check(arg2,arg3); | |
27920 | ||
27921 | wxPyEndAllowThreads(__tstate); | |
27922 | if (PyErr_Occurred()) SWIG_fail; | |
27923 | } | |
27924 | Py_INCREF(Py_None); resultobj = Py_None; | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
27931 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27932 | PyObject *resultobj; | |
27933 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27934 | int arg2 ; | |
27935 | bool result; | |
27936 | PyObject * obj0 = 0 ; | |
27937 | char *kwnames[] = { | |
242b7b46 | 27938 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27939 | }; |
27940 | ||
27941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
27942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27943 | { | |
27944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27945 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
27946 | ||
27947 | wxPyEndAllowThreads(__tstate); | |
27948 | if (PyErr_Occurred()) SWIG_fail; | |
27949 | } | |
27950 | resultobj = PyInt_FromLong((long)result); | |
27951 | return resultobj; | |
27952 | fail: | |
27953 | return NULL; | |
27954 | } | |
27955 | ||
27956 | ||
27957 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27958 | PyObject *resultobj; | |
27959 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27960 | int arg2 ; | |
27961 | bool result; | |
27962 | PyObject * obj0 = 0 ; | |
27963 | char *kwnames[] = { | |
242b7b46 | 27964 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27965 | }; |
27966 | ||
27967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
27968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27969 | { | |
27970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27971 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
27972 | ||
27973 | wxPyEndAllowThreads(__tstate); | |
27974 | if (PyErr_Occurred()) SWIG_fail; | |
27975 | } | |
27976 | resultobj = PyInt_FromLong((long)result); | |
27977 | return resultobj; | |
27978 | fail: | |
27979 | return NULL; | |
27980 | } | |
27981 | ||
27982 | ||
27983 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27984 | PyObject *resultobj; | |
27985 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27986 | int arg2 ; | |
27987 | wxString *arg3 = 0 ; | |
e811c8ce | 27988 | bool temp3 = False ; |
d14a1e28 RD |
27989 | PyObject * obj0 = 0 ; |
27990 | PyObject * obj2 = 0 ; | |
27991 | char *kwnames[] = { | |
242b7b46 | 27992 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
27993 | }; |
27994 | ||
27995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27997 | { | |
27998 | arg3 = wxString_in_helper(obj2); | |
27999 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28000 | temp3 = True; |
d14a1e28 RD |
28001 | } |
28002 | { | |
28003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28004 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28005 | ||
28006 | wxPyEndAllowThreads(__tstate); | |
28007 | if (PyErr_Occurred()) SWIG_fail; | |
28008 | } | |
28009 | Py_INCREF(Py_None); resultobj = Py_None; | |
28010 | { | |
28011 | if (temp3) | |
28012 | delete arg3; | |
28013 | } | |
28014 | return resultobj; | |
28015 | fail: | |
28016 | { | |
28017 | if (temp3) | |
28018 | delete arg3; | |
28019 | } | |
28020 | return NULL; | |
28021 | } | |
28022 | ||
28023 | ||
28024 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28025 | PyObject *resultobj; | |
28026 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28027 | int arg2 ; | |
28028 | wxString result; | |
28029 | PyObject * obj0 = 0 ; | |
28030 | char *kwnames[] = { | |
242b7b46 | 28031 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28032 | }; |
28033 | ||
28034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
28035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28036 | { | |
28037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28038 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
28039 | ||
28040 | wxPyEndAllowThreads(__tstate); | |
28041 | if (PyErr_Occurred()) SWIG_fail; | |
28042 | } | |
28043 | { | |
28044 | #if wxUSE_UNICODE | |
28045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28046 | #else | |
28047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28048 | #endif | |
28049 | } | |
28050 | return resultobj; | |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
28056 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28057 | PyObject *resultobj; | |
28058 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28059 | int arg2 ; | |
28060 | wxString *arg3 = 0 ; | |
e811c8ce | 28061 | bool temp3 = False ; |
d14a1e28 RD |
28062 | PyObject * obj0 = 0 ; |
28063 | PyObject * obj2 = 0 ; | |
28064 | char *kwnames[] = { | |
242b7b46 | 28065 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28066 | }; |
28067 | ||
28068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
28069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28070 | { | |
28071 | arg3 = wxString_in_helper(obj2); | |
28072 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28073 | temp3 = True; |
d14a1e28 RD |
28074 | } |
28075 | { | |
28076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28077 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28078 | ||
28079 | wxPyEndAllowThreads(__tstate); | |
28080 | if (PyErr_Occurred()) SWIG_fail; | |
28081 | } | |
28082 | Py_INCREF(Py_None); resultobj = Py_None; | |
28083 | { | |
28084 | if (temp3) | |
28085 | delete arg3; | |
28086 | } | |
28087 | return resultobj; | |
28088 | fail: | |
28089 | { | |
28090 | if (temp3) | |
28091 | delete arg3; | |
28092 | } | |
28093 | return NULL; | |
28094 | } | |
28095 | ||
28096 | ||
28097 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28098 | PyObject *resultobj; | |
28099 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28100 | int arg2 ; | |
28101 | wxString result; | |
28102 | PyObject * obj0 = 0 ; | |
28103 | char *kwnames[] = { | |
242b7b46 | 28104 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28105 | }; |
28106 | ||
28107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
28108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28109 | { | |
28110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28111 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
28112 | ||
28113 | wxPyEndAllowThreads(__tstate); | |
28114 | if (PyErr_Occurred()) SWIG_fail; | |
28115 | } | |
28116 | { | |
28117 | #if wxUSE_UNICODE | |
28118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28119 | #else | |
28120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28121 | #endif | |
28122 | } | |
28123 | return resultobj; | |
28124 | fail: | |
28125 | return NULL; | |
28126 | } | |
28127 | ||
28128 | ||
28129 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28130 | PyObject *resultobj; | |
28131 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28132 | wxFrame *result; | |
28133 | PyObject * obj0 = 0 ; | |
28134 | char *kwnames[] = { | |
28135 | (char *) "self", NULL | |
28136 | }; | |
28137 | ||
28138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
28139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28140 | { | |
28141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28142 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
28143 | ||
28144 | wxPyEndAllowThreads(__tstate); | |
28145 | if (PyErr_Occurred()) SWIG_fail; | |
28146 | } | |
28147 | { | |
28148 | resultobj = wxPyMake_wxObject(result); | |
28149 | } | |
28150 | return resultobj; | |
28151 | fail: | |
28152 | return NULL; | |
28153 | } | |
28154 | ||
28155 | ||
28156 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28157 | PyObject *resultobj; | |
28158 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28159 | bool result; | |
28160 | PyObject * obj0 = 0 ; | |
28161 | char *kwnames[] = { | |
28162 | (char *) "self", NULL | |
28163 | }; | |
28164 | ||
28165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
28166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28167 | { | |
28168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28169 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
28170 | ||
28171 | wxPyEndAllowThreads(__tstate); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
28173 | } | |
28174 | resultobj = PyInt_FromLong((long)result); | |
28175 | return resultobj; | |
28176 | fail: | |
28177 | return NULL; | |
28178 | } | |
28179 | ||
28180 | ||
28181 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28182 | PyObject *resultobj; | |
28183 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28184 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28185 | PyObject * obj0 = 0 ; | |
28186 | PyObject * obj1 = 0 ; | |
28187 | char *kwnames[] = { | |
28188 | (char *) "self",(char *) "frame", NULL | |
28189 | }; | |
28190 | ||
28191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
28192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28193 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28194 | { | |
28195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28196 | (arg1)->Attach(arg2); | |
28197 | ||
28198 | wxPyEndAllowThreads(__tstate); | |
28199 | if (PyErr_Occurred()) SWIG_fail; | |
28200 | } | |
28201 | Py_INCREF(Py_None); resultobj = Py_None; | |
28202 | return resultobj; | |
28203 | fail: | |
28204 | return NULL; | |
28205 | } | |
28206 | ||
28207 | ||
28208 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28209 | PyObject *resultobj; | |
28210 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
28211 | PyObject * obj0 = 0 ; | |
28212 | char *kwnames[] = { | |
28213 | (char *) "self", NULL | |
28214 | }; | |
28215 | ||
28216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
28217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28218 | { | |
28219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28220 | (arg1)->Detach(); | |
28221 | ||
28222 | wxPyEndAllowThreads(__tstate); | |
28223 | if (PyErr_Occurred()) SWIG_fail; | |
28224 | } | |
28225 | Py_INCREF(Py_None); resultobj = Py_None; | |
28226 | return resultobj; | |
28227 | fail: | |
28228 | return NULL; | |
28229 | } | |
28230 | ||
28231 | ||
28232 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
28233 | PyObject *obj; | |
28234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28235 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
28236 | Py_INCREF(obj); | |
28237 | return Py_BuildValue((char *)""); | |
28238 | } | |
28239 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28240 | PyObject *resultobj; | |
28241 | wxMenu *arg1 = (wxMenu *) NULL ; | |
28242 | int arg2 = (int) wxID_SEPARATOR ; | |
28243 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
28244 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28245 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28246 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28247 | int arg5 = (int) wxITEM_NORMAL ; | |
28248 | wxMenu *arg6 = (wxMenu *) NULL ; | |
28249 | wxMenuItem *result; | |
e811c8ce RD |
28250 | bool temp3 = False ; |
28251 | bool temp4 = False ; | |
d14a1e28 RD |
28252 | PyObject * obj0 = 0 ; |
28253 | PyObject * obj2 = 0 ; | |
28254 | PyObject * obj3 = 0 ; | |
28255 | PyObject * obj5 = 0 ; | |
28256 | char *kwnames[] = { | |
28257 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiOOiO:new_MenuItem",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
28261 | if (obj0) { | |
28262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28263 | } | |
28264 | if (obj2) { | |
28265 | { | |
28266 | arg3 = wxString_in_helper(obj2); | |
28267 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28268 | temp3 = True; |
d14a1e28 RD |
28269 | } |
28270 | } | |
28271 | if (obj3) { | |
28272 | { | |
28273 | arg4 = wxString_in_helper(obj3); | |
28274 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28275 | temp4 = True; |
d14a1e28 RD |
28276 | } |
28277 | } | |
28278 | if (obj5) { | |
28279 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28280 | } | |
28281 | { | |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
28288 | { | |
28289 | resultobj = wxPyMake_wxObject(result); | |
28290 | } | |
28291 | { | |
28292 | if (temp3) | |
28293 | delete arg3; | |
28294 | } | |
28295 | { | |
28296 | if (temp4) | |
28297 | delete arg4; | |
28298 | } | |
28299 | return resultobj; | |
28300 | fail: | |
28301 | { | |
28302 | if (temp3) | |
28303 | delete arg3; | |
28304 | } | |
28305 | { | |
28306 | if (temp4) | |
28307 | delete arg4; | |
28308 | } | |
28309 | return NULL; | |
28310 | } | |
28311 | ||
28312 | ||
28313 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28314 | PyObject *resultobj; | |
28315 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28316 | wxMenu *result; | |
28317 | PyObject * obj0 = 0 ; | |
28318 | char *kwnames[] = { | |
28319 | (char *) "self", NULL | |
28320 | }; | |
28321 | ||
28322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
28323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28324 | { | |
28325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28326 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
28327 | ||
28328 | wxPyEndAllowThreads(__tstate); | |
28329 | if (PyErr_Occurred()) SWIG_fail; | |
28330 | } | |
28331 | { | |
28332 | resultobj = wxPyMake_wxObject(result); | |
28333 | } | |
28334 | return resultobj; | |
28335 | fail: | |
28336 | return NULL; | |
28337 | } | |
28338 | ||
28339 | ||
28340 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28341 | PyObject *resultobj; | |
28342 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28343 | wxMenu *arg2 = (wxMenu *) 0 ; | |
28344 | PyObject * obj0 = 0 ; | |
28345 | PyObject * obj1 = 0 ; | |
28346 | char *kwnames[] = { | |
28347 | (char *) "self",(char *) "menu", NULL | |
28348 | }; | |
28349 | ||
28350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
28351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28352 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28353 | { | |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | (arg1)->SetMenu(arg2); | |
28356 | ||
28357 | wxPyEndAllowThreads(__tstate); | |
28358 | if (PyErr_Occurred()) SWIG_fail; | |
28359 | } | |
28360 | Py_INCREF(Py_None); resultobj = Py_None; | |
28361 | return resultobj; | |
28362 | fail: | |
28363 | return NULL; | |
28364 | } | |
28365 | ||
28366 | ||
28367 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28368 | PyObject *resultobj; | |
28369 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28370 | int arg2 ; | |
28371 | PyObject * obj0 = 0 ; | |
28372 | char *kwnames[] = { | |
242b7b46 | 28373 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28374 | }; |
28375 | ||
28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
28377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28378 | { | |
28379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28380 | (arg1)->SetId(arg2); | |
28381 | ||
28382 | wxPyEndAllowThreads(__tstate); | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
28385 | Py_INCREF(Py_None); resultobj = Py_None; | |
28386 | return resultobj; | |
28387 | fail: | |
28388 | return NULL; | |
28389 | } | |
28390 | ||
28391 | ||
28392 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28393 | PyObject *resultobj; | |
28394 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28395 | int result; | |
28396 | PyObject * obj0 = 0 ; | |
28397 | char *kwnames[] = { | |
28398 | (char *) "self", NULL | |
28399 | }; | |
28400 | ||
28401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
28402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28403 | { | |
28404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28405 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
28406 | ||
28407 | wxPyEndAllowThreads(__tstate); | |
28408 | if (PyErr_Occurred()) SWIG_fail; | |
28409 | } | |
28410 | resultobj = PyInt_FromLong((long)result); | |
28411 | return resultobj; | |
28412 | fail: | |
28413 | return NULL; | |
28414 | } | |
28415 | ||
28416 | ||
28417 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28418 | PyObject *resultobj; | |
28419 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28420 | bool result; | |
28421 | PyObject * obj0 = 0 ; | |
28422 | char *kwnames[] = { | |
28423 | (char *) "self", NULL | |
28424 | }; | |
28425 | ||
28426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
28427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28428 | { | |
28429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28430 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
28431 | ||
28432 | wxPyEndAllowThreads(__tstate); | |
28433 | if (PyErr_Occurred()) SWIG_fail; | |
28434 | } | |
28435 | resultobj = PyInt_FromLong((long)result); | |
28436 | return resultobj; | |
28437 | fail: | |
28438 | return NULL; | |
28439 | } | |
28440 | ||
28441 | ||
28442 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28443 | PyObject *resultobj; | |
28444 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28445 | wxString *arg2 = 0 ; | |
e811c8ce | 28446 | bool temp2 = False ; |
d14a1e28 RD |
28447 | PyObject * obj0 = 0 ; |
28448 | PyObject * obj1 = 0 ; | |
28449 | char *kwnames[] = { | |
28450 | (char *) "self",(char *) "str", NULL | |
28451 | }; | |
28452 | ||
28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
28454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28455 | { | |
28456 | arg2 = wxString_in_helper(obj1); | |
28457 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28458 | temp2 = True; |
d14a1e28 RD |
28459 | } |
28460 | { | |
28461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28462 | (arg1)->SetText((wxString const &)*arg2); | |
28463 | ||
28464 | wxPyEndAllowThreads(__tstate); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | } | |
28467 | Py_INCREF(Py_None); resultobj = Py_None; | |
28468 | { | |
28469 | if (temp2) | |
28470 | delete arg2; | |
28471 | } | |
28472 | return resultobj; | |
28473 | fail: | |
28474 | { | |
28475 | if (temp2) | |
28476 | delete arg2; | |
28477 | } | |
28478 | return NULL; | |
28479 | } | |
28480 | ||
28481 | ||
28482 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28483 | PyObject *resultobj; | |
28484 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28485 | wxString result; | |
28486 | PyObject * obj0 = 0 ; | |
28487 | char *kwnames[] = { | |
28488 | (char *) "self", NULL | |
28489 | }; | |
28490 | ||
28491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
28492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28493 | { | |
28494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28495 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
28496 | ||
28497 | wxPyEndAllowThreads(__tstate); | |
28498 | if (PyErr_Occurred()) SWIG_fail; | |
28499 | } | |
28500 | { | |
28501 | #if wxUSE_UNICODE | |
28502 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28503 | #else | |
28504 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28505 | #endif | |
28506 | } | |
28507 | return resultobj; | |
28508 | fail: | |
28509 | return NULL; | |
28510 | } | |
28511 | ||
28512 | ||
28513 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28514 | PyObject *resultobj; | |
28515 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28516 | wxString *result; | |
28517 | PyObject * obj0 = 0 ; | |
28518 | char *kwnames[] = { | |
28519 | (char *) "self", NULL | |
28520 | }; | |
28521 | ||
28522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
28523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28524 | { | |
28525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28526 | { | |
28527 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
28528 | result = (wxString *) &_result_ref; | |
28529 | } | |
28530 | ||
28531 | wxPyEndAllowThreads(__tstate); | |
28532 | if (PyErr_Occurred()) SWIG_fail; | |
28533 | } | |
cc6dd355 RD |
28534 | { |
28535 | #if wxUSE_UNICODE | |
28536 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28537 | #else | |
28538 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28539 | #endif | |
28540 | } | |
d14a1e28 RD |
28541 | return resultobj; |
28542 | fail: | |
28543 | return NULL; | |
28544 | } | |
28545 | ||
28546 | ||
28547 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28548 | PyObject *resultobj; | |
28549 | wxString *arg1 = 0 ; | |
28550 | wxString result; | |
e811c8ce | 28551 | bool temp1 = False ; |
d14a1e28 RD |
28552 | PyObject * obj0 = 0 ; |
28553 | char *kwnames[] = { | |
28554 | (char *) "text", NULL | |
28555 | }; | |
28556 | ||
28557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
28558 | { | |
28559 | arg1 = wxString_in_helper(obj0); | |
28560 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28561 | temp1 = True; |
d14a1e28 RD |
28562 | } |
28563 | { | |
28564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28565 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
28566 | ||
28567 | wxPyEndAllowThreads(__tstate); | |
28568 | if (PyErr_Occurred()) SWIG_fail; | |
28569 | } | |
28570 | { | |
28571 | #if wxUSE_UNICODE | |
28572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28573 | #else | |
28574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28575 | #endif | |
28576 | } | |
28577 | { | |
28578 | if (temp1) | |
28579 | delete arg1; | |
28580 | } | |
28581 | return resultobj; | |
28582 | fail: | |
28583 | { | |
28584 | if (temp1) | |
28585 | delete arg1; | |
28586 | } | |
28587 | return NULL; | |
28588 | } | |
28589 | ||
28590 | ||
28591 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28592 | PyObject *resultobj; | |
28593 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28594 | int result; | |
28595 | PyObject * obj0 = 0 ; | |
28596 | char *kwnames[] = { | |
28597 | (char *) "self", NULL | |
28598 | }; | |
28599 | ||
28600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
28601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28602 | { | |
28603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28604 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
28605 | ||
28606 | wxPyEndAllowThreads(__tstate); | |
28607 | if (PyErr_Occurred()) SWIG_fail; | |
28608 | } | |
28609 | resultobj = PyInt_FromLong((long)result); | |
28610 | return resultobj; | |
28611 | fail: | |
28612 | return NULL; | |
28613 | } | |
28614 | ||
28615 | ||
28616 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28617 | PyObject *resultobj; | |
28618 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28619 | bool arg2 ; | |
28620 | PyObject * obj0 = 0 ; | |
28621 | PyObject * obj1 = 0 ; | |
28622 | char *kwnames[] = { | |
28623 | (char *) "self",(char *) "checkable", NULL | |
28624 | }; | |
28625 | ||
28626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
28627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
28628 | { |
28629 | arg2 = (bool) SPyObj_AsBool(obj1); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
d14a1e28 RD |
28632 | { |
28633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28634 | (arg1)->SetCheckable(arg2); | |
28635 | ||
28636 | wxPyEndAllowThreads(__tstate); | |
28637 | if (PyErr_Occurred()) SWIG_fail; | |
28638 | } | |
28639 | Py_INCREF(Py_None); resultobj = Py_None; | |
28640 | return resultobj; | |
28641 | fail: | |
28642 | return NULL; | |
28643 | } | |
28644 | ||
28645 | ||
28646 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28647 | PyObject *resultobj; | |
28648 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28649 | bool result; | |
28650 | PyObject * obj0 = 0 ; | |
28651 | char *kwnames[] = { | |
28652 | (char *) "self", NULL | |
28653 | }; | |
28654 | ||
28655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
28656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
28660 | ||
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
28664 | resultobj = PyInt_FromLong((long)result); | |
28665 | return resultobj; | |
28666 | fail: | |
28667 | return NULL; | |
28668 | } | |
28669 | ||
28670 | ||
28671 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28672 | PyObject *resultobj; | |
28673 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28674 | bool result; | |
28675 | PyObject * obj0 = 0 ; | |
28676 | char *kwnames[] = { | |
28677 | (char *) "self", NULL | |
28678 | }; | |
28679 | ||
28680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
28681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28682 | { | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
28689 | resultobj = PyInt_FromLong((long)result); | |
28690 | return resultobj; | |
28691 | fail: | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
28696 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28697 | PyObject *resultobj; | |
28698 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28699 | wxMenu *arg2 = (wxMenu *) 0 ; | |
28700 | PyObject * obj0 = 0 ; | |
28701 | PyObject * obj1 = 0 ; | |
28702 | char *kwnames[] = { | |
28703 | (char *) "self",(char *) "menu", NULL | |
28704 | }; | |
28705 | ||
28706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
28707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28709 | { | |
28710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28711 | (arg1)->SetSubMenu(arg2); | |
28712 | ||
28713 | wxPyEndAllowThreads(__tstate); | |
28714 | if (PyErr_Occurred()) SWIG_fail; | |
28715 | } | |
28716 | Py_INCREF(Py_None); resultobj = Py_None; | |
28717 | return resultobj; | |
28718 | fail: | |
28719 | return NULL; | |
28720 | } | |
28721 | ||
28722 | ||
28723 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28724 | PyObject *resultobj; | |
28725 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28726 | wxMenu *result; | |
28727 | PyObject * obj0 = 0 ; | |
28728 | char *kwnames[] = { | |
28729 | (char *) "self", NULL | |
28730 | }; | |
28731 | ||
28732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
28733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28734 | { | |
28735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28736 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
28737 | ||
28738 | wxPyEndAllowThreads(__tstate); | |
28739 | if (PyErr_Occurred()) SWIG_fail; | |
28740 | } | |
28741 | { | |
28742 | resultobj = wxPyMake_wxObject(result); | |
28743 | } | |
28744 | return resultobj; | |
28745 | fail: | |
28746 | return NULL; | |
28747 | } | |
28748 | ||
28749 | ||
28750 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28751 | PyObject *resultobj; | |
28752 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 28753 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28754 | PyObject * obj0 = 0 ; |
28755 | PyObject * obj1 = 0 ; | |
28756 | char *kwnames[] = { | |
28757 | (char *) "self",(char *) "enable", NULL | |
28758 | }; | |
28759 | ||
28760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
28761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28762 | if (obj1) { | |
a41e16b6 RD |
28763 | { |
28764 | arg2 = (bool) SPyObj_AsBool(obj1); | |
28765 | if (PyErr_Occurred()) SWIG_fail; | |
28766 | } | |
d14a1e28 RD |
28767 | } |
28768 | { | |
28769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28770 | (arg1)->Enable(arg2); | |
28771 | ||
28772 | wxPyEndAllowThreads(__tstate); | |
28773 | if (PyErr_Occurred()) SWIG_fail; | |
28774 | } | |
28775 | Py_INCREF(Py_None); resultobj = Py_None; | |
28776 | return resultobj; | |
28777 | fail: | |
28778 | return NULL; | |
28779 | } | |
28780 | ||
28781 | ||
28782 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28783 | PyObject *resultobj; | |
28784 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28785 | bool result; | |
28786 | PyObject * obj0 = 0 ; | |
28787 | char *kwnames[] = { | |
28788 | (char *) "self", NULL | |
28789 | }; | |
28790 | ||
28791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
28792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
28796 | ||
28797 | wxPyEndAllowThreads(__tstate); | |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
28799 | } | |
28800 | resultobj = PyInt_FromLong((long)result); | |
28801 | return resultobj; | |
28802 | fail: | |
28803 | return NULL; | |
28804 | } | |
28805 | ||
28806 | ||
28807 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28808 | PyObject *resultobj; | |
28809 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 28810 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28811 | PyObject * obj0 = 0 ; |
28812 | PyObject * obj1 = 0 ; | |
28813 | char *kwnames[] = { | |
28814 | (char *) "self",(char *) "check", NULL | |
28815 | }; | |
28816 | ||
28817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
28818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28819 | if (obj1) { | |
a41e16b6 RD |
28820 | { |
28821 | arg2 = (bool) SPyObj_AsBool(obj1); | |
28822 | if (PyErr_Occurred()) SWIG_fail; | |
28823 | } | |
d14a1e28 RD |
28824 | } |
28825 | { | |
28826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28827 | (arg1)->Check(arg2); | |
28828 | ||
28829 | wxPyEndAllowThreads(__tstate); | |
28830 | if (PyErr_Occurred()) SWIG_fail; | |
28831 | } | |
28832 | Py_INCREF(Py_None); resultobj = Py_None; | |
28833 | return resultobj; | |
28834 | fail: | |
28835 | return NULL; | |
28836 | } | |
28837 | ||
28838 | ||
28839 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28840 | PyObject *resultobj; | |
28841 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28842 | bool result; | |
28843 | PyObject * obj0 = 0 ; | |
28844 | char *kwnames[] = { | |
28845 | (char *) "self", NULL | |
28846 | }; | |
28847 | ||
28848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
28849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28850 | { | |
28851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28852 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
28853 | ||
28854 | wxPyEndAllowThreads(__tstate); | |
28855 | if (PyErr_Occurred()) SWIG_fail; | |
28856 | } | |
28857 | resultobj = PyInt_FromLong((long)result); | |
28858 | return resultobj; | |
28859 | fail: | |
28860 | return NULL; | |
28861 | } | |
28862 | ||
28863 | ||
28864 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28865 | PyObject *resultobj; | |
28866 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28867 | PyObject * obj0 = 0 ; | |
28868 | char *kwnames[] = { | |
28869 | (char *) "self", NULL | |
28870 | }; | |
28871 | ||
28872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
28873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28874 | { | |
28875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28876 | (arg1)->Toggle(); | |
28877 | ||
28878 | wxPyEndAllowThreads(__tstate); | |
28879 | if (PyErr_Occurred()) SWIG_fail; | |
28880 | } | |
28881 | Py_INCREF(Py_None); resultobj = Py_None; | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | return NULL; | |
28885 | } | |
28886 | ||
28887 | ||
28888 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28889 | PyObject *resultobj; | |
28890 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28891 | wxString *arg2 = 0 ; | |
e811c8ce | 28892 | bool temp2 = False ; |
d14a1e28 RD |
28893 | PyObject * obj0 = 0 ; |
28894 | PyObject * obj1 = 0 ; | |
28895 | char *kwnames[] = { | |
28896 | (char *) "self",(char *) "str", NULL | |
28897 | }; | |
28898 | ||
28899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28901 | { | |
28902 | arg2 = wxString_in_helper(obj1); | |
28903 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28904 | temp2 = True; |
d14a1e28 RD |
28905 | } |
28906 | { | |
28907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28908 | (arg1)->SetHelp((wxString const &)*arg2); | |
28909 | ||
28910 | wxPyEndAllowThreads(__tstate); | |
28911 | if (PyErr_Occurred()) SWIG_fail; | |
28912 | } | |
28913 | Py_INCREF(Py_None); resultobj = Py_None; | |
28914 | { | |
28915 | if (temp2) | |
28916 | delete arg2; | |
28917 | } | |
28918 | return resultobj; | |
28919 | fail: | |
28920 | { | |
28921 | if (temp2) | |
28922 | delete arg2; | |
28923 | } | |
28924 | return NULL; | |
28925 | } | |
28926 | ||
28927 | ||
28928 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28929 | PyObject *resultobj; | |
28930 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28931 | wxString *result; | |
28932 | PyObject * obj0 = 0 ; | |
28933 | char *kwnames[] = { | |
28934 | (char *) "self", NULL | |
28935 | }; | |
28936 | ||
28937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
28938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28939 | { | |
28940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28941 | { | |
28942 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
28943 | result = (wxString *) &_result_ref; | |
28944 | } | |
28945 | ||
28946 | wxPyEndAllowThreads(__tstate); | |
28947 | if (PyErr_Occurred()) SWIG_fail; | |
28948 | } | |
cc6dd355 RD |
28949 | { |
28950 | #if wxUSE_UNICODE | |
28951 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28952 | #else | |
28953 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28954 | #endif | |
28955 | } | |
d14a1e28 RD |
28956 | return resultobj; |
28957 | fail: | |
28958 | return NULL; | |
28959 | } | |
28960 | ||
28961 | ||
28962 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28963 | PyObject *resultobj; | |
28964 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28965 | wxAcceleratorEntry *result; | |
28966 | PyObject * obj0 = 0 ; | |
28967 | char *kwnames[] = { | |
28968 | (char *) "self", NULL | |
28969 | }; | |
28970 | ||
28971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
28972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28973 | { | |
28974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28975 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
28976 | ||
28977 | wxPyEndAllowThreads(__tstate); | |
28978 | if (PyErr_Occurred()) SWIG_fail; | |
28979 | } | |
28980 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
28981 | return resultobj; | |
28982 | fail: | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
28987 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28988 | PyObject *resultobj; | |
28989 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28990 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
28991 | PyObject * obj0 = 0 ; | |
28992 | PyObject * obj1 = 0 ; | |
28993 | char *kwnames[] = { | |
28994 | (char *) "self",(char *) "accel", NULL | |
28995 | }; | |
28996 | ||
28997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
28998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28999 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29000 | { | |
29001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29002 | (arg1)->SetAccel(arg2); | |
29003 | ||
29004 | wxPyEndAllowThreads(__tstate); | |
29005 | if (PyErr_Occurred()) SWIG_fail; | |
29006 | } | |
29007 | Py_INCREF(Py_None); resultobj = Py_None; | |
29008 | return resultobj; | |
29009 | fail: | |
29010 | return NULL; | |
29011 | } | |
29012 | ||
29013 | ||
29014 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29015 | PyObject *resultobj; | |
29016 | int result; | |
29017 | char *kwnames[] = { | |
29018 | NULL | |
29019 | }; | |
29020 | ||
29021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
29022 | { | |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
29025 | ||
29026 | wxPyEndAllowThreads(__tstate); | |
29027 | if (PyErr_Occurred()) SWIG_fail; | |
29028 | } | |
29029 | resultobj = PyInt_FromLong((long)result); | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
29036 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29037 | PyObject *resultobj; | |
29038 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
29039 | wxBitmap *arg2 = 0 ; | |
29040 | PyObject * obj0 = 0 ; | |
29041 | PyObject * obj1 = 0 ; | |
29042 | char *kwnames[] = { | |
29043 | (char *) "self",(char *) "bitmap", NULL | |
29044 | }; | |
29045 | ||
29046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29049 | if (arg2 == NULL) { | |
29050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29051 | } | |
29052 | { | |
29053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29054 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
29055 | ||
29056 | wxPyEndAllowThreads(__tstate); | |
29057 | if (PyErr_Occurred()) SWIG_fail; | |
29058 | } | |
29059 | Py_INCREF(Py_None); resultobj = Py_None; | |
29060 | return resultobj; | |
29061 | fail: | |
29062 | return NULL; | |
29063 | } | |
29064 | ||
29065 | ||
29066 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29067 | PyObject *resultobj; | |
29068 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
29069 | wxBitmap *result; | |
29070 | PyObject * obj0 = 0 ; | |
29071 | char *kwnames[] = { | |
29072 | (char *) "self", NULL | |
29073 | }; | |
29074 | ||
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
29076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29077 | { | |
29078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29079 | { | |
29080 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
29081 | result = (wxBitmap *) &_result_ref; | |
29082 | } | |
29083 | ||
29084 | wxPyEndAllowThreads(__tstate); | |
29085 | if (PyErr_Occurred()) SWIG_fail; | |
29086 | } | |
29087 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
29088 | return resultobj; | |
29089 | fail: | |
29090 | return NULL; | |
29091 | } | |
29092 | ||
29093 | ||
29094 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
29095 | PyObject *obj; | |
29096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29097 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
29098 | Py_INCREF(obj); | |
29099 | return Py_BuildValue((char *)""); | |
29100 | } | |
b2dc1044 RD |
29101 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
29102 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
29103 | return 1; | |
29104 | } | |
29105 | ||
29106 | ||
29107 | static PyObject *_wrap_ControlNameStr_get() { | |
29108 | PyObject *pyobj; | |
29109 | ||
29110 | { | |
29111 | #if wxUSE_UNICODE | |
29112 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
29113 | #else | |
29114 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
29115 | #endif | |
29116 | } | |
29117 | return pyobj; | |
29118 | } | |
29119 | ||
29120 | ||
d14a1e28 RD |
29121 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
29122 | PyObject *resultobj; | |
29123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 29124 | int arg2 ; |
d14a1e28 RD |
29125 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29126 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29127 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29128 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29129 | long arg5 = (long) 0 ; | |
29130 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29131 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29132 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29133 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29134 | wxControl *result; | |
29135 | wxPoint temp3 ; | |
29136 | wxSize temp4 ; | |
e811c8ce | 29137 | bool temp7 = False ; |
d14a1e28 RD |
29138 | PyObject * obj0 = 0 ; |
29139 | PyObject * obj2 = 0 ; | |
29140 | PyObject * obj3 = 0 ; | |
29141 | PyObject * obj5 = 0 ; | |
29142 | PyObject * obj6 = 0 ; | |
29143 | char *kwnames[] = { | |
29144 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29145 | }; | |
29146 | ||
29147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_Control",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
29148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29149 | if (obj2) { | |
29150 | { | |
29151 | arg3 = &temp3; | |
29152 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29153 | } | |
29154 | } | |
29155 | if (obj3) { | |
29156 | { | |
29157 | arg4 = &temp4; | |
29158 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29159 | } | |
29160 | } | |
29161 | if (obj5) { | |
29162 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29163 | if (arg6 == NULL) { | |
29164 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29165 | } | |
29166 | } | |
29167 | if (obj6) { | |
29168 | { | |
29169 | arg7 = wxString_in_helper(obj6); | |
29170 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 29171 | temp7 = True; |
d14a1e28 RD |
29172 | } |
29173 | } | |
29174 | { | |
29175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29176 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29177 | ||
29178 | wxPyEndAllowThreads(__tstate); | |
29179 | if (PyErr_Occurred()) SWIG_fail; | |
29180 | } | |
29181 | { | |
29182 | resultobj = wxPyMake_wxObject(result); | |
29183 | } | |
29184 | { | |
29185 | if (temp7) | |
29186 | delete arg7; | |
29187 | } | |
29188 | return resultobj; | |
29189 | fail: | |
29190 | { | |
29191 | if (temp7) | |
29192 | delete arg7; | |
29193 | } | |
29194 | return NULL; | |
29195 | } | |
29196 | ||
29197 | ||
29198 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29199 | PyObject *resultobj; | |
29200 | wxControl *result; | |
29201 | char *kwnames[] = { | |
29202 | NULL | |
29203 | }; | |
29204 | ||
29205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
29206 | { | |
29207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29208 | result = (wxControl *)new wxControl(); | |
29209 | ||
29210 | wxPyEndAllowThreads(__tstate); | |
29211 | if (PyErr_Occurred()) SWIG_fail; | |
29212 | } | |
29213 | { | |
29214 | resultobj = wxPyMake_wxObject(result); | |
29215 | } | |
29216 | return resultobj; | |
29217 | fail: | |
29218 | return NULL; | |
29219 | } | |
29220 | ||
29221 | ||
29222 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29223 | PyObject *resultobj; | |
29224 | wxControl *arg1 = (wxControl *) 0 ; | |
29225 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 29226 | int arg3 ; |
d14a1e28 RD |
29227 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
29228 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29229 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29230 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29231 | long arg6 = (long) 0 ; | |
29232 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
29233 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
29234 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
29235 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
29236 | bool result; | |
29237 | wxPoint temp4 ; | |
29238 | wxSize temp5 ; | |
e811c8ce | 29239 | bool temp8 = False ; |
d14a1e28 RD |
29240 | PyObject * obj0 = 0 ; |
29241 | PyObject * obj1 = 0 ; | |
29242 | PyObject * obj3 = 0 ; | |
29243 | PyObject * obj4 = 0 ; | |
29244 | PyObject * obj6 = 0 ; | |
29245 | PyObject * obj7 = 0 ; | |
29246 | char *kwnames[] = { | |
29247 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29248 | }; | |
29249 | ||
29250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlOO:Control_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
29251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29252 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29253 | if (obj3) { | |
29254 | { | |
29255 | arg4 = &temp4; | |
29256 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29257 | } | |
29258 | } | |
29259 | if (obj4) { | |
29260 | { | |
29261 | arg5 = &temp5; | |
29262 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29263 | } | |
29264 | } | |
29265 | if (obj6) { | |
29266 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29267 | if (arg7 == NULL) { | |
29268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29269 | } | |
29270 | } | |
29271 | if (obj7) { | |
29272 | { | |
29273 | arg8 = wxString_in_helper(obj7); | |
29274 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 29275 | temp8 = True; |
d14a1e28 RD |
29276 | } |
29277 | } | |
29278 | { | |
29279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29280 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29281 | ||
29282 | wxPyEndAllowThreads(__tstate); | |
29283 | if (PyErr_Occurred()) SWIG_fail; | |
29284 | } | |
29285 | resultobj = PyInt_FromLong((long)result); | |
29286 | { | |
29287 | if (temp8) | |
29288 | delete arg8; | |
29289 | } | |
29290 | return resultobj; | |
29291 | fail: | |
29292 | { | |
29293 | if (temp8) | |
29294 | delete arg8; | |
29295 | } | |
29296 | return NULL; | |
29297 | } | |
29298 | ||
29299 | ||
29300 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29301 | PyObject *resultobj; | |
29302 | wxControl *arg1 = (wxControl *) 0 ; | |
29303 | wxCommandEvent *arg2 = 0 ; | |
29304 | PyObject * obj0 = 0 ; | |
29305 | PyObject * obj1 = 0 ; | |
29306 | char *kwnames[] = { | |
29307 | (char *) "self",(char *) "event", NULL | |
29308 | }; | |
29309 | ||
29310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
29311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29313 | if (arg2 == NULL) { | |
29314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29315 | } | |
29316 | { | |
29317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29318 | (arg1)->Command(*arg2); | |
29319 | ||
29320 | wxPyEndAllowThreads(__tstate); | |
29321 | if (PyErr_Occurred()) SWIG_fail; | |
29322 | } | |
29323 | Py_INCREF(Py_None); resultobj = Py_None; | |
29324 | return resultobj; | |
29325 | fail: | |
29326 | return NULL; | |
29327 | } | |
29328 | ||
29329 | ||
29330 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29331 | PyObject *resultobj; | |
29332 | wxControl *arg1 = (wxControl *) 0 ; | |
29333 | wxString result; | |
29334 | PyObject * obj0 = 0 ; | |
29335 | char *kwnames[] = { | |
29336 | (char *) "self", NULL | |
29337 | }; | |
29338 | ||
29339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
29340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29341 | { | |
29342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29343 | result = (arg1)->GetLabel(); | |
29344 | ||
29345 | wxPyEndAllowThreads(__tstate); | |
29346 | if (PyErr_Occurred()) SWIG_fail; | |
29347 | } | |
29348 | { | |
29349 | #if wxUSE_UNICODE | |
29350 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29351 | #else | |
29352 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29353 | #endif | |
29354 | } | |
29355 | return resultobj; | |
29356 | fail: | |
29357 | return NULL; | |
29358 | } | |
29359 | ||
29360 | ||
29361 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29362 | PyObject *resultobj; | |
29363 | wxControl *arg1 = (wxControl *) 0 ; | |
29364 | wxString *arg2 = 0 ; | |
e811c8ce | 29365 | bool temp2 = False ; |
d14a1e28 RD |
29366 | PyObject * obj0 = 0 ; |
29367 | PyObject * obj1 = 0 ; | |
29368 | char *kwnames[] = { | |
29369 | (char *) "self",(char *) "label", NULL | |
29370 | }; | |
29371 | ||
29372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
29373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29374 | { | |
29375 | arg2 = wxString_in_helper(obj1); | |
29376 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29377 | temp2 = True; |
d14a1e28 RD |
29378 | } |
29379 | { | |
29380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29381 | (arg1)->SetLabel((wxString const &)*arg2); | |
29382 | ||
29383 | wxPyEndAllowThreads(__tstate); | |
29384 | if (PyErr_Occurred()) SWIG_fail; | |
29385 | } | |
29386 | Py_INCREF(Py_None); resultobj = Py_None; | |
29387 | { | |
29388 | if (temp2) | |
29389 | delete arg2; | |
29390 | } | |
29391 | return resultobj; | |
29392 | fail: | |
29393 | { | |
29394 | if (temp2) | |
29395 | delete arg2; | |
29396 | } | |
29397 | return NULL; | |
29398 | } | |
29399 | ||
29400 | ||
29401 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
29402 | PyObject *obj; | |
29403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29404 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
29405 | Py_INCREF(obj); | |
29406 | return Py_BuildValue((char *)""); | |
29407 | } | |
29408 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29409 | PyObject *resultobj; | |
29410 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29411 | wxString *arg2 = 0 ; | |
29412 | PyObject *arg3 = (PyObject *) NULL ; | |
29413 | int result; | |
e811c8ce | 29414 | bool temp2 = False ; |
d14a1e28 RD |
29415 | PyObject * obj0 = 0 ; |
29416 | PyObject * obj1 = 0 ; | |
29417 | PyObject * obj2 = 0 ; | |
29418 | char *kwnames[] = { | |
29419 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
29420 | }; | |
29421 | ||
29422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29424 | { | |
29425 | arg2 = wxString_in_helper(obj1); | |
29426 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29427 | temp2 = True; |
d14a1e28 RD |
29428 | } |
29429 | if (obj2) { | |
29430 | arg3 = obj2; | |
29431 | } | |
29432 | { | |
29433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29434 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
29435 | ||
29436 | wxPyEndAllowThreads(__tstate); | |
29437 | if (PyErr_Occurred()) SWIG_fail; | |
29438 | } | |
29439 | resultobj = PyInt_FromLong((long)result); | |
29440 | { | |
29441 | if (temp2) | |
29442 | delete arg2; | |
29443 | } | |
29444 | return resultobj; | |
29445 | fail: | |
29446 | { | |
29447 | if (temp2) | |
29448 | delete arg2; | |
29449 | } | |
29450 | return NULL; | |
29451 | } | |
29452 | ||
29453 | ||
29454 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29455 | PyObject *resultobj; | |
29456 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29457 | wxArrayString *arg2 = 0 ; | |
29458 | PyObject * obj0 = 0 ; | |
29459 | PyObject * obj1 = 0 ; | |
29460 | char *kwnames[] = { | |
29461 | (char *) "self",(char *) "strings", NULL | |
29462 | }; | |
29463 | ||
29464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
29465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29466 | { | |
29467 | if (! PySequence_Check(obj1)) { | |
29468 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
29469 | SWIG_fail; | |
29470 | } | |
29471 | arg2 = new wxArrayString; | |
29472 | int i, len=PySequence_Length(obj1); | |
29473 | for (i=0; i<len; i++) { | |
29474 | PyObject* item = PySequence_GetItem(obj1, i); | |
29475 | #if wxUSE_UNICODE | |
29476 | PyObject* str = PyObject_Unicode(item); | |
29477 | #else | |
29478 | PyObject* str = PyObject_Str(item); | |
29479 | #endif | |
29480 | arg2->Add(Py2wxString(str)); | |
29481 | Py_DECREF(item); | |
29482 | Py_DECREF(str); | |
29483 | } | |
29484 | } | |
29485 | { | |
29486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29487 | (arg1)->Append((wxArrayString const &)*arg2); | |
29488 | ||
29489 | wxPyEndAllowThreads(__tstate); | |
29490 | if (PyErr_Occurred()) SWIG_fail; | |
29491 | } | |
29492 | Py_INCREF(Py_None); resultobj = Py_None; | |
29493 | { | |
29494 | if (arg2) delete arg2; | |
29495 | } | |
29496 | return resultobj; | |
29497 | fail: | |
29498 | { | |
29499 | if (arg2) delete arg2; | |
29500 | } | |
29501 | return NULL; | |
29502 | } | |
29503 | ||
29504 | ||
29505 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29506 | PyObject *resultobj; | |
29507 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29508 | wxString *arg2 = 0 ; | |
29509 | int arg3 ; | |
29510 | PyObject *arg4 = (PyObject *) NULL ; | |
29511 | int result; | |
e811c8ce | 29512 | bool temp2 = False ; |
d14a1e28 RD |
29513 | PyObject * obj0 = 0 ; |
29514 | PyObject * obj1 = 0 ; | |
29515 | PyObject * obj3 = 0 ; | |
29516 | char *kwnames[] = { | |
29517 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
29518 | }; | |
29519 | ||
29520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
29521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29522 | { | |
29523 | arg2 = wxString_in_helper(obj1); | |
29524 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29525 | temp2 = True; |
d14a1e28 RD |
29526 | } |
29527 | if (obj3) { | |
29528 | arg4 = obj3; | |
29529 | } | |
29530 | { | |
29531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29532 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
29533 | ||
29534 | wxPyEndAllowThreads(__tstate); | |
29535 | if (PyErr_Occurred()) SWIG_fail; | |
29536 | } | |
29537 | resultobj = PyInt_FromLong((long)result); | |
29538 | { | |
29539 | if (temp2) | |
29540 | delete arg2; | |
29541 | } | |
29542 | return resultobj; | |
29543 | fail: | |
29544 | { | |
29545 | if (temp2) | |
29546 | delete arg2; | |
29547 | } | |
29548 | return NULL; | |
29549 | } | |
29550 | ||
29551 | ||
29552 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29553 | PyObject *resultobj; | |
29554 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29555 | PyObject * obj0 = 0 ; | |
29556 | char *kwnames[] = { | |
29557 | (char *) "self", NULL | |
29558 | }; | |
29559 | ||
29560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
29561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29562 | { | |
29563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29564 | (arg1)->Clear(); | |
29565 | ||
29566 | wxPyEndAllowThreads(__tstate); | |
29567 | if (PyErr_Occurred()) SWIG_fail; | |
29568 | } | |
29569 | Py_INCREF(Py_None); resultobj = Py_None; | |
29570 | return resultobj; | |
29571 | fail: | |
29572 | return NULL; | |
29573 | } | |
29574 | ||
29575 | ||
29576 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29577 | PyObject *resultobj; | |
29578 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29579 | int arg2 ; | |
29580 | PyObject * obj0 = 0 ; | |
29581 | char *kwnames[] = { | |
29582 | (char *) "self",(char *) "n", NULL | |
29583 | }; | |
29584 | ||
29585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Delete",kwnames,&obj0,&arg2)) goto fail; | |
29586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29587 | { | |
29588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29589 | (arg1)->Delete(arg2); | |
29590 | ||
29591 | wxPyEndAllowThreads(__tstate); | |
29592 | if (PyErr_Occurred()) SWIG_fail; | |
29593 | } | |
29594 | Py_INCREF(Py_None); resultobj = Py_None; | |
29595 | return resultobj; | |
29596 | fail: | |
29597 | return NULL; | |
29598 | } | |
29599 | ||
29600 | ||
29601 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29602 | PyObject *resultobj; | |
29603 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29604 | int result; | |
29605 | PyObject * obj0 = 0 ; | |
29606 | char *kwnames[] = { | |
29607 | (char *) "self", NULL | |
29608 | }; | |
29609 | ||
29610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
29611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29612 | { | |
29613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29614 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
29615 | ||
29616 | wxPyEndAllowThreads(__tstate); | |
29617 | if (PyErr_Occurred()) SWIG_fail; | |
29618 | } | |
29619 | resultobj = PyInt_FromLong((long)result); | |
29620 | return resultobj; | |
29621 | fail: | |
29622 | return NULL; | |
29623 | } | |
29624 | ||
29625 | ||
29626 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29627 | PyObject *resultobj; | |
29628 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29629 | bool result; | |
29630 | PyObject * obj0 = 0 ; | |
29631 | char *kwnames[] = { | |
29632 | (char *) "self", NULL | |
29633 | }; | |
29634 | ||
29635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
29636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29637 | { | |
29638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29639 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
29640 | ||
29641 | wxPyEndAllowThreads(__tstate); | |
29642 | if (PyErr_Occurred()) SWIG_fail; | |
29643 | } | |
29644 | resultobj = PyInt_FromLong((long)result); | |
29645 | return resultobj; | |
29646 | fail: | |
29647 | return NULL; | |
29648 | } | |
29649 | ||
29650 | ||
29651 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29652 | PyObject *resultobj; | |
29653 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29654 | int arg2 ; | |
29655 | wxString result; | |
29656 | PyObject * obj0 = 0 ; | |
29657 | char *kwnames[] = { | |
29658 | (char *) "self",(char *) "n", NULL | |
29659 | }; | |
29660 | ||
29661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetString",kwnames,&obj0,&arg2)) goto fail; | |
29662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29663 | { | |
29664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29665 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
29666 | ||
29667 | wxPyEndAllowThreads(__tstate); | |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
29669 | } | |
29670 | { | |
29671 | #if wxUSE_UNICODE | |
29672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29673 | #else | |
29674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29675 | #endif | |
29676 | } | |
29677 | return resultobj; | |
29678 | fail: | |
29679 | return NULL; | |
29680 | } | |
29681 | ||
29682 | ||
29683 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29684 | PyObject *resultobj; | |
29685 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29686 | wxArrayString result; | |
29687 | PyObject * obj0 = 0 ; | |
29688 | char *kwnames[] = { | |
29689 | (char *) "self", NULL | |
29690 | }; | |
29691 | ||
29692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
29693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29694 | { | |
29695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29696 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
29697 | ||
29698 | wxPyEndAllowThreads(__tstate); | |
29699 | if (PyErr_Occurred()) SWIG_fail; | |
29700 | } | |
29701 | { | |
29702 | resultobj = wxArrayString2PyList_helper(result); | |
29703 | } | |
29704 | return resultobj; | |
29705 | fail: | |
29706 | return NULL; | |
29707 | } | |
29708 | ||
29709 | ||
29710 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29711 | PyObject *resultobj; | |
29712 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29713 | int arg2 ; | |
29714 | wxString *arg3 = 0 ; | |
e811c8ce | 29715 | bool temp3 = False ; |
d14a1e28 RD |
29716 | PyObject * obj0 = 0 ; |
29717 | PyObject * obj2 = 0 ; | |
29718 | char *kwnames[] = { | |
29719 | (char *) "self",(char *) "n",(char *) "s", NULL | |
29720 | }; | |
29721 | ||
29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29724 | { | |
29725 | arg3 = wxString_in_helper(obj2); | |
29726 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29727 | temp3 = True; |
d14a1e28 RD |
29728 | } |
29729 | { | |
29730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29731 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
29732 | ||
29733 | wxPyEndAllowThreads(__tstate); | |
29734 | if (PyErr_Occurred()) SWIG_fail; | |
29735 | } | |
29736 | Py_INCREF(Py_None); resultobj = Py_None; | |
29737 | { | |
29738 | if (temp3) | |
29739 | delete arg3; | |
29740 | } | |
29741 | return resultobj; | |
29742 | fail: | |
29743 | { | |
29744 | if (temp3) | |
29745 | delete arg3; | |
29746 | } | |
29747 | return NULL; | |
29748 | } | |
29749 | ||
29750 | ||
29751 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29752 | PyObject *resultobj; | |
29753 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29754 | wxString *arg2 = 0 ; | |
29755 | int result; | |
e811c8ce | 29756 | bool temp2 = False ; |
d14a1e28 RD |
29757 | PyObject * obj0 = 0 ; |
29758 | PyObject * obj1 = 0 ; | |
29759 | char *kwnames[] = { | |
29760 | (char *) "self",(char *) "s", NULL | |
29761 | }; | |
29762 | ||
29763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
29764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29765 | { | |
29766 | arg2 = wxString_in_helper(obj1); | |
29767 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29768 | temp2 = True; |
d14a1e28 RD |
29769 | } |
29770 | { | |
29771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29772 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
29773 | ||
29774 | wxPyEndAllowThreads(__tstate); | |
29775 | if (PyErr_Occurred()) SWIG_fail; | |
29776 | } | |
29777 | resultobj = PyInt_FromLong((long)result); | |
29778 | { | |
29779 | if (temp2) | |
29780 | delete arg2; | |
29781 | } | |
29782 | return resultobj; | |
29783 | fail: | |
29784 | { | |
29785 | if (temp2) | |
29786 | delete arg2; | |
29787 | } | |
29788 | return NULL; | |
29789 | } | |
29790 | ||
29791 | ||
29792 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29793 | PyObject *resultobj; | |
29794 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29795 | int arg2 ; | |
29796 | PyObject * obj0 = 0 ; | |
29797 | char *kwnames[] = { | |
29798 | (char *) "self",(char *) "n", NULL | |
29799 | }; | |
29800 | ||
29801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Select",kwnames,&obj0,&arg2)) goto fail; | |
29802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29803 | { | |
29804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29805 | (arg1)->Select(arg2); | |
29806 | ||
29807 | wxPyEndAllowThreads(__tstate); | |
29808 | if (PyErr_Occurred()) SWIG_fail; | |
29809 | } | |
29810 | Py_INCREF(Py_None); resultobj = Py_None; | |
29811 | return resultobj; | |
29812 | fail: | |
29813 | return NULL; | |
29814 | } | |
29815 | ||
29816 | ||
29817 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29818 | PyObject *resultobj; | |
29819 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29820 | int result; | |
29821 | PyObject * obj0 = 0 ; | |
29822 | char *kwnames[] = { | |
29823 | (char *) "self", NULL | |
29824 | }; | |
29825 | ||
29826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
29827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29828 | { | |
29829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29830 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
29831 | ||
29832 | wxPyEndAllowThreads(__tstate); | |
29833 | if (PyErr_Occurred()) SWIG_fail; | |
29834 | } | |
29835 | resultobj = PyInt_FromLong((long)result); | |
29836 | return resultobj; | |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
29842 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29843 | PyObject *resultobj; | |
29844 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29845 | wxString result; | |
29846 | PyObject * obj0 = 0 ; | |
29847 | char *kwnames[] = { | |
29848 | (char *) "self", NULL | |
29849 | }; | |
29850 | ||
29851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
29852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29853 | { | |
29854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29855 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
29856 | ||
29857 | wxPyEndAllowThreads(__tstate); | |
29858 | if (PyErr_Occurred()) SWIG_fail; | |
29859 | } | |
29860 | { | |
29861 | #if wxUSE_UNICODE | |
29862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29863 | #else | |
29864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29865 | #endif | |
29866 | } | |
29867 | return resultobj; | |
29868 | fail: | |
29869 | return NULL; | |
29870 | } | |
29871 | ||
29872 | ||
29873 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29874 | PyObject *resultobj; | |
29875 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29876 | int arg2 ; | |
29877 | PyObject *result; | |
29878 | PyObject * obj0 = 0 ; | |
29879 | char *kwnames[] = { | |
29880 | (char *) "self",(char *) "n", NULL | |
29881 | }; | |
29882 | ||
29883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetClientData",kwnames,&obj0,&arg2)) goto fail; | |
29884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29885 | { | |
29886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29887 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
29888 | ||
29889 | wxPyEndAllowThreads(__tstate); | |
29890 | if (PyErr_Occurred()) SWIG_fail; | |
29891 | } | |
29892 | resultobj = result; | |
29893 | return resultobj; | |
29894 | fail: | |
29895 | return NULL; | |
29896 | } | |
29897 | ||
29898 | ||
29899 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29900 | PyObject *resultobj; | |
29901 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29902 | int arg2 ; | |
29903 | PyObject *arg3 = (PyObject *) 0 ; | |
29904 | PyObject * obj0 = 0 ; | |
29905 | PyObject * obj2 = 0 ; | |
29906 | char *kwnames[] = { | |
29907 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
29908 | }; | |
29909 | ||
29910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29912 | arg3 = obj2; | |
29913 | { | |
29914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29915 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
29916 | ||
29917 | wxPyEndAllowThreads(__tstate); | |
29918 | if (PyErr_Occurred()) SWIG_fail; | |
29919 | } | |
29920 | Py_INCREF(Py_None); resultobj = Py_None; | |
29921 | return resultobj; | |
29922 | fail: | |
29923 | return NULL; | |
29924 | } | |
29925 | ||
29926 | ||
29927 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
29928 | PyObject *obj; | |
29929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29930 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
29931 | Py_INCREF(obj); | |
29932 | return Py_BuildValue((char *)""); | |
29933 | } | |
29934 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
29935 | PyObject *obj; | |
29936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29937 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
29938 | Py_INCREF(obj); | |
29939 | return Py_BuildValue((char *)""); | |
29940 | } | |
29941 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29942 | PyObject *resultobj; | |
29943 | wxSizerItem *result; | |
29944 | char *kwnames[] = { | |
29945 | NULL | |
29946 | }; | |
29947 | ||
29948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
29949 | { | |
29950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29951 | result = (wxSizerItem *)new wxSizerItem(); | |
29952 | ||
29953 | wxPyEndAllowThreads(__tstate); | |
29954 | if (PyErr_Occurred()) SWIG_fail; | |
29955 | } | |
29956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29957 | return resultobj; | |
29958 | fail: | |
29959 | return NULL; | |
29960 | } | |
29961 | ||
29962 | ||
29963 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29964 | PyObject *resultobj; | |
29965 | int arg1 ; | |
29966 | int arg2 ; | |
29967 | int arg3 ; | |
29968 | int arg4 ; | |
29969 | int arg5 ; | |
29970 | wxObject *arg6 = (wxObject *) 0 ; | |
29971 | wxSizerItem *result; | |
29972 | PyObject * obj5 = 0 ; | |
29973 | char *kwnames[] = { | |
29974 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29975 | }; | |
29976 | ||
29977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiiiiO:new_SizerItemSpacer",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
29978 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29979 | { | |
29980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29981 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
29982 | ||
29983 | wxPyEndAllowThreads(__tstate); | |
29984 | if (PyErr_Occurred()) SWIG_fail; | |
29985 | } | |
29986 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29987 | return resultobj; | |
29988 | fail: | |
29989 | return NULL; | |
29990 | } | |
29991 | ||
29992 | ||
29993 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29994 | PyObject *resultobj; | |
29995 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29996 | int arg2 ; | |
29997 | int arg3 ; | |
29998 | int arg4 ; | |
29999 | wxObject *arg5 = (wxObject *) 0 ; | |
30000 | wxSizerItem *result; | |
30001 | PyObject * obj0 = 0 ; | |
30002 | PyObject * obj4 = 0 ; | |
30003 | char *kwnames[] = { | |
30004 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30005 | }; | |
30006 | ||
30007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
30008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30009 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30010 | { | |
30011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30012 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
30013 | ||
30014 | wxPyEndAllowThreads(__tstate); | |
30015 | if (PyErr_Occurred()) SWIG_fail; | |
30016 | } | |
30017 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
30018 | return resultobj; | |
30019 | fail: | |
30020 | return NULL; | |
30021 | } | |
30022 | ||
30023 | ||
30024 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30025 | PyObject *resultobj; | |
30026 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30027 | int arg2 ; | |
30028 | int arg3 ; | |
30029 | int arg4 ; | |
30030 | wxObject *arg5 = (wxObject *) 0 ; | |
30031 | wxSizerItem *result; | |
30032 | PyObject * obj0 = 0 ; | |
30033 | PyObject * obj4 = 0 ; | |
30034 | char *kwnames[] = { | |
30035 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30036 | }; | |
30037 | ||
30038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemSizer",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
30039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30040 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30041 | { | |
30042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30043 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
30044 | ||
30045 | wxPyEndAllowThreads(__tstate); | |
30046 | if (PyErr_Occurred()) SWIG_fail; | |
30047 | } | |
30048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
30049 | return resultobj; | |
30050 | fail: | |
30051 | return NULL; | |
30052 | } | |
30053 | ||
30054 | ||
30055 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30056 | PyObject *resultobj; | |
30057 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30058 | PyObject * obj0 = 0 ; | |
30059 | char *kwnames[] = { | |
30060 | (char *) "self", NULL | |
30061 | }; | |
30062 | ||
30063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
30064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30065 | { | |
30066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30067 | (arg1)->DeleteWindows(); | |
30068 | ||
30069 | wxPyEndAllowThreads(__tstate); | |
30070 | if (PyErr_Occurred()) SWIG_fail; | |
30071 | } | |
30072 | Py_INCREF(Py_None); resultobj = Py_None; | |
30073 | return resultobj; | |
30074 | fail: | |
30075 | return NULL; | |
30076 | } | |
30077 | ||
30078 | ||
30079 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30080 | PyObject *resultobj; | |
30081 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30082 | PyObject * obj0 = 0 ; | |
30083 | char *kwnames[] = { | |
30084 | (char *) "self", NULL | |
30085 | }; | |
30086 | ||
30087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
30088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30089 | { | |
30090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30091 | (arg1)->DetachSizer(); | |
30092 | ||
30093 | wxPyEndAllowThreads(__tstate); | |
30094 | if (PyErr_Occurred()) SWIG_fail; | |
30095 | } | |
30096 | Py_INCREF(Py_None); resultobj = Py_None; | |
30097 | return resultobj; | |
30098 | fail: | |
30099 | return NULL; | |
30100 | } | |
30101 | ||
30102 | ||
30103 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30104 | PyObject *resultobj; | |
30105 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30106 | wxSize result; | |
30107 | PyObject * obj0 = 0 ; | |
30108 | char *kwnames[] = { | |
30109 | (char *) "self", NULL | |
30110 | }; | |
30111 | ||
30112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
30113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30114 | { | |
30115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30116 | result = (arg1)->GetSize(); | |
30117 | ||
30118 | wxPyEndAllowThreads(__tstate); | |
30119 | if (PyErr_Occurred()) SWIG_fail; | |
30120 | } | |
30121 | { | |
30122 | wxSize * resultptr; | |
30123 | resultptr = new wxSize((wxSize &) result); | |
30124 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30125 | } | |
30126 | return resultobj; | |
30127 | fail: | |
30128 | return NULL; | |
30129 | } | |
30130 | ||
30131 | ||
30132 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30133 | PyObject *resultobj; | |
30134 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30135 | wxSize result; | |
30136 | PyObject * obj0 = 0 ; | |
30137 | char *kwnames[] = { | |
30138 | (char *) "self", NULL | |
30139 | }; | |
30140 | ||
30141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
30142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30143 | { | |
30144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30145 | result = (arg1)->CalcMin(); | |
30146 | ||
30147 | wxPyEndAllowThreads(__tstate); | |
30148 | if (PyErr_Occurred()) SWIG_fail; | |
30149 | } | |
30150 | { | |
30151 | wxSize * resultptr; | |
30152 | resultptr = new wxSize((wxSize &) result); | |
30153 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30154 | } | |
30155 | return resultobj; | |
30156 | fail: | |
30157 | return NULL; | |
30158 | } | |
30159 | ||
30160 | ||
30161 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30162 | PyObject *resultobj; | |
30163 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30164 | wxPoint arg2 ; | |
30165 | wxSize arg3 ; | |
30166 | wxPoint *argp2 ; | |
30167 | wxSize *argp3 ; | |
30168 | PyObject * obj0 = 0 ; | |
30169 | PyObject * obj1 = 0 ; | |
30170 | PyObject * obj2 = 0 ; | |
30171 | char *kwnames[] = { | |
30172 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
30173 | }; | |
30174 | ||
30175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30177 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30178 | arg2 = *argp2; | |
30179 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30180 | arg3 = *argp3; | |
30181 | { | |
30182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30183 | (arg1)->SetDimension(arg2,arg3); | |
30184 | ||
30185 | wxPyEndAllowThreads(__tstate); | |
30186 | if (PyErr_Occurred()) SWIG_fail; | |
30187 | } | |
30188 | Py_INCREF(Py_None); resultobj = Py_None; | |
30189 | return resultobj; | |
30190 | fail: | |
30191 | return NULL; | |
30192 | } | |
30193 | ||
30194 | ||
30195 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30196 | PyObject *resultobj; | |
30197 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30198 | wxSize result; | |
30199 | PyObject * obj0 = 0 ; | |
30200 | char *kwnames[] = { | |
30201 | (char *) "self", NULL | |
30202 | }; | |
30203 | ||
30204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
30205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30206 | { | |
30207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30208 | result = (arg1)->GetMinSize(); | |
30209 | ||
30210 | wxPyEndAllowThreads(__tstate); | |
30211 | if (PyErr_Occurred()) SWIG_fail; | |
30212 | } | |
30213 | { | |
30214 | wxSize * resultptr; | |
30215 | resultptr = new wxSize((wxSize &) result); | |
30216 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30217 | } | |
30218 | return resultobj; | |
30219 | fail: | |
30220 | return NULL; | |
30221 | } | |
30222 | ||
30223 | ||
30224 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30225 | PyObject *resultobj; | |
30226 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30227 | int arg2 ; | |
30228 | int arg3 ; | |
30229 | PyObject * obj0 = 0 ; | |
30230 | char *kwnames[] = { | |
30231 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30232 | }; | |
30233 | ||
30234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetInitSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
30235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30236 | { | |
30237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30238 | (arg1)->SetInitSize(arg2,arg3); | |
30239 | ||
30240 | wxPyEndAllowThreads(__tstate); | |
30241 | if (PyErr_Occurred()) SWIG_fail; | |
30242 | } | |
30243 | Py_INCREF(Py_None); resultobj = Py_None; | |
30244 | return resultobj; | |
30245 | fail: | |
30246 | return NULL; | |
30247 | } | |
30248 | ||
30249 | ||
30250 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30251 | PyObject *resultobj; | |
30252 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30253 | int arg2 ; | |
30254 | int arg3 ; | |
30255 | PyObject * obj0 = 0 ; | |
30256 | char *kwnames[] = { | |
30257 | (char *) "self",(char *) "width",(char *) "height", NULL | |
30258 | }; | |
30259 | ||
30260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetRatioWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
30261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30262 | { | |
30263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30264 | (arg1)->SetRatio(arg2,arg3); | |
30265 | ||
30266 | wxPyEndAllowThreads(__tstate); | |
30267 | if (PyErr_Occurred()) SWIG_fail; | |
30268 | } | |
30269 | Py_INCREF(Py_None); resultobj = Py_None; | |
30270 | return resultobj; | |
30271 | fail: | |
30272 | return NULL; | |
30273 | } | |
30274 | ||
30275 | ||
30276 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30277 | PyObject *resultobj; | |
30278 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30279 | wxSize arg2 ; | |
30280 | wxSize *argp2 ; | |
30281 | PyObject * obj0 = 0 ; | |
30282 | PyObject * obj1 = 0 ; | |
30283 | char *kwnames[] = { | |
30284 | (char *) "self",(char *) "size", NULL | |
30285 | }; | |
30286 | ||
30287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
30288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30289 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30290 | arg2 = *argp2; | |
30291 | { | |
30292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30293 | (arg1)->SetRatio(arg2); | |
30294 | ||
30295 | wxPyEndAllowThreads(__tstate); | |
30296 | if (PyErr_Occurred()) SWIG_fail; | |
30297 | } | |
30298 | Py_INCREF(Py_None); resultobj = Py_None; | |
30299 | return resultobj; | |
30300 | fail: | |
30301 | return NULL; | |
30302 | } | |
30303 | ||
30304 | ||
30305 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30306 | PyObject *resultobj; | |
30307 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30308 | float arg2 ; | |
30309 | PyObject * obj0 = 0 ; | |
30310 | char *kwnames[] = { | |
30311 | (char *) "self",(char *) "ratio", NULL | |
30312 | }; | |
30313 | ||
30314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Of:SizerItem_SetRatio",kwnames,&obj0,&arg2)) goto fail; | |
30315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30316 | { | |
30317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30318 | (arg1)->SetRatio(arg2); | |
30319 | ||
30320 | wxPyEndAllowThreads(__tstate); | |
30321 | if (PyErr_Occurred()) SWIG_fail; | |
30322 | } | |
30323 | Py_INCREF(Py_None); resultobj = Py_None; | |
30324 | return resultobj; | |
30325 | fail: | |
30326 | return NULL; | |
30327 | } | |
30328 | ||
30329 | ||
30330 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30331 | PyObject *resultobj; | |
30332 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30333 | float result; | |
30334 | PyObject * obj0 = 0 ; | |
30335 | char *kwnames[] = { | |
30336 | (char *) "self", NULL | |
30337 | }; | |
30338 | ||
30339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
30340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30341 | { | |
30342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30343 | result = (float)(arg1)->GetRatio(); | |
30344 | ||
30345 | wxPyEndAllowThreads(__tstate); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | } | |
30348 | resultobj = PyFloat_FromDouble(result); | |
30349 | return resultobj; | |
30350 | fail: | |
30351 | return NULL; | |
30352 | } | |
30353 | ||
30354 | ||
30355 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30356 | PyObject *resultobj; | |
30357 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30358 | bool result; | |
30359 | PyObject * obj0 = 0 ; | |
30360 | char *kwnames[] = { | |
30361 | (char *) "self", NULL | |
30362 | }; | |
30363 | ||
30364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
30365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30366 | { | |
30367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30368 | result = (bool)(arg1)->IsWindow(); | |
30369 | ||
30370 | wxPyEndAllowThreads(__tstate); | |
30371 | if (PyErr_Occurred()) SWIG_fail; | |
30372 | } | |
30373 | resultobj = PyInt_FromLong((long)result); | |
30374 | return resultobj; | |
30375 | fail: | |
30376 | return NULL; | |
30377 | } | |
30378 | ||
30379 | ||
30380 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30381 | PyObject *resultobj; | |
30382 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30383 | bool result; | |
30384 | PyObject * obj0 = 0 ; | |
30385 | char *kwnames[] = { | |
30386 | (char *) "self", NULL | |
30387 | }; | |
30388 | ||
30389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
30390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30391 | { | |
30392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30393 | result = (bool)(arg1)->IsSizer(); | |
30394 | ||
30395 | wxPyEndAllowThreads(__tstate); | |
30396 | if (PyErr_Occurred()) SWIG_fail; | |
30397 | } | |
30398 | resultobj = PyInt_FromLong((long)result); | |
30399 | return resultobj; | |
30400 | fail: | |
30401 | return NULL; | |
30402 | } | |
30403 | ||
30404 | ||
30405 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30406 | PyObject *resultobj; | |
30407 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30408 | bool result; | |
30409 | PyObject * obj0 = 0 ; | |
30410 | char *kwnames[] = { | |
30411 | (char *) "self", NULL | |
30412 | }; | |
30413 | ||
30414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
30415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30416 | { | |
30417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30418 | result = (bool)(arg1)->IsSpacer(); | |
30419 | ||
30420 | wxPyEndAllowThreads(__tstate); | |
30421 | if (PyErr_Occurred()) SWIG_fail; | |
30422 | } | |
30423 | resultobj = PyInt_FromLong((long)result); | |
30424 | return resultobj; | |
30425 | fail: | |
30426 | return NULL; | |
30427 | } | |
30428 | ||
30429 | ||
30430 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30431 | PyObject *resultobj; | |
30432 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30433 | int arg2 ; | |
30434 | PyObject * obj0 = 0 ; | |
30435 | char *kwnames[] = { | |
30436 | (char *) "self",(char *) "proportion", NULL | |
30437 | }; | |
30438 | ||
30439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetProportion",kwnames,&obj0,&arg2)) goto fail; | |
30440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30441 | { | |
30442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30443 | (arg1)->SetProportion(arg2); | |
30444 | ||
30445 | wxPyEndAllowThreads(__tstate); | |
30446 | if (PyErr_Occurred()) SWIG_fail; | |
30447 | } | |
30448 | Py_INCREF(Py_None); resultobj = Py_None; | |
30449 | return resultobj; | |
30450 | fail: | |
30451 | return NULL; | |
30452 | } | |
30453 | ||
30454 | ||
30455 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30456 | PyObject *resultobj; | |
30457 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30458 | int result; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | char *kwnames[] = { | |
30461 | (char *) "self", NULL | |
30462 | }; | |
30463 | ||
30464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
30465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30466 | { | |
30467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30468 | result = (int)(arg1)->GetProportion(); | |
30469 | ||
30470 | wxPyEndAllowThreads(__tstate); | |
30471 | if (PyErr_Occurred()) SWIG_fail; | |
30472 | } | |
30473 | resultobj = PyInt_FromLong((long)result); | |
30474 | return resultobj; | |
30475 | fail: | |
30476 | return NULL; | |
30477 | } | |
30478 | ||
30479 | ||
30480 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30481 | PyObject *resultobj; | |
30482 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30483 | int arg2 ; | |
30484 | PyObject * obj0 = 0 ; | |
30485 | char *kwnames[] = { | |
30486 | (char *) "self",(char *) "flag", NULL | |
30487 | }; | |
30488 | ||
30489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetFlag",kwnames,&obj0,&arg2)) goto fail; | |
30490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30491 | { | |
30492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30493 | (arg1)->SetFlag(arg2); | |
30494 | ||
30495 | wxPyEndAllowThreads(__tstate); | |
30496 | if (PyErr_Occurred()) SWIG_fail; | |
30497 | } | |
30498 | Py_INCREF(Py_None); resultobj = Py_None; | |
30499 | return resultobj; | |
30500 | fail: | |
30501 | return NULL; | |
30502 | } | |
30503 | ||
30504 | ||
30505 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30506 | PyObject *resultobj; | |
30507 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30508 | int result; | |
30509 | PyObject * obj0 = 0 ; | |
30510 | char *kwnames[] = { | |
30511 | (char *) "self", NULL | |
30512 | }; | |
30513 | ||
30514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
30515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30516 | { | |
30517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30518 | result = (int)(arg1)->GetFlag(); | |
30519 | ||
30520 | wxPyEndAllowThreads(__tstate); | |
30521 | if (PyErr_Occurred()) SWIG_fail; | |
30522 | } | |
30523 | resultobj = PyInt_FromLong((long)result); | |
30524 | return resultobj; | |
30525 | fail: | |
30526 | return NULL; | |
30527 | } | |
30528 | ||
30529 | ||
30530 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30531 | PyObject *resultobj; | |
30532 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30533 | int arg2 ; | |
30534 | PyObject * obj0 = 0 ; | |
30535 | char *kwnames[] = { | |
30536 | (char *) "self",(char *) "border", NULL | |
30537 | }; | |
30538 | ||
30539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetBorder",kwnames,&obj0,&arg2)) goto fail; | |
30540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30541 | { | |
30542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30543 | (arg1)->SetBorder(arg2); | |
30544 | ||
30545 | wxPyEndAllowThreads(__tstate); | |
30546 | if (PyErr_Occurred()) SWIG_fail; | |
30547 | } | |
30548 | Py_INCREF(Py_None); resultobj = Py_None; | |
30549 | return resultobj; | |
30550 | fail: | |
30551 | return NULL; | |
30552 | } | |
30553 | ||
30554 | ||
30555 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30556 | PyObject *resultobj; | |
30557 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30558 | int result; | |
30559 | PyObject * obj0 = 0 ; | |
30560 | char *kwnames[] = { | |
30561 | (char *) "self", NULL | |
30562 | }; | |
30563 | ||
30564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
30565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30566 | { | |
30567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30568 | result = (int)(arg1)->GetBorder(); | |
30569 | ||
30570 | wxPyEndAllowThreads(__tstate); | |
30571 | if (PyErr_Occurred()) SWIG_fail; | |
30572 | } | |
30573 | resultobj = PyInt_FromLong((long)result); | |
30574 | return resultobj; | |
30575 | fail: | |
30576 | return NULL; | |
30577 | } | |
30578 | ||
30579 | ||
30580 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30581 | PyObject *resultobj; | |
30582 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30583 | wxWindow *result; | |
30584 | PyObject * obj0 = 0 ; | |
30585 | char *kwnames[] = { | |
30586 | (char *) "self", NULL | |
30587 | }; | |
30588 | ||
30589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
30590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30591 | { | |
30592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30593 | result = (wxWindow *)(arg1)->GetWindow(); | |
30594 | ||
30595 | wxPyEndAllowThreads(__tstate); | |
30596 | if (PyErr_Occurred()) SWIG_fail; | |
30597 | } | |
30598 | { | |
30599 | resultobj = wxPyMake_wxObject(result); | |
30600 | } | |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
30607 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30608 | PyObject *resultobj; | |
30609 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30611 | PyObject * obj0 = 0 ; | |
30612 | PyObject * obj1 = 0 ; | |
30613 | char *kwnames[] = { | |
30614 | (char *) "self",(char *) "window", NULL | |
30615 | }; | |
30616 | ||
30617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
30618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30619 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30620 | { | |
30621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30622 | (arg1)->SetWindow(arg2); | |
30623 | ||
30624 | wxPyEndAllowThreads(__tstate); | |
30625 | if (PyErr_Occurred()) SWIG_fail; | |
30626 | } | |
30627 | Py_INCREF(Py_None); resultobj = Py_None; | |
30628 | return resultobj; | |
30629 | fail: | |
30630 | return NULL; | |
30631 | } | |
30632 | ||
30633 | ||
30634 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30635 | PyObject *resultobj; | |
30636 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30637 | wxSizer *result; | |
30638 | PyObject * obj0 = 0 ; | |
30639 | char *kwnames[] = { | |
30640 | (char *) "self", NULL | |
30641 | }; | |
30642 | ||
30643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
30644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30645 | { | |
30646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30647 | result = (wxSizer *)(arg1)->GetSizer(); | |
30648 | ||
30649 | wxPyEndAllowThreads(__tstate); | |
30650 | if (PyErr_Occurred()) SWIG_fail; | |
30651 | } | |
30652 | { | |
30653 | resultobj = wxPyMake_wxSizer(result); | |
30654 | } | |
30655 | return resultobj; | |
30656 | fail: | |
30657 | return NULL; | |
30658 | } | |
30659 | ||
30660 | ||
30661 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30662 | PyObject *resultobj; | |
30663 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30664 | wxSizer *arg2 = (wxSizer *) 0 ; | |
30665 | PyObject * obj0 = 0 ; | |
30666 | PyObject * obj1 = 0 ; | |
30667 | char *kwnames[] = { | |
30668 | (char *) "self",(char *) "sizer", NULL | |
30669 | }; | |
30670 | ||
30671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
30672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30673 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30674 | { | |
30675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30676 | (arg1)->SetSizer(arg2); | |
30677 | ||
30678 | wxPyEndAllowThreads(__tstate); | |
30679 | if (PyErr_Occurred()) SWIG_fail; | |
30680 | } | |
30681 | Py_INCREF(Py_None); resultobj = Py_None; | |
30682 | return resultobj; | |
30683 | fail: | |
30684 | return NULL; | |
30685 | } | |
30686 | ||
30687 | ||
30688 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30689 | PyObject *resultobj; | |
30690 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30691 | wxSize *result; | |
30692 | PyObject * obj0 = 0 ; | |
30693 | char *kwnames[] = { | |
30694 | (char *) "self", NULL | |
30695 | }; | |
30696 | ||
30697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
30698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30699 | { | |
30700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30701 | { | |
30702 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
30703 | result = (wxSize *) &_result_ref; | |
30704 | } | |
30705 | ||
30706 | wxPyEndAllowThreads(__tstate); | |
30707 | if (PyErr_Occurred()) SWIG_fail; | |
30708 | } | |
30709 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
30710 | return resultobj; | |
30711 | fail: | |
30712 | return NULL; | |
30713 | } | |
30714 | ||
30715 | ||
30716 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30717 | PyObject *resultobj; | |
30718 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30719 | wxSize *arg2 = 0 ; | |
30720 | wxSize temp2 ; | |
30721 | PyObject * obj0 = 0 ; | |
30722 | PyObject * obj1 = 0 ; | |
30723 | char *kwnames[] = { | |
30724 | (char *) "self",(char *) "size", NULL | |
30725 | }; | |
30726 | ||
30727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
30728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30729 | { | |
30730 | arg2 = &temp2; | |
30731 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30732 | } | |
30733 | { | |
30734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30735 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
30736 | ||
30737 | wxPyEndAllowThreads(__tstate); | |
30738 | if (PyErr_Occurred()) SWIG_fail; | |
30739 | } | |
30740 | Py_INCREF(Py_None); resultobj = Py_None; | |
30741 | return resultobj; | |
30742 | fail: | |
30743 | return NULL; | |
30744 | } | |
30745 | ||
30746 | ||
30747 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30748 | PyObject *resultobj; | |
30749 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30750 | bool arg2 ; | |
30751 | PyObject * obj0 = 0 ; | |
30752 | PyObject * obj1 = 0 ; | |
30753 | char *kwnames[] = { | |
30754 | (char *) "self",(char *) "show", NULL | |
30755 | }; | |
30756 | ||
30757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
30758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
30759 | { |
30760 | arg2 = (bool) SPyObj_AsBool(obj1); | |
30761 | if (PyErr_Occurred()) SWIG_fail; | |
30762 | } | |
d14a1e28 RD |
30763 | { |
30764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30765 | (arg1)->Show(arg2); | |
30766 | ||
30767 | wxPyEndAllowThreads(__tstate); | |
30768 | if (PyErr_Occurred()) SWIG_fail; | |
30769 | } | |
30770 | Py_INCREF(Py_None); resultobj = Py_None; | |
30771 | return resultobj; | |
30772 | fail: | |
30773 | return NULL; | |
30774 | } | |
30775 | ||
30776 | ||
30777 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30778 | PyObject *resultobj; | |
30779 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30780 | bool result; | |
30781 | PyObject * obj0 = 0 ; | |
30782 | char *kwnames[] = { | |
30783 | (char *) "self", NULL | |
30784 | }; | |
30785 | ||
30786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
30787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30788 | { | |
30789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30790 | result = (bool)(arg1)->IsShown(); | |
30791 | ||
30792 | wxPyEndAllowThreads(__tstate); | |
30793 | if (PyErr_Occurred()) SWIG_fail; | |
30794 | } | |
30795 | resultobj = PyInt_FromLong((long)result); | |
30796 | return resultobj; | |
30797 | fail: | |
30798 | return NULL; | |
30799 | } | |
30800 | ||
30801 | ||
30802 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30803 | PyObject *resultobj; | |
30804 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30805 | wxPoint result; | |
30806 | PyObject * obj0 = 0 ; | |
30807 | char *kwnames[] = { | |
30808 | (char *) "self", NULL | |
30809 | }; | |
30810 | ||
30811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
30812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30813 | { | |
30814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30815 | result = (arg1)->GetPosition(); | |
30816 | ||
30817 | wxPyEndAllowThreads(__tstate); | |
30818 | if (PyErr_Occurred()) SWIG_fail; | |
30819 | } | |
30820 | { | |
30821 | wxPoint * resultptr; | |
30822 | resultptr = new wxPoint((wxPoint &) result); | |
30823 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30824 | } | |
30825 | return resultobj; | |
30826 | fail: | |
30827 | return NULL; | |
30828 | } | |
30829 | ||
30830 | ||
30831 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30832 | PyObject *resultobj; | |
30833 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30834 | PyObject *result; | |
30835 | PyObject * obj0 = 0 ; | |
30836 | char *kwnames[] = { | |
30837 | (char *) "self", NULL | |
30838 | }; | |
30839 | ||
30840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
30841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30842 | { | |
30843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30844 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
30845 | ||
30846 | wxPyEndAllowThreads(__tstate); | |
30847 | if (PyErr_Occurred()) SWIG_fail; | |
30848 | } | |
30849 | resultobj = result; | |
30850 | return resultobj; | |
30851 | fail: | |
30852 | return NULL; | |
30853 | } | |
30854 | ||
30855 | ||
30856 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
30857 | PyObject *obj; | |
30858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30859 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
30860 | Py_INCREF(obj); | |
30861 | return Py_BuildValue((char *)""); | |
30862 | } | |
30863 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30864 | PyObject *resultobj; | |
30865 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30866 | PyObject *arg2 = (PyObject *) 0 ; | |
30867 | PyObject * obj0 = 0 ; | |
30868 | PyObject * obj1 = 0 ; | |
30869 | char *kwnames[] = { | |
30870 | (char *) "self",(char *) "_self", NULL | |
30871 | }; | |
30872 | ||
30873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
30874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30875 | arg2 = obj1; | |
30876 | { | |
30877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30878 | wxSizer__setOORInfo(arg1,arg2); | |
30879 | ||
30880 | wxPyEndAllowThreads(__tstate); | |
30881 | if (PyErr_Occurred()) SWIG_fail; | |
30882 | } | |
30883 | Py_INCREF(Py_None); resultobj = Py_None; | |
30884 | return resultobj; | |
30885 | fail: | |
30886 | return NULL; | |
30887 | } | |
30888 | ||
30889 | ||
30890 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30891 | PyObject *resultobj; | |
30892 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30893 | PyObject *arg2 = (PyObject *) 0 ; | |
30894 | int arg3 = (int) 0 ; | |
30895 | int arg4 = (int) 0 ; | |
30896 | int arg5 = (int) 0 ; | |
30897 | PyObject *arg6 = (PyObject *) NULL ; | |
30898 | PyObject * obj0 = 0 ; | |
30899 | PyObject * obj1 = 0 ; | |
30900 | PyObject * obj5 = 0 ; | |
30901 | char *kwnames[] = { | |
30902 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30903 | }; | |
30904 | ||
30905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Add",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30907 | arg2 = obj1; | |
30908 | if (obj5) { | |
30909 | arg6 = obj5; | |
30910 | } | |
30911 | { | |
30912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30913 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
30914 | ||
30915 | wxPyEndAllowThreads(__tstate); | |
30916 | if (PyErr_Occurred()) SWIG_fail; | |
30917 | } | |
30918 | Py_INCREF(Py_None); resultobj = Py_None; | |
30919 | return resultobj; | |
30920 | fail: | |
30921 | return NULL; | |
30922 | } | |
30923 | ||
30924 | ||
30925 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30926 | PyObject *resultobj; | |
30927 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30928 | int arg2 ; | |
30929 | PyObject *arg3 = (PyObject *) 0 ; | |
30930 | int arg4 = (int) 0 ; | |
30931 | int arg5 = (int) 0 ; | |
30932 | int arg6 = (int) 0 ; | |
30933 | PyObject *arg7 = (PyObject *) NULL ; | |
30934 | PyObject * obj0 = 0 ; | |
30935 | PyObject * obj2 = 0 ; | |
30936 | PyObject * obj6 = 0 ; | |
30937 | char *kwnames[] = { | |
30938 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30939 | }; | |
30940 | ||
30941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|iiiO:Sizer_Insert",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
30942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30943 | arg3 = obj2; | |
30944 | if (obj6) { | |
30945 | arg7 = obj6; | |
30946 | } | |
30947 | { | |
30948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30949 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
30950 | ||
30951 | wxPyEndAllowThreads(__tstate); | |
30952 | if (PyErr_Occurred()) SWIG_fail; | |
30953 | } | |
30954 | Py_INCREF(Py_None); resultobj = Py_None; | |
30955 | return resultobj; | |
30956 | fail: | |
30957 | return NULL; | |
30958 | } | |
30959 | ||
30960 | ||
30961 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30962 | PyObject *resultobj; | |
30963 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30964 | PyObject *arg2 = (PyObject *) 0 ; | |
30965 | int arg3 = (int) 0 ; | |
30966 | int arg4 = (int) 0 ; | |
30967 | int arg5 = (int) 0 ; | |
30968 | PyObject *arg6 = (PyObject *) NULL ; | |
30969 | PyObject * obj0 = 0 ; | |
30970 | PyObject * obj1 = 0 ; | |
30971 | PyObject * obj5 = 0 ; | |
30972 | char *kwnames[] = { | |
30973 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30974 | }; | |
30975 | ||
30976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Prepend",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30978 | arg2 = obj1; | |
30979 | if (obj5) { | |
30980 | arg6 = obj5; | |
30981 | } | |
30982 | { | |
30983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30984 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
30985 | ||
30986 | wxPyEndAllowThreads(__tstate); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
30989 | Py_INCREF(Py_None); resultobj = Py_None; | |
30990 | return resultobj; | |
30991 | fail: | |
30992 | return NULL; | |
30993 | } | |
30994 | ||
30995 | ||
30996 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30997 | PyObject *resultobj; | |
30998 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30999 | PyObject *arg2 = (PyObject *) 0 ; | |
31000 | bool result; | |
31001 | PyObject * obj0 = 0 ; | |
31002 | PyObject * obj1 = 0 ; | |
31003 | char *kwnames[] = { | |
31004 | (char *) "self",(char *) "item", NULL | |
31005 | }; | |
31006 | ||
31007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31009 | arg2 = obj1; | |
31010 | { | |
31011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31012 | result = (bool)wxSizer_Remove(arg1,arg2); | |
31013 | ||
31014 | wxPyEndAllowThreads(__tstate); | |
31015 | if (PyErr_Occurred()) SWIG_fail; | |
31016 | } | |
31017 | resultobj = PyInt_FromLong((long)result); | |
31018 | return resultobj; | |
31019 | fail: | |
31020 | return NULL; | |
31021 | } | |
31022 | ||
31023 | ||
31024 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31025 | PyObject *resultobj; | |
31026 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31027 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
31028 | wxSize *arg3 = 0 ; |
31029 | wxSize temp3 ; | |
d14a1e28 RD |
31030 | PyObject * obj0 = 0 ; |
31031 | PyObject * obj1 = 0 ; | |
31032 | PyObject * obj2 = 0 ; | |
31033 | char *kwnames[] = { | |
31034 | (char *) "self",(char *) "item",(char *) "size", NULL | |
31035 | }; | |
31036 | ||
31037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31039 | arg2 = obj1; | |
e811c8ce RD |
31040 | { |
31041 | arg3 = &temp3; | |
31042 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
31043 | } | |
d14a1e28 RD |
31044 | { |
31045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 31046 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
31047 | |
31048 | wxPyEndAllowThreads(__tstate); | |
31049 | if (PyErr_Occurred()) SWIG_fail; | |
31050 | } | |
31051 | Py_INCREF(Py_None); resultobj = Py_None; | |
31052 | return resultobj; | |
31053 | fail: | |
31054 | return NULL; | |
31055 | } | |
31056 | ||
31057 | ||
31058 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31059 | PyObject *resultobj; | |
31060 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31061 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
31062 | PyObject * obj0 = 0 ; | |
31063 | PyObject * obj1 = 0 ; | |
31064 | char *kwnames[] = { | |
31065 | (char *) "self",(char *) "item", NULL | |
31066 | }; | |
31067 | ||
31068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
31069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31071 | { | |
31072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31073 | (arg1)->Add(arg2); | |
31074 | ||
31075 | wxPyEndAllowThreads(__tstate); | |
31076 | if (PyErr_Occurred()) SWIG_fail; | |
31077 | } | |
31078 | Py_INCREF(Py_None); resultobj = Py_None; | |
31079 | return resultobj; | |
31080 | fail: | |
31081 | return NULL; | |
31082 | } | |
31083 | ||
31084 | ||
31085 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31086 | PyObject *resultobj; | |
31087 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31088 | size_t arg2 ; | |
31089 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
31090 | PyObject * obj0 = 0 ; | |
31091 | PyObject * obj1 = 0 ; | |
31092 | PyObject * obj2 = 0 ; | |
31093 | char *kwnames[] = { | |
31094 | (char *) "self",(char *) "index",(char *) "item", NULL | |
31095 | }; | |
31096 | ||
31097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
31099 | { |
31100 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
31101 | if (PyErr_Occurred()) SWIG_fail; | |
31102 | } | |
d14a1e28 RD |
31103 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31104 | { | |
31105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31106 | (arg1)->Insert(arg2,arg3); | |
31107 | ||
31108 | wxPyEndAllowThreads(__tstate); | |
31109 | if (PyErr_Occurred()) SWIG_fail; | |
31110 | } | |
31111 | Py_INCREF(Py_None); resultobj = Py_None; | |
31112 | return resultobj; | |
31113 | fail: | |
31114 | return NULL; | |
31115 | } | |
31116 | ||
31117 | ||
31118 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31119 | PyObject *resultobj; | |
31120 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31121 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
31122 | PyObject * obj0 = 0 ; | |
31123 | PyObject * obj1 = 0 ; | |
31124 | char *kwnames[] = { | |
31125 | (char *) "self",(char *) "item", NULL | |
31126 | }; | |
31127 | ||
31128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
31129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31130 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31131 | { | |
31132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31133 | (arg1)->Prepend(arg2); | |
31134 | ||
31135 | wxPyEndAllowThreads(__tstate); | |
31136 | if (PyErr_Occurred()) SWIG_fail; | |
31137 | } | |
31138 | Py_INCREF(Py_None); resultobj = Py_None; | |
31139 | return resultobj; | |
31140 | fail: | |
31141 | return NULL; | |
31142 | } | |
31143 | ||
31144 | ||
31145 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31146 | PyObject *resultobj; | |
31147 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31148 | int arg2 ; | |
31149 | int arg3 ; | |
31150 | int arg4 ; | |
31151 | int arg5 ; | |
31152 | PyObject * obj0 = 0 ; | |
31153 | char *kwnames[] = { | |
31154 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
31155 | }; | |
31156 | ||
31157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Sizer_SetDimension",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
31158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31159 | { | |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | Py_INCREF(Py_None); resultobj = Py_None; | |
31167 | return resultobj; | |
31168 | fail: | |
31169 | return NULL; | |
31170 | } | |
31171 | ||
31172 | ||
31173 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31174 | PyObject *resultobj; | |
31175 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
31176 | wxSize *arg2 = 0 ; |
31177 | wxSize temp2 ; | |
d14a1e28 RD |
31178 | PyObject * obj0 = 0 ; |
31179 | PyObject * obj1 = 0 ; | |
31180 | char *kwnames[] = { | |
31181 | (char *) "self",(char *) "size", NULL | |
31182 | }; | |
31183 | ||
31184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
31185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1fc9204a RD |
31186 | { |
31187 | arg2 = &temp2; | |
31188 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
31189 | } | |
d14a1e28 RD |
31190 | { |
31191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 31192 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
31193 | |
31194 | wxPyEndAllowThreads(__tstate); | |
31195 | if (PyErr_Occurred()) SWIG_fail; | |
31196 | } | |
31197 | Py_INCREF(Py_None); resultobj = Py_None; | |
31198 | return resultobj; | |
31199 | fail: | |
31200 | return NULL; | |
31201 | } | |
31202 | ||
31203 | ||
31204 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31205 | PyObject *resultobj; | |
31206 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31207 | wxSize result; | |
31208 | PyObject * obj0 = 0 ; | |
31209 | char *kwnames[] = { | |
31210 | (char *) "self", NULL | |
31211 | }; | |
31212 | ||
31213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
31214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31215 | { | |
31216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31217 | result = (arg1)->GetSize(); | |
31218 | ||
31219 | wxPyEndAllowThreads(__tstate); | |
31220 | if (PyErr_Occurred()) SWIG_fail; | |
31221 | } | |
31222 | { | |
31223 | wxSize * resultptr; | |
31224 | resultptr = new wxSize((wxSize &) result); | |
31225 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31226 | } | |
31227 | return resultobj; | |
31228 | fail: | |
31229 | return NULL; | |
31230 | } | |
31231 | ||
31232 | ||
31233 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31234 | PyObject *resultobj; | |
31235 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31236 | wxPoint result; | |
31237 | PyObject * obj0 = 0 ; | |
31238 | char *kwnames[] = { | |
31239 | (char *) "self", NULL | |
31240 | }; | |
31241 | ||
31242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
31243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31244 | { | |
31245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31246 | result = (arg1)->GetPosition(); | |
31247 | ||
31248 | wxPyEndAllowThreads(__tstate); | |
31249 | if (PyErr_Occurred()) SWIG_fail; | |
31250 | } | |
31251 | { | |
31252 | wxPoint * resultptr; | |
31253 | resultptr = new wxPoint((wxPoint &) result); | |
31254 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
31255 | } | |
31256 | return resultobj; | |
31257 | fail: | |
31258 | return NULL; | |
31259 | } | |
31260 | ||
31261 | ||
31262 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31263 | PyObject *resultobj; | |
31264 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31265 | wxSize result; | |
31266 | PyObject * obj0 = 0 ; | |
31267 | char *kwnames[] = { | |
31268 | (char *) "self", NULL | |
31269 | }; | |
31270 | ||
31271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
31272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31273 | { | |
31274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31275 | result = (arg1)->GetMinSize(); | |
31276 | ||
31277 | wxPyEndAllowThreads(__tstate); | |
31278 | if (PyErr_Occurred()) SWIG_fail; | |
31279 | } | |
31280 | { | |
31281 | wxSize * resultptr; | |
31282 | resultptr = new wxSize((wxSize &) result); | |
31283 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31284 | } | |
31285 | return resultobj; | |
31286 | fail: | |
31287 | return NULL; | |
31288 | } | |
31289 | ||
31290 | ||
31291 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31292 | PyObject *resultobj; | |
31293 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31294 | PyObject * obj0 = 0 ; | |
31295 | char *kwnames[] = { | |
31296 | (char *) "self", NULL | |
31297 | }; | |
31298 | ||
31299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31301 | { | |
31302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31303 | (arg1)->RecalcSizes(); | |
31304 | ||
31305 | wxPyEndAllowThreads(__tstate); | |
31306 | if (PyErr_Occurred()) SWIG_fail; | |
31307 | } | |
31308 | Py_INCREF(Py_None); resultobj = Py_None; | |
31309 | return resultobj; | |
31310 | fail: | |
31311 | return NULL; | |
31312 | } | |
31313 | ||
31314 | ||
31315 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31316 | PyObject *resultobj; | |
31317 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31318 | wxSize result; | |
31319 | PyObject * obj0 = 0 ; | |
31320 | char *kwnames[] = { | |
31321 | (char *) "self", NULL | |
31322 | }; | |
31323 | ||
31324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
31325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31326 | { | |
31327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31328 | result = (arg1)->CalcMin(); | |
31329 | ||
31330 | wxPyEndAllowThreads(__tstate); | |
31331 | if (PyErr_Occurred()) SWIG_fail; | |
31332 | } | |
31333 | { | |
31334 | wxSize * resultptr; | |
31335 | resultptr = new wxSize((wxSize &) result); | |
31336 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31337 | } | |
31338 | return resultobj; | |
31339 | fail: | |
31340 | return NULL; | |
31341 | } | |
31342 | ||
31343 | ||
31344 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31345 | PyObject *resultobj; | |
31346 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31347 | PyObject * obj0 = 0 ; | |
31348 | char *kwnames[] = { | |
31349 | (char *) "self", NULL | |
31350 | }; | |
31351 | ||
31352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
31353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31354 | { | |
31355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31356 | (arg1)->Layout(); | |
31357 | ||
31358 | wxPyEndAllowThreads(__tstate); | |
31359 | if (PyErr_Occurred()) SWIG_fail; | |
31360 | } | |
31361 | Py_INCREF(Py_None); resultobj = Py_None; | |
31362 | return resultobj; | |
31363 | fail: | |
31364 | return NULL; | |
31365 | } | |
31366 | ||
31367 | ||
31368 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31369 | PyObject *resultobj; | |
31370 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31372 | wxSize result; | |
31373 | PyObject * obj0 = 0 ; | |
31374 | PyObject * obj1 = 0 ; | |
31375 | char *kwnames[] = { | |
31376 | (char *) "self",(char *) "window", NULL | |
31377 | }; | |
31378 | ||
31379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
31380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31382 | { | |
31383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31384 | result = (arg1)->Fit(arg2); | |
31385 | ||
31386 | wxPyEndAllowThreads(__tstate); | |
31387 | if (PyErr_Occurred()) SWIG_fail; | |
31388 | } | |
31389 | { | |
31390 | wxSize * resultptr; | |
31391 | resultptr = new wxSize((wxSize &) result); | |
31392 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31393 | } | |
31394 | return resultobj; | |
31395 | fail: | |
31396 | return NULL; | |
31397 | } | |
31398 | ||
31399 | ||
31400 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31401 | PyObject *resultobj; | |
31402 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31403 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31404 | PyObject * obj0 = 0 ; | |
31405 | PyObject * obj1 = 0 ; | |
31406 | char *kwnames[] = { | |
31407 | (char *) "self",(char *) "window", NULL | |
31408 | }; | |
31409 | ||
31410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
31411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31412 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31413 | { | |
31414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31415 | (arg1)->FitInside(arg2); | |
31416 | ||
31417 | wxPyEndAllowThreads(__tstate); | |
31418 | if (PyErr_Occurred()) SWIG_fail; | |
31419 | } | |
31420 | Py_INCREF(Py_None); resultobj = Py_None; | |
31421 | return resultobj; | |
31422 | fail: | |
31423 | return NULL; | |
31424 | } | |
31425 | ||
31426 | ||
31427 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31428 | PyObject *resultobj; | |
31429 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31431 | PyObject * obj0 = 0 ; | |
31432 | PyObject * obj1 = 0 ; | |
31433 | char *kwnames[] = { | |
31434 | (char *) "self",(char *) "window", NULL | |
31435 | }; | |
31436 | ||
31437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31439 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31440 | { | |
31441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31442 | (arg1)->SetSizeHints(arg2); | |
31443 | ||
31444 | wxPyEndAllowThreads(__tstate); | |
31445 | if (PyErr_Occurred()) SWIG_fail; | |
31446 | } | |
31447 | Py_INCREF(Py_None); resultobj = Py_None; | |
31448 | return resultobj; | |
31449 | fail: | |
31450 | return NULL; | |
31451 | } | |
31452 | ||
31453 | ||
31454 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31455 | PyObject *resultobj; | |
31456 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31457 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31458 | PyObject * obj0 = 0 ; | |
31459 | PyObject * obj1 = 0 ; | |
31460 | char *kwnames[] = { | |
31461 | (char *) "self",(char *) "window", NULL | |
31462 | }; | |
31463 | ||
31464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31466 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31467 | { | |
31468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31469 | (arg1)->SetVirtualSizeHints(arg2); | |
31470 | ||
31471 | wxPyEndAllowThreads(__tstate); | |
31472 | if (PyErr_Occurred()) SWIG_fail; | |
31473 | } | |
31474 | Py_INCREF(Py_None); resultobj = Py_None; | |
31475 | return resultobj; | |
31476 | fail: | |
31477 | return NULL; | |
31478 | } | |
31479 | ||
31480 | ||
31481 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31482 | PyObject *resultobj; | |
31483 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 31484 | bool arg2 = (bool) False ; |
d14a1e28 RD |
31485 | PyObject * obj0 = 0 ; |
31486 | PyObject * obj1 = 0 ; | |
31487 | char *kwnames[] = { | |
31488 | (char *) "self",(char *) "delete_windows", NULL | |
31489 | }; | |
31490 | ||
31491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
31492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31493 | if (obj1) { | |
a41e16b6 RD |
31494 | { |
31495 | arg2 = (bool) SPyObj_AsBool(obj1); | |
31496 | if (PyErr_Occurred()) SWIG_fail; | |
31497 | } | |
d14a1e28 RD |
31498 | } |
31499 | { | |
31500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31501 | (arg1)->Clear(arg2); | |
31502 | ||
31503 | wxPyEndAllowThreads(__tstate); | |
31504 | if (PyErr_Occurred()) SWIG_fail; | |
31505 | } | |
31506 | Py_INCREF(Py_None); resultobj = Py_None; | |
31507 | return resultobj; | |
31508 | fail: | |
31509 | return NULL; | |
31510 | } | |
31511 | ||
31512 | ||
31513 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31514 | PyObject *resultobj; | |
31515 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31516 | PyObject * obj0 = 0 ; | |
31517 | char *kwnames[] = { | |
31518 | (char *) "self", NULL | |
31519 | }; | |
31520 | ||
31521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
31522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31523 | { | |
31524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31525 | (arg1)->DeleteWindows(); | |
31526 | ||
31527 | wxPyEndAllowThreads(__tstate); | |
31528 | if (PyErr_Occurred()) SWIG_fail; | |
31529 | } | |
31530 | Py_INCREF(Py_None); resultobj = Py_None; | |
31531 | return resultobj; | |
31532 | fail: | |
31533 | return NULL; | |
31534 | } | |
31535 | ||
31536 | ||
31537 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31538 | PyObject *resultobj; | |
31539 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31540 | PyObject *result; | |
31541 | PyObject * obj0 = 0 ; | |
31542 | char *kwnames[] = { | |
31543 | (char *) "self", NULL | |
31544 | }; | |
31545 | ||
31546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
31547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31548 | { | |
31549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31550 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
31551 | ||
31552 | wxPyEndAllowThreads(__tstate); | |
31553 | if (PyErr_Occurred()) SWIG_fail; | |
31554 | } | |
31555 | resultobj = result; | |
31556 | return resultobj; | |
31557 | fail: | |
31558 | return NULL; | |
31559 | } | |
31560 | ||
31561 | ||
31562 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31563 | PyObject *resultobj; | |
31564 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31565 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 31566 | bool arg3 = (bool) True ; |
d14a1e28 RD |
31567 | PyObject * obj0 = 0 ; |
31568 | PyObject * obj1 = 0 ; | |
31569 | PyObject * obj2 = 0 ; | |
31570 | char *kwnames[] = { | |
31571 | (char *) "self",(char *) "item",(char *) "show", NULL | |
31572 | }; | |
31573 | ||
31574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31576 | arg2 = obj1; | |
31577 | if (obj2) { | |
a41e16b6 RD |
31578 | { |
31579 | arg3 = (bool) SPyObj_AsBool(obj2); | |
31580 | if (PyErr_Occurred()) SWIG_fail; | |
31581 | } | |
d14a1e28 RD |
31582 | } |
31583 | { | |
31584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31585 | wxSizer_Show(arg1,arg2,arg3); | |
31586 | ||
31587 | wxPyEndAllowThreads(__tstate); | |
31588 | if (PyErr_Occurred()) SWIG_fail; | |
31589 | } | |
31590 | Py_INCREF(Py_None); resultobj = Py_None; | |
31591 | return resultobj; | |
31592 | fail: | |
31593 | return NULL; | |
31594 | } | |
31595 | ||
31596 | ||
31597 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31598 | PyObject *resultobj; | |
31599 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31600 | PyObject *arg2 = (PyObject *) 0 ; | |
31601 | PyObject * obj0 = 0 ; | |
31602 | PyObject * obj1 = 0 ; | |
31603 | char *kwnames[] = { | |
31604 | (char *) "self",(char *) "item", NULL | |
31605 | }; | |
31606 | ||
31607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
31608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31609 | arg2 = obj1; | |
31610 | { | |
31611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31612 | wxSizer_Hide(arg1,arg2); | |
31613 | ||
31614 | wxPyEndAllowThreads(__tstate); | |
31615 | if (PyErr_Occurred()) SWIG_fail; | |
31616 | } | |
31617 | Py_INCREF(Py_None); resultobj = Py_None; | |
31618 | return resultobj; | |
31619 | fail: | |
31620 | return NULL; | |
31621 | } | |
31622 | ||
31623 | ||
31624 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31625 | PyObject *resultobj; | |
31626 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31627 | PyObject *arg2 = (PyObject *) 0 ; | |
31628 | bool result; | |
31629 | PyObject * obj0 = 0 ; | |
31630 | PyObject * obj1 = 0 ; | |
31631 | char *kwnames[] = { | |
31632 | (char *) "self",(char *) "item", NULL | |
31633 | }; | |
31634 | ||
31635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
31636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31637 | arg2 = obj1; | |
31638 | { | |
31639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31640 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
31641 | ||
31642 | wxPyEndAllowThreads(__tstate); | |
31643 | if (PyErr_Occurred()) SWIG_fail; | |
31644 | } | |
31645 | resultobj = PyInt_FromLong((long)result); | |
31646 | return resultobj; | |
31647 | fail: | |
31648 | return NULL; | |
31649 | } | |
31650 | ||
31651 | ||
31652 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31653 | PyObject *resultobj; | |
31654 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31655 | bool arg2 ; | |
31656 | PyObject * obj0 = 0 ; | |
31657 | PyObject * obj1 = 0 ; | |
31658 | char *kwnames[] = { | |
31659 | (char *) "self",(char *) "show", NULL | |
31660 | }; | |
31661 | ||
31662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
31663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
31664 | { |
31665 | arg2 = (bool) SPyObj_AsBool(obj1); | |
31666 | if (PyErr_Occurred()) SWIG_fail; | |
31667 | } | |
d14a1e28 RD |
31668 | { |
31669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31670 | (arg1)->ShowItems(arg2); | |
31671 | ||
31672 | wxPyEndAllowThreads(__tstate); | |
31673 | if (PyErr_Occurred()) SWIG_fail; | |
31674 | } | |
31675 | Py_INCREF(Py_None); resultobj = Py_None; | |
31676 | return resultobj; | |
31677 | fail: | |
31678 | return NULL; | |
31679 | } | |
31680 | ||
31681 | ||
31682 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
31683 | PyObject *obj; | |
31684 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31685 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
31686 | Py_INCREF(obj); | |
31687 | return Py_BuildValue((char *)""); | |
31688 | } | |
31689 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31690 | PyObject *resultobj; | |
31691 | wxPySizer *result; | |
31692 | char *kwnames[] = { | |
31693 | NULL | |
31694 | }; | |
31695 | ||
31696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
31697 | { | |
31698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31699 | result = (wxPySizer *)new wxPySizer(); | |
31700 | ||
31701 | wxPyEndAllowThreads(__tstate); | |
31702 | if (PyErr_Occurred()) SWIG_fail; | |
31703 | } | |
31704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
31705 | return resultobj; | |
31706 | fail: | |
31707 | return NULL; | |
31708 | } | |
31709 | ||
31710 | ||
31711 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31712 | PyObject *resultobj; | |
31713 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
31714 | PyObject *arg2 = (PyObject *) 0 ; | |
31715 | PyObject *arg3 = (PyObject *) 0 ; | |
31716 | PyObject * obj0 = 0 ; | |
31717 | PyObject * obj1 = 0 ; | |
31718 | PyObject * obj2 = 0 ; | |
31719 | char *kwnames[] = { | |
31720 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31721 | }; | |
31722 | ||
31723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31725 | arg2 = obj1; | |
31726 | arg3 = obj2; | |
31727 | { | |
31728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31729 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31730 | ||
31731 | wxPyEndAllowThreads(__tstate); | |
31732 | if (PyErr_Occurred()) SWIG_fail; | |
31733 | } | |
31734 | Py_INCREF(Py_None); resultobj = Py_None; | |
31735 | return resultobj; | |
31736 | fail: | |
31737 | return NULL; | |
31738 | } | |
31739 | ||
31740 | ||
31741 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
31742 | PyObject *obj; | |
31743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31744 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
31745 | Py_INCREF(obj); | |
31746 | return Py_BuildValue((char *)""); | |
31747 | } | |
31748 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31749 | PyObject *resultobj; | |
31750 | int arg1 = (int) wxHORIZONTAL ; | |
31751 | wxBoxSizer *result; | |
31752 | char *kwnames[] = { | |
31753 | (char *) "orient", NULL | |
31754 | }; | |
31755 | ||
31756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_BoxSizer",kwnames,&arg1)) goto fail; | |
31757 | { | |
31758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31759 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
31760 | ||
31761 | wxPyEndAllowThreads(__tstate); | |
31762 | if (PyErr_Occurred()) SWIG_fail; | |
31763 | } | |
31764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
31765 | return resultobj; | |
31766 | fail: | |
31767 | return NULL; | |
31768 | } | |
31769 | ||
31770 | ||
31771 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31772 | PyObject *resultobj; | |
31773 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31774 | int result; | |
31775 | PyObject * obj0 = 0 ; | |
31776 | char *kwnames[] = { | |
31777 | (char *) "self", NULL | |
31778 | }; | |
31779 | ||
31780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
31781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31782 | { | |
31783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31784 | result = (int)(arg1)->GetOrientation(); | |
31785 | ||
31786 | wxPyEndAllowThreads(__tstate); | |
31787 | if (PyErr_Occurred()) SWIG_fail; | |
31788 | } | |
31789 | resultobj = PyInt_FromLong((long)result); | |
31790 | return resultobj; | |
31791 | fail: | |
31792 | return NULL; | |
31793 | } | |
31794 | ||
31795 | ||
31796 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31797 | PyObject *resultobj; | |
31798 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31799 | int arg2 ; | |
31800 | PyObject * obj0 = 0 ; | |
31801 | char *kwnames[] = { | |
31802 | (char *) "self",(char *) "orient", NULL | |
31803 | }; | |
31804 | ||
31805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BoxSizer_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
31806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31807 | { | |
31808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31809 | (arg1)->SetOrientation(arg2); | |
31810 | ||
31811 | wxPyEndAllowThreads(__tstate); | |
31812 | if (PyErr_Occurred()) SWIG_fail; | |
31813 | } | |
31814 | Py_INCREF(Py_None); resultobj = Py_None; | |
31815 | return resultobj; | |
31816 | fail: | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
31821 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31822 | PyObject *resultobj; | |
31823 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31824 | PyObject * obj0 = 0 ; | |
31825 | char *kwnames[] = { | |
31826 | (char *) "self", NULL | |
31827 | }; | |
31828 | ||
31829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31831 | { | |
31832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31833 | (arg1)->RecalcSizes(); | |
31834 | ||
31835 | wxPyEndAllowThreads(__tstate); | |
31836 | if (PyErr_Occurred()) SWIG_fail; | |
31837 | } | |
31838 | Py_INCREF(Py_None); resultobj = Py_None; | |
31839 | return resultobj; | |
31840 | fail: | |
31841 | return NULL; | |
31842 | } | |
31843 | ||
31844 | ||
31845 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31846 | PyObject *resultobj; | |
31847 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31848 | wxSize result; | |
31849 | PyObject * obj0 = 0 ; | |
31850 | char *kwnames[] = { | |
31851 | (char *) "self", NULL | |
31852 | }; | |
31853 | ||
31854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31856 | { | |
31857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31858 | result = (arg1)->CalcMin(); | |
31859 | ||
31860 | wxPyEndAllowThreads(__tstate); | |
31861 | if (PyErr_Occurred()) SWIG_fail; | |
31862 | } | |
31863 | { | |
31864 | wxSize * resultptr; | |
31865 | resultptr = new wxSize((wxSize &) result); | |
31866 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31867 | } | |
31868 | return resultobj; | |
31869 | fail: | |
31870 | return NULL; | |
31871 | } | |
31872 | ||
31873 | ||
31874 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31875 | PyObject *obj; | |
31876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31877 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
31878 | Py_INCREF(obj); | |
31879 | return Py_BuildValue((char *)""); | |
31880 | } | |
31881 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31882 | PyObject *resultobj; | |
31883 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
31884 | int arg2 = (int) wxHORIZONTAL ; | |
31885 | wxStaticBoxSizer *result; | |
31886 | PyObject * obj0 = 0 ; | |
31887 | char *kwnames[] = { | |
31888 | (char *) "box",(char *) "orient", NULL | |
31889 | }; | |
31890 | ||
31891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_StaticBoxSizer",kwnames,&obj0,&arg2)) goto fail; | |
31892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31893 | { | |
31894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31895 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
31896 | ||
31897 | wxPyEndAllowThreads(__tstate); | |
31898 | if (PyErr_Occurred()) SWIG_fail; | |
31899 | } | |
31900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
31901 | return resultobj; | |
31902 | fail: | |
31903 | return NULL; | |
31904 | } | |
31905 | ||
31906 | ||
31907 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31908 | PyObject *resultobj; | |
31909 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31910 | wxStaticBox *result; | |
31911 | PyObject * obj0 = 0 ; | |
31912 | char *kwnames[] = { | |
31913 | (char *) "self", NULL | |
31914 | }; | |
31915 | ||
31916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
31917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31918 | { | |
31919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31920 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
31921 | ||
31922 | wxPyEndAllowThreads(__tstate); | |
31923 | if (PyErr_Occurred()) SWIG_fail; | |
31924 | } | |
31925 | { | |
31926 | resultobj = wxPyMake_wxObject(result); | |
31927 | } | |
31928 | return resultobj; | |
31929 | fail: | |
31930 | return NULL; | |
31931 | } | |
31932 | ||
31933 | ||
31934 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31935 | PyObject *resultobj; | |
31936 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31937 | PyObject * obj0 = 0 ; | |
31938 | char *kwnames[] = { | |
31939 | (char *) "self", NULL | |
31940 | }; | |
31941 | ||
31942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31944 | { | |
31945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31946 | (arg1)->RecalcSizes(); | |
31947 | ||
31948 | wxPyEndAllowThreads(__tstate); | |
31949 | if (PyErr_Occurred()) SWIG_fail; | |
31950 | } | |
31951 | Py_INCREF(Py_None); resultobj = Py_None; | |
31952 | return resultobj; | |
31953 | fail: | |
31954 | return NULL; | |
31955 | } | |
31956 | ||
31957 | ||
31958 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31959 | PyObject *resultobj; | |
31960 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31961 | wxSize result; | |
31962 | PyObject * obj0 = 0 ; | |
31963 | char *kwnames[] = { | |
31964 | (char *) "self", NULL | |
31965 | }; | |
31966 | ||
31967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31969 | { | |
31970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31971 | result = (arg1)->CalcMin(); | |
31972 | ||
31973 | wxPyEndAllowThreads(__tstate); | |
31974 | if (PyErr_Occurred()) SWIG_fail; | |
31975 | } | |
31976 | { | |
31977 | wxSize * resultptr; | |
31978 | resultptr = new wxSize((wxSize &) result); | |
31979 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31980 | } | |
31981 | return resultobj; | |
31982 | fail: | |
31983 | return NULL; | |
31984 | } | |
31985 | ||
31986 | ||
31987 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31988 | PyObject *obj; | |
31989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31990 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
31991 | Py_INCREF(obj); | |
31992 | return Py_BuildValue((char *)""); | |
31993 | } | |
31994 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31995 | PyObject *resultobj; | |
31996 | int arg1 = (int) 1 ; | |
31997 | int arg2 = (int) 0 ; | |
31998 | int arg3 = (int) 0 ; | |
31999 | int arg4 = (int) 0 ; | |
32000 | wxGridSizer *result; | |
32001 | char *kwnames[] = { | |
32002 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
32003 | }; | |
32004 | ||
32005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_GridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
32006 | { | |
32007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32008 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
32009 | ||
32010 | wxPyEndAllowThreads(__tstate); | |
32011 | if (PyErr_Occurred()) SWIG_fail; | |
32012 | } | |
32013 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
32014 | return resultobj; | |
32015 | fail: | |
32016 | return NULL; | |
32017 | } | |
32018 | ||
32019 | ||
32020 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32021 | PyObject *resultobj; | |
32022 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32023 | PyObject * obj0 = 0 ; | |
32024 | char *kwnames[] = { | |
32025 | (char *) "self", NULL | |
32026 | }; | |
32027 | ||
32028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
32029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32030 | { | |
32031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32032 | (arg1)->RecalcSizes(); | |
32033 | ||
32034 | wxPyEndAllowThreads(__tstate); | |
32035 | if (PyErr_Occurred()) SWIG_fail; | |
32036 | } | |
32037 | Py_INCREF(Py_None); resultobj = Py_None; | |
32038 | return resultobj; | |
32039 | fail: | |
32040 | return NULL; | |
32041 | } | |
32042 | ||
32043 | ||
32044 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32045 | PyObject *resultobj; | |
32046 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32047 | wxSize result; | |
32048 | PyObject * obj0 = 0 ; | |
32049 | char *kwnames[] = { | |
32050 | (char *) "self", NULL | |
32051 | }; | |
32052 | ||
32053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
32054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32055 | { | |
32056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32057 | result = (arg1)->CalcMin(); | |
32058 | ||
32059 | wxPyEndAllowThreads(__tstate); | |
32060 | if (PyErr_Occurred()) SWIG_fail; | |
32061 | } | |
32062 | { | |
32063 | wxSize * resultptr; | |
32064 | resultptr = new wxSize((wxSize &) result); | |
32065 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32066 | } | |
32067 | return resultobj; | |
32068 | fail: | |
32069 | return NULL; | |
32070 | } | |
32071 | ||
32072 | ||
32073 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32074 | PyObject *resultobj; | |
32075 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32076 | int arg2 ; | |
32077 | PyObject * obj0 = 0 ; | |
32078 | char *kwnames[] = { | |
32079 | (char *) "self",(char *) "cols", NULL | |
32080 | }; | |
32081 | ||
32082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetCols",kwnames,&obj0,&arg2)) goto fail; | |
32083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32084 | { | |
32085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32086 | (arg1)->SetCols(arg2); | |
32087 | ||
32088 | wxPyEndAllowThreads(__tstate); | |
32089 | if (PyErr_Occurred()) SWIG_fail; | |
32090 | } | |
32091 | Py_INCREF(Py_None); resultobj = Py_None; | |
32092 | return resultobj; | |
32093 | fail: | |
32094 | return NULL; | |
32095 | } | |
32096 | ||
32097 | ||
32098 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32099 | PyObject *resultobj; | |
32100 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32101 | int arg2 ; | |
32102 | PyObject * obj0 = 0 ; | |
32103 | char *kwnames[] = { | |
32104 | (char *) "self",(char *) "rows", NULL | |
32105 | }; | |
32106 | ||
32107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
32108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32109 | { | |
32110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32111 | (arg1)->SetRows(arg2); | |
32112 | ||
32113 | wxPyEndAllowThreads(__tstate); | |
32114 | if (PyErr_Occurred()) SWIG_fail; | |
32115 | } | |
32116 | Py_INCREF(Py_None); resultobj = Py_None; | |
32117 | return resultobj; | |
32118 | fail: | |
32119 | return NULL; | |
32120 | } | |
32121 | ||
32122 | ||
32123 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32124 | PyObject *resultobj; | |
32125 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32126 | int arg2 ; | |
32127 | PyObject * obj0 = 0 ; | |
32128 | char *kwnames[] = { | |
32129 | (char *) "self",(char *) "gap", NULL | |
32130 | }; | |
32131 | ||
32132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetVGap",kwnames,&obj0,&arg2)) goto fail; | |
32133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32134 | { | |
32135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32136 | (arg1)->SetVGap(arg2); | |
32137 | ||
32138 | wxPyEndAllowThreads(__tstate); | |
32139 | if (PyErr_Occurred()) SWIG_fail; | |
32140 | } | |
32141 | Py_INCREF(Py_None); resultobj = Py_None; | |
32142 | return resultobj; | |
32143 | fail: | |
32144 | return NULL; | |
32145 | } | |
32146 | ||
32147 | ||
32148 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32149 | PyObject *resultobj; | |
32150 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32151 | int arg2 ; | |
32152 | PyObject * obj0 = 0 ; | |
32153 | char *kwnames[] = { | |
32154 | (char *) "self",(char *) "gap", NULL | |
32155 | }; | |
32156 | ||
32157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetHGap",kwnames,&obj0,&arg2)) goto fail; | |
32158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32159 | { | |
32160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32161 | (arg1)->SetHGap(arg2); | |
32162 | ||
32163 | wxPyEndAllowThreads(__tstate); | |
32164 | if (PyErr_Occurred()) SWIG_fail; | |
32165 | } | |
32166 | Py_INCREF(Py_None); resultobj = Py_None; | |
32167 | return resultobj; | |
32168 | fail: | |
32169 | return NULL; | |
32170 | } | |
32171 | ||
32172 | ||
32173 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32174 | PyObject *resultobj; | |
32175 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32176 | int result; | |
32177 | PyObject * obj0 = 0 ; | |
32178 | char *kwnames[] = { | |
32179 | (char *) "self", NULL | |
32180 | }; | |
32181 | ||
32182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
32183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32184 | { | |
32185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32186 | result = (int)(arg1)->GetCols(); | |
32187 | ||
32188 | wxPyEndAllowThreads(__tstate); | |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
32191 | resultobj = PyInt_FromLong((long)result); | |
32192 | return resultobj; | |
32193 | fail: | |
32194 | return NULL; | |
32195 | } | |
32196 | ||
32197 | ||
32198 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32199 | PyObject *resultobj; | |
32200 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32201 | int result; | |
32202 | PyObject * obj0 = 0 ; | |
32203 | char *kwnames[] = { | |
32204 | (char *) "self", NULL | |
32205 | }; | |
32206 | ||
32207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
32208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32209 | { | |
32210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32211 | result = (int)(arg1)->GetRows(); | |
32212 | ||
32213 | wxPyEndAllowThreads(__tstate); | |
32214 | if (PyErr_Occurred()) SWIG_fail; | |
32215 | } | |
32216 | resultobj = PyInt_FromLong((long)result); | |
32217 | return resultobj; | |
32218 | fail: | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
32223 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32224 | PyObject *resultobj; | |
32225 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32226 | int result; | |
32227 | PyObject * obj0 = 0 ; | |
32228 | char *kwnames[] = { | |
32229 | (char *) "self", NULL | |
32230 | }; | |
32231 | ||
32232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
32233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32234 | { | |
32235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32236 | result = (int)(arg1)->GetVGap(); | |
32237 | ||
32238 | wxPyEndAllowThreads(__tstate); | |
32239 | if (PyErr_Occurred()) SWIG_fail; | |
32240 | } | |
32241 | resultobj = PyInt_FromLong((long)result); | |
32242 | return resultobj; | |
32243 | fail: | |
32244 | return NULL; | |
32245 | } | |
32246 | ||
32247 | ||
32248 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32249 | PyObject *resultobj; | |
32250 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32251 | int result; | |
32252 | PyObject * obj0 = 0 ; | |
32253 | char *kwnames[] = { | |
32254 | (char *) "self", NULL | |
32255 | }; | |
32256 | ||
32257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
32258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32259 | { | |
32260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32261 | result = (int)(arg1)->GetHGap(); | |
32262 | ||
32263 | wxPyEndAllowThreads(__tstate); | |
32264 | if (PyErr_Occurred()) SWIG_fail; | |
32265 | } | |
32266 | resultobj = PyInt_FromLong((long)result); | |
32267 | return resultobj; | |
32268 | fail: | |
32269 | return NULL; | |
32270 | } | |
32271 | ||
32272 | ||
32273 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
32274 | PyObject *obj; | |
32275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32276 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
32277 | Py_INCREF(obj); | |
32278 | return Py_BuildValue((char *)""); | |
32279 | } | |
32280 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32281 | PyObject *resultobj; | |
32282 | int arg1 = (int) 1 ; | |
32283 | int arg2 = (int) 0 ; | |
32284 | int arg3 = (int) 0 ; | |
32285 | int arg4 = (int) 0 ; | |
32286 | wxFlexGridSizer *result; | |
32287 | char *kwnames[] = { | |
32288 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
32289 | }; | |
32290 | ||
32291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_FlexGridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
32292 | { | |
32293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32294 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
32295 | ||
32296 | wxPyEndAllowThreads(__tstate); | |
32297 | if (PyErr_Occurred()) SWIG_fail; | |
32298 | } | |
32299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
32300 | return resultobj; | |
32301 | fail: | |
32302 | return NULL; | |
32303 | } | |
32304 | ||
32305 | ||
32306 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32307 | PyObject *resultobj; | |
32308 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32309 | PyObject * obj0 = 0 ; | |
32310 | char *kwnames[] = { | |
32311 | (char *) "self", NULL | |
32312 | }; | |
32313 | ||
32314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
32315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32316 | { | |
32317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32318 | (arg1)->RecalcSizes(); | |
32319 | ||
32320 | wxPyEndAllowThreads(__tstate); | |
32321 | if (PyErr_Occurred()) SWIG_fail; | |
32322 | } | |
32323 | Py_INCREF(Py_None); resultobj = Py_None; | |
32324 | return resultobj; | |
32325 | fail: | |
32326 | return NULL; | |
32327 | } | |
32328 | ||
32329 | ||
32330 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32331 | PyObject *resultobj; | |
32332 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32333 | wxSize result; | |
32334 | PyObject * obj0 = 0 ; | |
32335 | char *kwnames[] = { | |
32336 | (char *) "self", NULL | |
32337 | }; | |
32338 | ||
32339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
32340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32341 | { | |
32342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32343 | result = (arg1)->CalcMin(); | |
32344 | ||
32345 | wxPyEndAllowThreads(__tstate); | |
32346 | if (PyErr_Occurred()) SWIG_fail; | |
32347 | } | |
32348 | { | |
32349 | wxSize * resultptr; | |
32350 | resultptr = new wxSize((wxSize &) result); | |
32351 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32352 | } | |
32353 | return resultobj; | |
32354 | fail: | |
32355 | return NULL; | |
32356 | } | |
32357 | ||
32358 | ||
32359 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32360 | PyObject *resultobj; | |
32361 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32362 | size_t arg2 ; | |
32363 | int arg3 = (int) 0 ; | |
32364 | PyObject * obj0 = 0 ; | |
32365 | PyObject * obj1 = 0 ; | |
32366 | char *kwnames[] = { | |
32367 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
32368 | }; | |
32369 | ||
32370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
32371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
32372 | { |
32373 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
d14a1e28 RD |
32376 | { |
32377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32378 | (arg1)->AddGrowableRow(arg2,arg3); | |
32379 | ||
32380 | wxPyEndAllowThreads(__tstate); | |
32381 | if (PyErr_Occurred()) SWIG_fail; | |
32382 | } | |
32383 | Py_INCREF(Py_None); resultobj = Py_None; | |
32384 | return resultobj; | |
32385 | fail: | |
32386 | return NULL; | |
32387 | } | |
32388 | ||
32389 | ||
32390 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32391 | PyObject *resultobj; | |
32392 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32393 | size_t arg2 ; | |
32394 | PyObject * obj0 = 0 ; | |
32395 | PyObject * obj1 = 0 ; | |
32396 | char *kwnames[] = { | |
32397 | (char *) "self",(char *) "idx", NULL | |
32398 | }; | |
32399 | ||
32400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
32401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
32402 | { |
32403 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
32404 | if (PyErr_Occurred()) SWIG_fail; | |
32405 | } | |
d14a1e28 RD |
32406 | { |
32407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32408 | (arg1)->RemoveGrowableRow(arg2); | |
32409 | ||
32410 | wxPyEndAllowThreads(__tstate); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | } | |
32413 | Py_INCREF(Py_None); resultobj = Py_None; | |
32414 | return resultobj; | |
32415 | fail: | |
32416 | return NULL; | |
32417 | } | |
32418 | ||
32419 | ||
32420 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32421 | PyObject *resultobj; | |
32422 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32423 | size_t arg2 ; | |
32424 | int arg3 = (int) 0 ; | |
32425 | PyObject * obj0 = 0 ; | |
32426 | PyObject * obj1 = 0 ; | |
32427 | char *kwnames[] = { | |
32428 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
32429 | }; | |
32430 | ||
32431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
32432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
32433 | { |
32434 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
32435 | if (PyErr_Occurred()) SWIG_fail; | |
32436 | } | |
d14a1e28 RD |
32437 | { |
32438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32439 | (arg1)->AddGrowableCol(arg2,arg3); | |
32440 | ||
32441 | wxPyEndAllowThreads(__tstate); | |
32442 | if (PyErr_Occurred()) SWIG_fail; | |
32443 | } | |
32444 | Py_INCREF(Py_None); resultobj = Py_None; | |
32445 | return resultobj; | |
32446 | fail: | |
32447 | return NULL; | |
32448 | } | |
32449 | ||
32450 | ||
32451 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32452 | PyObject *resultobj; | |
32453 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32454 | size_t arg2 ; | |
32455 | PyObject * obj0 = 0 ; | |
32456 | PyObject * obj1 = 0 ; | |
32457 | char *kwnames[] = { | |
32458 | (char *) "self",(char *) "idx", NULL | |
32459 | }; | |
32460 | ||
32461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
32462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
32463 | { |
32464 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
32465 | if (PyErr_Occurred()) SWIG_fail; | |
32466 | } | |
d14a1e28 RD |
32467 | { |
32468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32469 | (arg1)->RemoveGrowableCol(arg2); | |
32470 | ||
32471 | wxPyEndAllowThreads(__tstate); | |
32472 | if (PyErr_Occurred()) SWIG_fail; | |
32473 | } | |
32474 | Py_INCREF(Py_None); resultobj = Py_None; | |
32475 | return resultobj; | |
32476 | fail: | |
32477 | return NULL; | |
32478 | } | |
32479 | ||
32480 | ||
32481 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32482 | PyObject *resultobj; | |
32483 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32484 | int arg2 ; | |
32485 | PyObject * obj0 = 0 ; | |
32486 | char *kwnames[] = { | |
32487 | (char *) "self",(char *) "direction", NULL | |
32488 | }; | |
32489 | ||
32490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&arg2)) goto fail; | |
32491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32492 | { | |
32493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32494 | (arg1)->SetFlexibleDirection(arg2); | |
32495 | ||
32496 | wxPyEndAllowThreads(__tstate); | |
32497 | if (PyErr_Occurred()) SWIG_fail; | |
32498 | } | |
32499 | Py_INCREF(Py_None); resultobj = Py_None; | |
32500 | return resultobj; | |
32501 | fail: | |
32502 | return NULL; | |
32503 | } | |
32504 | ||
32505 | ||
32506 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32507 | PyObject *resultobj; | |
32508 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32509 | int result; | |
32510 | PyObject * obj0 = 0 ; | |
32511 | char *kwnames[] = { | |
32512 | (char *) "self", NULL | |
32513 | }; | |
32514 | ||
32515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
32516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32517 | { | |
32518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32519 | result = (int)(arg1)->GetFlexibleDirection(); | |
32520 | ||
32521 | wxPyEndAllowThreads(__tstate); | |
32522 | if (PyErr_Occurred()) SWIG_fail; | |
32523 | } | |
32524 | resultobj = PyInt_FromLong((long)result); | |
32525 | return resultobj; | |
32526 | fail: | |
32527 | return NULL; | |
32528 | } | |
32529 | ||
32530 | ||
32531 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32532 | PyObject *resultobj; | |
32533 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32534 | int arg2 ; | |
32535 | PyObject * obj0 = 0 ; | |
32536 | char *kwnames[] = { | |
32537 | (char *) "self",(char *) "mode", NULL | |
32538 | }; | |
32539 | ||
32540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&arg2)) goto fail; | |
32541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32542 | { | |
32543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32544 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
32545 | ||
32546 | wxPyEndAllowThreads(__tstate); | |
32547 | if (PyErr_Occurred()) SWIG_fail; | |
32548 | } | |
32549 | Py_INCREF(Py_None); resultobj = Py_None; | |
32550 | return resultobj; | |
32551 | fail: | |
32552 | return NULL; | |
32553 | } | |
32554 | ||
32555 | ||
32556 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32557 | PyObject *resultobj; | |
32558 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32559 | int result; | |
32560 | PyObject * obj0 = 0 ; | |
32561 | char *kwnames[] = { | |
32562 | (char *) "self", NULL | |
32563 | }; | |
32564 | ||
32565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
32566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32567 | { | |
32568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32569 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
32570 | ||
32571 | wxPyEndAllowThreads(__tstate); | |
32572 | if (PyErr_Occurred()) SWIG_fail; | |
32573 | } | |
32574 | resultobj = PyInt_FromLong((long)result); | |
32575 | return resultobj; | |
32576 | fail: | |
32577 | return NULL; | |
32578 | } | |
32579 | ||
32580 | ||
e811c8ce RD |
32581 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
32582 | PyObject *resultobj; | |
32583 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32584 | wxArrayInt *result; | |
32585 | PyObject * obj0 = 0 ; | |
32586 | char *kwnames[] = { | |
32587 | (char *) "self", NULL | |
32588 | }; | |
32589 | ||
32590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
32591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32592 | { | |
32593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32594 | { | |
32595 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
32596 | result = (wxArrayInt *) &_result_ref; | |
32597 | } | |
32598 | ||
32599 | wxPyEndAllowThreads(__tstate); | |
32600 | if (PyErr_Occurred()) SWIG_fail; | |
32601 | } | |
32602 | { | |
32603 | resultobj = PyList_New(0); | |
32604 | size_t idx; | |
32605 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32606 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32607 | PyList_Append(resultobj, val); | |
32608 | Py_DECREF(val); | |
32609 | } | |
32610 | } | |
32611 | return resultobj; | |
32612 | fail: | |
32613 | return NULL; | |
32614 | } | |
32615 | ||
32616 | ||
32617 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32618 | PyObject *resultobj; | |
32619 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32620 | wxArrayInt *result; | |
32621 | PyObject * obj0 = 0 ; | |
32622 | char *kwnames[] = { | |
32623 | (char *) "self", NULL | |
32624 | }; | |
32625 | ||
32626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
32627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32628 | { | |
32629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32630 | { | |
32631 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
32632 | result = (wxArrayInt *) &_result_ref; | |
32633 | } | |
32634 | ||
32635 | wxPyEndAllowThreads(__tstate); | |
32636 | if (PyErr_Occurred()) SWIG_fail; | |
32637 | } | |
32638 | { | |
32639 | resultobj = PyList_New(0); | |
32640 | size_t idx; | |
32641 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32642 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32643 | PyList_Append(resultobj, val); | |
32644 | Py_DECREF(val); | |
32645 | } | |
32646 | } | |
32647 | return resultobj; | |
32648 | fail: | |
32649 | return NULL; | |
32650 | } | |
32651 | ||
32652 | ||
d14a1e28 RD |
32653 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
32654 | PyObject *obj; | |
32655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32656 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
32657 | Py_INCREF(obj); | |
32658 | return Py_BuildValue((char *)""); | |
32659 | } | |
32660 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32661 | PyObject *resultobj; | |
32662 | int arg1 = (int) 0 ; | |
32663 | int arg2 = (int) 0 ; | |
32664 | wxGBPosition *result; | |
32665 | char *kwnames[] = { | |
32666 | (char *) "row",(char *) "col", NULL | |
32667 | }; | |
32668 | ||
32669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBPosition",kwnames,&arg1,&arg2)) goto fail; | |
32670 | { | |
32671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32672 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
32673 | ||
32674 | wxPyEndAllowThreads(__tstate); | |
32675 | if (PyErr_Occurred()) SWIG_fail; | |
32676 | } | |
32677 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
32678 | return resultobj; | |
32679 | fail: | |
32680 | return NULL; | |
32681 | } | |
32682 | ||
32683 | ||
32684 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32685 | PyObject *resultobj; | |
32686 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32687 | int result; | |
32688 | PyObject * obj0 = 0 ; | |
32689 | char *kwnames[] = { | |
32690 | (char *) "self", NULL | |
32691 | }; | |
32692 | ||
32693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
32694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32695 | { | |
32696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32697 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
32698 | ||
32699 | wxPyEndAllowThreads(__tstate); | |
32700 | if (PyErr_Occurred()) SWIG_fail; | |
32701 | } | |
32702 | resultobj = PyInt_FromLong((long)result); | |
32703 | return resultobj; | |
32704 | fail: | |
32705 | return NULL; | |
32706 | } | |
32707 | ||
32708 | ||
32709 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32710 | PyObject *resultobj; | |
32711 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32712 | int result; | |
32713 | PyObject * obj0 = 0 ; | |
32714 | char *kwnames[] = { | |
32715 | (char *) "self", NULL | |
32716 | }; | |
32717 | ||
32718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
32719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32720 | { | |
32721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32722 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
32723 | ||
32724 | wxPyEndAllowThreads(__tstate); | |
32725 | if (PyErr_Occurred()) SWIG_fail; | |
32726 | } | |
32727 | resultobj = PyInt_FromLong((long)result); | |
32728 | return resultobj; | |
32729 | fail: | |
32730 | return NULL; | |
32731 | } | |
32732 | ||
32733 | ||
32734 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32735 | PyObject *resultobj; | |
32736 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32737 | int arg2 ; | |
32738 | PyObject * obj0 = 0 ; | |
32739 | char *kwnames[] = { | |
32740 | (char *) "self",(char *) "row", NULL | |
32741 | }; | |
32742 | ||
32743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetRow",kwnames,&obj0,&arg2)) goto fail; | |
32744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32745 | { | |
32746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32747 | (arg1)->SetRow(arg2); | |
32748 | ||
32749 | wxPyEndAllowThreads(__tstate); | |
32750 | if (PyErr_Occurred()) SWIG_fail; | |
32751 | } | |
32752 | Py_INCREF(Py_None); resultobj = Py_None; | |
32753 | return resultobj; | |
32754 | fail: | |
32755 | return NULL; | |
32756 | } | |
32757 | ||
32758 | ||
32759 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32760 | PyObject *resultobj; | |
32761 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32762 | int arg2 ; | |
32763 | PyObject * obj0 = 0 ; | |
32764 | char *kwnames[] = { | |
32765 | (char *) "self",(char *) "col", NULL | |
32766 | }; | |
32767 | ||
32768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetCol",kwnames,&obj0,&arg2)) goto fail; | |
32769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32770 | { | |
32771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32772 | (arg1)->SetCol(arg2); | |
32773 | ||
32774 | wxPyEndAllowThreads(__tstate); | |
32775 | if (PyErr_Occurred()) SWIG_fail; | |
32776 | } | |
32777 | Py_INCREF(Py_None); resultobj = Py_None; | |
32778 | return resultobj; | |
32779 | fail: | |
32780 | return NULL; | |
32781 | } | |
32782 | ||
32783 | ||
32784 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32785 | PyObject *resultobj; | |
32786 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32787 | wxGBPosition *arg2 = 0 ; | |
32788 | bool result; | |
32789 | wxGBPosition temp2 ; | |
32790 | PyObject * obj0 = 0 ; | |
32791 | PyObject * obj1 = 0 ; | |
32792 | char *kwnames[] = { | |
32793 | (char *) "self",(char *) "p", NULL | |
32794 | }; | |
32795 | ||
32796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32798 | { | |
32799 | arg2 = &temp2; | |
32800 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32801 | } | |
32802 | { | |
32803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32804 | result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2); | |
32805 | ||
32806 | wxPyEndAllowThreads(__tstate); | |
32807 | if (PyErr_Occurred()) SWIG_fail; | |
32808 | } | |
32809 | resultobj = PyInt_FromLong((long)result); | |
32810 | return resultobj; | |
32811 | fail: | |
32812 | return NULL; | |
32813 | } | |
32814 | ||
32815 | ||
32816 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32817 | PyObject *resultobj; | |
32818 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32819 | wxGBPosition *arg2 = 0 ; | |
32820 | bool result; | |
32821 | wxGBPosition temp2 ; | |
32822 | PyObject * obj0 = 0 ; | |
32823 | PyObject * obj1 = 0 ; | |
32824 | char *kwnames[] = { | |
32825 | (char *) "self",(char *) "p", NULL | |
32826 | }; | |
32827 | ||
32828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32830 | { | |
32831 | arg2 = &temp2; | |
32832 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32833 | } | |
32834 | { | |
32835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32836 | result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2); | |
32837 | ||
32838 | wxPyEndAllowThreads(__tstate); | |
32839 | if (PyErr_Occurred()) SWIG_fail; | |
32840 | } | |
32841 | resultobj = PyInt_FromLong((long)result); | |
32842 | return resultobj; | |
32843 | fail: | |
32844 | return NULL; | |
32845 | } | |
32846 | ||
32847 | ||
e811c8ce RD |
32848 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
32849 | PyObject *resultobj; | |
32850 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32851 | int arg2 = (int) 0 ; | |
32852 | int arg3 = (int) 0 ; | |
32853 | PyObject * obj0 = 0 ; | |
32854 | char *kwnames[] = { | |
32855 | (char *) "self",(char *) "row",(char *) "col", NULL | |
32856 | }; | |
32857 | ||
32858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBPosition_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
32859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32860 | { | |
32861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32862 | wxGBPosition_Set(arg1,arg2,arg3); | |
32863 | ||
32864 | wxPyEndAllowThreads(__tstate); | |
32865 | if (PyErr_Occurred()) SWIG_fail; | |
32866 | } | |
32867 | Py_INCREF(Py_None); resultobj = Py_None; | |
32868 | return resultobj; | |
32869 | fail: | |
32870 | return NULL; | |
32871 | } | |
32872 | ||
32873 | ||
32874 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
32875 | PyObject *resultobj; |
32876 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32877 | PyObject *result; | |
32878 | PyObject * obj0 = 0 ; | |
32879 | char *kwnames[] = { | |
32880 | (char *) "self", NULL | |
32881 | }; | |
32882 | ||
e811c8ce | 32883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
32884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32885 | { | |
32886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 32887 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
32888 | |
32889 | wxPyEndAllowThreads(__tstate); | |
32890 | if (PyErr_Occurred()) SWIG_fail; | |
32891 | } | |
32892 | resultobj = result; | |
32893 | return resultobj; | |
32894 | fail: | |
32895 | return NULL; | |
32896 | } | |
32897 | ||
32898 | ||
32899 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
32900 | PyObject *obj; | |
32901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32902 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
32903 | Py_INCREF(obj); | |
32904 | return Py_BuildValue((char *)""); | |
32905 | } | |
32906 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32907 | PyObject *resultobj; | |
32908 | int arg1 = (int) 1 ; | |
32909 | int arg2 = (int) 1 ; | |
32910 | wxGBSpan *result; | |
32911 | char *kwnames[] = { | |
32912 | (char *) "rowspan",(char *) "colspan", NULL | |
32913 | }; | |
32914 | ||
32915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBSpan",kwnames,&arg1,&arg2)) goto fail; | |
32916 | { | |
32917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32918 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
32919 | ||
32920 | wxPyEndAllowThreads(__tstate); | |
32921 | if (PyErr_Occurred()) SWIG_fail; | |
32922 | } | |
32923 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
32924 | return resultobj; | |
32925 | fail: | |
32926 | return NULL; | |
32927 | } | |
32928 | ||
32929 | ||
32930 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32931 | PyObject *resultobj; | |
32932 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32933 | int result; | |
32934 | PyObject * obj0 = 0 ; | |
32935 | char *kwnames[] = { | |
32936 | (char *) "self", NULL | |
32937 | }; | |
32938 | ||
32939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
32940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32941 | { | |
32942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32943 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
32944 | ||
32945 | wxPyEndAllowThreads(__tstate); | |
32946 | if (PyErr_Occurred()) SWIG_fail; | |
32947 | } | |
32948 | resultobj = PyInt_FromLong((long)result); | |
32949 | return resultobj; | |
32950 | fail: | |
32951 | return NULL; | |
32952 | } | |
32953 | ||
32954 | ||
32955 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32956 | PyObject *resultobj; | |
32957 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32958 | int result; | |
32959 | PyObject * obj0 = 0 ; | |
32960 | char *kwnames[] = { | |
32961 | (char *) "self", NULL | |
32962 | }; | |
32963 | ||
32964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
32965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32966 | { | |
32967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32968 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
32969 | ||
32970 | wxPyEndAllowThreads(__tstate); | |
32971 | if (PyErr_Occurred()) SWIG_fail; | |
32972 | } | |
32973 | resultobj = PyInt_FromLong((long)result); | |
32974 | return resultobj; | |
32975 | fail: | |
32976 | return NULL; | |
32977 | } | |
32978 | ||
32979 | ||
32980 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32981 | PyObject *resultobj; | |
32982 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32983 | int arg2 ; | |
32984 | PyObject * obj0 = 0 ; | |
32985 | char *kwnames[] = { | |
32986 | (char *) "self",(char *) "rowspan", NULL | |
32987 | }; | |
32988 | ||
32989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetRowspan",kwnames,&obj0,&arg2)) goto fail; | |
32990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32991 | { | |
32992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32993 | (arg1)->SetRowspan(arg2); | |
32994 | ||
32995 | wxPyEndAllowThreads(__tstate); | |
32996 | if (PyErr_Occurred()) SWIG_fail; | |
32997 | } | |
32998 | Py_INCREF(Py_None); resultobj = Py_None; | |
32999 | return resultobj; | |
33000 | fail: | |
33001 | return NULL; | |
33002 | } | |
33003 | ||
33004 | ||
33005 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33006 | PyObject *resultobj; | |
33007 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33008 | int arg2 ; | |
33009 | PyObject * obj0 = 0 ; | |
33010 | char *kwnames[] = { | |
33011 | (char *) "self",(char *) "colspan", NULL | |
33012 | }; | |
33013 | ||
33014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetColspan",kwnames,&obj0,&arg2)) goto fail; | |
33015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33016 | { | |
33017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33018 | (arg1)->SetColspan(arg2); | |
33019 | ||
33020 | wxPyEndAllowThreads(__tstate); | |
33021 | if (PyErr_Occurred()) SWIG_fail; | |
33022 | } | |
33023 | Py_INCREF(Py_None); resultobj = Py_None; | |
33024 | return resultobj; | |
33025 | fail: | |
33026 | return NULL; | |
33027 | } | |
33028 | ||
33029 | ||
33030 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33031 | PyObject *resultobj; | |
33032 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33033 | wxGBSpan *arg2 = 0 ; | |
33034 | bool result; | |
33035 | wxGBSpan temp2 ; | |
33036 | PyObject * obj0 = 0 ; | |
33037 | PyObject * obj1 = 0 ; | |
33038 | char *kwnames[] = { | |
33039 | (char *) "self",(char *) "o", NULL | |
33040 | }; | |
33041 | ||
33042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
33043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33044 | { | |
33045 | arg2 = &temp2; | |
33046 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33047 | } | |
33048 | { | |
33049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33050 | result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2); | |
33051 | ||
33052 | wxPyEndAllowThreads(__tstate); | |
33053 | if (PyErr_Occurred()) SWIG_fail; | |
33054 | } | |
33055 | resultobj = PyInt_FromLong((long)result); | |
33056 | return resultobj; | |
33057 | fail: | |
33058 | return NULL; | |
33059 | } | |
33060 | ||
33061 | ||
33062 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33063 | PyObject *resultobj; | |
33064 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33065 | wxGBSpan *arg2 = 0 ; | |
33066 | bool result; | |
33067 | wxGBSpan temp2 ; | |
33068 | PyObject * obj0 = 0 ; | |
33069 | PyObject * obj1 = 0 ; | |
33070 | char *kwnames[] = { | |
33071 | (char *) "self",(char *) "o", NULL | |
33072 | }; | |
33073 | ||
33074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
33075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33076 | { | |
33077 | arg2 = &temp2; | |
33078 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33079 | } | |
33080 | { | |
33081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33082 | result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2); | |
33083 | ||
33084 | wxPyEndAllowThreads(__tstate); | |
33085 | if (PyErr_Occurred()) SWIG_fail; | |
33086 | } | |
33087 | resultobj = PyInt_FromLong((long)result); | |
33088 | return resultobj; | |
33089 | fail: | |
33090 | return NULL; | |
33091 | } | |
33092 | ||
33093 | ||
e811c8ce RD |
33094 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
33095 | PyObject *resultobj; | |
33096 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33097 | int arg2 = (int) 1 ; | |
33098 | int arg3 = (int) 1 ; | |
33099 | PyObject * obj0 = 0 ; | |
33100 | char *kwnames[] = { | |
33101 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
33102 | }; | |
33103 | ||
33104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBSpan_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
33105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33106 | { | |
33107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33108 | wxGBSpan_Set(arg1,arg2,arg3); | |
33109 | ||
33110 | wxPyEndAllowThreads(__tstate); | |
33111 | if (PyErr_Occurred()) SWIG_fail; | |
33112 | } | |
33113 | Py_INCREF(Py_None); resultobj = Py_None; | |
33114 | return resultobj; | |
33115 | fail: | |
33116 | return NULL; | |
33117 | } | |
33118 | ||
33119 | ||
33120 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
33121 | PyObject *resultobj; |
33122 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33123 | PyObject *result; | |
33124 | PyObject * obj0 = 0 ; | |
33125 | char *kwnames[] = { | |
33126 | (char *) "self", NULL | |
33127 | }; | |
33128 | ||
e811c8ce | 33129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
33130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33131 | { | |
33132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 33133 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
33134 | |
33135 | wxPyEndAllowThreads(__tstate); | |
33136 | if (PyErr_Occurred()) SWIG_fail; | |
33137 | } | |
33138 | resultobj = result; | |
33139 | return resultobj; | |
33140 | fail: | |
33141 | return NULL; | |
33142 | } | |
33143 | ||
33144 | ||
33145 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
33146 | PyObject *obj; | |
33147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33148 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
33149 | Py_INCREF(obj); | |
33150 | return Py_BuildValue((char *)""); | |
33151 | } | |
33152 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
33153 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
33154 | return 1; | |
33155 | } | |
33156 | ||
33157 | ||
33158 | static PyObject *_wrap_DefaultSpan_get() { | |
33159 | PyObject *pyobj; | |
33160 | ||
33161 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
33162 | return pyobj; | |
33163 | } | |
33164 | ||
33165 | ||
33166 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33167 | PyObject *resultobj; | |
33168 | wxGBSizerItem *result; | |
33169 | char *kwnames[] = { | |
33170 | NULL | |
33171 | }; | |
33172 | ||
33173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
33174 | { | |
33175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33176 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
33177 | ||
33178 | wxPyEndAllowThreads(__tstate); | |
33179 | if (PyErr_Occurred()) SWIG_fail; | |
33180 | } | |
33181 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33182 | return resultobj; | |
33183 | fail: | |
33184 | return NULL; | |
33185 | } | |
33186 | ||
33187 | ||
33188 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33189 | PyObject *resultobj; | |
33190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33191 | wxGBPosition *arg2 = 0 ; | |
33192 | wxGBSpan *arg3 = 0 ; | |
33193 | int arg4 ; | |
33194 | int arg5 ; | |
33195 | wxObject *arg6 = (wxObject *) 0 ; | |
33196 | wxGBSizerItem *result; | |
33197 | wxGBPosition temp2 ; | |
33198 | wxGBSpan temp3 ; | |
33199 | PyObject * obj0 = 0 ; | |
33200 | PyObject * obj1 = 0 ; | |
33201 | PyObject * obj2 = 0 ; | |
33202 | PyObject * obj5 = 0 ; | |
33203 | char *kwnames[] = { | |
33204 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33205 | }; | |
33206 | ||
33207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
33208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33209 | { | |
33210 | arg2 = &temp2; | |
33211 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33212 | } | |
33213 | { | |
33214 | arg3 = &temp3; | |
33215 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33216 | } | |
33217 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33218 | { | |
33219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33220 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
33221 | ||
33222 | wxPyEndAllowThreads(__tstate); | |
33223 | if (PyErr_Occurred()) SWIG_fail; | |
33224 | } | |
33225 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33226 | return resultobj; | |
33227 | fail: | |
33228 | return NULL; | |
33229 | } | |
33230 | ||
33231 | ||
33232 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33233 | PyObject *resultobj; | |
33234 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33235 | wxGBPosition *arg2 = 0 ; | |
33236 | wxGBSpan *arg3 = 0 ; | |
33237 | int arg4 ; | |
33238 | int arg5 ; | |
33239 | wxObject *arg6 = (wxObject *) 0 ; | |
33240 | wxGBSizerItem *result; | |
33241 | wxGBPosition temp2 ; | |
33242 | wxGBSpan temp3 ; | |
33243 | PyObject * obj0 = 0 ; | |
33244 | PyObject * obj1 = 0 ; | |
33245 | PyObject * obj2 = 0 ; | |
33246 | PyObject * obj5 = 0 ; | |
33247 | char *kwnames[] = { | |
33248 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33249 | }; | |
33250 | ||
33251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
33252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33253 | { | |
33254 | arg2 = &temp2; | |
33255 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33256 | } | |
33257 | { | |
33258 | arg3 = &temp3; | |
33259 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33260 | } | |
33261 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33262 | { | |
33263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33264 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
33265 | ||
33266 | wxPyEndAllowThreads(__tstate); | |
33267 | if (PyErr_Occurred()) SWIG_fail; | |
33268 | } | |
33269 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33270 | return resultobj; | |
33271 | fail: | |
33272 | return NULL; | |
33273 | } | |
33274 | ||
33275 | ||
33276 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33277 | PyObject *resultobj; | |
33278 | int arg1 ; | |
33279 | int arg2 ; | |
33280 | wxGBPosition *arg3 = 0 ; | |
33281 | wxGBSpan *arg4 = 0 ; | |
33282 | int arg5 ; | |
33283 | int arg6 ; | |
33284 | wxObject *arg7 = (wxObject *) 0 ; | |
33285 | wxGBSizerItem *result; | |
33286 | wxGBPosition temp3 ; | |
33287 | wxGBSpan temp4 ; | |
33288 | PyObject * obj2 = 0 ; | |
33289 | PyObject * obj3 = 0 ; | |
33290 | PyObject * obj6 = 0 ; | |
33291 | char *kwnames[] = { | |
33292 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33293 | }; | |
33294 | ||
33295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOiiO:new_GBSizerItemSpacer",kwnames,&arg1,&arg2,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33296 | { | |
33297 | arg3 = &temp3; | |
33298 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33299 | } | |
33300 | { | |
33301 | arg4 = &temp4; | |
33302 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33303 | } | |
33304 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33305 | { | |
33306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33307 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33308 | ||
33309 | wxPyEndAllowThreads(__tstate); | |
33310 | if (PyErr_Occurred()) SWIG_fail; | |
33311 | } | |
33312 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33313 | return resultobj; | |
33314 | fail: | |
33315 | return NULL; | |
33316 | } | |
33317 | ||
33318 | ||
33319 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33320 | PyObject *resultobj; | |
33321 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33322 | wxGBPosition result; | |
33323 | PyObject * obj0 = 0 ; | |
33324 | char *kwnames[] = { | |
33325 | (char *) "self", NULL | |
33326 | }; | |
33327 | ||
33328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
33329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33330 | { | |
33331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33332 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
33333 | ||
33334 | wxPyEndAllowThreads(__tstate); | |
33335 | if (PyErr_Occurred()) SWIG_fail; | |
33336 | } | |
33337 | { | |
33338 | wxGBPosition * resultptr; | |
33339 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33340 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33341 | } | |
33342 | return resultobj; | |
33343 | fail: | |
33344 | return NULL; | |
33345 | } | |
33346 | ||
33347 | ||
33348 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33349 | PyObject *resultobj; | |
33350 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33351 | wxGBSpan result; | |
33352 | PyObject * obj0 = 0 ; | |
33353 | char *kwnames[] = { | |
33354 | (char *) "self", NULL | |
33355 | }; | |
33356 | ||
33357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
33358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33359 | { | |
33360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33361 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
33362 | ||
33363 | wxPyEndAllowThreads(__tstate); | |
33364 | if (PyErr_Occurred()) SWIG_fail; | |
33365 | } | |
33366 | { | |
33367 | wxGBSpan * resultptr; | |
33368 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33370 | } | |
33371 | return resultobj; | |
33372 | fail: | |
33373 | return NULL; | |
33374 | } | |
33375 | ||
33376 | ||
33377 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33378 | PyObject *resultobj; | |
33379 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33380 | wxGBPosition *arg2 = 0 ; | |
33381 | bool result; | |
33382 | wxGBPosition temp2 ; | |
33383 | PyObject * obj0 = 0 ; | |
33384 | PyObject * obj1 = 0 ; | |
33385 | char *kwnames[] = { | |
33386 | (char *) "self",(char *) "pos", NULL | |
33387 | }; | |
33388 | ||
33389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
33390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33391 | { | |
33392 | arg2 = &temp2; | |
33393 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33394 | } | |
33395 | { | |
33396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33397 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
33398 | ||
33399 | wxPyEndAllowThreads(__tstate); | |
33400 | if (PyErr_Occurred()) SWIG_fail; | |
33401 | } | |
33402 | resultobj = PyInt_FromLong((long)result); | |
33403 | return resultobj; | |
33404 | fail: | |
33405 | return NULL; | |
33406 | } | |
33407 | ||
33408 | ||
33409 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33410 | PyObject *resultobj; | |
33411 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33412 | wxGBSpan *arg2 = 0 ; | |
33413 | bool result; | |
33414 | wxGBSpan temp2 ; | |
33415 | PyObject * obj0 = 0 ; | |
33416 | PyObject * obj1 = 0 ; | |
33417 | char *kwnames[] = { | |
33418 | (char *) "self",(char *) "span", NULL | |
33419 | }; | |
33420 | ||
33421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
33422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33423 | { | |
33424 | arg2 = &temp2; | |
33425 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33426 | } | |
33427 | { | |
33428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33429 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
33430 | ||
33431 | wxPyEndAllowThreads(__tstate); | |
33432 | if (PyErr_Occurred()) SWIG_fail; | |
33433 | } | |
33434 | resultobj = PyInt_FromLong((long)result); | |
33435 | return resultobj; | |
33436 | fail: | |
33437 | return NULL; | |
33438 | } | |
33439 | ||
33440 | ||
33441 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
33442 | PyObject *resultobj; | |
33443 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33444 | wxGBSizerItem *arg2 = 0 ; | |
33445 | bool result; | |
33446 | PyObject * obj0 = 0 ; | |
33447 | PyObject * obj1 = 0 ; | |
33448 | ||
33449 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
33450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33451 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33452 | if (arg2 == NULL) { | |
33453 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33454 | } | |
33455 | { | |
33456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33457 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
33458 | ||
33459 | wxPyEndAllowThreads(__tstate); | |
33460 | if (PyErr_Occurred()) SWIG_fail; | |
33461 | } | |
33462 | resultobj = PyInt_FromLong((long)result); | |
33463 | return resultobj; | |
33464 | fail: | |
33465 | return NULL; | |
33466 | } | |
33467 | ||
33468 | ||
33469 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
33470 | PyObject *resultobj; | |
33471 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33472 | wxGBPosition *arg2 = 0 ; | |
33473 | wxGBSpan *arg3 = 0 ; | |
33474 | bool result; | |
33475 | wxGBPosition temp2 ; | |
33476 | wxGBSpan temp3 ; | |
33477 | PyObject * obj0 = 0 ; | |
33478 | PyObject * obj1 = 0 ; | |
33479 | PyObject * obj2 = 0 ; | |
33480 | ||
33481 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
33482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33483 | { | |
33484 | arg2 = &temp2; | |
33485 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33486 | } | |
33487 | { | |
33488 | arg3 = &temp3; | |
33489 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33490 | } | |
33491 | { | |
33492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33493 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
33494 | ||
33495 | wxPyEndAllowThreads(__tstate); | |
33496 | if (PyErr_Occurred()) SWIG_fail; | |
33497 | } | |
33498 | resultobj = PyInt_FromLong((long)result); | |
33499 | return resultobj; | |
33500 | fail: | |
33501 | return NULL; | |
33502 | } | |
33503 | ||
33504 | ||
33505 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
33506 | int argc; | |
33507 | PyObject *argv[4]; | |
33508 | int ii; | |
33509 | ||
33510 | argc = PyObject_Length(args); | |
33511 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33512 | argv[ii] = PyTuple_GetItem(args,ii); | |
33513 | } | |
33514 | if (argc == 2) { | |
33515 | int _v; | |
33516 | { | |
33517 | void *ptr; | |
33518 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33519 | _v = 0; | |
33520 | PyErr_Clear(); | |
33521 | } else { | |
33522 | _v = 1; | |
33523 | } | |
33524 | } | |
33525 | if (_v) { | |
33526 | { | |
33527 | void *ptr; | |
33528 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33529 | _v = 0; | |
33530 | PyErr_Clear(); | |
33531 | } else { | |
33532 | _v = 1; | |
33533 | } | |
33534 | } | |
33535 | if (_v) { | |
33536 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
33537 | } | |
33538 | } | |
33539 | } | |
33540 | if (argc == 3) { | |
33541 | int _v; | |
33542 | { | |
33543 | void *ptr; | |
33544 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33545 | _v = 0; | |
33546 | PyErr_Clear(); | |
33547 | } else { | |
33548 | _v = 1; | |
33549 | } | |
33550 | } | |
33551 | if (_v) { | |
33552 | { | |
33553 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
33554 | } | |
33555 | if (_v) { | |
33556 | { | |
33557 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
33558 | } | |
33559 | if (_v) { | |
33560 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
33561 | } | |
33562 | } | |
33563 | } | |
33564 | } | |
33565 | ||
33566 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
33567 | return NULL; | |
33568 | } | |
33569 | ||
33570 | ||
33571 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33572 | PyObject *resultobj; | |
33573 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33574 | int *arg2 = 0 ; | |
33575 | int *arg3 = 0 ; | |
33576 | PyObject * obj0 = 0 ; | |
33577 | PyObject * obj1 = 0 ; | |
33578 | PyObject * obj2 = 0 ; | |
33579 | char *kwnames[] = { | |
33580 | (char *) "self",(char *) "row",(char *) "col", NULL | |
33581 | }; | |
33582 | ||
33583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33585 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33586 | if (arg2 == NULL) { | |
33587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33588 | } | |
33589 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33590 | if (arg3 == NULL) { | |
33591 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33592 | } | |
33593 | { | |
33594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33595 | (arg1)->GetEndPos(*arg2,*arg3); | |
33596 | ||
33597 | wxPyEndAllowThreads(__tstate); | |
33598 | if (PyErr_Occurred()) SWIG_fail; | |
33599 | } | |
33600 | Py_INCREF(Py_None); resultobj = Py_None; | |
33601 | return resultobj; | |
33602 | fail: | |
33603 | return NULL; | |
33604 | } | |
33605 | ||
33606 | ||
33607 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33608 | PyObject *resultobj; | |
33609 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33610 | wxGridBagSizer *result; | |
33611 | PyObject * obj0 = 0 ; | |
33612 | char *kwnames[] = { | |
33613 | (char *) "self", NULL | |
33614 | }; | |
33615 | ||
33616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
33617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33618 | { | |
33619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33620 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
33621 | ||
33622 | wxPyEndAllowThreads(__tstate); | |
33623 | if (PyErr_Occurred()) SWIG_fail; | |
33624 | } | |
33625 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
33626 | return resultobj; | |
33627 | fail: | |
33628 | return NULL; | |
33629 | } | |
33630 | ||
33631 | ||
33632 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33633 | PyObject *resultobj; | |
33634 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33635 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
33636 | PyObject * obj0 = 0 ; | |
33637 | PyObject * obj1 = 0 ; | |
33638 | char *kwnames[] = { | |
33639 | (char *) "self",(char *) "sizer", NULL | |
33640 | }; | |
33641 | ||
33642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
33643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33645 | { | |
33646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33647 | (arg1)->SetGBSizer(arg2); | |
33648 | ||
33649 | wxPyEndAllowThreads(__tstate); | |
33650 | if (PyErr_Occurred()) SWIG_fail; | |
33651 | } | |
33652 | Py_INCREF(Py_None); resultobj = Py_None; | |
33653 | return resultobj; | |
33654 | fail: | |
33655 | return NULL; | |
33656 | } | |
33657 | ||
33658 | ||
33659 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
33660 | PyObject *obj; | |
33661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33662 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
33663 | Py_INCREF(obj); | |
33664 | return Py_BuildValue((char *)""); | |
33665 | } | |
33666 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33667 | PyObject *resultobj; | |
33668 | int arg1 = (int) 0 ; | |
33669 | int arg2 = (int) 0 ; | |
33670 | wxGridBagSizer *result; | |
33671 | char *kwnames[] = { | |
33672 | (char *) "vgap",(char *) "hgap", NULL | |
33673 | }; | |
33674 | ||
33675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridBagSizer",kwnames,&arg1,&arg2)) goto fail; | |
33676 | { | |
33677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33678 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
33679 | ||
33680 | wxPyEndAllowThreads(__tstate); | |
33681 | if (PyErr_Occurred()) SWIG_fail; | |
33682 | } | |
33683 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
33684 | return resultobj; | |
33685 | fail: | |
33686 | return NULL; | |
33687 | } | |
33688 | ||
33689 | ||
33690 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33691 | PyObject *resultobj; | |
33692 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33693 | PyObject *arg2 = (PyObject *) 0 ; | |
33694 | wxGBPosition *arg3 = 0 ; | |
33695 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
33696 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
33697 | int arg5 = (int) 0 ; | |
33698 | int arg6 = (int) 0 ; | |
33699 | PyObject *arg7 = (PyObject *) NULL ; | |
33700 | bool result; | |
33701 | wxGBPosition temp3 ; | |
33702 | wxGBSpan temp4 ; | |
33703 | PyObject * obj0 = 0 ; | |
33704 | PyObject * obj1 = 0 ; | |
33705 | PyObject * obj2 = 0 ; | |
33706 | PyObject * obj3 = 0 ; | |
33707 | PyObject * obj6 = 0 ; | |
33708 | char *kwnames[] = { | |
33709 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33710 | }; | |
33711 | ||
33712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33714 | arg2 = obj1; | |
33715 | { | |
33716 | arg3 = &temp3; | |
33717 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33718 | } | |
33719 | if (obj3) { | |
33720 | { | |
33721 | arg4 = &temp4; | |
33722 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33723 | } | |
33724 | } | |
33725 | if (obj6) { | |
33726 | arg7 = obj6; | |
33727 | } | |
33728 | { | |
33729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33730 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33731 | ||
33732 | wxPyEndAllowThreads(__tstate); | |
33733 | if (PyErr_Occurred()) SWIG_fail; | |
33734 | } | |
33735 | resultobj = PyInt_FromLong((long)result); | |
33736 | return resultobj; | |
33737 | fail: | |
33738 | return NULL; | |
33739 | } | |
33740 | ||
33741 | ||
33742 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33743 | PyObject *resultobj; | |
33744 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33745 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
33746 | bool result; | |
33747 | PyObject * obj0 = 0 ; | |
33748 | PyObject * obj1 = 0 ; | |
33749 | char *kwnames[] = { | |
33750 | (char *) "self",(char *) "item", NULL | |
33751 | }; | |
33752 | ||
33753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33756 | { | |
33757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33758 | result = (bool)(arg1)->Add(arg2); | |
33759 | ||
33760 | wxPyEndAllowThreads(__tstate); | |
33761 | if (PyErr_Occurred()) SWIG_fail; | |
33762 | } | |
33763 | resultobj = PyInt_FromLong((long)result); | |
33764 | return resultobj; | |
33765 | fail: | |
33766 | return NULL; | |
33767 | } | |
33768 | ||
33769 | ||
33770 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33771 | PyObject *resultobj; | |
33772 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33773 | wxSize result; | |
33774 | PyObject * obj0 = 0 ; | |
33775 | char *kwnames[] = { | |
33776 | (char *) "self", NULL | |
33777 | }; | |
33778 | ||
33779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
33780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33781 | { | |
33782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33783 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
33784 | ||
33785 | wxPyEndAllowThreads(__tstate); | |
33786 | if (PyErr_Occurred()) SWIG_fail; | |
33787 | } | |
33788 | { | |
33789 | wxSize * resultptr; | |
33790 | resultptr = new wxSize((wxSize &) result); | |
33791 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33792 | } | |
33793 | return resultobj; | |
33794 | fail: | |
33795 | return NULL; | |
33796 | } | |
33797 | ||
33798 | ||
33799 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33800 | PyObject *resultobj; | |
33801 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33802 | wxSize *arg2 = 0 ; | |
33803 | wxSize temp2 ; | |
33804 | PyObject * obj0 = 0 ; | |
33805 | PyObject * obj1 = 0 ; | |
33806 | char *kwnames[] = { | |
33807 | (char *) "self",(char *) "sz", NULL | |
33808 | }; | |
33809 | ||
33810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
33811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33812 | { | |
33813 | arg2 = &temp2; | |
33814 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33815 | } | |
33816 | { | |
33817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33818 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
33819 | ||
33820 | wxPyEndAllowThreads(__tstate); | |
33821 | if (PyErr_Occurred()) SWIG_fail; | |
33822 | } | |
33823 | Py_INCREF(Py_None); resultobj = Py_None; | |
33824 | return resultobj; | |
33825 | fail: | |
33826 | return NULL; | |
33827 | } | |
33828 | ||
33829 | ||
33830 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33831 | PyObject *resultobj; | |
33832 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33833 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33834 | wxGBPosition result; | |
33835 | PyObject * obj0 = 0 ; | |
33836 | PyObject * obj1 = 0 ; | |
33837 | ||
33838 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33841 | { | |
33842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33843 | result = (arg1)->GetItemPosition(arg2); | |
33844 | ||
33845 | wxPyEndAllowThreads(__tstate); | |
33846 | if (PyErr_Occurred()) SWIG_fail; | |
33847 | } | |
33848 | { | |
33849 | wxGBPosition * resultptr; | |
33850 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33851 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33852 | } | |
33853 | return resultobj; | |
33854 | fail: | |
33855 | return NULL; | |
33856 | } | |
33857 | ||
33858 | ||
33859 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33860 | PyObject *resultobj; | |
33861 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33862 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33863 | wxGBPosition result; | |
33864 | PyObject * obj0 = 0 ; | |
33865 | PyObject * obj1 = 0 ; | |
33866 | ||
33867 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33869 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33870 | { | |
33871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33872 | result = (arg1)->GetItemPosition(arg2); | |
33873 | ||
33874 | wxPyEndAllowThreads(__tstate); | |
33875 | if (PyErr_Occurred()) SWIG_fail; | |
33876 | } | |
33877 | { | |
33878 | wxGBPosition * resultptr; | |
33879 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33881 | } | |
33882 | return resultobj; | |
33883 | fail: | |
33884 | return NULL; | |
33885 | } | |
33886 | ||
33887 | ||
33888 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33889 | PyObject *resultobj; | |
33890 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33891 | size_t arg2 ; | |
33892 | wxGBPosition result; | |
33893 | PyObject * obj0 = 0 ; | |
33894 | PyObject * obj1 = 0 ; | |
33895 | ||
33896 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
33898 | { |
33899 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
33900 | if (PyErr_Occurred()) SWIG_fail; | |
33901 | } | |
d14a1e28 RD |
33902 | { |
33903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33904 | result = (arg1)->GetItemPosition(arg2); | |
33905 | ||
33906 | wxPyEndAllowThreads(__tstate); | |
33907 | if (PyErr_Occurred()) SWIG_fail; | |
33908 | } | |
33909 | { | |
33910 | wxGBPosition * resultptr; | |
33911 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33913 | } | |
33914 | return resultobj; | |
33915 | fail: | |
33916 | return NULL; | |
33917 | } | |
33918 | ||
33919 | ||
33920 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
33921 | int argc; | |
33922 | PyObject *argv[3]; | |
33923 | int ii; | |
33924 | ||
33925 | argc = PyObject_Length(args); | |
33926 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33927 | argv[ii] = PyTuple_GetItem(args,ii); | |
33928 | } | |
33929 | if (argc == 2) { | |
33930 | int _v; | |
33931 | { | |
33932 | void *ptr; | |
33933 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33934 | _v = 0; | |
33935 | PyErr_Clear(); | |
33936 | } else { | |
33937 | _v = 1; | |
33938 | } | |
33939 | } | |
33940 | if (_v) { | |
33941 | { | |
33942 | void *ptr; | |
33943 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33944 | _v = 0; | |
33945 | PyErr_Clear(); | |
33946 | } else { | |
33947 | _v = 1; | |
33948 | } | |
33949 | } | |
33950 | if (_v) { | |
33951 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
33952 | } | |
33953 | } | |
33954 | } | |
33955 | if (argc == 2) { | |
33956 | int _v; | |
33957 | { | |
33958 | void *ptr; | |
33959 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33960 | _v = 0; | |
33961 | PyErr_Clear(); | |
33962 | } else { | |
33963 | _v = 1; | |
33964 | } | |
33965 | } | |
33966 | if (_v) { | |
33967 | { | |
33968 | void *ptr; | |
33969 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33970 | _v = 0; | |
33971 | PyErr_Clear(); | |
33972 | } else { | |
33973 | _v = 1; | |
33974 | } | |
33975 | } | |
33976 | if (_v) { | |
33977 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
33978 | } | |
33979 | } | |
33980 | } | |
33981 | if (argc == 2) { | |
33982 | int _v; | |
33983 | { | |
33984 | void *ptr; | |
33985 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33986 | _v = 0; | |
33987 | PyErr_Clear(); | |
33988 | } else { | |
33989 | _v = 1; | |
33990 | } | |
33991 | } | |
33992 | if (_v) { | |
33993 | { | |
a41e16b6 RD |
33994 | SPyObj_AsUnsignedInt(argv[1]); |
33995 | if (PyErr_Occurred()) { | |
33996 | _v = 0; | |
33997 | PyErr_Clear(); | |
33998 | } else { | |
33999 | _v = 1; | |
34000 | } | |
d14a1e28 RD |
34001 | } |
34002 | if (_v) { | |
34003 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
34004 | } | |
34005 | } | |
34006 | } | |
34007 | ||
34008 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
34009 | return NULL; | |
34010 | } | |
34011 | ||
34012 | ||
34013 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
34014 | PyObject *resultobj; | |
34015 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34016 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34017 | wxGBPosition *arg3 = 0 ; | |
34018 | bool result; | |
34019 | wxGBPosition temp3 ; | |
34020 | PyObject * obj0 = 0 ; | |
34021 | PyObject * obj1 = 0 ; | |
34022 | PyObject * obj2 = 0 ; | |
34023 | ||
34024 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34026 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34027 | { | |
34028 | arg3 = &temp3; | |
34029 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34030 | } | |
34031 | { | |
34032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34033 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34034 | ||
34035 | wxPyEndAllowThreads(__tstate); | |
34036 | if (PyErr_Occurred()) SWIG_fail; | |
34037 | } | |
34038 | resultobj = PyInt_FromLong((long)result); | |
34039 | return resultobj; | |
34040 | fail: | |
34041 | return NULL; | |
34042 | } | |
34043 | ||
34044 | ||
34045 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
34046 | PyObject *resultobj; | |
34047 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34048 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34049 | wxGBPosition *arg3 = 0 ; | |
34050 | bool result; | |
34051 | wxGBPosition temp3 ; | |
34052 | PyObject * obj0 = 0 ; | |
34053 | PyObject * obj1 = 0 ; | |
34054 | PyObject * obj2 = 0 ; | |
34055 | ||
34056 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34058 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34059 | { | |
34060 | arg3 = &temp3; | |
34061 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34062 | } | |
34063 | { | |
34064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34065 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34066 | ||
34067 | wxPyEndAllowThreads(__tstate); | |
34068 | if (PyErr_Occurred()) SWIG_fail; | |
34069 | } | |
34070 | resultobj = PyInt_FromLong((long)result); | |
34071 | return resultobj; | |
34072 | fail: | |
34073 | return NULL; | |
34074 | } | |
34075 | ||
34076 | ||
34077 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
34078 | PyObject *resultobj; | |
34079 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34080 | size_t arg2 ; | |
34081 | wxGBPosition *arg3 = 0 ; | |
34082 | bool result; | |
34083 | wxGBPosition temp3 ; | |
34084 | PyObject * obj0 = 0 ; | |
34085 | PyObject * obj1 = 0 ; | |
34086 | PyObject * obj2 = 0 ; | |
34087 | ||
34088 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
34090 | { |
34091 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
34092 | if (PyErr_Occurred()) SWIG_fail; | |
34093 | } | |
d14a1e28 RD |
34094 | { |
34095 | arg3 = &temp3; | |
34096 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34097 | } | |
34098 | { | |
34099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34100 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34101 | ||
34102 | wxPyEndAllowThreads(__tstate); | |
34103 | if (PyErr_Occurred()) SWIG_fail; | |
34104 | } | |
34105 | resultobj = PyInt_FromLong((long)result); | |
34106 | return resultobj; | |
34107 | fail: | |
34108 | return NULL; | |
34109 | } | |
34110 | ||
34111 | ||
34112 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
34113 | int argc; | |
34114 | PyObject *argv[4]; | |
34115 | int ii; | |
34116 | ||
34117 | argc = PyObject_Length(args); | |
34118 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
34119 | argv[ii] = PyTuple_GetItem(args,ii); | |
34120 | } | |
34121 | if (argc == 3) { | |
34122 | int _v; | |
34123 | { | |
34124 | void *ptr; | |
34125 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34126 | _v = 0; | |
34127 | PyErr_Clear(); | |
34128 | } else { | |
34129 | _v = 1; | |
34130 | } | |
34131 | } | |
34132 | if (_v) { | |
34133 | { | |
34134 | void *ptr; | |
34135 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34136 | _v = 0; | |
34137 | PyErr_Clear(); | |
34138 | } else { | |
34139 | _v = 1; | |
34140 | } | |
34141 | } | |
34142 | if (_v) { | |
34143 | { | |
34144 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34145 | } | |
34146 | if (_v) { | |
34147 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
34148 | } | |
34149 | } | |
34150 | } | |
34151 | } | |
34152 | if (argc == 3) { | |
34153 | int _v; | |
34154 | { | |
34155 | void *ptr; | |
34156 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34157 | _v = 0; | |
34158 | PyErr_Clear(); | |
34159 | } else { | |
34160 | _v = 1; | |
34161 | } | |
34162 | } | |
34163 | if (_v) { | |
34164 | { | |
34165 | void *ptr; | |
34166 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34167 | _v = 0; | |
34168 | PyErr_Clear(); | |
34169 | } else { | |
34170 | _v = 1; | |
34171 | } | |
34172 | } | |
34173 | if (_v) { | |
34174 | { | |
34175 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34176 | } | |
34177 | if (_v) { | |
34178 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
34179 | } | |
34180 | } | |
34181 | } | |
34182 | } | |
34183 | if (argc == 3) { | |
34184 | int _v; | |
34185 | { | |
34186 | void *ptr; | |
34187 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34188 | _v = 0; | |
34189 | PyErr_Clear(); | |
34190 | } else { | |
34191 | _v = 1; | |
34192 | } | |
34193 | } | |
34194 | if (_v) { | |
34195 | { | |
a41e16b6 RD |
34196 | SPyObj_AsUnsignedInt(argv[1]); |
34197 | if (PyErr_Occurred()) { | |
34198 | _v = 0; | |
34199 | PyErr_Clear(); | |
34200 | } else { | |
34201 | _v = 1; | |
34202 | } | |
d14a1e28 RD |
34203 | } |
34204 | if (_v) { | |
34205 | { | |
34206 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34207 | } | |
34208 | if (_v) { | |
34209 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
34210 | } | |
34211 | } | |
34212 | } | |
34213 | } | |
34214 | ||
34215 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
34216 | return NULL; | |
34217 | } | |
34218 | ||
34219 | ||
34220 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
34221 | PyObject *resultobj; | |
34222 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34224 | wxGBSpan result; | |
34225 | PyObject * obj0 = 0 ; | |
34226 | PyObject * obj1 = 0 ; | |
34227 | ||
34228 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34231 | { | |
34232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34233 | result = (arg1)->GetItemSpan(arg2); | |
34234 | ||
34235 | wxPyEndAllowThreads(__tstate); | |
34236 | if (PyErr_Occurred()) SWIG_fail; | |
34237 | } | |
34238 | { | |
34239 | wxGBSpan * resultptr; | |
34240 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34241 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34242 | } | |
34243 | return resultobj; | |
34244 | fail: | |
34245 | return NULL; | |
34246 | } | |
34247 | ||
34248 | ||
34249 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
34250 | PyObject *resultobj; | |
34251 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34252 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34253 | wxGBSpan result; | |
34254 | PyObject * obj0 = 0 ; | |
34255 | PyObject * obj1 = 0 ; | |
34256 | ||
34257 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34260 | { | |
34261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34262 | result = (arg1)->GetItemSpan(arg2); | |
34263 | ||
34264 | wxPyEndAllowThreads(__tstate); | |
34265 | if (PyErr_Occurred()) SWIG_fail; | |
34266 | } | |
34267 | { | |
34268 | wxGBSpan * resultptr; | |
34269 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34270 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34271 | } | |
34272 | return resultobj; | |
34273 | fail: | |
34274 | return NULL; | |
34275 | } | |
34276 | ||
34277 | ||
34278 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
34279 | PyObject *resultobj; | |
34280 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34281 | size_t arg2 ; | |
34282 | wxGBSpan result; | |
34283 | PyObject * obj0 = 0 ; | |
34284 | PyObject * obj1 = 0 ; | |
34285 | ||
34286 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
34288 | { |
34289 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
34290 | if (PyErr_Occurred()) SWIG_fail; | |
34291 | } | |
d14a1e28 RD |
34292 | { |
34293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34294 | result = (arg1)->GetItemSpan(arg2); | |
34295 | ||
34296 | wxPyEndAllowThreads(__tstate); | |
34297 | if (PyErr_Occurred()) SWIG_fail; | |
34298 | } | |
34299 | { | |
34300 | wxGBSpan * resultptr; | |
34301 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34302 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34303 | } | |
34304 | return resultobj; | |
34305 | fail: | |
34306 | return NULL; | |
34307 | } | |
34308 | ||
34309 | ||
34310 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
34311 | int argc; | |
34312 | PyObject *argv[3]; | |
34313 | int ii; | |
34314 | ||
34315 | argc = PyObject_Length(args); | |
34316 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34317 | argv[ii] = PyTuple_GetItem(args,ii); | |
34318 | } | |
34319 | if (argc == 2) { | |
34320 | int _v; | |
34321 | { | |
34322 | void *ptr; | |
34323 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34324 | _v = 0; | |
34325 | PyErr_Clear(); | |
34326 | } else { | |
34327 | _v = 1; | |
34328 | } | |
34329 | } | |
34330 | if (_v) { | |
34331 | { | |
34332 | void *ptr; | |
34333 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34334 | _v = 0; | |
34335 | PyErr_Clear(); | |
34336 | } else { | |
34337 | _v = 1; | |
34338 | } | |
34339 | } | |
34340 | if (_v) { | |
34341 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
34342 | } | |
34343 | } | |
34344 | } | |
34345 | if (argc == 2) { | |
34346 | int _v; | |
34347 | { | |
34348 | void *ptr; | |
34349 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34350 | _v = 0; | |
34351 | PyErr_Clear(); | |
34352 | } else { | |
34353 | _v = 1; | |
34354 | } | |
34355 | } | |
34356 | if (_v) { | |
34357 | { | |
34358 | void *ptr; | |
34359 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34360 | _v = 0; | |
34361 | PyErr_Clear(); | |
34362 | } else { | |
34363 | _v = 1; | |
34364 | } | |
34365 | } | |
34366 | if (_v) { | |
34367 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
34368 | } | |
34369 | } | |
34370 | } | |
34371 | if (argc == 2) { | |
34372 | int _v; | |
34373 | { | |
34374 | void *ptr; | |
34375 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34376 | _v = 0; | |
34377 | PyErr_Clear(); | |
34378 | } else { | |
34379 | _v = 1; | |
34380 | } | |
34381 | } | |
34382 | if (_v) { | |
34383 | { | |
a41e16b6 RD |
34384 | SPyObj_AsUnsignedInt(argv[1]); |
34385 | if (PyErr_Occurred()) { | |
34386 | _v = 0; | |
34387 | PyErr_Clear(); | |
34388 | } else { | |
34389 | _v = 1; | |
34390 | } | |
d14a1e28 RD |
34391 | } |
34392 | if (_v) { | |
34393 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
34394 | } | |
34395 | } | |
34396 | } | |
34397 | ||
34398 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
34399 | return NULL; | |
34400 | } | |
34401 | ||
34402 | ||
34403 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
34404 | PyObject *resultobj; | |
34405 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34406 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34407 | wxGBSpan *arg3 = 0 ; | |
34408 | bool result; | |
34409 | wxGBSpan temp3 ; | |
34410 | PyObject * obj0 = 0 ; | |
34411 | PyObject * obj1 = 0 ; | |
34412 | PyObject * obj2 = 0 ; | |
34413 | ||
34414 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34417 | { | |
34418 | arg3 = &temp3; | |
34419 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34420 | } | |
34421 | { | |
34422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34423 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34424 | ||
34425 | wxPyEndAllowThreads(__tstate); | |
34426 | if (PyErr_Occurred()) SWIG_fail; | |
34427 | } | |
34428 | resultobj = PyInt_FromLong((long)result); | |
34429 | return resultobj; | |
34430 | fail: | |
34431 | return NULL; | |
34432 | } | |
34433 | ||
34434 | ||
34435 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
34436 | PyObject *resultobj; | |
34437 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34438 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34439 | wxGBSpan *arg3 = 0 ; | |
34440 | bool result; | |
34441 | wxGBSpan temp3 ; | |
34442 | PyObject * obj0 = 0 ; | |
34443 | PyObject * obj1 = 0 ; | |
34444 | PyObject * obj2 = 0 ; | |
34445 | ||
34446 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34449 | { | |
34450 | arg3 = &temp3; | |
34451 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34452 | } | |
34453 | { | |
34454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34455 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34456 | ||
34457 | wxPyEndAllowThreads(__tstate); | |
34458 | if (PyErr_Occurred()) SWIG_fail; | |
34459 | } | |
34460 | resultobj = PyInt_FromLong((long)result); | |
34461 | return resultobj; | |
34462 | fail: | |
34463 | return NULL; | |
34464 | } | |
34465 | ||
34466 | ||
34467 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
34468 | PyObject *resultobj; | |
34469 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34470 | size_t arg2 ; | |
34471 | wxGBSpan *arg3 = 0 ; | |
34472 | bool result; | |
34473 | wxGBSpan temp3 ; | |
34474 | PyObject * obj0 = 0 ; | |
34475 | PyObject * obj1 = 0 ; | |
34476 | PyObject * obj2 = 0 ; | |
34477 | ||
34478 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
34480 | { |
34481 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
34482 | if (PyErr_Occurred()) SWIG_fail; | |
34483 | } | |
d14a1e28 RD |
34484 | { |
34485 | arg3 = &temp3; | |
34486 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34487 | } | |
34488 | { | |
34489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34490 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34491 | ||
34492 | wxPyEndAllowThreads(__tstate); | |
34493 | if (PyErr_Occurred()) SWIG_fail; | |
34494 | } | |
34495 | resultobj = PyInt_FromLong((long)result); | |
34496 | return resultobj; | |
34497 | fail: | |
34498 | return NULL; | |
34499 | } | |
34500 | ||
34501 | ||
34502 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
34503 | int argc; | |
34504 | PyObject *argv[4]; | |
34505 | int ii; | |
34506 | ||
34507 | argc = PyObject_Length(args); | |
34508 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
34509 | argv[ii] = PyTuple_GetItem(args,ii); | |
34510 | } | |
34511 | if (argc == 3) { | |
34512 | int _v; | |
34513 | { | |
34514 | void *ptr; | |
34515 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34516 | _v = 0; | |
34517 | PyErr_Clear(); | |
34518 | } else { | |
34519 | _v = 1; | |
34520 | } | |
34521 | } | |
34522 | if (_v) { | |
34523 | { | |
34524 | void *ptr; | |
34525 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34526 | _v = 0; | |
34527 | PyErr_Clear(); | |
34528 | } else { | |
34529 | _v = 1; | |
34530 | } | |
34531 | } | |
34532 | if (_v) { | |
34533 | { | |
34534 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34535 | } | |
34536 | if (_v) { | |
34537 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
34538 | } | |
34539 | } | |
34540 | } | |
34541 | } | |
34542 | if (argc == 3) { | |
34543 | int _v; | |
34544 | { | |
34545 | void *ptr; | |
34546 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34547 | _v = 0; | |
34548 | PyErr_Clear(); | |
34549 | } else { | |
34550 | _v = 1; | |
34551 | } | |
34552 | } | |
34553 | if (_v) { | |
34554 | { | |
34555 | void *ptr; | |
34556 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34557 | _v = 0; | |
34558 | PyErr_Clear(); | |
34559 | } else { | |
34560 | _v = 1; | |
34561 | } | |
34562 | } | |
34563 | if (_v) { | |
34564 | { | |
34565 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34566 | } | |
34567 | if (_v) { | |
34568 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
34569 | } | |
34570 | } | |
34571 | } | |
34572 | } | |
34573 | if (argc == 3) { | |
34574 | int _v; | |
34575 | { | |
34576 | void *ptr; | |
34577 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34578 | _v = 0; | |
34579 | PyErr_Clear(); | |
34580 | } else { | |
34581 | _v = 1; | |
34582 | } | |
34583 | } | |
34584 | if (_v) { | |
34585 | { | |
a41e16b6 RD |
34586 | SPyObj_AsUnsignedInt(argv[1]); |
34587 | if (PyErr_Occurred()) { | |
34588 | _v = 0; | |
34589 | PyErr_Clear(); | |
34590 | } else { | |
34591 | _v = 1; | |
34592 | } | |
d14a1e28 RD |
34593 | } |
34594 | if (_v) { | |
34595 | { | |
34596 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34597 | } | |
34598 | if (_v) { | |
34599 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
34600 | } | |
34601 | } | |
34602 | } | |
34603 | } | |
34604 | ||
34605 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
34606 | return NULL; | |
34607 | } | |
34608 | ||
34609 | ||
34610 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
34611 | PyObject *resultobj; | |
34612 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34613 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34614 | wxGBSizerItem *result; | |
34615 | PyObject * obj0 = 0 ; | |
34616 | PyObject * obj1 = 0 ; | |
34617 | ||
34618 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34620 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34621 | { | |
34622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34623 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34624 | ||
34625 | wxPyEndAllowThreads(__tstate); | |
34626 | if (PyErr_Occurred()) SWIG_fail; | |
34627 | } | |
34628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34629 | return resultobj; | |
34630 | fail: | |
34631 | return NULL; | |
34632 | } | |
34633 | ||
34634 | ||
34635 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
34636 | PyObject *resultobj; | |
34637 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34638 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34639 | wxGBSizerItem *result; | |
34640 | PyObject * obj0 = 0 ; | |
34641 | PyObject * obj1 = 0 ; | |
34642 | ||
34643 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34646 | { | |
34647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34648 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34649 | ||
34650 | wxPyEndAllowThreads(__tstate); | |
34651 | if (PyErr_Occurred()) SWIG_fail; | |
34652 | } | |
34653 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34654 | return resultobj; | |
34655 | fail: | |
34656 | return NULL; | |
34657 | } | |
34658 | ||
34659 | ||
34660 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
34661 | int argc; | |
34662 | PyObject *argv[3]; | |
34663 | int ii; | |
34664 | ||
34665 | argc = PyObject_Length(args); | |
34666 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34667 | argv[ii] = PyTuple_GetItem(args,ii); | |
34668 | } | |
34669 | if (argc == 2) { | |
34670 | int _v; | |
34671 | { | |
34672 | void *ptr; | |
34673 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34674 | _v = 0; | |
34675 | PyErr_Clear(); | |
34676 | } else { | |
34677 | _v = 1; | |
34678 | } | |
34679 | } | |
34680 | if (_v) { | |
34681 | { | |
34682 | void *ptr; | |
34683 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34684 | _v = 0; | |
34685 | PyErr_Clear(); | |
34686 | } else { | |
34687 | _v = 1; | |
34688 | } | |
34689 | } | |
34690 | if (_v) { | |
34691 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
34692 | } | |
34693 | } | |
34694 | } | |
34695 | if (argc == 2) { | |
34696 | int _v; | |
34697 | { | |
34698 | void *ptr; | |
34699 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34700 | _v = 0; | |
34701 | PyErr_Clear(); | |
34702 | } else { | |
34703 | _v = 1; | |
34704 | } | |
34705 | } | |
34706 | if (_v) { | |
34707 | { | |
34708 | void *ptr; | |
34709 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34710 | _v = 0; | |
34711 | PyErr_Clear(); | |
34712 | } else { | |
34713 | _v = 1; | |
34714 | } | |
34715 | } | |
34716 | if (_v) { | |
34717 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
34718 | } | |
34719 | } | |
34720 | } | |
34721 | ||
34722 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
34723 | return NULL; | |
34724 | } | |
34725 | ||
34726 | ||
34727 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34728 | PyObject *resultobj; | |
34729 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34730 | wxGBPosition *arg2 = 0 ; | |
34731 | wxGBSizerItem *result; | |
34732 | wxGBPosition temp2 ; | |
34733 | PyObject * obj0 = 0 ; | |
34734 | PyObject * obj1 = 0 ; | |
34735 | char *kwnames[] = { | |
34736 | (char *) "self",(char *) "pos", NULL | |
34737 | }; | |
34738 | ||
34739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
34740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34741 | { | |
34742 | arg2 = &temp2; | |
34743 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34744 | } | |
34745 | { | |
34746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34747 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
34748 | ||
34749 | wxPyEndAllowThreads(__tstate); | |
34750 | if (PyErr_Occurred()) SWIG_fail; | |
34751 | } | |
34752 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34753 | return resultobj; | |
34754 | fail: | |
34755 | return NULL; | |
34756 | } | |
34757 | ||
34758 | ||
e811c8ce RD |
34759 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
34760 | PyObject *resultobj; | |
34761 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34762 | wxPoint *arg2 = 0 ; | |
34763 | wxGBSizerItem *result; | |
34764 | wxPoint temp2 ; | |
34765 | PyObject * obj0 = 0 ; | |
34766 | PyObject * obj1 = 0 ; | |
34767 | char *kwnames[] = { | |
34768 | (char *) "self",(char *) "pt", NULL | |
34769 | }; | |
34770 | ||
34771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
34772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34773 | { | |
34774 | arg2 = &temp2; | |
34775 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34776 | } | |
34777 | { | |
34778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34779 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
34780 | ||
34781 | wxPyEndAllowThreads(__tstate); | |
34782 | if (PyErr_Occurred()) SWIG_fail; | |
34783 | } | |
34784 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34785 | return resultobj; | |
34786 | fail: | |
34787 | return NULL; | |
34788 | } | |
34789 | ||
34790 | ||
d14a1e28 RD |
34791 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
34792 | PyObject *resultobj; | |
34793 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34794 | wxObject *arg2 = (wxObject *) 0 ; | |
34795 | wxGBSizerItem *result; | |
34796 | PyObject * obj0 = 0 ; | |
34797 | PyObject * obj1 = 0 ; | |
34798 | char *kwnames[] = { | |
34799 | (char *) "self",(char *) "userData", NULL | |
34800 | }; | |
34801 | ||
34802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
34803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34805 | { | |
34806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34807 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
34808 | ||
34809 | wxPyEndAllowThreads(__tstate); | |
34810 | if (PyErr_Occurred()) SWIG_fail; | |
34811 | } | |
34812 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34813 | return resultobj; | |
34814 | fail: | |
34815 | return NULL; | |
34816 | } | |
34817 | ||
34818 | ||
34819 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34820 | PyObject *resultobj; | |
34821 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34822 | PyObject * obj0 = 0 ; | |
34823 | char *kwnames[] = { | |
34824 | (char *) "self", NULL | |
34825 | }; | |
34826 | ||
34827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34829 | { | |
34830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34831 | (arg1)->RecalcSizes(); | |
34832 | ||
34833 | wxPyEndAllowThreads(__tstate); | |
34834 | if (PyErr_Occurred()) SWIG_fail; | |
34835 | } | |
34836 | Py_INCREF(Py_None); resultobj = Py_None; | |
34837 | return resultobj; | |
34838 | fail: | |
34839 | return NULL; | |
34840 | } | |
34841 | ||
34842 | ||
34843 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34844 | PyObject *resultobj; | |
34845 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34846 | wxSize result; | |
34847 | PyObject * obj0 = 0 ; | |
34848 | char *kwnames[] = { | |
34849 | (char *) "self", NULL | |
34850 | }; | |
34851 | ||
34852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34854 | { | |
34855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34856 | result = (arg1)->CalcMin(); | |
34857 | ||
34858 | wxPyEndAllowThreads(__tstate); | |
34859 | if (PyErr_Occurred()) SWIG_fail; | |
34860 | } | |
34861 | { | |
34862 | wxSize * resultptr; | |
34863 | resultptr = new wxSize((wxSize &) result); | |
34864 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34865 | } | |
34866 | return resultobj; | |
34867 | fail: | |
34868 | return NULL; | |
34869 | } | |
34870 | ||
34871 | ||
34872 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
34873 | PyObject *resultobj; | |
34874 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34875 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
34876 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
34877 | bool result; | |
34878 | PyObject * obj0 = 0 ; | |
34879 | PyObject * obj1 = 0 ; | |
34880 | PyObject * obj2 = 0 ; | |
34881 | ||
34882 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
34883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34885 | if (obj2) { | |
34886 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34887 | } | |
34888 | { | |
34889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34890 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
34891 | ||
34892 | wxPyEndAllowThreads(__tstate); | |
34893 | if (PyErr_Occurred()) SWIG_fail; | |
34894 | } | |
34895 | resultobj = PyInt_FromLong((long)result); | |
34896 | return resultobj; | |
34897 | fail: | |
34898 | return NULL; | |
34899 | } | |
34900 | ||
34901 | ||
34902 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
34903 | PyObject *resultobj; | |
34904 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34905 | wxGBPosition *arg2 = 0 ; | |
34906 | wxGBSpan *arg3 = 0 ; | |
34907 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
34908 | bool result; | |
34909 | wxGBPosition temp2 ; | |
34910 | wxGBSpan temp3 ; | |
34911 | PyObject * obj0 = 0 ; | |
34912 | PyObject * obj1 = 0 ; | |
34913 | PyObject * obj2 = 0 ; | |
34914 | PyObject * obj3 = 0 ; | |
34915 | ||
34916 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34918 | { | |
34919 | arg2 = &temp2; | |
34920 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34921 | } | |
34922 | { | |
34923 | arg3 = &temp3; | |
34924 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34925 | } | |
34926 | if (obj3) { | |
34927 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34928 | } | |
34929 | { | |
34930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34931 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
34932 | ||
34933 | wxPyEndAllowThreads(__tstate); | |
34934 | if (PyErr_Occurred()) SWIG_fail; | |
34935 | } | |
34936 | resultobj = PyInt_FromLong((long)result); | |
34937 | return resultobj; | |
34938 | fail: | |
34939 | return NULL; | |
34940 | } | |
34941 | ||
34942 | ||
34943 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
34944 | int argc; | |
34945 | PyObject *argv[5]; | |
34946 | int ii; | |
34947 | ||
34948 | argc = PyObject_Length(args); | |
34949 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
34950 | argv[ii] = PyTuple_GetItem(args,ii); | |
34951 | } | |
34952 | if ((argc >= 2) && (argc <= 3)) { | |
34953 | int _v; | |
34954 | { | |
34955 | void *ptr; | |
34956 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34957 | _v = 0; | |
34958 | PyErr_Clear(); | |
34959 | } else { | |
34960 | _v = 1; | |
34961 | } | |
34962 | } | |
34963 | if (_v) { | |
34964 | { | |
34965 | void *ptr; | |
34966 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34967 | _v = 0; | |
34968 | PyErr_Clear(); | |
34969 | } else { | |
34970 | _v = 1; | |
34971 | } | |
34972 | } | |
34973 | if (_v) { | |
34974 | if (argc <= 2) { | |
34975 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34976 | } | |
34977 | { | |
34978 | void *ptr; | |
34979 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34980 | _v = 0; | |
34981 | PyErr_Clear(); | |
34982 | } else { | |
34983 | _v = 1; | |
34984 | } | |
34985 | } | |
34986 | if (_v) { | |
34987 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34988 | } | |
34989 | } | |
34990 | } | |
34991 | } | |
34992 | if ((argc >= 3) && (argc <= 4)) { | |
34993 | int _v; | |
34994 | { | |
34995 | void *ptr; | |
34996 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34997 | _v = 0; | |
34998 | PyErr_Clear(); | |
34999 | } else { | |
35000 | _v = 1; | |
35001 | } | |
35002 | } | |
35003 | if (_v) { | |
35004 | { | |
35005 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
35006 | } | |
35007 | if (_v) { | |
35008 | { | |
35009 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
35010 | } | |
35011 | if (_v) { | |
35012 | if (argc <= 3) { | |
35013 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
35014 | } | |
35015 | { | |
35016 | void *ptr; | |
35017 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
35018 | _v = 0; | |
35019 | PyErr_Clear(); | |
35020 | } else { | |
35021 | _v = 1; | |
35022 | } | |
35023 | } | |
35024 | if (_v) { | |
35025 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
35026 | } | |
35027 | } | |
35028 | } | |
35029 | } | |
35030 | } | |
35031 | ||
35032 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
35033 | return NULL; | |
35034 | } | |
35035 | ||
35036 | ||
35037 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
35038 | PyObject *obj; | |
35039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35040 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
35041 | Py_INCREF(obj); | |
35042 | return Py_BuildValue((char *)""); | |
35043 | } | |
35044 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35045 | PyObject *resultobj; | |
35046 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35047 | int arg2 ; | |
35048 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35049 | int arg4 ; | |
35050 | int arg5 = (int) 0 ; | |
35051 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
35052 | PyObject * obj0 = 0 ; | |
35053 | PyObject * obj2 = 0 ; | |
35054 | char *kwnames[] = { | |
35055 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
35056 | }; | |
35057 | ||
35058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOi|ii:IndividualLayoutConstraint_Set",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6)) goto fail; | |
35059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35060 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35061 | { | |
35062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35063 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
35064 | ||
35065 | wxPyEndAllowThreads(__tstate); | |
35066 | if (PyErr_Occurred()) SWIG_fail; | |
35067 | } | |
35068 | Py_INCREF(Py_None); resultobj = Py_None; | |
35069 | return resultobj; | |
35070 | fail: | |
35071 | return NULL; | |
35072 | } | |
35073 | ||
35074 | ||
35075 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35076 | PyObject *resultobj; | |
35077 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35078 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35079 | int arg3 = (int) 0 ; | |
35080 | PyObject * obj0 = 0 ; | |
35081 | PyObject * obj1 = 0 ; | |
35082 | char *kwnames[] = { | |
35083 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35084 | }; | |
35085 | ||
35086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35089 | { | |
35090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35091 | (arg1)->LeftOf(arg2,arg3); | |
35092 | ||
35093 | wxPyEndAllowThreads(__tstate); | |
35094 | if (PyErr_Occurred()) SWIG_fail; | |
35095 | } | |
35096 | Py_INCREF(Py_None); resultobj = Py_None; | |
35097 | return resultobj; | |
35098 | fail: | |
35099 | return NULL; | |
35100 | } | |
35101 | ||
35102 | ||
35103 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35104 | PyObject *resultobj; | |
35105 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35106 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35107 | int arg3 = (int) 0 ; | |
35108 | PyObject * obj0 = 0 ; | |
35109 | PyObject * obj1 = 0 ; | |
35110 | char *kwnames[] = { | |
35111 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35112 | }; | |
35113 | ||
35114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35116 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35117 | { | |
35118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35119 | (arg1)->RightOf(arg2,arg3); | |
35120 | ||
35121 | wxPyEndAllowThreads(__tstate); | |
35122 | if (PyErr_Occurred()) SWIG_fail; | |
35123 | } | |
35124 | Py_INCREF(Py_None); resultobj = Py_None; | |
35125 | return resultobj; | |
35126 | fail: | |
35127 | return NULL; | |
35128 | } | |
35129 | ||
35130 | ||
35131 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35132 | PyObject *resultobj; | |
35133 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35135 | int arg3 = (int) 0 ; | |
35136 | PyObject * obj0 = 0 ; | |
35137 | PyObject * obj1 = 0 ; | |
35138 | char *kwnames[] = { | |
35139 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35140 | }; | |
35141 | ||
35142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35144 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35145 | { | |
35146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35147 | (arg1)->Above(arg2,arg3); | |
35148 | ||
35149 | wxPyEndAllowThreads(__tstate); | |
35150 | if (PyErr_Occurred()) SWIG_fail; | |
35151 | } | |
35152 | Py_INCREF(Py_None); resultobj = Py_None; | |
35153 | return resultobj; | |
35154 | fail: | |
35155 | return NULL; | |
35156 | } | |
35157 | ||
35158 | ||
35159 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35160 | PyObject *resultobj; | |
35161 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35162 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35163 | int arg3 = (int) 0 ; | |
35164 | PyObject * obj0 = 0 ; | |
35165 | PyObject * obj1 = 0 ; | |
35166 | char *kwnames[] = { | |
35167 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35168 | }; | |
35169 | ||
35170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35172 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35173 | { | |
35174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35175 | (arg1)->Below(arg2,arg3); | |
35176 | ||
35177 | wxPyEndAllowThreads(__tstate); | |
35178 | if (PyErr_Occurred()) SWIG_fail; | |
35179 | } | |
35180 | Py_INCREF(Py_None); resultobj = Py_None; | |
35181 | return resultobj; | |
35182 | fail: | |
35183 | return NULL; | |
35184 | } | |
35185 | ||
35186 | ||
35187 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35188 | PyObject *resultobj; | |
35189 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35190 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35191 | int arg3 ; | |
35192 | int arg4 = (int) 0 ; | |
35193 | PyObject * obj0 = 0 ; | |
35194 | PyObject * obj1 = 0 ; | |
35195 | char *kwnames[] = { | |
35196 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
35197 | }; | |
35198 | ||
35199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
35200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35201 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35202 | { | |
35203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35204 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
35205 | ||
35206 | wxPyEndAllowThreads(__tstate); | |
35207 | if (PyErr_Occurred()) SWIG_fail; | |
35208 | } | |
35209 | Py_INCREF(Py_None); resultobj = Py_None; | |
35210 | return resultobj; | |
35211 | fail: | |
35212 | return NULL; | |
35213 | } | |
35214 | ||
35215 | ||
35216 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35217 | PyObject *resultobj; | |
35218 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35219 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35220 | int arg3 ; | |
35221 | int arg4 ; | |
35222 | PyObject * obj0 = 0 ; | |
35223 | PyObject * obj1 = 0 ; | |
35224 | char *kwnames[] = { | |
35225 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
35226 | }; | |
35227 | ||
35228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
35229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35231 | { | |
35232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35233 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
35234 | ||
35235 | wxPyEndAllowThreads(__tstate); | |
35236 | if (PyErr_Occurred()) SWIG_fail; | |
35237 | } | |
35238 | Py_INCREF(Py_None); resultobj = Py_None; | |
35239 | return resultobj; | |
35240 | fail: | |
35241 | return NULL; | |
35242 | } | |
35243 | ||
35244 | ||
35245 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35246 | PyObject *resultobj; | |
35247 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35248 | int arg2 ; | |
35249 | PyObject * obj0 = 0 ; | |
35250 | char *kwnames[] = { | |
35251 | (char *) "self",(char *) "val", NULL | |
35252 | }; | |
35253 | ||
35254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&arg2)) goto fail; | |
35255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35256 | { | |
35257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35258 | (arg1)->Absolute(arg2); | |
35259 | ||
35260 | wxPyEndAllowThreads(__tstate); | |
35261 | if (PyErr_Occurred()) SWIG_fail; | |
35262 | } | |
35263 | Py_INCREF(Py_None); resultobj = Py_None; | |
35264 | return resultobj; | |
35265 | fail: | |
35266 | return NULL; | |
35267 | } | |
35268 | ||
35269 | ||
35270 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35271 | PyObject *resultobj; | |
35272 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35273 | PyObject * obj0 = 0 ; | |
35274 | char *kwnames[] = { | |
35275 | (char *) "self", NULL | |
35276 | }; | |
35277 | ||
35278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
35279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35280 | { | |
35281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35282 | (arg1)->Unconstrained(); | |
35283 | ||
35284 | wxPyEndAllowThreads(__tstate); | |
35285 | if (PyErr_Occurred()) SWIG_fail; | |
35286 | } | |
35287 | Py_INCREF(Py_None); resultobj = Py_None; | |
35288 | return resultobj; | |
35289 | fail: | |
35290 | return NULL; | |
35291 | } | |
35292 | ||
35293 | ||
35294 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35295 | PyObject *resultobj; | |
35296 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35297 | PyObject * obj0 = 0 ; | |
35298 | char *kwnames[] = { | |
35299 | (char *) "self", NULL | |
35300 | }; | |
35301 | ||
35302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
35303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35304 | { | |
35305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35306 | (arg1)->AsIs(); | |
35307 | ||
35308 | wxPyEndAllowThreads(__tstate); | |
35309 | if (PyErr_Occurred()) SWIG_fail; | |
35310 | } | |
35311 | Py_INCREF(Py_None); resultobj = Py_None; | |
35312 | return resultobj; | |
35313 | fail: | |
35314 | return NULL; | |
35315 | } | |
35316 | ||
35317 | ||
35318 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35319 | PyObject *resultobj; | |
35320 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35321 | wxWindow *result; | |
35322 | PyObject * obj0 = 0 ; | |
35323 | char *kwnames[] = { | |
35324 | (char *) "self", NULL | |
35325 | }; | |
35326 | ||
35327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
35328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35329 | { | |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35331 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
35332 | ||
35333 | wxPyEndAllowThreads(__tstate); | |
35334 | if (PyErr_Occurred()) SWIG_fail; | |
35335 | } | |
35336 | { | |
35337 | resultobj = wxPyMake_wxObject(result); | |
35338 | } | |
35339 | return resultobj; | |
35340 | fail: | |
35341 | return NULL; | |
35342 | } | |
35343 | ||
35344 | ||
35345 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35346 | PyObject *resultobj; | |
35347 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35348 | int result; | |
35349 | PyObject * obj0 = 0 ; | |
35350 | char *kwnames[] = { | |
35351 | (char *) "self", NULL | |
35352 | }; | |
35353 | ||
35354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
35355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35356 | { | |
35357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35358 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
35359 | ||
35360 | wxPyEndAllowThreads(__tstate); | |
35361 | if (PyErr_Occurred()) SWIG_fail; | |
35362 | } | |
35363 | resultobj = PyInt_FromLong((long)result); | |
35364 | return resultobj; | |
35365 | fail: | |
35366 | return NULL; | |
35367 | } | |
35368 | ||
35369 | ||
35370 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35371 | PyObject *resultobj; | |
35372 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35373 | int arg2 ; | |
35374 | PyObject * obj0 = 0 ; | |
35375 | char *kwnames[] = { | |
35376 | (char *) "self",(char *) "which", NULL | |
35377 | }; | |
35378 | ||
35379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&arg2)) goto fail; | |
35380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35381 | { | |
35382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35383 | (arg1)->SetEdge((wxEdge )arg2); | |
35384 | ||
35385 | wxPyEndAllowThreads(__tstate); | |
35386 | if (PyErr_Occurred()) SWIG_fail; | |
35387 | } | |
35388 | Py_INCREF(Py_None); resultobj = Py_None; | |
35389 | return resultobj; | |
35390 | fail: | |
35391 | return NULL; | |
35392 | } | |
35393 | ||
35394 | ||
35395 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35396 | PyObject *resultobj; | |
35397 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35398 | int arg2 ; | |
35399 | PyObject * obj0 = 0 ; | |
35400 | char *kwnames[] = { | |
35401 | (char *) "self",(char *) "v", NULL | |
35402 | }; | |
35403 | ||
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
35405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35406 | { | |
35407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35408 | (arg1)->SetValue(arg2); | |
35409 | ||
35410 | wxPyEndAllowThreads(__tstate); | |
35411 | if (PyErr_Occurred()) SWIG_fail; | |
35412 | } | |
35413 | Py_INCREF(Py_None); resultobj = Py_None; | |
35414 | return resultobj; | |
35415 | fail: | |
35416 | return NULL; | |
35417 | } | |
35418 | ||
35419 | ||
35420 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35421 | PyObject *resultobj; | |
35422 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35423 | int result; | |
35424 | PyObject * obj0 = 0 ; | |
35425 | char *kwnames[] = { | |
35426 | (char *) "self", NULL | |
35427 | }; | |
35428 | ||
35429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
35430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35431 | { | |
35432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35433 | result = (int)(arg1)->GetMargin(); | |
35434 | ||
35435 | wxPyEndAllowThreads(__tstate); | |
35436 | if (PyErr_Occurred()) SWIG_fail; | |
35437 | } | |
35438 | resultobj = PyInt_FromLong((long)result); | |
35439 | return resultobj; | |
35440 | fail: | |
35441 | return NULL; | |
35442 | } | |
35443 | ||
35444 | ||
35445 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35446 | PyObject *resultobj; | |
35447 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35448 | int arg2 ; | |
35449 | PyObject * obj0 = 0 ; | |
35450 | char *kwnames[] = { | |
35451 | (char *) "self",(char *) "m", NULL | |
35452 | }; | |
35453 | ||
35454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&arg2)) goto fail; | |
35455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35456 | { | |
35457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35458 | (arg1)->SetMargin(arg2); | |
35459 | ||
35460 | wxPyEndAllowThreads(__tstate); | |
35461 | if (PyErr_Occurred()) SWIG_fail; | |
35462 | } | |
35463 | Py_INCREF(Py_None); resultobj = Py_None; | |
35464 | return resultobj; | |
35465 | fail: | |
35466 | return NULL; | |
35467 | } | |
35468 | ||
35469 | ||
35470 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35471 | PyObject *resultobj; | |
35472 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35473 | int result; | |
35474 | PyObject * obj0 = 0 ; | |
35475 | char *kwnames[] = { | |
35476 | (char *) "self", NULL | |
35477 | }; | |
35478 | ||
35479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
35480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35481 | { | |
35482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35483 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
35484 | ||
35485 | wxPyEndAllowThreads(__tstate); | |
35486 | if (PyErr_Occurred()) SWIG_fail; | |
35487 | } | |
35488 | resultobj = PyInt_FromLong((long)result); | |
35489 | return resultobj; | |
35490 | fail: | |
35491 | return NULL; | |
35492 | } | |
35493 | ||
35494 | ||
35495 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35496 | PyObject *resultobj; | |
35497 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35498 | int result; | |
35499 | PyObject * obj0 = 0 ; | |
35500 | char *kwnames[] = { | |
35501 | (char *) "self", NULL | |
35502 | }; | |
35503 | ||
35504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
35505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35506 | { | |
35507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35508 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
35509 | ||
35510 | wxPyEndAllowThreads(__tstate); | |
35511 | if (PyErr_Occurred()) SWIG_fail; | |
35512 | } | |
35513 | resultobj = PyInt_FromLong((long)result); | |
35514 | return resultobj; | |
35515 | fail: | |
35516 | return NULL; | |
35517 | } | |
35518 | ||
35519 | ||
35520 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35521 | PyObject *resultobj; | |
35522 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35523 | int result; | |
35524 | PyObject * obj0 = 0 ; | |
35525 | char *kwnames[] = { | |
35526 | (char *) "self", NULL | |
35527 | }; | |
35528 | ||
35529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
35530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35531 | { | |
35532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35533 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
35534 | ||
35535 | wxPyEndAllowThreads(__tstate); | |
35536 | if (PyErr_Occurred()) SWIG_fail; | |
35537 | } | |
35538 | resultobj = PyInt_FromLong((long)result); | |
35539 | return resultobj; | |
35540 | fail: | |
35541 | return NULL; | |
35542 | } | |
35543 | ||
35544 | ||
35545 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35546 | PyObject *resultobj; | |
35547 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35548 | bool result; | |
35549 | PyObject * obj0 = 0 ; | |
35550 | char *kwnames[] = { | |
35551 | (char *) "self", NULL | |
35552 | }; | |
35553 | ||
35554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
35555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35556 | { | |
35557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35558 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
35559 | ||
35560 | wxPyEndAllowThreads(__tstate); | |
35561 | if (PyErr_Occurred()) SWIG_fail; | |
35562 | } | |
35563 | resultobj = PyInt_FromLong((long)result); | |
35564 | return resultobj; | |
35565 | fail: | |
35566 | return NULL; | |
35567 | } | |
35568 | ||
35569 | ||
35570 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35571 | PyObject *resultobj; | |
35572 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35573 | bool arg2 ; | |
35574 | PyObject * obj0 = 0 ; | |
35575 | PyObject * obj1 = 0 ; | |
35576 | char *kwnames[] = { | |
35577 | (char *) "self",(char *) "d", NULL | |
35578 | }; | |
35579 | ||
35580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
35581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
35582 | { |
35583 | arg2 = (bool) SPyObj_AsBool(obj1); | |
35584 | if (PyErr_Occurred()) SWIG_fail; | |
35585 | } | |
d14a1e28 RD |
35586 | { |
35587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35588 | (arg1)->SetDone(arg2); | |
35589 | ||
35590 | wxPyEndAllowThreads(__tstate); | |
35591 | if (PyErr_Occurred()) SWIG_fail; | |
35592 | } | |
35593 | Py_INCREF(Py_None); resultobj = Py_None; | |
35594 | return resultobj; | |
35595 | fail: | |
35596 | return NULL; | |
35597 | } | |
35598 | ||
35599 | ||
35600 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35601 | PyObject *resultobj; | |
35602 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35603 | int result; | |
35604 | PyObject * obj0 = 0 ; | |
35605 | char *kwnames[] = { | |
35606 | (char *) "self", NULL | |
35607 | }; | |
35608 | ||
35609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
35610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35611 | { | |
35612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35613 | result = (int)(arg1)->GetRelationship(); | |
35614 | ||
35615 | wxPyEndAllowThreads(__tstate); | |
35616 | if (PyErr_Occurred()) SWIG_fail; | |
35617 | } | |
35618 | resultobj = PyInt_FromLong((long)result); | |
35619 | return resultobj; | |
35620 | fail: | |
35621 | return NULL; | |
35622 | } | |
35623 | ||
35624 | ||
35625 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35626 | PyObject *resultobj; | |
35627 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35628 | int arg2 ; | |
35629 | PyObject * obj0 = 0 ; | |
35630 | char *kwnames[] = { | |
35631 | (char *) "self",(char *) "r", NULL | |
35632 | }; | |
35633 | ||
35634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&arg2)) goto fail; | |
35635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35636 | { | |
35637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35638 | (arg1)->SetRelationship((wxRelationship )arg2); | |
35639 | ||
35640 | wxPyEndAllowThreads(__tstate); | |
35641 | if (PyErr_Occurred()) SWIG_fail; | |
35642 | } | |
35643 | Py_INCREF(Py_None); resultobj = Py_None; | |
35644 | return resultobj; | |
35645 | fail: | |
35646 | return NULL; | |
35647 | } | |
35648 | ||
35649 | ||
35650 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35651 | PyObject *resultobj; | |
35652 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35653 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35654 | bool result; | |
35655 | PyObject * obj0 = 0 ; | |
35656 | PyObject * obj1 = 0 ; | |
35657 | char *kwnames[] = { | |
35658 | (char *) "self",(char *) "otherW", NULL | |
35659 | }; | |
35660 | ||
35661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
35662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35663 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35664 | { | |
35665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35666 | result = (bool)(arg1)->ResetIfWin(arg2); | |
35667 | ||
35668 | wxPyEndAllowThreads(__tstate); | |
35669 | if (PyErr_Occurred()) SWIG_fail; | |
35670 | } | |
35671 | resultobj = PyInt_FromLong((long)result); | |
35672 | return resultobj; | |
35673 | fail: | |
35674 | return NULL; | |
35675 | } | |
35676 | ||
35677 | ||
35678 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35679 | PyObject *resultobj; | |
35680 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35681 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
35682 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35683 | bool result; | |
35684 | PyObject * obj0 = 0 ; | |
35685 | PyObject * obj1 = 0 ; | |
35686 | PyObject * obj2 = 0 ; | |
35687 | char *kwnames[] = { | |
35688 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
35689 | }; | |
35690 | ||
35691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35693 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35694 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35695 | { | |
35696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35697 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
35698 | ||
35699 | wxPyEndAllowThreads(__tstate); | |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
35701 | } | |
35702 | resultobj = PyInt_FromLong((long)result); | |
35703 | return resultobj; | |
35704 | fail: | |
35705 | return NULL; | |
35706 | } | |
35707 | ||
35708 | ||
35709 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35710 | PyObject *resultobj; | |
35711 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35712 | int arg2 ; | |
35713 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35714 | wxWindow *arg4 = (wxWindow *) 0 ; | |
35715 | int result; | |
35716 | PyObject * obj0 = 0 ; | |
35717 | PyObject * obj2 = 0 ; | |
35718 | PyObject * obj3 = 0 ; | |
35719 | char *kwnames[] = { | |
35720 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
35721 | }; | |
35722 | ||
35723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
35724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35725 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35726 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35727 | { | |
35728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35729 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
35730 | ||
35731 | wxPyEndAllowThreads(__tstate); | |
35732 | if (PyErr_Occurred()) SWIG_fail; | |
35733 | } | |
35734 | resultobj = PyInt_FromLong((long)result); | |
35735 | return resultobj; | |
35736 | fail: | |
35737 | return NULL; | |
35738 | } | |
35739 | ||
35740 | ||
35741 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
35742 | PyObject *obj; | |
35743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35744 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
35745 | Py_INCREF(obj); | |
35746 | return Py_BuildValue((char *)""); | |
35747 | } | |
35748 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35749 | PyObject *resultobj; | |
35750 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35751 | wxIndividualLayoutConstraint *result; | |
35752 | PyObject * obj0 = 0 ; | |
35753 | char *kwnames[] = { | |
35754 | (char *) "self", NULL | |
35755 | }; | |
35756 | ||
35757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
35758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35759 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
35760 | ||
35761 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35762 | return resultobj; | |
35763 | fail: | |
35764 | return NULL; | |
35765 | } | |
35766 | ||
35767 | ||
35768 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35769 | PyObject *resultobj; | |
35770 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35771 | wxIndividualLayoutConstraint *result; | |
35772 | PyObject * obj0 = 0 ; | |
35773 | char *kwnames[] = { | |
35774 | (char *) "self", NULL | |
35775 | }; | |
35776 | ||
35777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
35778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35779 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
35780 | ||
35781 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35782 | return resultobj; | |
35783 | fail: | |
35784 | return NULL; | |
35785 | } | |
35786 | ||
35787 | ||
35788 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35789 | PyObject *resultobj; | |
35790 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35791 | wxIndividualLayoutConstraint *result; | |
35792 | PyObject * obj0 = 0 ; | |
35793 | char *kwnames[] = { | |
35794 | (char *) "self", NULL | |
35795 | }; | |
35796 | ||
35797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
35798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35799 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
35800 | ||
35801 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35802 | return resultobj; | |
35803 | fail: | |
35804 | return NULL; | |
35805 | } | |
35806 | ||
35807 | ||
35808 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35809 | PyObject *resultobj; | |
35810 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35811 | wxIndividualLayoutConstraint *result; | |
35812 | PyObject * obj0 = 0 ; | |
35813 | char *kwnames[] = { | |
35814 | (char *) "self", NULL | |
35815 | }; | |
35816 | ||
35817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
35818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35819 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
35820 | ||
35821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35822 | return resultobj; | |
35823 | fail: | |
35824 | return NULL; | |
35825 | } | |
35826 | ||
35827 | ||
35828 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35829 | PyObject *resultobj; | |
35830 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35831 | wxIndividualLayoutConstraint *result; | |
35832 | PyObject * obj0 = 0 ; | |
35833 | char *kwnames[] = { | |
35834 | (char *) "self", NULL | |
35835 | }; | |
35836 | ||
35837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
35838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35839 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
35840 | ||
35841 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35842 | return resultobj; | |
35843 | fail: | |
35844 | return NULL; | |
35845 | } | |
35846 | ||
35847 | ||
35848 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35849 | PyObject *resultobj; | |
35850 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35851 | wxIndividualLayoutConstraint *result; | |
35852 | PyObject * obj0 = 0 ; | |
35853 | char *kwnames[] = { | |
35854 | (char *) "self", NULL | |
35855 | }; | |
35856 | ||
35857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
35858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35859 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
35860 | ||
35861 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35862 | return resultobj; | |
35863 | fail: | |
35864 | return NULL; | |
35865 | } | |
35866 | ||
35867 | ||
35868 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35869 | PyObject *resultobj; | |
35870 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35871 | wxIndividualLayoutConstraint *result; | |
35872 | PyObject * obj0 = 0 ; | |
35873 | char *kwnames[] = { | |
35874 | (char *) "self", NULL | |
35875 | }; | |
35876 | ||
35877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
35878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35879 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
35880 | ||
35881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35882 | return resultobj; | |
35883 | fail: | |
35884 | return NULL; | |
35885 | } | |
35886 | ||
35887 | ||
35888 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35889 | PyObject *resultobj; | |
35890 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35891 | wxIndividualLayoutConstraint *result; | |
35892 | PyObject * obj0 = 0 ; | |
35893 | char *kwnames[] = { | |
35894 | (char *) "self", NULL | |
35895 | }; | |
35896 | ||
35897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
35898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35899 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
35900 | ||
35901 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35902 | return resultobj; | |
35903 | fail: | |
35904 | return NULL; | |
35905 | } | |
35906 | ||
35907 | ||
35908 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35909 | PyObject *resultobj; | |
35910 | wxLayoutConstraints *result; | |
35911 | char *kwnames[] = { | |
35912 | NULL | |
35913 | }; | |
35914 | ||
35915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
35916 | { | |
35917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35918 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
35919 | ||
35920 | wxPyEndAllowThreads(__tstate); | |
35921 | if (PyErr_Occurred()) SWIG_fail; | |
35922 | } | |
35923 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
35924 | return resultobj; | |
35925 | fail: | |
35926 | return NULL; | |
35927 | } | |
35928 | ||
35929 | ||
35930 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35931 | PyObject *resultobj; | |
35932 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35933 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35934 | int *arg3 = (int *) 0 ; | |
35935 | bool result; | |
35936 | int temp3 ; | |
35937 | PyObject * obj0 = 0 ; | |
35938 | PyObject * obj1 = 0 ; | |
35939 | char *kwnames[] = { | |
35940 | (char *) "self",(char *) "win", NULL | |
35941 | }; | |
35942 | ||
35943 | arg3 = &temp3; | |
35944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
35945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35946 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35947 | { | |
35948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35949 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
35950 | ||
35951 | wxPyEndAllowThreads(__tstate); | |
35952 | if (PyErr_Occurred()) SWIG_fail; | |
35953 | } | |
35954 | resultobj = PyInt_FromLong((long)result); | |
35955 | { | |
35956 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
35957 | resultobj = t_output_helper(resultobj,o); | |
35958 | } | |
35959 | return resultobj; | |
35960 | fail: | |
35961 | return NULL; | |
35962 | } | |
35963 | ||
35964 | ||
35965 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35966 | PyObject *resultobj; | |
35967 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35968 | bool result; | |
35969 | PyObject * obj0 = 0 ; | |
35970 | char *kwnames[] = { | |
35971 | (char *) "self", NULL | |
35972 | }; | |
35973 | ||
35974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
35975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35976 | { | |
35977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35978 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
35979 | ||
35980 | wxPyEndAllowThreads(__tstate); | |
35981 | if (PyErr_Occurred()) SWIG_fail; | |
35982 | } | |
35983 | resultobj = PyInt_FromLong((long)result); | |
35984 | return resultobj; | |
35985 | fail: | |
35986 | return NULL; | |
35987 | } | |
35988 | ||
35989 | ||
35990 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
35991 | PyObject *obj; | |
35992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35993 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
35994 | Py_INCREF(obj); | |
35995 | return Py_BuildValue((char *)""); | |
35996 | } | |
35997 | static PyMethodDef SwigMethods[] = { | |
35998 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 35999 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
36000 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
36001 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36002 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
36003 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
36004 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
36005 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
36006 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
36007 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
36008 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
36009 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36010 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36011 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
36012 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
36013 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
36014 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
36015 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
36016 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36017 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36018 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36019 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 36020 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36021 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
36022 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36023 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36024 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36025 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36026 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
36027 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36028 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
36029 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
36030 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
36031 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 36032 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 36033 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36034 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
36035 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36036 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36037 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36038 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36039 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
36040 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
36041 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36042 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36043 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
36044 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
36045 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36046 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
36047 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 36048 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36049 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
36050 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
36051 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
36052 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
36053 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
36054 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36055 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
36056 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36057 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
36058 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36059 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36060 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36061 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36062 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36063 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36064 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36065 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
36066 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
36067 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
36068 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
36069 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36070 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
36071 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
36072 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
36073 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
36074 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
36075 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
36076 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
36077 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
36078 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
36079 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
36080 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
36081 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
36082 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
36083 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
36084 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36085 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36086 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36087 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
36088 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
36089 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
36090 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36091 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36092 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36093 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36094 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
36095 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
36096 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
36097 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
36098 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 36099 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36100 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
36101 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
36102 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
36103 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
36104 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
36105 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
36106 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
36107 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
36108 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
36109 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
36110 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
36111 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
36112 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
36113 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
36114 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
36115 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
36116 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36117 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
36118 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
36119 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
36120 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36121 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36122 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
36123 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36124 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36125 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36126 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 36127 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36128 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
36129 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
36130 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
36131 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
36132 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
36133 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
36134 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
36135 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
36136 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
36137 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
36138 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
36139 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
36140 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
36141 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36142 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
36143 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
36144 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
36145 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
36146 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
36147 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
36148 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
36149 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
36150 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
36151 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
36152 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36153 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
36154 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
36155 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
36156 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
36157 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
36158 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
36159 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36160 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36161 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36162 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36163 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36164 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
36165 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
36166 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
36167 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
36168 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
36169 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
36170 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
36171 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
36172 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
36173 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
36174 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36175 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36176 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36177 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
36178 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
36179 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
36180 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
36181 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
36182 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36183 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36184 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36185 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
36186 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36187 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36188 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36189 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36190 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36191 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
36192 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
36193 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36194 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
36195 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36196 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
36197 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36198 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36199 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36200 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36201 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
36202 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36203 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
36204 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
36205 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36206 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36207 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36208 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
36209 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
36210 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36211 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
36212 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
36213 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
36214 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
36215 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
36216 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
36217 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
36218 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
36219 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
36220 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
36221 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
36222 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36223 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
36224 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
36225 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36226 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
36227 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
36228 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
36229 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
36230 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
36231 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
36232 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
36233 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36234 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36235 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36236 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
36237 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
36238 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36239 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
36240 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
36241 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
36242 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
36243 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
36244 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
36245 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
36246 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
36247 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
36248 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36249 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36250 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
36251 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
36252 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
36253 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
36254 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
36255 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36256 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36257 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
36258 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
36259 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36260 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36261 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
36262 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
36263 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
36264 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
36265 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
36266 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
36267 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
36268 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
36269 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
36270 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36271 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
36272 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
36273 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
36274 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
36275 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
36276 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
36277 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
36278 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
36279 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
36280 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
36281 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
36282 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
36283 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36284 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36285 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
36286 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
36287 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
36288 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
36289 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
36290 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
36291 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
36292 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
36293 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
36294 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
36295 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
36296 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
36297 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
36298 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
36299 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
36300 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
36301 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
36302 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
36303 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
36304 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
36305 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
36306 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
36307 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
36308 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
36309 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
36310 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
36311 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
36312 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
36313 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
36314 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36315 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36316 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
36317 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
36318 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36319 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
36320 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
36321 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
36322 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
36323 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
36324 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
36325 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
36326 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
36327 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
36328 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
36329 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
36330 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
36331 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36332 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36333 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36334 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
36335 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
36336 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
36337 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
36338 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
36339 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36340 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
36341 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
36342 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
36343 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
36344 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
36345 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
36346 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
36347 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36348 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
36349 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
36350 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
36351 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36352 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
36353 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
36354 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
36355 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
36356 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
36357 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36358 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
36359 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36360 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
36361 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
36362 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
36363 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
36364 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
36365 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36366 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36367 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36368 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36369 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
36370 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
36371 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36372 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36373 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36374 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36375 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
36376 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36377 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
36378 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
36379 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
36380 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
36381 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
36382 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36383 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
36384 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
36385 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
36386 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
36387 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
36388 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
36389 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
36390 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
36391 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
36392 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
36393 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
36394 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
36395 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
36396 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
36397 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36398 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36399 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36400 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
36401 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
36402 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
36403 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
36404 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36405 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36406 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
36407 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36408 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36409 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
36410 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
36411 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
36412 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
36413 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36414 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36415 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36416 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36417 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36418 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36419 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36420 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36421 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36422 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36423 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36424 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36425 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36426 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36427 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36428 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36429 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36430 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36431 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
36432 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
36433 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
36434 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
36435 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
36436 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
36437 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
36438 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
36439 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36440 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36441 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36442 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36443 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
36444 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
36445 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36446 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
36447 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
36448 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
36449 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
36450 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
36451 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36452 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
36453 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36454 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
36455 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36456 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36457 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36458 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36459 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36460 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36461 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36462 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36463 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36464 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36465 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36466 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36467 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36468 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36469 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36470 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36471 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36472 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36473 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36474 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36475 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36476 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36477 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
36478 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
36479 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
36480 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36481 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36482 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36483 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36484 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36485 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
36486 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
36487 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
36488 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
36489 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
36490 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
36491 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36492 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36493 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36494 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36495 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
36496 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
36497 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
36498 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
36499 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
36500 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
36501 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
36502 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
36503 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
36504 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36505 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
36506 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
36507 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
36508 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36509 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36510 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
36511 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
36512 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36513 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
36514 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
36515 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
36516 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
36517 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
36518 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
36519 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
36520 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
36521 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
36522 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36523 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
36524 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36525 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
36526 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
36527 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
36528 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36529 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36530 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
36531 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
36532 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
36533 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
36534 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
36535 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
36536 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36537 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
36538 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
36539 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36540 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
36541 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36542 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
36543 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
36544 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
36545 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
36546 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36547 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36548 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36549 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
36550 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36551 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36552 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
36553 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36554 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36555 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36556 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36557 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
36558 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
36559 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36560 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36561 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
36562 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36563 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
36564 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36565 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36566 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
36567 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36568 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
36569 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36570 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36571 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36572 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
36573 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
36574 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36575 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36576 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
36577 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36578 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36579 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36580 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36581 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36582 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36583 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36584 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
36585 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
36586 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36587 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
36588 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36589 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36590 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
36591 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
36592 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36593 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36594 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
36595 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
36596 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
36597 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
36598 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36599 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36600 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
36601 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
36602 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36603 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36604 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36605 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36606 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
36607 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36608 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36609 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36610 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36611 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
36612 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36613 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36614 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36615 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36616 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36617 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36618 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36619 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36620 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36621 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
36622 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36623 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36624 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36625 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36626 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36627 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36628 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
36629 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
36630 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
36631 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36632 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
36633 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36634 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36635 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36636 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36637 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36638 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36639 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
36640 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 36641 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 36642 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36643 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
36644 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36645 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36646 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36647 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36648 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
36649 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36650 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36651 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36652 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36653 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
36654 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
36655 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
36656 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36657 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36658 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
36659 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
36660 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36661 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
36662 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
36663 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
36664 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
36665 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
36666 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
36667 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36668 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36669 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
36670 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36671 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
36672 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
36673 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36674 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36675 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
36676 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
36677 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36678 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
36679 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
36680 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
36681 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
36682 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36683 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
36684 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
36685 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36686 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36687 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36688 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36689 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36690 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36691 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36692 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36693 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
36694 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
36695 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
36696 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36697 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
36698 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36699 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36700 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
36701 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
36702 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
36703 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
36704 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36705 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36706 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36707 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36708 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36709 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36710 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36711 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36712 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36713 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36714 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
36715 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36716 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36717 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36718 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36719 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
36720 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
36721 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
36722 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36723 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36724 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36725 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36726 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
36727 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
36728 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
36729 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
36730 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
36731 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36732 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36733 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36734 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36735 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36736 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
36737 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36738 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36739 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
36740 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36741 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36742 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36743 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36744 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36745 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36746 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
36747 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
36748 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36749 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36750 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
36751 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36752 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36753 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
36754 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
36755 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
36756 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
36757 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
36758 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
36759 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36760 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36761 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36762 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36763 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36764 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
36765 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
36766 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
36767 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
36768 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
36769 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36770 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36771 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36772 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36773 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36774 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36775 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36776 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36777 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36778 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36779 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36780 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36781 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36782 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36783 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36784 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
36785 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
36786 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36787 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36788 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
36789 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
36790 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
36791 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
36792 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
36793 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
36794 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
36795 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
36796 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
36797 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
36798 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
36799 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
36800 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
36801 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36802 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
36803 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
36804 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
36805 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36806 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36807 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36808 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36809 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36810 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36811 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36812 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36813 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36814 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36815 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
36816 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
36817 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36818 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36819 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
36820 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
36821 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
36822 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
36823 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
36824 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
36825 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
36826 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36827 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
36828 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
36829 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
36830 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
36831 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36832 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36833 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36834 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36835 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
36836 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
36837 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
36838 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
36839 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
36840 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
36841 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
36842 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
36843 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
36844 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36845 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
36846 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36847 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
36848 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36849 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36850 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36851 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36852 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36853 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36854 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36855 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36856 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36857 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36858 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
36859 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36860 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36861 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36862 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
36863 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36864 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36865 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
36866 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
36867 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
36868 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36869 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
36870 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
36871 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
36872 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36873 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36874 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
36875 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
36876 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
36877 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
36878 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36879 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
36880 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
36881 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
36882 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36883 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36884 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36885 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
36886 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
36887 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
36888 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36889 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36890 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36891 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36892 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36893 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
36894 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36895 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36896 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36897 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36898 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36899 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
36900 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36901 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
36902 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36903 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
36904 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36905 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
36906 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
36907 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
36908 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
36909 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
36910 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36911 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
36912 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36913 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36914 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
36915 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36916 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36917 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36918 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36919 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36920 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36921 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36922 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36923 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36924 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36925 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36926 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
36927 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
36928 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36929 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36930 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36931 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36932 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
36933 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36934 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
36935 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36936 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
36937 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36938 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
36939 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36940 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36941 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36942 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
36943 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
36944 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36945 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36946 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36947 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36948 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
36949 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36950 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
36951 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36952 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36953 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36954 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36955 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36956 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36957 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
36958 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36959 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36960 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36961 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
36962 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36963 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36964 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36965 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36966 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36967 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36968 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36969 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36970 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36971 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
36972 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
36973 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36974 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36975 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36976 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36977 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36978 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36979 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36980 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
36981 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36982 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
36983 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36984 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36985 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36986 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36987 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36988 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36989 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36990 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
36991 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
36992 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
36993 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
36994 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
36995 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36996 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36997 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
36998 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
36999 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
37000 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
37001 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
37002 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
37003 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
37004 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
37005 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
37006 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
37007 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
37008 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
37009 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
37010 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
37011 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
37012 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
37013 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
37014 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
37015 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
37016 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
37017 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37018 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
37019 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
37020 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
37021 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
37022 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
37023 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37024 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
37025 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37026 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
37027 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
37028 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
37029 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
37030 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
37031 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
37032 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
37033 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37034 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
37035 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
37036 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
37037 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
37038 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
37039 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
37040 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
37041 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
37042 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
37043 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
37044 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37045 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37046 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
37047 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
37048 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
37049 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
37050 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
37051 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
37052 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
37053 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
37054 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
37055 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
37056 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37057 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
37058 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
37059 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
37060 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
37061 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37062 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
37063 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
37064 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37065 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37066 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37067 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
37068 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
37069 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
37070 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
37071 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
37072 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
37073 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
37074 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
37075 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
37076 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
37077 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
37078 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
37079 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
37080 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
37081 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
37082 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
37083 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
37084 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
37085 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
37086 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37087 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37088 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
37089 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
37090 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
37091 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37092 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37093 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
37094 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
37095 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37096 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37097 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
37098 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
37099 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
37100 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
37101 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
37102 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
37103 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
37104 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
37105 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
37106 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
37107 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37108 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37109 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
37110 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
37111 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
37112 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
37113 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
37114 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
37115 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
37116 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
37117 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
37118 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37119 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
37120 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
37121 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
37122 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
37123 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
37124 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
37125 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
37126 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
37127 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
37128 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37129 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
37130 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
37131 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
37132 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
37133 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
37134 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
37135 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
37136 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
37137 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
37138 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37139 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
37140 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
37141 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
37142 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
37143 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37144 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
37145 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
37146 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
37147 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
37148 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
37149 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
37150 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
37151 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
37152 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
37153 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
37154 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
37155 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
37156 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
37157 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
37158 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
37159 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
37160 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
37161 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
37162 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
37163 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 37164 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
37165 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
37166 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37167 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37168 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
37169 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
37170 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
37171 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
37172 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
37173 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
37174 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
37175 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
37176 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
37177 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
37178 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
37179 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
37180 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
37181 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
37182 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
37183 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
37184 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
37185 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
37186 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
37187 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
37188 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
37189 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
37190 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
37191 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
37192 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
37193 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
37194 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
37195 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
37196 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
37197 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
37198 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
37199 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
37200 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
37201 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
37202 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
37203 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
37204 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
37205 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
37206 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
37207 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
37208 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
37209 | { NULL, NULL } | |
37210 | }; | |
37211 | ||
37212 | ||
37213 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
37214 | ||
37215 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
37216 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
37217 | } | |
37218 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
37219 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
37220 | } | |
37221 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
37222 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37223 | } | |
37224 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
37225 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37226 | } | |
37227 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
37228 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
37229 | } | |
37230 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
37231 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37232 | } | |
37233 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
37234 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
37235 | } | |
37236 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
37237 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37238 | } | |
37239 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
37240 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37241 | } | |
37242 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
37243 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
37244 | } | |
37245 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
37246 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
37247 | } | |
37248 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
37249 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
37250 | } | |
37251 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
37252 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
37253 | } | |
37254 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
37255 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
37256 | } | |
37257 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
37258 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
37259 | } | |
37260 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
37261 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
37262 | } | |
37263 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
37264 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
37265 | } | |
37266 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
37267 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37268 | } | |
37269 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
37270 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
37271 | } | |
37272 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
37273 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37274 | } | |
37275 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
37276 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37277 | } | |
37278 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
37279 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
37280 | } | |
37281 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
37282 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
37283 | } | |
37284 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
37285 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
37286 | } | |
37287 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
37288 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
37289 | } | |
37290 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
37291 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
37292 | } | |
37293 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
37294 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
37295 | } | |
37296 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
37297 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
37298 | } | |
37299 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
37300 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37301 | } | |
37302 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
37303 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37304 | } | |
37305 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
37306 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37307 | } | |
37308 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
37309 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37310 | } | |
37311 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
37312 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37313 | } | |
37314 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
37315 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
37316 | } | |
37317 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
37318 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
37319 | } | |
37320 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
37321 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37322 | } | |
37323 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
37324 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
37325 | } | |
37326 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
37327 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
37328 | } | |
37329 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
37330 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37331 | } | |
37332 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
37333 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37334 | } | |
37335 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
37336 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37337 | } | |
37338 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
37339 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
37340 | } | |
37341 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
37342 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
37343 | } | |
37344 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
37345 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37346 | } | |
37347 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
37348 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37349 | } | |
37350 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
37351 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37352 | } | |
37353 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
37354 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
37355 | } | |
37356 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
37357 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
37358 | } | |
37359 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
37360 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
37361 | } | |
37362 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
37363 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
37364 | } | |
37365 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
37366 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37367 | } | |
37368 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
37369 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
37370 | } | |
37371 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
37372 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
37373 | } | |
37374 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
37375 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
37376 | } | |
37377 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
37378 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
37379 | } | |
37380 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
37381 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
37382 | } | |
37383 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
37384 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
37385 | } | |
37386 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
37387 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
37388 | } | |
37389 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
37390 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
37391 | } | |
37392 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
37393 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
37394 | } | |
37395 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
37396 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
37397 | } | |
37398 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
37399 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37400 | } | |
37401 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
37402 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
37403 | } | |
37404 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
37405 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
37406 | } | |
37407 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
37408 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37409 | } | |
37410 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
37411 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37412 | } | |
37413 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
37414 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
37415 | } | |
37416 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
37417 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
37418 | } | |
37419 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
37420 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
37421 | } | |
37422 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
37423 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
37424 | } | |
37425 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
37426 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
37427 | } | |
37428 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
37429 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
37430 | } | |
37431 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
37432 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
37433 | } | |
37434 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
37435 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
37436 | } | |
37437 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37438 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
37439 | } | |
37440 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37441 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
37442 | } | |
37443 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37444 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
37445 | } | |
37446 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
37447 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
37448 | } | |
37449 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
37450 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
37451 | } | |
37452 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
37453 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37454 | } | |
37455 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
37456 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
37457 | } | |
37458 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
37459 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
37460 | } | |
37461 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
37462 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
37463 | } | |
37464 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
37465 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
37466 | } | |
37467 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
37468 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
37469 | } | |
37470 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
37471 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
37472 | } | |
37473 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
37474 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
37475 | } | |
37476 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
37477 | return (void *)((wxObject *) ((wxSizer *) x)); | |
37478 | } | |
37479 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
37480 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
37481 | } | |
37482 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
37483 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37484 | } | |
37485 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
37486 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
37487 | } | |
37488 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
37489 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
37490 | } | |
37491 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
37492 | return (void *)((wxObject *) ((wxImage *) x)); | |
37493 | } | |
37494 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
37495 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
37496 | } | |
37497 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
37498 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37499 | } | |
37500 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
37501 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
37502 | } | |
37503 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
37504 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
37505 | } | |
37506 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
37507 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
37508 | } | |
1e0c8722 RD |
37509 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
37510 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
37511 | } | |
d14a1e28 RD |
37512 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
37513 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
37514 | } | |
37515 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
37516 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37517 | } | |
37518 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
37519 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
37520 | } | |
37521 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
37522 | return (void *)((wxObject *) ((wxEvent *) x)); | |
37523 | } | |
37524 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
37525 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
37526 | } | |
37527 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
37528 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
37529 | } | |
37530 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
37531 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
37532 | } | |
37533 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
37534 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
37535 | } | |
37536 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
37537 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
37538 | } | |
37539 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
37540 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37541 | } | |
37542 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
37543 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37544 | } | |
37545 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
37546 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
37547 | } | |
37548 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
37549 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37550 | } | |
37551 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
37552 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
37553 | } | |
37554 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
37555 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
37556 | } | |
37557 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
37558 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
37559 | } | |
37560 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
37561 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
37562 | } | |
37563 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
37564 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
37565 | } | |
37566 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
37567 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37568 | } | |
37569 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
37570 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37571 | } | |
37572 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
37573 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
37574 | } | |
37575 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
37576 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
37577 | } | |
37578 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
37579 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
37580 | } | |
37581 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
37582 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
37583 | } | |
37584 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
37585 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
37586 | } | |
37587 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
37588 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
37589 | } | |
37590 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
37591 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
37592 | } | |
37593 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
37594 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
37595 | } | |
37596 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
37597 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37598 | } | |
37599 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
37600 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37601 | } | |
37602 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
37603 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37604 | } | |
37605 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
37606 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37607 | } | |
37608 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
37609 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37610 | } | |
37611 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
37612 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
37613 | } | |
37614 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
37615 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
37616 | } | |
37617 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
37618 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37619 | } | |
37620 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
37621 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
37622 | } | |
37623 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
37624 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
37625 | } | |
37626 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
37627 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
37628 | } | |
37629 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
37630 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
37631 | } | |
37632 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
37633 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
37634 | } | |
37635 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
37636 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
37637 | } | |
37638 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
37639 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
37640 | } | |
37641 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
37642 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37643 | } | |
37644 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
37645 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
37646 | } | |
37647 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
37648 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37649 | } | |
37650 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
37651 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37652 | } | |
37653 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
37654 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37655 | } | |
37656 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
37657 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
37658 | } | |
37659 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
37660 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
37661 | } | |
37662 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
37663 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
37664 | } | |
37665 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
37666 | return (void *)((wxWindow *) ((wxControl *) x)); | |
37667 | } | |
37668 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
37669 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
37670 | } | |
37671 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
37672 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
37673 | } | |
37674 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
37675 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37676 | } | |
37677 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
37678 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
37679 | } | |
37680 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
37681 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37682 | } | |
37683 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
37684 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37685 | } | |
37686 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
37687 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37688 | } | |
37689 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
37690 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37691 | } | |
37692 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
37693 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37694 | } | |
37695 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
37696 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37697 | } | |
37698 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
37699 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
37700 | } | |
37701 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
37702 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
37703 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
37704 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
37705 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
37706 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
37707 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}}; | |
37708 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
37709 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
37710 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
37711 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
37712 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
37713 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
37714 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
37715 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}}; | |
37716 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
37717 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
37718 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
37719 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
37720 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
37721 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
37722 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
37723 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
37724 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
37725 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
37726 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
37727 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
37728 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
37729 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
37730 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
37731 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
37732 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
37733 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
37734 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
37735 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
37736 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
37737 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
37738 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
37739 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
37740 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
37741 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
37742 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
37743 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
37744 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; | |
37745 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; | |
37746 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
37747 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
37748 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
37749 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
37750 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
37751 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
37752 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
37753 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
37754 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
37755 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
37756 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
37757 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
37758 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
37759 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
37760 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
37761 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
37762 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
37763 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
37764 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; | |
37765 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
37766 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}}; | |
37767 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}}; | |
37768 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}}; | |
37769 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}}; | |
37770 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
37771 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
37772 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; | |
37773 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
37774 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
37775 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
37776 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
37777 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; | |
37778 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
37779 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
37780 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
37781 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
37782 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37783 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
37784 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
1e0c8722 | 37785 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_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_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_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_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
37786 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
37787 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
37788 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
37789 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
37790 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
37791 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
37792 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
37793 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
37794 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
37795 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
37796 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; | |
37797 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
37798 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
37799 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
37800 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37801 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
37802 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
37803 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
37804 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
37805 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}}; | |
37806 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
7722248d | 37807 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
37808 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
37809 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
37810 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
37811 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
37812 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
37813 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
37814 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
37815 | ||
37816 | static swig_type_info *swig_types_initial[] = { | |
37817 | _swigt__p_wxLayoutConstraints, | |
37818 | _swigt__p_wxRealPoint, | |
37819 | _swigt__p_wxSizerItem, | |
37820 | _swigt__p_wxGBSizerItem, | |
37821 | _swigt__p_wxScrollEvent, | |
37822 | _swigt__p_wxIndividualLayoutConstraint, | |
37823 | _swigt__p_wxSizer, | |
37824 | _swigt__p_wxBoxSizer, | |
37825 | _swigt__p_wxStaticBoxSizer, | |
37826 | _swigt__p_wxGridBagSizer, | |
37827 | _swigt__p_wxAcceleratorEntry, | |
37828 | _swigt__p_wxUpdateUIEvent, | |
37829 | _swigt__p_wxMenu, | |
37830 | _swigt__p_wxEvent, | |
37831 | _swigt__p_wxGridSizer, | |
37832 | _swigt__p_wxFlexGridSizer, | |
37833 | _swigt__p_wxInitDialogEvent, | |
37834 | _swigt__p_wxItemContainer, | |
37835 | _swigt__p_wxNcPaintEvent, | |
37836 | _swigt__p_wxPaintEvent, | |
37837 | _swigt__p_wxSysColourChangedEvent, | |
37838 | _swigt__p_wxMouseCaptureChangedEvent, | |
37839 | _swigt__p_wxDisplayChangedEvent, | |
37840 | _swigt__p_wxPaletteChangedEvent, | |
37841 | _swigt__p_wxControl, | |
37842 | _swigt__p_wxFont, | |
37843 | _swigt__p_wxMenuBarBase, | |
37844 | _swigt__p_wxSetCursorEvent, | |
37845 | _swigt__p_wxFSFile, | |
37846 | _swigt__p_wxCaret, | |
37847 | _swigt__p_wxRegion, | |
37848 | _swigt__p_wxPoint2D, | |
37849 | _swigt__p_int, | |
37850 | _swigt__p_wxSize, | |
37851 | _swigt__p_wxDC, | |
37852 | _swigt__p_wxPySizer, | |
37853 | _swigt__p_wxNotifyEvent, | |
37854 | _swigt__p_wxPyEvent, | |
37855 | _swigt__p_wxPropagationDisabler, | |
37856 | _swigt__p_wxAppTraits, | |
37857 | _swigt__p_wxArrayString, | |
37858 | _swigt__p_wxShowEvent, | |
37859 | _swigt__p_wxToolTip, | |
37860 | _swigt__p_wxMaximizeEvent, | |
37861 | _swigt__p_wxIconizeEvent, | |
37862 | _swigt__p_wxActivateEvent, | |
37863 | _swigt__p_wxMoveEvent, | |
37864 | _swigt__p_wxSizeEvent, | |
37865 | _swigt__p_wxQueryNewPaletteEvent, | |
37866 | _swigt__p_wxWindowCreateEvent, | |
37867 | _swigt__p_wxIdleEvent, | |
37868 | _swigt__p_wxMenuItem, | |
37869 | _swigt__p_wxStaticBox, | |
37870 | _swigt__p_long, | |
37871 | _swigt__p_wxTIFFHandler, | |
37872 | _swigt__p_wxXPMHandler, | |
37873 | _swigt__p_wxPNMHandler, | |
37874 | _swigt__p_wxJPEGHandler, | |
37875 | _swigt__p_wxPCXHandler, | |
37876 | _swigt__p_wxGIFHandler, | |
37877 | _swigt__p_wxPNGHandler, | |
37878 | _swigt__p_wxANIHandler, | |
37879 | _swigt__p_wxMemoryFSHandler, | |
37880 | _swigt__p_wxEvtHandler, | |
37881 | _swigt__p_wxCURHandler, | |
37882 | _swigt__p_wxICOHandler, | |
37883 | _swigt__p_wxBMPHandler, | |
37884 | _swigt__p_wxImageHandler, | |
37885 | _swigt__p_wxFileSystemHandler, | |
37886 | _swigt__p_wxPyFileSystemHandler, | |
37887 | _swigt__p_wxInternetFSHandler, | |
37888 | _swigt__p_wxZipFSHandler, | |
37889 | _swigt__p_wxRect, | |
37890 | _swigt__p_wxGBSpan, | |
37891 | _swigt__p_wxPropagateOnce, | |
37892 | _swigt__p_wxAcceleratorTable, | |
37893 | _swigt__p_wxGBPosition, | |
37894 | _swigt__p_wxImage, | |
37895 | _swigt__p_wxFrame, | |
37896 | _swigt__p_wxScrollWinEvent, | |
37897 | _swigt__p_wxImageHistogram, | |
37898 | _swigt__p_byte, | |
37899 | _swigt__p_wxPoint, | |
37900 | _swigt__p_wxCursor, | |
37901 | _swigt__p_wxObject, | |
37902 | _swigt__p_wxPyInputStream, | |
37903 | _swigt__p_wxOutputStream, | |
37904 | _swigt__p_wxInputStream, | |
37905 | _swigt__p_wxDateTime, | |
37906 | _swigt__p_wxKeyEvent, | |
37907 | _swigt__p_wxNavigationKeyEvent, | |
37908 | _swigt__p_wxWindowDestroyEvent, | |
37909 | _swigt__p_wxWindow, | |
37910 | _swigt__p_wxMenuBar, | |
37911 | _swigt__p_wxString, | |
37912 | _swigt__p_wxFileSystem, | |
37913 | _swigt__p_wxBitmap, | |
37914 | _swigt__p_wxMenuEvent, | |
37915 | _swigt__p_wxContextMenuEvent, | |
37916 | _swigt__p_unsigned_char, | |
37917 | _swigt__p_wxCloseEvent, | |
37918 | _swigt__p_wxEraseEvent, | |
37919 | _swigt__p_wxMouseEvent, | |
37920 | _swigt__p_wxPyApp, | |
37921 | _swigt__p_wxCommandEvent, | |
37922 | _swigt__p_wxPyCommandEvent, | |
7722248d | 37923 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
37924 | _swigt__p_wxChildFocusEvent, |
37925 | _swigt__p_wxFocusEvent, | |
37926 | _swigt__p_wxDropFilesEvent, | |
37927 | _swigt__p_wxControlWithItems, | |
37928 | _swigt__p_wxColour, | |
37929 | _swigt__p_wxValidator, | |
37930 | _swigt__p_wxPyValidator, | |
37931 | 0 | |
37932 | }; | |
37933 | ||
37934 | ||
37935 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37936 | ||
37937 | static swig_const_info swig_const_table[] = { | |
37938 | { SWIG_PY_INT, (char *)"NOT_FOUND", (long) wxNOT_FOUND, 0, 0, 0}, | |
37939 | { SWIG_PY_INT, (char *)"VSCROLL", (long) wxVSCROLL, 0, 0, 0}, | |
37940 | { SWIG_PY_INT, (char *)"HSCROLL", (long) wxHSCROLL, 0, 0, 0}, | |
37941 | { SWIG_PY_INT, (char *)"CAPTION", (long) wxCAPTION, 0, 0, 0}, | |
37942 | { SWIG_PY_INT, (char *)"DOUBLE_BORDER", (long) wxDOUBLE_BORDER, 0, 0, 0}, | |
37943 | { SWIG_PY_INT, (char *)"SUNKEN_BORDER", (long) wxSUNKEN_BORDER, 0, 0, 0}, | |
37944 | { SWIG_PY_INT, (char *)"RAISED_BORDER", (long) wxRAISED_BORDER, 0, 0, 0}, | |
37945 | { SWIG_PY_INT, (char *)"BORDER", (long) wxBORDER, 0, 0, 0}, | |
37946 | { SWIG_PY_INT, (char *)"SIMPLE_BORDER", (long) wxSIMPLE_BORDER, 0, 0, 0}, | |
37947 | { SWIG_PY_INT, (char *)"STATIC_BORDER", (long) wxSTATIC_BORDER, 0, 0, 0}, | |
37948 | { SWIG_PY_INT, (char *)"TRANSPARENT_WINDOW", (long) wxTRANSPARENT_WINDOW, 0, 0, 0}, | |
37949 | { SWIG_PY_INT, (char *)"NO_BORDER", (long) wxNO_BORDER, 0, 0, 0}, | |
37950 | { SWIG_PY_INT, (char *)"USER_COLOURS", (long) wxUSER_COLOURS, 0, 0, 0}, | |
37951 | { SWIG_PY_INT, (char *)"NO_3D", (long) wxNO_3D, 0, 0, 0}, | |
37952 | { SWIG_PY_INT, (char *)"TAB_TRAVERSAL", (long) wxTAB_TRAVERSAL, 0, 0, 0}, | |
37953 | { SWIG_PY_INT, (char *)"WANTS_CHARS", (long) wxWANTS_CHARS, 0, 0, 0}, | |
37954 | { SWIG_PY_INT, (char *)"POPUP_WINDOW", (long) wxPOPUP_WINDOW, 0, 0, 0}, | |
37955 | { SWIG_PY_INT, (char *)"CENTER_FRAME", (long) wxCENTER_FRAME, 0, 0, 0}, | |
37956 | { SWIG_PY_INT, (char *)"CENTRE_ON_SCREEN", (long) wxCENTRE_ON_SCREEN, 0, 0, 0}, | |
37957 | { SWIG_PY_INT, (char *)"CENTER_ON_SCREEN", (long) wxCENTER_ON_SCREEN, 0, 0, 0}, | |
37958 | { SWIG_PY_INT, (char *)"STAY_ON_TOP", (long) wxSTAY_ON_TOP, 0, 0, 0}, | |
37959 | { SWIG_PY_INT, (char *)"ICONIZE", (long) wxICONIZE, 0, 0, 0}, | |
37960 | { SWIG_PY_INT, (char *)"MINIMIZE", (long) wxMINIMIZE, 0, 0, 0}, | |
37961 | { SWIG_PY_INT, (char *)"MAXIMIZE", (long) wxMAXIMIZE, 0, 0, 0}, | |
37962 | { SWIG_PY_INT, (char *)"CLOSE_BOX", (long) wxCLOSE_BOX, 0, 0, 0}, | |
37963 | { SWIG_PY_INT, (char *)"THICK_FRAME", (long) wxTHICK_FRAME, 0, 0, 0}, | |
37964 | { SWIG_PY_INT, (char *)"SYSTEM_MENU", (long) wxSYSTEM_MENU, 0, 0, 0}, | |
37965 | { SWIG_PY_INT, (char *)"MINIMIZE_BOX", (long) wxMINIMIZE_BOX, 0, 0, 0}, | |
37966 | { SWIG_PY_INT, (char *)"MAXIMIZE_BOX", (long) wxMAXIMIZE_BOX, 0, 0, 0}, | |
37967 | { SWIG_PY_INT, (char *)"TINY_CAPTION_HORIZ", (long) wxTINY_CAPTION_HORIZ, 0, 0, 0}, | |
37968 | { SWIG_PY_INT, (char *)"TINY_CAPTION_VERT", (long) wxTINY_CAPTION_VERT, 0, 0, 0}, | |
37969 | { SWIG_PY_INT, (char *)"RESIZE_BOX", (long) wxRESIZE_BOX, 0, 0, 0}, | |
37970 | { SWIG_PY_INT, (char *)"RESIZE_BORDER", (long) wxRESIZE_BORDER, 0, 0, 0}, | |
37971 | { SWIG_PY_INT, (char *)"DIALOG_MODAL", (long) wxDIALOG_MODAL, 0, 0, 0}, | |
37972 | { SWIG_PY_INT, (char *)"DIALOG_MODELESS", (long) wxDIALOG_MODELESS, 0, 0, 0}, | |
37973 | { SWIG_PY_INT, (char *)"DIALOG_NO_PARENT", (long) wxDIALOG_NO_PARENT, 0, 0, 0}, | |
37974 | { SWIG_PY_INT, (char *)"DEFAULT_FRAME_STYLE", (long) wxDEFAULT_FRAME_STYLE, 0, 0, 0}, | |
37975 | { SWIG_PY_INT, (char *)"DEFAULT_DIALOG_STYLE", (long) wxDEFAULT_DIALOG_STYLE, 0, 0, 0}, | |
37976 | { SWIG_PY_INT, (char *)"FRAME_TOOL_WINDOW", (long) wxFRAME_TOOL_WINDOW, 0, 0, 0}, | |
37977 | { SWIG_PY_INT, (char *)"FRAME_FLOAT_ON_PARENT", (long) wxFRAME_FLOAT_ON_PARENT, 0, 0, 0}, | |
37978 | { SWIG_PY_INT, (char *)"FRAME_NO_WINDOW_MENU", (long) wxFRAME_NO_WINDOW_MENU, 0, 0, 0}, | |
37979 | { SWIG_PY_INT, (char *)"FRAME_NO_TASKBAR", (long) wxFRAME_NO_TASKBAR, 0, 0, 0}, | |
37980 | { SWIG_PY_INT, (char *)"FRAME_SHAPED", (long) wxFRAME_SHAPED, 0, 0, 0}, | |
37981 | { SWIG_PY_INT, (char *)"ED_CLIENT_MARGIN", (long) wxED_CLIENT_MARGIN, 0, 0, 0}, | |
37982 | { SWIG_PY_INT, (char *)"ED_BUTTONS_BOTTOM", (long) wxED_BUTTONS_BOTTOM, 0, 0, 0}, | |
37983 | { SWIG_PY_INT, (char *)"ED_BUTTONS_RIGHT", (long) wxED_BUTTONS_RIGHT, 0, 0, 0}, | |
37984 | { SWIG_PY_INT, (char *)"ED_STATIC_LINE", (long) wxED_STATIC_LINE, 0, 0, 0}, | |
37985 | { SWIG_PY_INT, (char *)"EXT_DIALOG_STYLE", (long) wxEXT_DIALOG_STYLE, 0, 0, 0}, | |
37986 | { SWIG_PY_INT, (char *)"CLIP_CHILDREN", (long) wxCLIP_CHILDREN, 0, 0, 0}, | |
37987 | { SWIG_PY_INT, (char *)"CLIP_SIBLINGS", (long) wxCLIP_SIBLINGS, 0, 0, 0}, | |
37988 | { SWIG_PY_INT, (char *)"RETAINED", (long) wxRETAINED, 0, 0, 0}, | |
37989 | { SWIG_PY_INT, (char *)"BACKINGSTORE", (long) wxBACKINGSTORE, 0, 0, 0}, | |
37990 | { SWIG_PY_INT, (char *)"COLOURED", (long) wxCOLOURED, 0, 0, 0}, | |
37991 | { SWIG_PY_INT, (char *)"FIXED_LENGTH", (long) wxFIXED_LENGTH, 0, 0, 0}, | |
37992 | { SWIG_PY_INT, (char *)"LB_NEEDED_SB", (long) wxLB_NEEDED_SB, 0, 0, 0}, | |
37993 | { SWIG_PY_INT, (char *)"LB_ALWAYS_SB", (long) wxLB_ALWAYS_SB, 0, 0, 0}, | |
37994 | { SWIG_PY_INT, (char *)"LB_SORT", (long) wxLB_SORT, 0, 0, 0}, | |
37995 | { SWIG_PY_INT, (char *)"LB_SINGLE", (long) wxLB_SINGLE, 0, 0, 0}, | |
37996 | { SWIG_PY_INT, (char *)"LB_MULTIPLE", (long) wxLB_MULTIPLE, 0, 0, 0}, | |
37997 | { SWIG_PY_INT, (char *)"LB_EXTENDED", (long) wxLB_EXTENDED, 0, 0, 0}, | |
37998 | { SWIG_PY_INT, (char *)"LB_OWNERDRAW", (long) wxLB_OWNERDRAW, 0, 0, 0}, | |
37999 | { SWIG_PY_INT, (char *)"LB_HSCROLL", (long) wxLB_HSCROLL, 0, 0, 0}, | |
38000 | { SWIG_PY_INT, (char *)"PROCESS_ENTER", (long) wxPROCESS_ENTER, 0, 0, 0}, | |
38001 | { SWIG_PY_INT, (char *)"PASSWORD", (long) wxPASSWORD, 0, 0, 0}, | |
38002 | { SWIG_PY_INT, (char *)"CB_SIMPLE", (long) wxCB_SIMPLE, 0, 0, 0}, | |
38003 | { SWIG_PY_INT, (char *)"CB_DROPDOWN", (long) wxCB_DROPDOWN, 0, 0, 0}, | |
38004 | { SWIG_PY_INT, (char *)"CB_SORT", (long) wxCB_SORT, 0, 0, 0}, | |
38005 | { SWIG_PY_INT, (char *)"CB_READONLY", (long) wxCB_READONLY, 0, 0, 0}, | |
38006 | { SWIG_PY_INT, (char *)"RA_HORIZONTAL", (long) wxRA_HORIZONTAL, 0, 0, 0}, | |
38007 | { SWIG_PY_INT, (char *)"RA_VERTICAL", (long) wxRA_VERTICAL, 0, 0, 0}, | |
38008 | { SWIG_PY_INT, (char *)"RA_SPECIFY_ROWS", (long) wxRA_SPECIFY_ROWS, 0, 0, 0}, | |
38009 | { SWIG_PY_INT, (char *)"RA_SPECIFY_COLS", (long) wxRA_SPECIFY_COLS, 0, 0, 0}, | |
38010 | { SWIG_PY_INT, (char *)"RB_GROUP", (long) wxRB_GROUP, 0, 0, 0}, | |
38011 | { SWIG_PY_INT, (char *)"RB_SINGLE", (long) wxRB_SINGLE, 0, 0, 0}, | |
38012 | { SWIG_PY_INT, (char *)"SL_HORIZONTAL", (long) wxSL_HORIZONTAL, 0, 0, 0}, | |
38013 | { SWIG_PY_INT, (char *)"SL_VERTICAL", (long) wxSL_VERTICAL, 0, 0, 0}, | |
38014 | { SWIG_PY_INT, (char *)"SL_AUTOTICKS", (long) wxSL_AUTOTICKS, 0, 0, 0}, | |
38015 | { SWIG_PY_INT, (char *)"SL_LABELS", (long) wxSL_LABELS, 0, 0, 0}, | |
38016 | { SWIG_PY_INT, (char *)"SL_LEFT", (long) wxSL_LEFT, 0, 0, 0}, | |
38017 | { SWIG_PY_INT, (char *)"SL_TOP", (long) wxSL_TOP, 0, 0, 0}, | |
38018 | { SWIG_PY_INT, (char *)"SL_RIGHT", (long) wxSL_RIGHT, 0, 0, 0}, | |
38019 | { SWIG_PY_INT, (char *)"SL_BOTTOM", (long) wxSL_BOTTOM, 0, 0, 0}, | |
38020 | { SWIG_PY_INT, (char *)"SL_BOTH", (long) wxSL_BOTH, 0, 0, 0}, | |
38021 | { SWIG_PY_INT, (char *)"SL_SELRANGE", (long) wxSL_SELRANGE, 0, 0, 0}, | |
38022 | { SWIG_PY_INT, (char *)"SB_HORIZONTAL", (long) wxSB_HORIZONTAL, 0, 0, 0}, | |
38023 | { SWIG_PY_INT, (char *)"SB_VERTICAL", (long) wxSB_VERTICAL, 0, 0, 0}, | |
38024 | { SWIG_PY_INT, (char *)"ST_SIZEGRIP", (long) wxST_SIZEGRIP, 0, 0, 0}, | |
38025 | { SWIG_PY_INT, (char *)"ST_NO_AUTORESIZE", (long) wxST_NO_AUTORESIZE, 0, 0, 0}, | |
38026 | { SWIG_PY_INT, (char *)"FLOOD_SURFACE", (long) wxFLOOD_SURFACE, 0, 0, 0}, | |
38027 | { SWIG_PY_INT, (char *)"FLOOD_BORDER", (long) wxFLOOD_BORDER, 0, 0, 0}, | |
38028 | { SWIG_PY_INT, (char *)"ODDEVEN_RULE", (long) wxODDEVEN_RULE, 0, 0, 0}, | |
38029 | { SWIG_PY_INT, (char *)"WINDING_RULE", (long) wxWINDING_RULE, 0, 0, 0}, | |
38030 | { SWIG_PY_INT, (char *)"TOOL_TOP", (long) wxTOOL_TOP, 0, 0, 0}, | |
38031 | { SWIG_PY_INT, (char *)"TOOL_BOTTOM", (long) wxTOOL_BOTTOM, 0, 0, 0}, | |
38032 | { SWIG_PY_INT, (char *)"TOOL_LEFT", (long) wxTOOL_LEFT, 0, 0, 0}, | |
38033 | { SWIG_PY_INT, (char *)"TOOL_RIGHT", (long) wxTOOL_RIGHT, 0, 0, 0}, | |
38034 | { SWIG_PY_INT, (char *)"OK", (long) wxOK, 0, 0, 0}, | |
38035 | { SWIG_PY_INT, (char *)"YES_NO", (long) wxYES_NO, 0, 0, 0}, | |
38036 | { SWIG_PY_INT, (char *)"CANCEL", (long) wxCANCEL, 0, 0, 0}, | |
38037 | { SWIG_PY_INT, (char *)"YES", (long) wxYES, 0, 0, 0}, | |
38038 | { SWIG_PY_INT, (char *)"NO", (long) wxNO, 0, 0, 0}, | |
38039 | { SWIG_PY_INT, (char *)"NO_DEFAULT", (long) wxNO_DEFAULT, 0, 0, 0}, | |
38040 | { SWIG_PY_INT, (char *)"YES_DEFAULT", (long) wxYES_DEFAULT, 0, 0, 0}, | |
38041 | { SWIG_PY_INT, (char *)"ICON_EXCLAMATION", (long) wxICON_EXCLAMATION, 0, 0, 0}, | |
38042 | { SWIG_PY_INT, (char *)"ICON_HAND", (long) wxICON_HAND, 0, 0, 0}, | |
38043 | { SWIG_PY_INT, (char *)"ICON_QUESTION", (long) wxICON_QUESTION, 0, 0, 0}, | |
38044 | { SWIG_PY_INT, (char *)"ICON_INFORMATION", (long) wxICON_INFORMATION, 0, 0, 0}, | |
38045 | { SWIG_PY_INT, (char *)"ICON_STOP", (long) wxICON_STOP, 0, 0, 0}, | |
38046 | { SWIG_PY_INT, (char *)"ICON_ASTERISK", (long) wxICON_ASTERISK, 0, 0, 0}, | |
38047 | { SWIG_PY_INT, (char *)"ICON_MASK", (long) wxICON_MASK, 0, 0, 0}, | |
38048 | { SWIG_PY_INT, (char *)"ICON_WARNING", (long) wxICON_WARNING, 0, 0, 0}, | |
38049 | { SWIG_PY_INT, (char *)"ICON_ERROR", (long) wxICON_ERROR, 0, 0, 0}, | |
38050 | { SWIG_PY_INT, (char *)"FORWARD", (long) wxFORWARD, 0, 0, 0}, | |
38051 | { SWIG_PY_INT, (char *)"BACKWARD", (long) wxBACKWARD, 0, 0, 0}, | |
38052 | { SWIG_PY_INT, (char *)"RESET", (long) wxRESET, 0, 0, 0}, | |
38053 | { SWIG_PY_INT, (char *)"HELP", (long) wxHELP, 0, 0, 0}, | |
38054 | { SWIG_PY_INT, (char *)"MORE", (long) wxMORE, 0, 0, 0}, | |
38055 | { SWIG_PY_INT, (char *)"SETUP", (long) wxSETUP, 0, 0, 0}, | |
38056 | { SWIG_PY_INT, (char *)"SIZE_AUTO_WIDTH", (long) wxSIZE_AUTO_WIDTH, 0, 0, 0}, | |
38057 | { SWIG_PY_INT, (char *)"SIZE_AUTO_HEIGHT", (long) wxSIZE_AUTO_HEIGHT, 0, 0, 0}, | |
38058 | { SWIG_PY_INT, (char *)"SIZE_AUTO", (long) wxSIZE_AUTO, 0, 0, 0}, | |
38059 | { SWIG_PY_INT, (char *)"SIZE_USE_EXISTING", (long) wxSIZE_USE_EXISTING, 0, 0, 0}, | |
38060 | { SWIG_PY_INT, (char *)"SIZE_ALLOW_MINUS_ONE", (long) wxSIZE_ALLOW_MINUS_ONE, 0, 0, 0}, | |
38061 | { SWIG_PY_INT, (char *)"PORTRAIT", (long) wxPORTRAIT, 0, 0, 0}, | |
38062 | { SWIG_PY_INT, (char *)"LANDSCAPE", (long) wxLANDSCAPE, 0, 0, 0}, | |
38063 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_HIGH", (long) wxPRINT_QUALITY_HIGH, 0, 0, 0}, | |
38064 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_MEDIUM", (long) wxPRINT_QUALITY_MEDIUM, 0, 0, 0}, | |
38065 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_LOW", (long) wxPRINT_QUALITY_LOW, 0, 0, 0}, | |
38066 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_DRAFT", (long) wxPRINT_QUALITY_DRAFT, 0, 0, 0}, | |
38067 | { SWIG_PY_INT, (char *)"ID_ANY", (long) wxID_ANY, 0, 0, 0}, | |
38068 | { SWIG_PY_INT, (char *)"ID_SEPARATOR", (long) wxID_SEPARATOR, 0, 0, 0}, | |
38069 | { SWIG_PY_INT, (char *)"ID_LOWEST", (long) wxID_LOWEST, 0, 0, 0}, | |
38070 | { SWIG_PY_INT, (char *)"ID_OPEN", (long) wxID_OPEN, 0, 0, 0}, | |
38071 | { SWIG_PY_INT, (char *)"ID_CLOSE", (long) wxID_CLOSE, 0, 0, 0}, | |
38072 | { SWIG_PY_INT, (char *)"ID_NEW", (long) wxID_NEW, 0, 0, 0}, | |
38073 | { SWIG_PY_INT, (char *)"ID_SAVE", (long) wxID_SAVE, 0, 0, 0}, | |
38074 | { SWIG_PY_INT, (char *)"ID_SAVEAS", (long) wxID_SAVEAS, 0, 0, 0}, | |
38075 | { SWIG_PY_INT, (char *)"ID_REVERT", (long) wxID_REVERT, 0, 0, 0}, | |
38076 | { SWIG_PY_INT, (char *)"ID_EXIT", (long) wxID_EXIT, 0, 0, 0}, | |
38077 | { SWIG_PY_INT, (char *)"ID_UNDO", (long) wxID_UNDO, 0, 0, 0}, | |
38078 | { SWIG_PY_INT, (char *)"ID_REDO", (long) wxID_REDO, 0, 0, 0}, | |
38079 | { SWIG_PY_INT, (char *)"ID_HELP", (long) wxID_HELP, 0, 0, 0}, | |
38080 | { SWIG_PY_INT, (char *)"ID_PRINT", (long) wxID_PRINT, 0, 0, 0}, | |
38081 | { SWIG_PY_INT, (char *)"ID_PRINT_SETUP", (long) wxID_PRINT_SETUP, 0, 0, 0}, | |
38082 | { SWIG_PY_INT, (char *)"ID_PREVIEW", (long) wxID_PREVIEW, 0, 0, 0}, | |
38083 | { SWIG_PY_INT, (char *)"ID_ABOUT", (long) wxID_ABOUT, 0, 0, 0}, | |
38084 | { SWIG_PY_INT, (char *)"ID_HELP_CONTENTS", (long) wxID_HELP_CONTENTS, 0, 0, 0}, | |
38085 | { SWIG_PY_INT, (char *)"ID_HELP_COMMANDS", (long) wxID_HELP_COMMANDS, 0, 0, 0}, | |
38086 | { SWIG_PY_INT, (char *)"ID_HELP_PROCEDURES", (long) wxID_HELP_PROCEDURES, 0, 0, 0}, | |
38087 | { SWIG_PY_INT, (char *)"ID_HELP_CONTEXT", (long) wxID_HELP_CONTEXT, 0, 0, 0}, | |
38088 | { SWIG_PY_INT, (char *)"ID_CLOSE_ALL", (long) wxID_CLOSE_ALL, 0, 0, 0}, | |
38089 | { SWIG_PY_INT, (char *)"ID_PREFERENCES", (long) wxID_PREFERENCES, 0, 0, 0}, | |
38090 | { SWIG_PY_INT, (char *)"ID_CUT", (long) wxID_CUT, 0, 0, 0}, | |
38091 | { SWIG_PY_INT, (char *)"ID_COPY", (long) wxID_COPY, 0, 0, 0}, | |
38092 | { SWIG_PY_INT, (char *)"ID_PASTE", (long) wxID_PASTE, 0, 0, 0}, | |
38093 | { SWIG_PY_INT, (char *)"ID_CLEAR", (long) wxID_CLEAR, 0, 0, 0}, | |
38094 | { SWIG_PY_INT, (char *)"ID_FIND", (long) wxID_FIND, 0, 0, 0}, | |
38095 | { SWIG_PY_INT, (char *)"ID_DUPLICATE", (long) wxID_DUPLICATE, 0, 0, 0}, | |
38096 | { SWIG_PY_INT, (char *)"ID_SELECTALL", (long) wxID_SELECTALL, 0, 0, 0}, | |
38097 | { SWIG_PY_INT, (char *)"ID_DELETE", (long) wxID_DELETE, 0, 0, 0}, | |
38098 | { SWIG_PY_INT, (char *)"ID_REPLACE", (long) wxID_REPLACE, 0, 0, 0}, | |
38099 | { SWIG_PY_INT, (char *)"ID_REPLACE_ALL", (long) wxID_REPLACE_ALL, 0, 0, 0}, | |
38100 | { SWIG_PY_INT, (char *)"ID_PROPERTIES", (long) wxID_PROPERTIES, 0, 0, 0}, | |
38101 | { SWIG_PY_INT, (char *)"ID_VIEW_DETAILS", (long) wxID_VIEW_DETAILS, 0, 0, 0}, | |
38102 | { SWIG_PY_INT, (char *)"ID_VIEW_LARGEICONS", (long) wxID_VIEW_LARGEICONS, 0, 0, 0}, | |
38103 | { SWIG_PY_INT, (char *)"ID_VIEW_SMALLICONS", (long) wxID_VIEW_SMALLICONS, 0, 0, 0}, | |
38104 | { SWIG_PY_INT, (char *)"ID_VIEW_LIST", (long) wxID_VIEW_LIST, 0, 0, 0}, | |
38105 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTDATE", (long) wxID_VIEW_SORTDATE, 0, 0, 0}, | |
38106 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTNAME", (long) wxID_VIEW_SORTNAME, 0, 0, 0}, | |
38107 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTSIZE", (long) wxID_VIEW_SORTSIZE, 0, 0, 0}, | |
38108 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTTYPE", (long) wxID_VIEW_SORTTYPE, 0, 0, 0}, | |
38109 | { SWIG_PY_INT, (char *)"ID_FILE1", (long) wxID_FILE1, 0, 0, 0}, | |
38110 | { SWIG_PY_INT, (char *)"ID_FILE2", (long) wxID_FILE2, 0, 0, 0}, | |
38111 | { SWIG_PY_INT, (char *)"ID_FILE3", (long) wxID_FILE3, 0, 0, 0}, | |
38112 | { SWIG_PY_INT, (char *)"ID_FILE4", (long) wxID_FILE4, 0, 0, 0}, | |
38113 | { SWIG_PY_INT, (char *)"ID_FILE5", (long) wxID_FILE5, 0, 0, 0}, | |
38114 | { SWIG_PY_INT, (char *)"ID_FILE6", (long) wxID_FILE6, 0, 0, 0}, | |
38115 | { SWIG_PY_INT, (char *)"ID_FILE7", (long) wxID_FILE7, 0, 0, 0}, | |
38116 | { SWIG_PY_INT, (char *)"ID_FILE8", (long) wxID_FILE8, 0, 0, 0}, | |
38117 | { SWIG_PY_INT, (char *)"ID_FILE9", (long) wxID_FILE9, 0, 0, 0}, | |
38118 | { SWIG_PY_INT, (char *)"ID_OK", (long) wxID_OK, 0, 0, 0}, | |
38119 | { SWIG_PY_INT, (char *)"ID_CANCEL", (long) wxID_CANCEL, 0, 0, 0}, | |
38120 | { SWIG_PY_INT, (char *)"ID_APPLY", (long) wxID_APPLY, 0, 0, 0}, | |
38121 | { SWIG_PY_INT, (char *)"ID_YES", (long) wxID_YES, 0, 0, 0}, | |
38122 | { SWIG_PY_INT, (char *)"ID_NO", (long) wxID_NO, 0, 0, 0}, | |
38123 | { SWIG_PY_INT, (char *)"ID_STATIC", (long) wxID_STATIC, 0, 0, 0}, | |
38124 | { SWIG_PY_INT, (char *)"ID_FORWARD", (long) wxID_FORWARD, 0, 0, 0}, | |
38125 | { SWIG_PY_INT, (char *)"ID_BACKWARD", (long) wxID_BACKWARD, 0, 0, 0}, | |
38126 | { SWIG_PY_INT, (char *)"ID_DEFAULT", (long) wxID_DEFAULT, 0, 0, 0}, | |
38127 | { SWIG_PY_INT, (char *)"ID_MORE", (long) wxID_MORE, 0, 0, 0}, | |
38128 | { SWIG_PY_INT, (char *)"ID_SETUP", (long) wxID_SETUP, 0, 0, 0}, | |
38129 | { SWIG_PY_INT, (char *)"ID_RESET", (long) wxID_RESET, 0, 0, 0}, | |
38130 | { SWIG_PY_INT, (char *)"ID_CONTEXT_HELP", (long) wxID_CONTEXT_HELP, 0, 0, 0}, | |
38131 | { SWIG_PY_INT, (char *)"ID_YESTOALL", (long) wxID_YESTOALL, 0, 0, 0}, | |
38132 | { SWIG_PY_INT, (char *)"ID_NOTOALL", (long) wxID_NOTOALL, 0, 0, 0}, | |
38133 | { SWIG_PY_INT, (char *)"ID_ABORT", (long) wxID_ABORT, 0, 0, 0}, | |
38134 | { SWIG_PY_INT, (char *)"ID_RETRY", (long) wxID_RETRY, 0, 0, 0}, | |
38135 | { SWIG_PY_INT, (char *)"ID_IGNORE", (long) wxID_IGNORE, 0, 0, 0}, | |
38136 | { SWIG_PY_INT, (char *)"ID_HIGHEST", (long) wxID_HIGHEST, 0, 0, 0}, | |
38137 | { SWIG_PY_INT, (char *)"OPEN", (long) wxOPEN, 0, 0, 0}, | |
38138 | { SWIG_PY_INT, (char *)"SAVE", (long) wxSAVE, 0, 0, 0}, | |
38139 | { SWIG_PY_INT, (char *)"HIDE_READONLY", (long) wxHIDE_READONLY, 0, 0, 0}, | |
38140 | { SWIG_PY_INT, (char *)"OVERWRITE_PROMPT", (long) wxOVERWRITE_PROMPT, 0, 0, 0}, | |
38141 | { SWIG_PY_INT, (char *)"FILE_MUST_EXIST", (long) wxFILE_MUST_EXIST, 0, 0, 0}, | |
38142 | { SWIG_PY_INT, (char *)"MULTIPLE", (long) wxMULTIPLE, 0, 0, 0}, | |
38143 | { SWIG_PY_INT, (char *)"CHANGE_DIR", (long) wxCHANGE_DIR, 0, 0, 0}, | |
38144 | { SWIG_PY_INT, (char *)"ACCEL_ALT", (long) wxACCEL_ALT, 0, 0, 0}, | |
38145 | { SWIG_PY_INT, (char *)"ACCEL_CTRL", (long) wxACCEL_CTRL, 0, 0, 0}, | |
38146 | { SWIG_PY_INT, (char *)"ACCEL_SHIFT", (long) wxACCEL_SHIFT, 0, 0, 0}, | |
38147 | { SWIG_PY_INT, (char *)"ACCEL_NORMAL", (long) wxACCEL_NORMAL, 0, 0, 0}, | |
38148 | { SWIG_PY_INT, (char *)"PD_AUTO_HIDE", (long) wxPD_AUTO_HIDE, 0, 0, 0}, | |
38149 | { SWIG_PY_INT, (char *)"PD_APP_MODAL", (long) wxPD_APP_MODAL, 0, 0, 0}, | |
38150 | { SWIG_PY_INT, (char *)"PD_CAN_ABORT", (long) wxPD_CAN_ABORT, 0, 0, 0}, | |
38151 | { SWIG_PY_INT, (char *)"PD_ELAPSED_TIME", (long) wxPD_ELAPSED_TIME, 0, 0, 0}, | |
38152 | { SWIG_PY_INT, (char *)"PD_ESTIMATED_TIME", (long) wxPD_ESTIMATED_TIME, 0, 0, 0}, | |
38153 | { SWIG_PY_INT, (char *)"PD_REMAINING_TIME", (long) wxPD_REMAINING_TIME, 0, 0, 0}, | |
38154 | { SWIG_PY_INT, (char *)"DD_NEW_DIR_BUTTON", (long) wxDD_NEW_DIR_BUTTON, 0, 0, 0}, | |
38155 | { SWIG_PY_INT, (char *)"DD_DEFAULT_STYLE", (long) wxDD_DEFAULT_STYLE, 0, 0, 0}, | |
38156 | { SWIG_PY_INT, (char *)"MENU_TEAROFF", (long) wxMENU_TEAROFF, 0, 0, 0}, | |
38157 | { SWIG_PY_INT, (char *)"MB_DOCKABLE", (long) wxMB_DOCKABLE, 0, 0, 0}, | |
38158 | { SWIG_PY_INT, (char *)"NO_FULL_REPAINT_ON_RESIZE", (long) wxNO_FULL_REPAINT_ON_RESIZE, 0, 0, 0}, | |
cc6dd355 | 38159 | { SWIG_PY_INT, (char *)"FULL_REPAINT_ON_RESIZE", (long) wxFULL_REPAINT_ON_RESIZE, 0, 0, 0}, |
d14a1e28 RD |
38160 | { SWIG_PY_INT, (char *)"LI_HORIZONTAL", (long) wxLI_HORIZONTAL, 0, 0, 0}, |
38161 | { SWIG_PY_INT, (char *)"LI_VERTICAL", (long) wxLI_VERTICAL, 0, 0, 0}, | |
38162 | { SWIG_PY_INT, (char *)"WS_EX_VALIDATE_RECURSIVELY", (long) wxWS_EX_VALIDATE_RECURSIVELY, 0, 0, 0}, | |
38163 | { SWIG_PY_INT, (char *)"WS_EX_BLOCK_EVENTS", (long) wxWS_EX_BLOCK_EVENTS, 0, 0, 0}, | |
38164 | { SWIG_PY_INT, (char *)"WS_EX_TRANSIENT", (long) wxWS_EX_TRANSIENT, 0, 0, 0}, | |
38165 | { SWIG_PY_INT, (char *)"WS_EX_THEMED_BACKGROUND", (long) wxWS_EX_THEMED_BACKGROUND, 0, 0, 0}, | |
38166 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_IDLE", (long) wxWS_EX_PROCESS_IDLE, 0, 0, 0}, | |
38167 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_UI_UPDATES", (long) wxWS_EX_PROCESS_UI_UPDATES, 0, 0, 0}, | |
38168 | { SWIG_PY_INT, (char *)"MM_TEXT", (long) wxMM_TEXT, 0, 0, 0}, | |
38169 | { SWIG_PY_INT, (char *)"MM_LOMETRIC", (long) wxMM_LOMETRIC, 0, 0, 0}, | |
38170 | { SWIG_PY_INT, (char *)"MM_HIMETRIC", (long) wxMM_HIMETRIC, 0, 0, 0}, | |
38171 | { SWIG_PY_INT, (char *)"MM_LOENGLISH", (long) wxMM_LOENGLISH, 0, 0, 0}, | |
38172 | { SWIG_PY_INT, (char *)"MM_HIENGLISH", (long) wxMM_HIENGLISH, 0, 0, 0}, | |
38173 | { SWIG_PY_INT, (char *)"MM_TWIPS", (long) wxMM_TWIPS, 0, 0, 0}, | |
38174 | { SWIG_PY_INT, (char *)"MM_ISOTROPIC", (long) wxMM_ISOTROPIC, 0, 0, 0}, | |
38175 | { SWIG_PY_INT, (char *)"MM_ANISOTROPIC", (long) wxMM_ANISOTROPIC, 0, 0, 0}, | |
38176 | { SWIG_PY_INT, (char *)"MM_POINTS", (long) wxMM_POINTS, 0, 0, 0}, | |
38177 | { SWIG_PY_INT, (char *)"MM_METRIC", (long) wxMM_METRIC, 0, 0, 0}, | |
38178 | { SWIG_PY_INT, (char *)"CENTRE", (long) wxCENTRE, 0, 0, 0}, | |
38179 | { SWIG_PY_INT, (char *)"CENTER", (long) wxCENTER, 0, 0, 0}, | |
38180 | { SWIG_PY_INT, (char *)"HORIZONTAL", (long) wxHORIZONTAL, 0, 0, 0}, | |
38181 | { SWIG_PY_INT, (char *)"VERTICAL", (long) wxVERTICAL, 0, 0, 0}, | |
38182 | { SWIG_PY_INT, (char *)"BOTH", (long) wxBOTH, 0, 0, 0}, | |
38183 | { SWIG_PY_INT, (char *)"LEFT", (long) wxLEFT, 0, 0, 0}, | |
38184 | { SWIG_PY_INT, (char *)"RIGHT", (long) wxRIGHT, 0, 0, 0}, | |
38185 | { SWIG_PY_INT, (char *)"UP", (long) wxUP, 0, 0, 0}, | |
38186 | { SWIG_PY_INT, (char *)"DOWN", (long) wxDOWN, 0, 0, 0}, | |
38187 | { SWIG_PY_INT, (char *)"TOP", (long) wxTOP, 0, 0, 0}, | |
38188 | { SWIG_PY_INT, (char *)"BOTTOM", (long) wxBOTTOM, 0, 0, 0}, | |
38189 | { SWIG_PY_INT, (char *)"NORTH", (long) wxNORTH, 0, 0, 0}, | |
38190 | { SWIG_PY_INT, (char *)"SOUTH", (long) wxSOUTH, 0, 0, 0}, | |
38191 | { SWIG_PY_INT, (char *)"WEST", (long) wxWEST, 0, 0, 0}, | |
38192 | { SWIG_PY_INT, (char *)"EAST", (long) wxEAST, 0, 0, 0}, | |
38193 | { SWIG_PY_INT, (char *)"ALL", (long) wxALL, 0, 0, 0}, | |
38194 | { SWIG_PY_INT, (char *)"ALIGN_NOT", (long) wxALIGN_NOT, 0, 0, 0}, | |
38195 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_HORIZONTAL", (long) wxALIGN_CENTER_HORIZONTAL, 0, 0, 0}, | |
38196 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_HORIZONTAL", (long) wxALIGN_CENTRE_HORIZONTAL, 0, 0, 0}, | |
38197 | { SWIG_PY_INT, (char *)"ALIGN_LEFT", (long) wxALIGN_LEFT, 0, 0, 0}, | |
38198 | { SWIG_PY_INT, (char *)"ALIGN_TOP", (long) wxALIGN_TOP, 0, 0, 0}, | |
38199 | { SWIG_PY_INT, (char *)"ALIGN_RIGHT", (long) wxALIGN_RIGHT, 0, 0, 0}, | |
38200 | { SWIG_PY_INT, (char *)"ALIGN_BOTTOM", (long) wxALIGN_BOTTOM, 0, 0, 0}, | |
38201 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_VERTICAL", (long) wxALIGN_CENTER_VERTICAL, 0, 0, 0}, | |
38202 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_VERTICAL", (long) wxALIGN_CENTRE_VERTICAL, 0, 0, 0}, | |
38203 | { SWIG_PY_INT, (char *)"ALIGN_CENTER", (long) wxALIGN_CENTER, 0, 0, 0}, | |
38204 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE", (long) wxALIGN_CENTRE, 0, 0, 0}, | |
38205 | { SWIG_PY_INT, (char *)"ALIGN_MASK", (long) wxALIGN_MASK, 0, 0, 0}, | |
38206 | { SWIG_PY_INT, (char *)"STRETCH_NOT", (long) wxSTRETCH_NOT, 0, 0, 0}, | |
38207 | { SWIG_PY_INT, (char *)"SHRINK", (long) wxSHRINK, 0, 0, 0}, | |
38208 | { SWIG_PY_INT, (char *)"GROW", (long) wxGROW, 0, 0, 0}, | |
38209 | { SWIG_PY_INT, (char *)"EXPAND", (long) wxEXPAND, 0, 0, 0}, | |
38210 | { SWIG_PY_INT, (char *)"SHAPED", (long) wxSHAPED, 0, 0, 0}, | |
38211 | { SWIG_PY_INT, (char *)"ADJUST_MINSIZE", (long) wxADJUST_MINSIZE, 0, 0, 0}, | |
38212 | { SWIG_PY_INT, (char *)"TILE", (long) wxTILE, 0, 0, 0}, | |
38213 | { SWIG_PY_INT, (char *)"BORDER_DEFAULT", (long) wxBORDER_DEFAULT, 0, 0, 0}, | |
38214 | { SWIG_PY_INT, (char *)"BORDER_NONE", (long) wxBORDER_NONE, 0, 0, 0}, | |
38215 | { SWIG_PY_INT, (char *)"BORDER_STATIC", (long) wxBORDER_STATIC, 0, 0, 0}, | |
38216 | { SWIG_PY_INT, (char *)"BORDER_SIMPLE", (long) wxBORDER_SIMPLE, 0, 0, 0}, | |
38217 | { SWIG_PY_INT, (char *)"BORDER_RAISED", (long) wxBORDER_RAISED, 0, 0, 0}, | |
38218 | { SWIG_PY_INT, (char *)"BORDER_SUNKEN", (long) wxBORDER_SUNKEN, 0, 0, 0}, | |
38219 | { SWIG_PY_INT, (char *)"BORDER_DOUBLE", (long) wxBORDER_DOUBLE, 0, 0, 0}, | |
38220 | { SWIG_PY_INT, (char *)"BORDER_MASK", (long) wxBORDER_MASK, 0, 0, 0}, | |
38221 | { SWIG_PY_INT, (char *)"DEFAULT", (long) wxDEFAULT, 0, 0, 0}, | |
38222 | { SWIG_PY_INT, (char *)"DECORATIVE", (long) wxDECORATIVE, 0, 0, 0}, | |
38223 | { SWIG_PY_INT, (char *)"ROMAN", (long) wxROMAN, 0, 0, 0}, | |
38224 | { SWIG_PY_INT, (char *)"SCRIPT", (long) wxSCRIPT, 0, 0, 0}, | |
38225 | { SWIG_PY_INT, (char *)"SWISS", (long) wxSWISS, 0, 0, 0}, | |
38226 | { SWIG_PY_INT, (char *)"MODERN", (long) wxMODERN, 0, 0, 0}, | |
38227 | { SWIG_PY_INT, (char *)"TELETYPE", (long) wxTELETYPE, 0, 0, 0}, | |
38228 | { SWIG_PY_INT, (char *)"VARIABLE", (long) wxVARIABLE, 0, 0, 0}, | |
38229 | { SWIG_PY_INT, (char *)"FIXED", (long) wxFIXED, 0, 0, 0}, | |
38230 | { SWIG_PY_INT, (char *)"NORMAL", (long) wxNORMAL, 0, 0, 0}, | |
38231 | { SWIG_PY_INT, (char *)"LIGHT", (long) wxLIGHT, 0, 0, 0}, | |
38232 | { SWIG_PY_INT, (char *)"BOLD", (long) wxBOLD, 0, 0, 0}, | |
38233 | { SWIG_PY_INT, (char *)"ITALIC", (long) wxITALIC, 0, 0, 0}, | |
38234 | { SWIG_PY_INT, (char *)"SLANT", (long) wxSLANT, 0, 0, 0}, | |
38235 | { SWIG_PY_INT, (char *)"SOLID", (long) wxSOLID, 0, 0, 0}, | |
38236 | { SWIG_PY_INT, (char *)"DOT", (long) wxDOT, 0, 0, 0}, | |
38237 | { SWIG_PY_INT, (char *)"LONG_DASH", (long) wxLONG_DASH, 0, 0, 0}, | |
38238 | { SWIG_PY_INT, (char *)"SHORT_DASH", (long) wxSHORT_DASH, 0, 0, 0}, | |
38239 | { SWIG_PY_INT, (char *)"DOT_DASH", (long) wxDOT_DASH, 0, 0, 0}, | |
38240 | { SWIG_PY_INT, (char *)"USER_DASH", (long) wxUSER_DASH, 0, 0, 0}, | |
38241 | { SWIG_PY_INT, (char *)"TRANSPARENT", (long) wxTRANSPARENT, 0, 0, 0}, | |
38242 | { SWIG_PY_INT, (char *)"STIPPLE", (long) wxSTIPPLE, 0, 0, 0}, | |
38243 | { SWIG_PY_INT, (char *)"BDIAGONAL_HATCH", (long) wxBDIAGONAL_HATCH, 0, 0, 0}, | |
38244 | { SWIG_PY_INT, (char *)"CROSSDIAG_HATCH", (long) wxCROSSDIAG_HATCH, 0, 0, 0}, | |
38245 | { SWIG_PY_INT, (char *)"FDIAGONAL_HATCH", (long) wxFDIAGONAL_HATCH, 0, 0, 0}, | |
38246 | { SWIG_PY_INT, (char *)"CROSS_HATCH", (long) wxCROSS_HATCH, 0, 0, 0}, | |
38247 | { SWIG_PY_INT, (char *)"HORIZONTAL_HATCH", (long) wxHORIZONTAL_HATCH, 0, 0, 0}, | |
38248 | { SWIG_PY_INT, (char *)"VERTICAL_HATCH", (long) wxVERTICAL_HATCH, 0, 0, 0}, | |
38249 | { SWIG_PY_INT, (char *)"JOIN_BEVEL", (long) wxJOIN_BEVEL, 0, 0, 0}, | |
38250 | { SWIG_PY_INT, (char *)"JOIN_MITER", (long) wxJOIN_MITER, 0, 0, 0}, | |
38251 | { SWIG_PY_INT, (char *)"JOIN_ROUND", (long) wxJOIN_ROUND, 0, 0, 0}, | |
38252 | { SWIG_PY_INT, (char *)"CAP_ROUND", (long) wxCAP_ROUND, 0, 0, 0}, | |
38253 | { SWIG_PY_INT, (char *)"CAP_PROJECTING", (long) wxCAP_PROJECTING, 0, 0, 0}, | |
38254 | { SWIG_PY_INT, (char *)"CAP_BUTT", (long) wxCAP_BUTT, 0, 0, 0}, | |
38255 | { SWIG_PY_INT, (char *)"CLEAR", (long) wxCLEAR, 0, 0, 0}, | |
38256 | { SWIG_PY_INT, (char *)"XOR", (long) wxXOR, 0, 0, 0}, | |
38257 | { SWIG_PY_INT, (char *)"INVERT", (long) wxINVERT, 0, 0, 0}, | |
38258 | { SWIG_PY_INT, (char *)"OR_REVERSE", (long) wxOR_REVERSE, 0, 0, 0}, | |
38259 | { SWIG_PY_INT, (char *)"AND_REVERSE", (long) wxAND_REVERSE, 0, 0, 0}, | |
38260 | { SWIG_PY_INT, (char *)"COPY", (long) wxCOPY, 0, 0, 0}, | |
38261 | { SWIG_PY_INT, (char *)"AND", (long) wxAND, 0, 0, 0}, | |
38262 | { SWIG_PY_INT, (char *)"AND_INVERT", (long) wxAND_INVERT, 0, 0, 0}, | |
38263 | { SWIG_PY_INT, (char *)"NO_OP", (long) wxNO_OP, 0, 0, 0}, | |
38264 | { SWIG_PY_INT, (char *)"NOR", (long) wxNOR, 0, 0, 0}, | |
38265 | { SWIG_PY_INT, (char *)"EQUIV", (long) wxEQUIV, 0, 0, 0}, | |
38266 | { SWIG_PY_INT, (char *)"SRC_INVERT", (long) wxSRC_INVERT, 0, 0, 0}, | |
38267 | { SWIG_PY_INT, (char *)"OR_INVERT", (long) wxOR_INVERT, 0, 0, 0}, | |
38268 | { SWIG_PY_INT, (char *)"NAND", (long) wxNAND, 0, 0, 0}, | |
38269 | { SWIG_PY_INT, (char *)"OR", (long) wxOR, 0, 0, 0}, | |
38270 | { SWIG_PY_INT, (char *)"SET", (long) wxSET, 0, 0, 0}, | |
38271 | { SWIG_PY_INT, (char *)"WXK_BACK", (long) WXK_BACK, 0, 0, 0}, | |
38272 | { SWIG_PY_INT, (char *)"WXK_TAB", (long) WXK_TAB, 0, 0, 0}, | |
38273 | { SWIG_PY_INT, (char *)"WXK_RETURN", (long) WXK_RETURN, 0, 0, 0}, | |
38274 | { SWIG_PY_INT, (char *)"WXK_ESCAPE", (long) WXK_ESCAPE, 0, 0, 0}, | |
38275 | { SWIG_PY_INT, (char *)"WXK_SPACE", (long) WXK_SPACE, 0, 0, 0}, | |
38276 | { SWIG_PY_INT, (char *)"WXK_DELETE", (long) WXK_DELETE, 0, 0, 0}, | |
38277 | { SWIG_PY_INT, (char *)"WXK_START", (long) WXK_START, 0, 0, 0}, | |
38278 | { SWIG_PY_INT, (char *)"WXK_LBUTTON", (long) WXK_LBUTTON, 0, 0, 0}, | |
38279 | { SWIG_PY_INT, (char *)"WXK_RBUTTON", (long) WXK_RBUTTON, 0, 0, 0}, | |
38280 | { SWIG_PY_INT, (char *)"WXK_CANCEL", (long) WXK_CANCEL, 0, 0, 0}, | |
38281 | { SWIG_PY_INT, (char *)"WXK_MBUTTON", (long) WXK_MBUTTON, 0, 0, 0}, | |
38282 | { SWIG_PY_INT, (char *)"WXK_CLEAR", (long) WXK_CLEAR, 0, 0, 0}, | |
38283 | { SWIG_PY_INT, (char *)"WXK_SHIFT", (long) WXK_SHIFT, 0, 0, 0}, | |
38284 | { SWIG_PY_INT, (char *)"WXK_ALT", (long) WXK_ALT, 0, 0, 0}, | |
38285 | { SWIG_PY_INT, (char *)"WXK_CONTROL", (long) WXK_CONTROL, 0, 0, 0}, | |
38286 | { SWIG_PY_INT, (char *)"WXK_MENU", (long) WXK_MENU, 0, 0, 0}, | |
38287 | { SWIG_PY_INT, (char *)"WXK_PAUSE", (long) WXK_PAUSE, 0, 0, 0}, | |
38288 | { SWIG_PY_INT, (char *)"WXK_CAPITAL", (long) WXK_CAPITAL, 0, 0, 0}, | |
38289 | { SWIG_PY_INT, (char *)"WXK_PRIOR", (long) WXK_PRIOR, 0, 0, 0}, | |
38290 | { SWIG_PY_INT, (char *)"WXK_NEXT", (long) WXK_NEXT, 0, 0, 0}, | |
38291 | { SWIG_PY_INT, (char *)"WXK_END", (long) WXK_END, 0, 0, 0}, | |
38292 | { SWIG_PY_INT, (char *)"WXK_HOME", (long) WXK_HOME, 0, 0, 0}, | |
38293 | { SWIG_PY_INT, (char *)"WXK_LEFT", (long) WXK_LEFT, 0, 0, 0}, | |
38294 | { SWIG_PY_INT, (char *)"WXK_UP", (long) WXK_UP, 0, 0, 0}, | |
38295 | { SWIG_PY_INT, (char *)"WXK_RIGHT", (long) WXK_RIGHT, 0, 0, 0}, | |
38296 | { SWIG_PY_INT, (char *)"WXK_DOWN", (long) WXK_DOWN, 0, 0, 0}, | |
38297 | { SWIG_PY_INT, (char *)"WXK_SELECT", (long) WXK_SELECT, 0, 0, 0}, | |
38298 | { SWIG_PY_INT, (char *)"WXK_PRINT", (long) WXK_PRINT, 0, 0, 0}, | |
38299 | { SWIG_PY_INT, (char *)"WXK_EXECUTE", (long) WXK_EXECUTE, 0, 0, 0}, | |
38300 | { SWIG_PY_INT, (char *)"WXK_SNAPSHOT", (long) WXK_SNAPSHOT, 0, 0, 0}, | |
38301 | { SWIG_PY_INT, (char *)"WXK_INSERT", (long) WXK_INSERT, 0, 0, 0}, | |
38302 | { SWIG_PY_INT, (char *)"WXK_HELP", (long) WXK_HELP, 0, 0, 0}, | |
38303 | { SWIG_PY_INT, (char *)"WXK_NUMPAD0", (long) WXK_NUMPAD0, 0, 0, 0}, | |
38304 | { SWIG_PY_INT, (char *)"WXK_NUMPAD1", (long) WXK_NUMPAD1, 0, 0, 0}, | |
38305 | { SWIG_PY_INT, (char *)"WXK_NUMPAD2", (long) WXK_NUMPAD2, 0, 0, 0}, | |
38306 | { SWIG_PY_INT, (char *)"WXK_NUMPAD3", (long) WXK_NUMPAD3, 0, 0, 0}, | |
38307 | { SWIG_PY_INT, (char *)"WXK_NUMPAD4", (long) WXK_NUMPAD4, 0, 0, 0}, | |
38308 | { SWIG_PY_INT, (char *)"WXK_NUMPAD5", (long) WXK_NUMPAD5, 0, 0, 0}, | |
38309 | { SWIG_PY_INT, (char *)"WXK_NUMPAD6", (long) WXK_NUMPAD6, 0, 0, 0}, | |
38310 | { SWIG_PY_INT, (char *)"WXK_NUMPAD7", (long) WXK_NUMPAD7, 0, 0, 0}, | |
38311 | { SWIG_PY_INT, (char *)"WXK_NUMPAD8", (long) WXK_NUMPAD8, 0, 0, 0}, | |
38312 | { SWIG_PY_INT, (char *)"WXK_NUMPAD9", (long) WXK_NUMPAD9, 0, 0, 0}, | |
38313 | { SWIG_PY_INT, (char *)"WXK_MULTIPLY", (long) WXK_MULTIPLY, 0, 0, 0}, | |
38314 | { SWIG_PY_INT, (char *)"WXK_ADD", (long) WXK_ADD, 0, 0, 0}, | |
38315 | { SWIG_PY_INT, (char *)"WXK_SEPARATOR", (long) WXK_SEPARATOR, 0, 0, 0}, | |
38316 | { SWIG_PY_INT, (char *)"WXK_SUBTRACT", (long) WXK_SUBTRACT, 0, 0, 0}, | |
38317 | { SWIG_PY_INT, (char *)"WXK_DECIMAL", (long) WXK_DECIMAL, 0, 0, 0}, | |
38318 | { SWIG_PY_INT, (char *)"WXK_DIVIDE", (long) WXK_DIVIDE, 0, 0, 0}, | |
38319 | { SWIG_PY_INT, (char *)"WXK_F1", (long) WXK_F1, 0, 0, 0}, | |
38320 | { SWIG_PY_INT, (char *)"WXK_F2", (long) WXK_F2, 0, 0, 0}, | |
38321 | { SWIG_PY_INT, (char *)"WXK_F3", (long) WXK_F3, 0, 0, 0}, | |
38322 | { SWIG_PY_INT, (char *)"WXK_F4", (long) WXK_F4, 0, 0, 0}, | |
38323 | { SWIG_PY_INT, (char *)"WXK_F5", (long) WXK_F5, 0, 0, 0}, | |
38324 | { SWIG_PY_INT, (char *)"WXK_F6", (long) WXK_F6, 0, 0, 0}, | |
38325 | { SWIG_PY_INT, (char *)"WXK_F7", (long) WXK_F7, 0, 0, 0}, | |
38326 | { SWIG_PY_INT, (char *)"WXK_F8", (long) WXK_F8, 0, 0, 0}, | |
38327 | { SWIG_PY_INT, (char *)"WXK_F9", (long) WXK_F9, 0, 0, 0}, | |
38328 | { SWIG_PY_INT, (char *)"WXK_F10", (long) WXK_F10, 0, 0, 0}, | |
38329 | { SWIG_PY_INT, (char *)"WXK_F11", (long) WXK_F11, 0, 0, 0}, | |
38330 | { SWIG_PY_INT, (char *)"WXK_F12", (long) WXK_F12, 0, 0, 0}, | |
38331 | { SWIG_PY_INT, (char *)"WXK_F13", (long) WXK_F13, 0, 0, 0}, | |
38332 | { SWIG_PY_INT, (char *)"WXK_F14", (long) WXK_F14, 0, 0, 0}, | |
38333 | { SWIG_PY_INT, (char *)"WXK_F15", (long) WXK_F15, 0, 0, 0}, | |
38334 | { SWIG_PY_INT, (char *)"WXK_F16", (long) WXK_F16, 0, 0, 0}, | |
38335 | { SWIG_PY_INT, (char *)"WXK_F17", (long) WXK_F17, 0, 0, 0}, | |
38336 | { SWIG_PY_INT, (char *)"WXK_F18", (long) WXK_F18, 0, 0, 0}, | |
38337 | { SWIG_PY_INT, (char *)"WXK_F19", (long) WXK_F19, 0, 0, 0}, | |
38338 | { SWIG_PY_INT, (char *)"WXK_F20", (long) WXK_F20, 0, 0, 0}, | |
38339 | { SWIG_PY_INT, (char *)"WXK_F21", (long) WXK_F21, 0, 0, 0}, | |
38340 | { SWIG_PY_INT, (char *)"WXK_F22", (long) WXK_F22, 0, 0, 0}, | |
38341 | { SWIG_PY_INT, (char *)"WXK_F23", (long) WXK_F23, 0, 0, 0}, | |
38342 | { SWIG_PY_INT, (char *)"WXK_F24", (long) WXK_F24, 0, 0, 0}, | |
38343 | { SWIG_PY_INT, (char *)"WXK_NUMLOCK", (long) WXK_NUMLOCK, 0, 0, 0}, | |
38344 | { SWIG_PY_INT, (char *)"WXK_SCROLL", (long) WXK_SCROLL, 0, 0, 0}, | |
38345 | { SWIG_PY_INT, (char *)"WXK_PAGEUP", (long) WXK_PAGEUP, 0, 0, 0}, | |
38346 | { SWIG_PY_INT, (char *)"WXK_PAGEDOWN", (long) WXK_PAGEDOWN, 0, 0, 0}, | |
38347 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SPACE", (long) WXK_NUMPAD_SPACE, 0, 0, 0}, | |
38348 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_TAB", (long) WXK_NUMPAD_TAB, 0, 0, 0}, | |
38349 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ENTER", (long) WXK_NUMPAD_ENTER, 0, 0, 0}, | |
38350 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F1", (long) WXK_NUMPAD_F1, 0, 0, 0}, | |
38351 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F2", (long) WXK_NUMPAD_F2, 0, 0, 0}, | |
38352 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F3", (long) WXK_NUMPAD_F3, 0, 0, 0}, | |
38353 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F4", (long) WXK_NUMPAD_F4, 0, 0, 0}, | |
38354 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_HOME", (long) WXK_NUMPAD_HOME, 0, 0, 0}, | |
38355 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_LEFT", (long) WXK_NUMPAD_LEFT, 0, 0, 0}, | |
38356 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_UP", (long) WXK_NUMPAD_UP, 0, 0, 0}, | |
38357 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_RIGHT", (long) WXK_NUMPAD_RIGHT, 0, 0, 0}, | |
38358 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DOWN", (long) WXK_NUMPAD_DOWN, 0, 0, 0}, | |
38359 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PRIOR", (long) WXK_NUMPAD_PRIOR, 0, 0, 0}, | |
38360 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEUP", (long) WXK_NUMPAD_PAGEUP, 0, 0, 0}, | |
38361 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_NEXT", (long) WXK_NUMPAD_NEXT, 0, 0, 0}, | |
38362 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEDOWN", (long) WXK_NUMPAD_PAGEDOWN, 0, 0, 0}, | |
38363 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_END", (long) WXK_NUMPAD_END, 0, 0, 0}, | |
38364 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_BEGIN", (long) WXK_NUMPAD_BEGIN, 0, 0, 0}, | |
38365 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_INSERT", (long) WXK_NUMPAD_INSERT, 0, 0, 0}, | |
38366 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DELETE", (long) WXK_NUMPAD_DELETE, 0, 0, 0}, | |
38367 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_EQUAL", (long) WXK_NUMPAD_EQUAL, 0, 0, 0}, | |
38368 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_MULTIPLY", (long) WXK_NUMPAD_MULTIPLY, 0, 0, 0}, | |
38369 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ADD", (long) WXK_NUMPAD_ADD, 0, 0, 0}, | |
38370 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SEPARATOR", (long) WXK_NUMPAD_SEPARATOR, 0, 0, 0}, | |
38371 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SUBTRACT", (long) WXK_NUMPAD_SUBTRACT, 0, 0, 0}, | |
38372 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DECIMAL", (long) WXK_NUMPAD_DECIMAL, 0, 0, 0}, | |
38373 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DIVIDE", (long) WXK_NUMPAD_DIVIDE, 0, 0, 0}, | |
38374 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_LEFT", (long) WXK_WINDOWS_LEFT, 0, 0, 0}, | |
38375 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_RIGHT", (long) WXK_WINDOWS_RIGHT, 0, 0, 0}, | |
38376 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_MENU", (long) WXK_WINDOWS_MENU, 0, 0, 0}, | |
38377 | { SWIG_PY_INT, (char *)"PAPER_NONE", (long) wxPAPER_NONE, 0, 0, 0}, | |
38378 | { SWIG_PY_INT, (char *)"PAPER_LETTER", (long) wxPAPER_LETTER, 0, 0, 0}, | |
38379 | { SWIG_PY_INT, (char *)"PAPER_LEGAL", (long) wxPAPER_LEGAL, 0, 0, 0}, | |
38380 | { SWIG_PY_INT, (char *)"PAPER_A4", (long) wxPAPER_A4, 0, 0, 0}, | |
38381 | { SWIG_PY_INT, (char *)"PAPER_CSHEET", (long) wxPAPER_CSHEET, 0, 0, 0}, | |
38382 | { SWIG_PY_INT, (char *)"PAPER_DSHEET", (long) wxPAPER_DSHEET, 0, 0, 0}, | |
38383 | { SWIG_PY_INT, (char *)"PAPER_ESHEET", (long) wxPAPER_ESHEET, 0, 0, 0}, | |
38384 | { SWIG_PY_INT, (char *)"PAPER_LETTERSMALL", (long) wxPAPER_LETTERSMALL, 0, 0, 0}, | |
38385 | { SWIG_PY_INT, (char *)"PAPER_TABLOID", (long) wxPAPER_TABLOID, 0, 0, 0}, | |
38386 | { SWIG_PY_INT, (char *)"PAPER_LEDGER", (long) wxPAPER_LEDGER, 0, 0, 0}, | |
38387 | { SWIG_PY_INT, (char *)"PAPER_STATEMENT", (long) wxPAPER_STATEMENT, 0, 0, 0}, | |
38388 | { SWIG_PY_INT, (char *)"PAPER_EXECUTIVE", (long) wxPAPER_EXECUTIVE, 0, 0, 0}, | |
38389 | { SWIG_PY_INT, (char *)"PAPER_A3", (long) wxPAPER_A3, 0, 0, 0}, | |
38390 | { SWIG_PY_INT, (char *)"PAPER_A4SMALL", (long) wxPAPER_A4SMALL, 0, 0, 0}, | |
38391 | { SWIG_PY_INT, (char *)"PAPER_A5", (long) wxPAPER_A5, 0, 0, 0}, | |
38392 | { SWIG_PY_INT, (char *)"PAPER_B4", (long) wxPAPER_B4, 0, 0, 0}, | |
38393 | { SWIG_PY_INT, (char *)"PAPER_B5", (long) wxPAPER_B5, 0, 0, 0}, | |
38394 | { SWIG_PY_INT, (char *)"PAPER_FOLIO", (long) wxPAPER_FOLIO, 0, 0, 0}, | |
38395 | { SWIG_PY_INT, (char *)"PAPER_QUARTO", (long) wxPAPER_QUARTO, 0, 0, 0}, | |
38396 | { SWIG_PY_INT, (char *)"PAPER_10X14", (long) wxPAPER_10X14, 0, 0, 0}, | |
38397 | { SWIG_PY_INT, (char *)"PAPER_11X17", (long) wxPAPER_11X17, 0, 0, 0}, | |
38398 | { SWIG_PY_INT, (char *)"PAPER_NOTE", (long) wxPAPER_NOTE, 0, 0, 0}, | |
38399 | { SWIG_PY_INT, (char *)"PAPER_ENV_9", (long) wxPAPER_ENV_9, 0, 0, 0}, | |
38400 | { SWIG_PY_INT, (char *)"PAPER_ENV_10", (long) wxPAPER_ENV_10, 0, 0, 0}, | |
38401 | { SWIG_PY_INT, (char *)"PAPER_ENV_11", (long) wxPAPER_ENV_11, 0, 0, 0}, | |
38402 | { SWIG_PY_INT, (char *)"PAPER_ENV_12", (long) wxPAPER_ENV_12, 0, 0, 0}, | |
38403 | { SWIG_PY_INT, (char *)"PAPER_ENV_14", (long) wxPAPER_ENV_14, 0, 0, 0}, | |
38404 | { SWIG_PY_INT, (char *)"PAPER_ENV_DL", (long) wxPAPER_ENV_DL, 0, 0, 0}, | |
38405 | { SWIG_PY_INT, (char *)"PAPER_ENV_C5", (long) wxPAPER_ENV_C5, 0, 0, 0}, | |
38406 | { SWIG_PY_INT, (char *)"PAPER_ENV_C3", (long) wxPAPER_ENV_C3, 0, 0, 0}, | |
38407 | { SWIG_PY_INT, (char *)"PAPER_ENV_C4", (long) wxPAPER_ENV_C4, 0, 0, 0}, | |
38408 | { SWIG_PY_INT, (char *)"PAPER_ENV_C6", (long) wxPAPER_ENV_C6, 0, 0, 0}, | |
38409 | { SWIG_PY_INT, (char *)"PAPER_ENV_C65", (long) wxPAPER_ENV_C65, 0, 0, 0}, | |
38410 | { SWIG_PY_INT, (char *)"PAPER_ENV_B4", (long) wxPAPER_ENV_B4, 0, 0, 0}, | |
38411 | { SWIG_PY_INT, (char *)"PAPER_ENV_B5", (long) wxPAPER_ENV_B5, 0, 0, 0}, | |
38412 | { SWIG_PY_INT, (char *)"PAPER_ENV_B6", (long) wxPAPER_ENV_B6, 0, 0, 0}, | |
38413 | { SWIG_PY_INT, (char *)"PAPER_ENV_ITALY", (long) wxPAPER_ENV_ITALY, 0, 0, 0}, | |
38414 | { SWIG_PY_INT, (char *)"PAPER_ENV_MONARCH", (long) wxPAPER_ENV_MONARCH, 0, 0, 0}, | |
38415 | { SWIG_PY_INT, (char *)"PAPER_ENV_PERSONAL", (long) wxPAPER_ENV_PERSONAL, 0, 0, 0}, | |
38416 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_US", (long) wxPAPER_FANFOLD_US, 0, 0, 0}, | |
38417 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_STD_GERMAN", (long) wxPAPER_FANFOLD_STD_GERMAN, 0, 0, 0}, | |
38418 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_LGL_GERMAN", (long) wxPAPER_FANFOLD_LGL_GERMAN, 0, 0, 0}, | |
38419 | { SWIG_PY_INT, (char *)"PAPER_ISO_B4", (long) wxPAPER_ISO_B4, 0, 0, 0}, | |
38420 | { SWIG_PY_INT, (char *)"PAPER_JAPANESE_POSTCARD", (long) wxPAPER_JAPANESE_POSTCARD, 0, 0, 0}, | |
38421 | { SWIG_PY_INT, (char *)"PAPER_9X11", (long) wxPAPER_9X11, 0, 0, 0}, | |
38422 | { SWIG_PY_INT, (char *)"PAPER_10X11", (long) wxPAPER_10X11, 0, 0, 0}, | |
38423 | { SWIG_PY_INT, (char *)"PAPER_15X11", (long) wxPAPER_15X11, 0, 0, 0}, | |
38424 | { SWIG_PY_INT, (char *)"PAPER_ENV_INVITE", (long) wxPAPER_ENV_INVITE, 0, 0, 0}, | |
38425 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA", (long) wxPAPER_LETTER_EXTRA, 0, 0, 0}, | |
38426 | { SWIG_PY_INT, (char *)"PAPER_LEGAL_EXTRA", (long) wxPAPER_LEGAL_EXTRA, 0, 0, 0}, | |
38427 | { SWIG_PY_INT, (char *)"PAPER_TABLOID_EXTRA", (long) wxPAPER_TABLOID_EXTRA, 0, 0, 0}, | |
38428 | { SWIG_PY_INT, (char *)"PAPER_A4_EXTRA", (long) wxPAPER_A4_EXTRA, 0, 0, 0}, | |
38429 | { SWIG_PY_INT, (char *)"PAPER_LETTER_TRANSVERSE", (long) wxPAPER_LETTER_TRANSVERSE, 0, 0, 0}, | |
38430 | { SWIG_PY_INT, (char *)"PAPER_A4_TRANSVERSE", (long) wxPAPER_A4_TRANSVERSE, 0, 0, 0}, | |
38431 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA_TRANSVERSE", (long) wxPAPER_LETTER_EXTRA_TRANSVERSE, 0, 0, 0}, | |
38432 | { SWIG_PY_INT, (char *)"PAPER_A_PLUS", (long) wxPAPER_A_PLUS, 0, 0, 0}, | |
38433 | { SWIG_PY_INT, (char *)"PAPER_B_PLUS", (long) wxPAPER_B_PLUS, 0, 0, 0}, | |
38434 | { SWIG_PY_INT, (char *)"PAPER_LETTER_PLUS", (long) wxPAPER_LETTER_PLUS, 0, 0, 0}, | |
38435 | { SWIG_PY_INT, (char *)"PAPER_A4_PLUS", (long) wxPAPER_A4_PLUS, 0, 0, 0}, | |
38436 | { SWIG_PY_INT, (char *)"PAPER_A5_TRANSVERSE", (long) wxPAPER_A5_TRANSVERSE, 0, 0, 0}, | |
38437 | { SWIG_PY_INT, (char *)"PAPER_B5_TRANSVERSE", (long) wxPAPER_B5_TRANSVERSE, 0, 0, 0}, | |
38438 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA", (long) wxPAPER_A3_EXTRA, 0, 0, 0}, | |
38439 | { SWIG_PY_INT, (char *)"PAPER_A5_EXTRA", (long) wxPAPER_A5_EXTRA, 0, 0, 0}, | |
38440 | { SWIG_PY_INT, (char *)"PAPER_B5_EXTRA", (long) wxPAPER_B5_EXTRA, 0, 0, 0}, | |
38441 | { SWIG_PY_INT, (char *)"PAPER_A2", (long) wxPAPER_A2, 0, 0, 0}, | |
38442 | { SWIG_PY_INT, (char *)"PAPER_A3_TRANSVERSE", (long) wxPAPER_A3_TRANSVERSE, 0, 0, 0}, | |
38443 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA_TRANSVERSE", (long) wxPAPER_A3_EXTRA_TRANSVERSE, 0, 0, 0}, | |
38444 | { SWIG_PY_INT, (char *)"DUPLEX_SIMPLEX", (long) wxDUPLEX_SIMPLEX, 0, 0, 0}, | |
38445 | { SWIG_PY_INT, (char *)"DUPLEX_HORIZONTAL", (long) wxDUPLEX_HORIZONTAL, 0, 0, 0}, | |
38446 | { SWIG_PY_INT, (char *)"DUPLEX_VERTICAL", (long) wxDUPLEX_VERTICAL, 0, 0, 0}, | |
38447 | { SWIG_PY_INT, (char *)"ITEM_SEPARATOR", (long) wxITEM_SEPARATOR, 0, 0, 0}, | |
38448 | { SWIG_PY_INT, (char *)"ITEM_NORMAL", (long) wxITEM_NORMAL, 0, 0, 0}, | |
38449 | { SWIG_PY_INT, (char *)"ITEM_CHECK", (long) wxITEM_CHECK, 0, 0, 0}, | |
38450 | { SWIG_PY_INT, (char *)"ITEM_RADIO", (long) wxITEM_RADIO, 0, 0, 0}, | |
38451 | { SWIG_PY_INT, (char *)"ITEM_MAX", (long) wxITEM_MAX, 0, 0, 0}, | |
38452 | { SWIG_PY_INT, (char *)"HT_NOWHERE", (long) wxHT_NOWHERE, 0, 0, 0}, | |
38453 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_FIRST", (long) wxHT_SCROLLBAR_FIRST, 0, 0, 0}, | |
38454 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_1", (long) wxHT_SCROLLBAR_ARROW_LINE_1, 0, 0, 0}, | |
38455 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_2", (long) wxHT_SCROLLBAR_ARROW_LINE_2, 0, 0, 0}, | |
38456 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_1", (long) wxHT_SCROLLBAR_ARROW_PAGE_1, 0, 0, 0}, | |
38457 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_2", (long) wxHT_SCROLLBAR_ARROW_PAGE_2, 0, 0, 0}, | |
38458 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_THUMB", (long) wxHT_SCROLLBAR_THUMB, 0, 0, 0}, | |
38459 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_1", (long) wxHT_SCROLLBAR_BAR_1, 0, 0, 0}, | |
38460 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_2", (long) wxHT_SCROLLBAR_BAR_2, 0, 0, 0}, | |
38461 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_LAST", (long) wxHT_SCROLLBAR_LAST, 0, 0, 0}, | |
38462 | { SWIG_PY_INT, (char *)"HT_WINDOW_OUTSIDE", (long) wxHT_WINDOW_OUTSIDE, 0, 0, 0}, | |
38463 | { SWIG_PY_INT, (char *)"HT_WINDOW_INSIDE", (long) wxHT_WINDOW_INSIDE, 0, 0, 0}, | |
38464 | { SWIG_PY_INT, (char *)"HT_WINDOW_VERT_SCROLLBAR", (long) wxHT_WINDOW_VERT_SCROLLBAR, 0, 0, 0}, | |
38465 | { SWIG_PY_INT, (char *)"HT_WINDOW_HORZ_SCROLLBAR", (long) wxHT_WINDOW_HORZ_SCROLLBAR, 0, 0, 0}, | |
38466 | { SWIG_PY_INT, (char *)"HT_WINDOW_CORNER", (long) wxHT_WINDOW_CORNER, 0, 0, 0}, | |
38467 | { SWIG_PY_INT, (char *)"HT_MAX", (long) wxHT_MAX, 0, 0, 0}, | |
38468 | { SWIG_PY_INT, (char *)"MOD_NONE", (long) wxMOD_NONE, 0, 0, 0}, | |
38469 | { SWIG_PY_INT, (char *)"MOD_ALT", (long) wxMOD_ALT, 0, 0, 0}, | |
38470 | { SWIG_PY_INT, (char *)"MOD_CONTROL", (long) wxMOD_CONTROL, 0, 0, 0}, | |
38471 | { SWIG_PY_INT, (char *)"MOD_SHIFT", (long) wxMOD_SHIFT, 0, 0, 0}, | |
38472 | { SWIG_PY_INT, (char *)"MOD_WIN", (long) wxMOD_WIN, 0, 0, 0}, | |
38473 | { SWIG_PY_INT, (char *)"UPDATE_UI_NONE", (long) wxUPDATE_UI_NONE, 0, 0, 0}, | |
38474 | { SWIG_PY_INT, (char *)"UPDATE_UI_RECURSE", (long) wxUPDATE_UI_RECURSE, 0, 0, 0}, | |
38475 | { SWIG_PY_INT, (char *)"UPDATE_UI_FROMIDLE", (long) wxUPDATE_UI_FROMIDLE, 0, 0, 0}, | |
38476 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_INVALID", (long) wxBITMAP_TYPE_INVALID, 0, 0, 0}, | |
38477 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP", (long) wxBITMAP_TYPE_BMP, 0, 0, 0}, | |
d14a1e28 | 38478 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO", (long) wxBITMAP_TYPE_ICO, 0, 0, 0}, |
d14a1e28 | 38479 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR", (long) wxBITMAP_TYPE_CUR, 0, 0, 0}, |
d14a1e28 RD |
38480 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM", (long) wxBITMAP_TYPE_XBM, 0, 0, 0}, |
38481 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM_DATA", (long) wxBITMAP_TYPE_XBM_DATA, 0, 0, 0}, | |
38482 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM", (long) wxBITMAP_TYPE_XPM, 0, 0, 0}, | |
38483 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM_DATA", (long) wxBITMAP_TYPE_XPM_DATA, 0, 0, 0}, | |
38484 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF", (long) wxBITMAP_TYPE_TIF, 0, 0, 0}, | |
d14a1e28 | 38485 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF", (long) wxBITMAP_TYPE_GIF, 0, 0, 0}, |
d14a1e28 | 38486 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG", (long) wxBITMAP_TYPE_PNG, 0, 0, 0}, |
d14a1e28 | 38487 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG", (long) wxBITMAP_TYPE_JPEG, 0, 0, 0}, |
d14a1e28 | 38488 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM", (long) wxBITMAP_TYPE_PNM, 0, 0, 0}, |
d14a1e28 | 38489 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX", (long) wxBITMAP_TYPE_PCX, 0, 0, 0}, |
d14a1e28 | 38490 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT", (long) wxBITMAP_TYPE_PICT, 0, 0, 0}, |
d14a1e28 | 38491 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON", (long) wxBITMAP_TYPE_ICON, 0, 0, 0}, |
d14a1e28 RD |
38492 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANI", (long) wxBITMAP_TYPE_ANI, 0, 0, 0}, |
38493 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_IFF", (long) wxBITMAP_TYPE_IFF, 0, 0, 0}, | |
38494 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR", (long) wxBITMAP_TYPE_MACCURSOR, 0, 0, 0}, | |
d14a1e28 RD |
38495 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANY", (long) wxBITMAP_TYPE_ANY, 0, 0, 0}, |
38496 | { SWIG_PY_INT, (char *)"CURSOR_NONE", (long) wxCURSOR_NONE, 0, 0, 0}, | |
38497 | { SWIG_PY_INT, (char *)"CURSOR_ARROW", (long) wxCURSOR_ARROW, 0, 0, 0}, | |
38498 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_ARROW", (long) wxCURSOR_RIGHT_ARROW, 0, 0, 0}, | |
38499 | { SWIG_PY_INT, (char *)"CURSOR_BULLSEYE", (long) wxCURSOR_BULLSEYE, 0, 0, 0}, | |
38500 | { SWIG_PY_INT, (char *)"CURSOR_CHAR", (long) wxCURSOR_CHAR, 0, 0, 0}, | |
38501 | { SWIG_PY_INT, (char *)"CURSOR_CROSS", (long) wxCURSOR_CROSS, 0, 0, 0}, | |
38502 | { SWIG_PY_INT, (char *)"CURSOR_HAND", (long) wxCURSOR_HAND, 0, 0, 0}, | |
38503 | { SWIG_PY_INT, (char *)"CURSOR_IBEAM", (long) wxCURSOR_IBEAM, 0, 0, 0}, | |
38504 | { SWIG_PY_INT, (char *)"CURSOR_LEFT_BUTTON", (long) wxCURSOR_LEFT_BUTTON, 0, 0, 0}, | |
38505 | { SWIG_PY_INT, (char *)"CURSOR_MAGNIFIER", (long) wxCURSOR_MAGNIFIER, 0, 0, 0}, | |
38506 | { SWIG_PY_INT, (char *)"CURSOR_MIDDLE_BUTTON", (long) wxCURSOR_MIDDLE_BUTTON, 0, 0, 0}, | |
38507 | { SWIG_PY_INT, (char *)"CURSOR_NO_ENTRY", (long) wxCURSOR_NO_ENTRY, 0, 0, 0}, | |
38508 | { SWIG_PY_INT, (char *)"CURSOR_PAINT_BRUSH", (long) wxCURSOR_PAINT_BRUSH, 0, 0, 0}, | |
38509 | { SWIG_PY_INT, (char *)"CURSOR_PENCIL", (long) wxCURSOR_PENCIL, 0, 0, 0}, | |
38510 | { SWIG_PY_INT, (char *)"CURSOR_POINT_LEFT", (long) wxCURSOR_POINT_LEFT, 0, 0, 0}, | |
38511 | { SWIG_PY_INT, (char *)"CURSOR_POINT_RIGHT", (long) wxCURSOR_POINT_RIGHT, 0, 0, 0}, | |
38512 | { SWIG_PY_INT, (char *)"CURSOR_QUESTION_ARROW", (long) wxCURSOR_QUESTION_ARROW, 0, 0, 0}, | |
38513 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_BUTTON", (long) wxCURSOR_RIGHT_BUTTON, 0, 0, 0}, | |
38514 | { SWIG_PY_INT, (char *)"CURSOR_SIZENESW", (long) wxCURSOR_SIZENESW, 0, 0, 0}, | |
38515 | { SWIG_PY_INT, (char *)"CURSOR_SIZENS", (long) wxCURSOR_SIZENS, 0, 0, 0}, | |
38516 | { SWIG_PY_INT, (char *)"CURSOR_SIZENWSE", (long) wxCURSOR_SIZENWSE, 0, 0, 0}, | |
38517 | { SWIG_PY_INT, (char *)"CURSOR_SIZEWE", (long) wxCURSOR_SIZEWE, 0, 0, 0}, | |
38518 | { SWIG_PY_INT, (char *)"CURSOR_SIZING", (long) wxCURSOR_SIZING, 0, 0, 0}, | |
38519 | { SWIG_PY_INT, (char *)"CURSOR_SPRAYCAN", (long) wxCURSOR_SPRAYCAN, 0, 0, 0}, | |
38520 | { SWIG_PY_INT, (char *)"CURSOR_WAIT", (long) wxCURSOR_WAIT, 0, 0, 0}, | |
38521 | { SWIG_PY_INT, (char *)"CURSOR_WATCH", (long) wxCURSOR_WATCH, 0, 0, 0}, | |
38522 | { SWIG_PY_INT, (char *)"CURSOR_BLANK", (long) wxCURSOR_BLANK, 0, 0, 0}, | |
38523 | { SWIG_PY_INT, (char *)"CURSOR_DEFAULT", (long) wxCURSOR_DEFAULT, 0, 0, 0}, | |
38524 | { SWIG_PY_INT, (char *)"CURSOR_COPY_ARROW", (long) wxCURSOR_COPY_ARROW, 0, 0, 0}, | |
38525 | { SWIG_PY_INT, (char *)"CURSOR_ARROWWAIT", (long) wxCURSOR_ARROWWAIT, 0, 0, 0}, | |
38526 | { SWIG_PY_INT, (char *)"CURSOR_MAX", (long) wxCURSOR_MAX, 0, 0, 0}, | |
38527 | { SWIG_PY_INT, (char *)"FromStart", (long) wxFromStart, 0, 0, 0}, | |
38528 | { SWIG_PY_INT, (char *)"FromCurrent", (long) wxFromCurrent, 0, 0, 0}, | |
38529 | { SWIG_PY_INT, (char *)"FromEnd", (long) wxFromEnd, 0, 0, 0}, | |
38530 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_INCHES", (long) wxIMAGE_RESOLUTION_INCHES, 0, 0, 0}, | |
38531 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_CM", (long) wxIMAGE_RESOLUTION_CM, 0, 0, 0}, | |
38532 | { SWIG_PY_INT, (char *)"BMP_24BPP", (long) wxBMP_24BPP, 0, 0, 0}, | |
38533 | { SWIG_PY_INT, (char *)"BMP_8BPP", (long) wxBMP_8BPP, 0, 0, 0}, | |
38534 | { SWIG_PY_INT, (char *)"BMP_8BPP_GREY", (long) wxBMP_8BPP_GREY, 0, 0, 0}, | |
38535 | { SWIG_PY_INT, (char *)"BMP_8BPP_GRAY", (long) wxBMP_8BPP_GRAY, 0, 0, 0}, | |
38536 | { SWIG_PY_INT, (char *)"BMP_8BPP_RED", (long) wxBMP_8BPP_RED, 0, 0, 0}, | |
38537 | { SWIG_PY_INT, (char *)"BMP_8BPP_PALETTE", (long) wxBMP_8BPP_PALETTE, 0, 0, 0}, | |
38538 | { SWIG_PY_INT, (char *)"BMP_4BPP", (long) wxBMP_4BPP, 0, 0, 0}, | |
38539 | { SWIG_PY_INT, (char *)"BMP_1BPP", (long) wxBMP_1BPP, 0, 0, 0}, | |
38540 | { SWIG_PY_INT, (char *)"BMP_1BPP_BW", (long) wxBMP_1BPP_BW, 0, 0, 0}, | |
38541 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_NONE", (long) wxEVENT_PROPAGATE_NONE, 0, 0, 0}, | |
38542 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_MAX", (long) wxEVENT_PROPAGATE_MAX, 0, 0, 0}, | |
38543 | { SWIG_PY_INT, (char *)"wxEVT_NULL", (long) wxEVT_NULL, 0, 0, 0}, | |
38544 | { SWIG_PY_INT, (char *)"wxEVT_FIRST", (long) wxEVT_FIRST, 0, 0, 0}, | |
38545 | { SWIG_PY_INT, (char *)"wxEVT_USER_FIRST", (long) wxEVT_USER_FIRST, 0, 0, 0}, | |
38546 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_BUTTON_CLICKED", (long) wxEVT_COMMAND_BUTTON_CLICKED, 0, 0, 0}, | |
38547 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKBOX_CLICKED", (long) wxEVT_COMMAND_CHECKBOX_CLICKED, 0, 0, 0}, | |
38548 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHOICE_SELECTED", (long) wxEVT_COMMAND_CHOICE_SELECTED, 0, 0, 0}, | |
38549 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_SELECTED", (long) wxEVT_COMMAND_LISTBOX_SELECTED, 0, 0, 0}, | |
38550 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", (long) wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 0, 0, 0}, | |
38551 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", (long) wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 0, 0, 0}, | |
38552 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_MENU_SELECTED", (long) wxEVT_COMMAND_MENU_SELECTED, 0, 0, 0}, | |
38553 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_CLICKED", (long) wxEVT_COMMAND_TOOL_CLICKED, 0, 0, 0}, | |
38554 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SLIDER_UPDATED", (long) wxEVT_COMMAND_SLIDER_UPDATED, 0, 0, 0}, | |
38555 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBOX_SELECTED", (long) wxEVT_COMMAND_RADIOBOX_SELECTED, 0, 0, 0}, | |
38556 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBUTTON_SELECTED", (long) wxEVT_COMMAND_RADIOBUTTON_SELECTED, 0, 0, 0}, | |
38557 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SCROLLBAR_UPDATED", (long) wxEVT_COMMAND_SCROLLBAR_UPDATED, 0, 0, 0}, | |
38558 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_VLBOX_SELECTED", (long) wxEVT_COMMAND_VLBOX_SELECTED, 0, 0, 0}, | |
38559 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_COMBOBOX_SELECTED", (long) wxEVT_COMMAND_COMBOBOX_SELECTED, 0, 0, 0}, | |
38560 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_RCLICKED", (long) wxEVT_COMMAND_TOOL_RCLICKED, 0, 0, 0}, | |
38561 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_ENTER", (long) wxEVT_COMMAND_TOOL_ENTER, 0, 0, 0}, | |
38562 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DOWN", (long) wxEVT_LEFT_DOWN, 0, 0, 0}, | |
38563 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_UP", (long) wxEVT_LEFT_UP, 0, 0, 0}, | |
38564 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DOWN", (long) wxEVT_MIDDLE_DOWN, 0, 0, 0}, | |
38565 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_UP", (long) wxEVT_MIDDLE_UP, 0, 0, 0}, | |
38566 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DOWN", (long) wxEVT_RIGHT_DOWN, 0, 0, 0}, | |
38567 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_UP", (long) wxEVT_RIGHT_UP, 0, 0, 0}, | |
38568 | { SWIG_PY_INT, (char *)"wxEVT_MOTION", (long) wxEVT_MOTION, 0, 0, 0}, | |
38569 | { SWIG_PY_INT, (char *)"wxEVT_ENTER_WINDOW", (long) wxEVT_ENTER_WINDOW, 0, 0, 0}, | |
38570 | { SWIG_PY_INT, (char *)"wxEVT_LEAVE_WINDOW", (long) wxEVT_LEAVE_WINDOW, 0, 0, 0}, | |
38571 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DCLICK", (long) wxEVT_LEFT_DCLICK, 0, 0, 0}, | |
38572 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DCLICK", (long) wxEVT_MIDDLE_DCLICK, 0, 0, 0}, | |
38573 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DCLICK", (long) wxEVT_RIGHT_DCLICK, 0, 0, 0}, | |
38574 | { SWIG_PY_INT, (char *)"wxEVT_SET_FOCUS", (long) wxEVT_SET_FOCUS, 0, 0, 0}, | |
38575 | { SWIG_PY_INT, (char *)"wxEVT_KILL_FOCUS", (long) wxEVT_KILL_FOCUS, 0, 0, 0}, | |
38576 | { SWIG_PY_INT, (char *)"wxEVT_CHILD_FOCUS", (long) wxEVT_CHILD_FOCUS, 0, 0, 0}, | |
38577 | { SWIG_PY_INT, (char *)"wxEVT_MOUSEWHEEL", (long) wxEVT_MOUSEWHEEL, 0, 0, 0}, | |
38578 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DOWN", (long) wxEVT_NC_LEFT_DOWN, 0, 0, 0}, | |
38579 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_UP", (long) wxEVT_NC_LEFT_UP, 0, 0, 0}, | |
38580 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DOWN", (long) wxEVT_NC_MIDDLE_DOWN, 0, 0, 0}, | |
38581 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_UP", (long) wxEVT_NC_MIDDLE_UP, 0, 0, 0}, | |
38582 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DOWN", (long) wxEVT_NC_RIGHT_DOWN, 0, 0, 0}, | |
38583 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_UP", (long) wxEVT_NC_RIGHT_UP, 0, 0, 0}, | |
38584 | { SWIG_PY_INT, (char *)"wxEVT_NC_MOTION", (long) wxEVT_NC_MOTION, 0, 0, 0}, | |
38585 | { SWIG_PY_INT, (char *)"wxEVT_NC_ENTER_WINDOW", (long) wxEVT_NC_ENTER_WINDOW, 0, 0, 0}, | |
38586 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEAVE_WINDOW", (long) wxEVT_NC_LEAVE_WINDOW, 0, 0, 0}, | |
38587 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DCLICK", (long) wxEVT_NC_LEFT_DCLICK, 0, 0, 0}, | |
38588 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DCLICK", (long) wxEVT_NC_MIDDLE_DCLICK, 0, 0, 0}, | |
38589 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DCLICK", (long) wxEVT_NC_RIGHT_DCLICK, 0, 0, 0}, | |
38590 | { SWIG_PY_INT, (char *)"wxEVT_CHAR", (long) wxEVT_CHAR, 0, 0, 0}, | |
38591 | { SWIG_PY_INT, (char *)"wxEVT_CHAR_HOOK", (long) wxEVT_CHAR_HOOK, 0, 0, 0}, | |
38592 | { SWIG_PY_INT, (char *)"wxEVT_NAVIGATION_KEY", (long) wxEVT_NAVIGATION_KEY, 0, 0, 0}, | |
38593 | { SWIG_PY_INT, (char *)"wxEVT_KEY_DOWN", (long) wxEVT_KEY_DOWN, 0, 0, 0}, | |
38594 | { SWIG_PY_INT, (char *)"wxEVT_KEY_UP", (long) wxEVT_KEY_UP, 0, 0, 0}, | |
38595 | { SWIG_PY_INT, (char *)"wxEVT_HOTKEY", (long) wxEVT_HOTKEY, 0, 0, 0}, | |
38596 | { SWIG_PY_INT, (char *)"wxEVT_SET_CURSOR", (long) wxEVT_SET_CURSOR, 0, 0, 0}, | |
38597 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_TOP", (long) wxEVT_SCROLL_TOP, 0, 0, 0}, | |
38598 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_BOTTOM", (long) wxEVT_SCROLL_BOTTOM, 0, 0, 0}, | |
38599 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEUP", (long) wxEVT_SCROLL_LINEUP, 0, 0, 0}, | |
38600 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEDOWN", (long) wxEVT_SCROLL_LINEDOWN, 0, 0, 0}, | |
38601 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEUP", (long) wxEVT_SCROLL_PAGEUP, 0, 0, 0}, | |
38602 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEDOWN", (long) wxEVT_SCROLL_PAGEDOWN, 0, 0, 0}, | |
38603 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBTRACK", (long) wxEVT_SCROLL_THUMBTRACK, 0, 0, 0}, | |
38604 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBRELEASE", (long) wxEVT_SCROLL_THUMBRELEASE, 0, 0, 0}, | |
38605 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_ENDSCROLL", (long) wxEVT_SCROLL_ENDSCROLL, 0, 0, 0}, | |
38606 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_TOP", (long) wxEVT_SCROLLWIN_TOP, 0, 0, 0}, | |
38607 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_BOTTOM", (long) wxEVT_SCROLLWIN_BOTTOM, 0, 0, 0}, | |
38608 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEUP", (long) wxEVT_SCROLLWIN_LINEUP, 0, 0, 0}, | |
38609 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEDOWN", (long) wxEVT_SCROLLWIN_LINEDOWN, 0, 0, 0}, | |
38610 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEUP", (long) wxEVT_SCROLLWIN_PAGEUP, 0, 0, 0}, | |
38611 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEDOWN", (long) wxEVT_SCROLLWIN_PAGEDOWN, 0, 0, 0}, | |
38612 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBTRACK", (long) wxEVT_SCROLLWIN_THUMBTRACK, 0, 0, 0}, | |
38613 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBRELEASE", (long) wxEVT_SCROLLWIN_THUMBRELEASE, 0, 0, 0}, | |
38614 | { SWIG_PY_INT, (char *)"wxEVT_SIZE", (long) wxEVT_SIZE, 0, 0, 0}, | |
38615 | { SWIG_PY_INT, (char *)"wxEVT_MOVE", (long) wxEVT_MOVE, 0, 0, 0}, | |
38616 | { SWIG_PY_INT, (char *)"wxEVT_CLOSE_WINDOW", (long) wxEVT_CLOSE_WINDOW, 0, 0, 0}, | |
38617 | { SWIG_PY_INT, (char *)"wxEVT_END_SESSION", (long) wxEVT_END_SESSION, 0, 0, 0}, | |
38618 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_END_SESSION", (long) wxEVT_QUERY_END_SESSION, 0, 0, 0}, | |
38619 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE_APP", (long) wxEVT_ACTIVATE_APP, 0, 0, 0}, | |
38620 | { SWIG_PY_INT, (char *)"wxEVT_POWER", (long) wxEVT_POWER, 0, 0, 0}, | |
38621 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE", (long) wxEVT_ACTIVATE, 0, 0, 0}, | |
38622 | { SWIG_PY_INT, (char *)"wxEVT_CREATE", (long) wxEVT_CREATE, 0, 0, 0}, | |
38623 | { SWIG_PY_INT, (char *)"wxEVT_DESTROY", (long) wxEVT_DESTROY, 0, 0, 0}, | |
38624 | { SWIG_PY_INT, (char *)"wxEVT_SHOW", (long) wxEVT_SHOW, 0, 0, 0}, | |
38625 | { SWIG_PY_INT, (char *)"wxEVT_ICONIZE", (long) wxEVT_ICONIZE, 0, 0, 0}, | |
38626 | { SWIG_PY_INT, (char *)"wxEVT_MAXIMIZE", (long) wxEVT_MAXIMIZE, 0, 0, 0}, | |
38627 | { SWIG_PY_INT, (char *)"wxEVT_MOUSE_CAPTURE_CHANGED", (long) wxEVT_MOUSE_CAPTURE_CHANGED, 0, 0, 0}, | |
38628 | { SWIG_PY_INT, (char *)"wxEVT_PAINT", (long) wxEVT_PAINT, 0, 0, 0}, | |
38629 | { SWIG_PY_INT, (char *)"wxEVT_ERASE_BACKGROUND", (long) wxEVT_ERASE_BACKGROUND, 0, 0, 0}, | |
38630 | { SWIG_PY_INT, (char *)"wxEVT_NC_PAINT", (long) wxEVT_NC_PAINT, 0, 0, 0}, | |
38631 | { SWIG_PY_INT, (char *)"wxEVT_PAINT_ICON", (long) wxEVT_PAINT_ICON, 0, 0, 0}, | |
38632 | { SWIG_PY_INT, (char *)"wxEVT_MENU_OPEN", (long) wxEVT_MENU_OPEN, 0, 0, 0}, | |
38633 | { SWIG_PY_INT, (char *)"wxEVT_MENU_CLOSE", (long) wxEVT_MENU_CLOSE, 0, 0, 0}, | |
38634 | { SWIG_PY_INT, (char *)"wxEVT_MENU_HIGHLIGHT", (long) wxEVT_MENU_HIGHLIGHT, 0, 0, 0}, | |
38635 | { SWIG_PY_INT, (char *)"wxEVT_CONTEXT_MENU", (long) wxEVT_CONTEXT_MENU, 0, 0, 0}, | |
38636 | { SWIG_PY_INT, (char *)"wxEVT_SYS_COLOUR_CHANGED", (long) wxEVT_SYS_COLOUR_CHANGED, 0, 0, 0}, | |
38637 | { SWIG_PY_INT, (char *)"wxEVT_DISPLAY_CHANGED", (long) wxEVT_DISPLAY_CHANGED, 0, 0, 0}, | |
38638 | { SWIG_PY_INT, (char *)"wxEVT_SETTING_CHANGED", (long) wxEVT_SETTING_CHANGED, 0, 0, 0}, | |
38639 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_NEW_PALETTE", (long) wxEVT_QUERY_NEW_PALETTE, 0, 0, 0}, | |
38640 | { SWIG_PY_INT, (char *)"wxEVT_PALETTE_CHANGED", (long) wxEVT_PALETTE_CHANGED, 0, 0, 0}, | |
38641 | { SWIG_PY_INT, (char *)"wxEVT_DROP_FILES", (long) wxEVT_DROP_FILES, 0, 0, 0}, | |
38642 | { SWIG_PY_INT, (char *)"wxEVT_DRAW_ITEM", (long) wxEVT_DRAW_ITEM, 0, 0, 0}, | |
38643 | { SWIG_PY_INT, (char *)"wxEVT_MEASURE_ITEM", (long) wxEVT_MEASURE_ITEM, 0, 0, 0}, | |
38644 | { SWIG_PY_INT, (char *)"wxEVT_COMPARE_ITEM", (long) wxEVT_COMPARE_ITEM, 0, 0, 0}, | |
38645 | { SWIG_PY_INT, (char *)"wxEVT_INIT_DIALOG", (long) wxEVT_INIT_DIALOG, 0, 0, 0}, | |
38646 | { SWIG_PY_INT, (char *)"wxEVT_IDLE", (long) wxEVT_IDLE, 0, 0, 0}, | |
38647 | { SWIG_PY_INT, (char *)"wxEVT_UPDATE_UI", (long) wxEVT_UPDATE_UI, 0, 0, 0}, | |
38648 | { SWIG_PY_INT, (char *)"wxEVT_SIZING", (long) wxEVT_SIZING, 0, 0, 0}, | |
38649 | { SWIG_PY_INT, (char *)"wxEVT_MOVING", (long) wxEVT_MOVING, 0, 0, 0}, | |
38650 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_CLICK", (long) wxEVT_COMMAND_LEFT_CLICK, 0, 0, 0}, | |
38651 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_DCLICK", (long) wxEVT_COMMAND_LEFT_DCLICK, 0, 0, 0}, | |
38652 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_CLICK", (long) wxEVT_COMMAND_RIGHT_CLICK, 0, 0, 0}, | |
38653 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_DCLICK", (long) wxEVT_COMMAND_RIGHT_DCLICK, 0, 0, 0}, | |
38654 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SET_FOCUS", (long) wxEVT_COMMAND_SET_FOCUS, 0, 0, 0}, | |
38655 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_KILL_FOCUS", (long) wxEVT_COMMAND_KILL_FOCUS, 0, 0, 0}, | |
38656 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_ENTER", (long) wxEVT_COMMAND_ENTER, 0, 0, 0}, | |
38657 | { SWIG_PY_INT, (char *)"MOUSE_BTN_ANY", (long) wxMOUSE_BTN_ANY, 0, 0, 0}, | |
38658 | { SWIG_PY_INT, (char *)"MOUSE_BTN_NONE", (long) wxMOUSE_BTN_NONE, 0, 0, 0}, | |
38659 | { SWIG_PY_INT, (char *)"MOUSE_BTN_LEFT", (long) wxMOUSE_BTN_LEFT, 0, 0, 0}, | |
38660 | { SWIG_PY_INT, (char *)"MOUSE_BTN_MIDDLE", (long) wxMOUSE_BTN_MIDDLE, 0, 0, 0}, | |
38661 | { SWIG_PY_INT, (char *)"MOUSE_BTN_RIGHT", (long) wxMOUSE_BTN_RIGHT, 0, 0, 0}, | |
38662 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_ALL", (long) wxUPDATE_UI_PROCESS_ALL, 0, 0, 0}, | |
38663 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_SPECIFIED", (long) wxUPDATE_UI_PROCESS_SPECIFIED, 0, 0, 0}, | |
38664 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_ALL", (long) wxIDLE_PROCESS_ALL, 0, 0, 0}, | |
38665 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_SPECIFIED", (long) wxIDLE_PROCESS_SPECIFIED, 0, 0, 0}, | |
38666 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_SUPPRESS", (long) wxPYAPP_ASSERT_SUPPRESS, 0, 0, 0}, | |
38667 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_EXCEPTION", (long) wxPYAPP_ASSERT_EXCEPTION, 0, 0, 0}, | |
38668 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_DIALOG", (long) wxPYAPP_ASSERT_DIALOG, 0, 0, 0}, | |
38669 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_LOG", (long) wxPYAPP_ASSERT_LOG, 0, 0, 0}, | |
38670 | { SWIG_PY_INT, (char *)"PRINT_WINDOWS", (long) wxPRINT_WINDOWS, 0, 0, 0}, | |
38671 | { SWIG_PY_INT, (char *)"PRINT_POSTSCRIPT", (long) wxPRINT_POSTSCRIPT, 0, 0, 0}, | |
38672 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_NONE", (long) wxFLEX_GROWMODE_NONE, 0, 0, 0}, | |
38673 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_SPECIFIED", (long) wxFLEX_GROWMODE_SPECIFIED, 0, 0, 0}, | |
38674 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_ALL", (long) wxFLEX_GROWMODE_ALL, 0, 0, 0}, | |
38675 | { SWIG_PY_INT, (char *)"Left", (long) wxLeft, 0, 0, 0}, | |
38676 | { SWIG_PY_INT, (char *)"Top", (long) wxTop, 0, 0, 0}, | |
38677 | { SWIG_PY_INT, (char *)"Right", (long) wxRight, 0, 0, 0}, | |
38678 | { SWIG_PY_INT, (char *)"Bottom", (long) wxBottom, 0, 0, 0}, | |
38679 | { SWIG_PY_INT, (char *)"Width", (long) wxWidth, 0, 0, 0}, | |
38680 | { SWIG_PY_INT, (char *)"Height", (long) wxHeight, 0, 0, 0}, | |
38681 | { SWIG_PY_INT, (char *)"Centre", (long) wxCentre, 0, 0, 0}, | |
38682 | { SWIG_PY_INT, (char *)"Center", (long) wxCenter, 0, 0, 0}, | |
38683 | { SWIG_PY_INT, (char *)"CentreX", (long) wxCentreX, 0, 0, 0}, | |
38684 | { SWIG_PY_INT, (char *)"CentreY", (long) wxCentreY, 0, 0, 0}, | |
38685 | { SWIG_PY_INT, (char *)"Unconstrained", (long) wxUnconstrained, 0, 0, 0}, | |
38686 | { SWIG_PY_INT, (char *)"AsIs", (long) wxAsIs, 0, 0, 0}, | |
38687 | { SWIG_PY_INT, (char *)"PercentOf", (long) wxPercentOf, 0, 0, 0}, | |
38688 | { SWIG_PY_INT, (char *)"Above", (long) wxAbove, 0, 0, 0}, | |
38689 | { SWIG_PY_INT, (char *)"Below", (long) wxBelow, 0, 0, 0}, | |
38690 | { SWIG_PY_INT, (char *)"LeftOf", (long) wxLeftOf, 0, 0, 0}, | |
38691 | { SWIG_PY_INT, (char *)"RightOf", (long) wxRightOf, 0, 0, 0}, | |
38692 | { SWIG_PY_INT, (char *)"SameAs", (long) wxSameAs, 0, 0, 0}, | |
38693 | { SWIG_PY_INT, (char *)"Absolute", (long) wxAbsolute, 0, 0, 0}, | |
38694 | {0}}; | |
38695 | ||
38696 | #ifdef __cplusplus | |
38697 | } | |
38698 | #endif | |
38699 | ||
38700 | #ifdef __cplusplus | |
38701 | extern "C" | |
38702 | #endif | |
38703 | SWIGEXPORT(void) SWIG_init(void) { | |
38704 | static PyObject *SWIG_globals = 0; | |
38705 | static int typeinit = 0; | |
38706 | PyObject *m, *d; | |
38707 | int i; | |
38708 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
38709 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
38710 | d = PyModule_GetDict(m); | |
38711 | ||
38712 | if (!typeinit) { | |
38713 | for (i = 0; swig_types_initial[i]; i++) { | |
38714 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
38715 | } | |
38716 | typeinit = 1; | |
38717 | } | |
38718 | SWIG_InstallConstants(d,swig_const_table); | |
38719 | ||
38720 | ||
38721 | #ifndef wxPyUSE_EXPORT | |
38722 | // Make our API structure a CObject so other modules can import it | |
38723 | // from this module. | |
38724 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
38725 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
38726 | Py_XDECREF(cobj); | |
38727 | #endif | |
38728 | ||
38729 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
196addbf | 38730 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
d14a1e28 RD |
38731 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
38732 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
38733 | ||
38734 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
38735 | ||
38736 | ||
38737 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
38738 | ||
38739 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
38740 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
38741 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
38742 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
38743 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
38744 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
38745 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
38746 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
38747 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
38748 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
38749 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
38750 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
38751 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
38752 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
38753 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
38754 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
38755 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
38756 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
38757 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
38758 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
38759 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
38760 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
38761 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
38762 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
38763 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
38764 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
38765 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
38766 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
38767 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
38768 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
38769 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
38770 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
38771 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
38772 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
38773 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
38774 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
38775 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
38776 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
38777 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
38778 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
38779 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
38780 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
38781 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
38782 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
38783 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
38784 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
38785 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
38786 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
38787 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
38788 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
38789 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
38790 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
38791 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
38792 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
38793 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
38794 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
38795 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
38796 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
38797 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
38798 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
38799 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
38800 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
38801 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
38802 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
38803 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
38804 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
38805 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
38806 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
38807 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
38808 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
38809 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
38810 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
38811 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
38812 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
38813 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
38814 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
38815 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
38816 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
38817 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
38818 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
38819 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
38820 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
38821 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
38822 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
38823 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
38824 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
38825 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
38826 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
38827 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
38828 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
38829 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
38830 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
38831 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
38832 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
38833 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
38834 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
38835 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
38836 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
38837 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
38838 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
38839 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
38840 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
38841 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
38842 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
38843 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
38844 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
38845 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
38846 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
38847 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
38848 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
38849 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
38850 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
38851 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
38852 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
38853 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
38854 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
38855 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
38856 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
38857 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
38858 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
1e0c8722 | 38859 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 38860 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 38861 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 38862 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
d14a1e28 RD |
38863 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
38864 | ||
38865 | // Initialize threading, some globals and such | |
38866 | __wxPyPreStart(d); | |
38867 | ||
38868 | ||
38869 | // Although these are defined in __version__ they need to be here too so | |
38870 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
38871 | // versions match. | |
38872 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
38873 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
38874 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
38875 | ||
38876 | } | |
38877 |