]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_core_wrap.cpp
wxPageSetupDialog no longer derives from wxDialog
[wxWidgets.git] / wxPython / src / mac / _core_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
212 #define SWIGTYPE_p_wxRealPoint swig_types[1]
213 #define SWIGTYPE_p_wxSizerItem swig_types[2]
214 #define SWIGTYPE_p_wxGBSizerItem swig_types[3]
215 #define SWIGTYPE_p_wxScrollEvent swig_types[4]
216 #define SWIGTYPE_p_wxEventLoop swig_types[5]
217 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6]
218 #define SWIGTYPE_p_wxSizer swig_types[7]
219 #define SWIGTYPE_p_wxBoxSizer swig_types[8]
220 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[9]
221 #define SWIGTYPE_p_wxGridBagSizer swig_types[10]
222 #define SWIGTYPE_p_wxAcceleratorEntry swig_types[11]
223 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[12]
224 #define SWIGTYPE_p_wxMenu swig_types[13]
225 #define SWIGTYPE_p_wxEvent swig_types[14]
226 #define SWIGTYPE_p_wxGridSizer swig_types[15]
227 #define SWIGTYPE_p_wxFlexGridSizer swig_types[16]
228 #define SWIGTYPE_p_wxInitDialogEvent swig_types[17]
229 #define SWIGTYPE_p_wxItemContainer swig_types[18]
230 #define SWIGTYPE_p_wxNcPaintEvent swig_types[19]
231 #define SWIGTYPE_p_wxPaintEvent swig_types[20]
232 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[21]
233 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[22]
234 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23]
235 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[24]
236 #define SWIGTYPE_p_wxControl swig_types[25]
237 #define SWIGTYPE_p_wxFont swig_types[26]
238 #define SWIGTYPE_p_wxMenuBarBase swig_types[27]
239 #define SWIGTYPE_p_wxSetCursorEvent swig_types[28]
240 #define SWIGTYPE_p_wxFSFile swig_types[29]
241 #define SWIGTYPE_p_wxCaret swig_types[30]
242 #define SWIGTYPE_p_wxRegion swig_types[31]
243 #define SWIGTYPE_p_wxPoint2D swig_types[32]
244 #define SWIGTYPE_p_int swig_types[33]
245 #define SWIGTYPE_p_wxSize swig_types[34]
246 #define SWIGTYPE_p_wxDC swig_types[35]
247 #define SWIGTYPE_p_wxPySizer swig_types[36]
248 #define SWIGTYPE_p_wxVisualAttributes swig_types[37]
249 #define SWIGTYPE_p_wxNotifyEvent swig_types[38]
250 #define SWIGTYPE_p_wxPyEvent swig_types[39]
251 #define SWIGTYPE_p_wxPropagationDisabler swig_types[40]
252 #define SWIGTYPE_p_wxAppTraits swig_types[41]
253 #define SWIGTYPE_p_wxArrayString swig_types[42]
254 #define SWIGTYPE_p_wxShowEvent swig_types[43]
255 #define SWIGTYPE_p_wxToolTip swig_types[44]
256 #define SWIGTYPE_p_wxIconizeEvent swig_types[45]
257 #define SWIGTYPE_p_wxActivateEvent swig_types[46]
258 #define SWIGTYPE_p_wxMoveEvent swig_types[47]
259 #define SWIGTYPE_p_wxSizeEvent swig_types[48]
260 #define SWIGTYPE_p_wxMaximizeEvent swig_types[49]
261 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[50]
262 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[51]
263 #define SWIGTYPE_p_wxIdleEvent swig_types[52]
264 #define SWIGTYPE_p_wxMenuItem swig_types[53]
265 #define SWIGTYPE_p_wxStaticBox swig_types[54]
266 #define SWIGTYPE_p_long swig_types[55]
267 #define SWIGTYPE_p_wxTIFFHandler swig_types[56]
268 #define SWIGTYPE_p_wxXPMHandler swig_types[57]
269 #define SWIGTYPE_p_wxPNMHandler swig_types[58]
270 #define SWIGTYPE_p_wxJPEGHandler swig_types[59]
271 #define SWIGTYPE_p_wxPCXHandler swig_types[60]
272 #define SWIGTYPE_p_wxGIFHandler swig_types[61]
273 #define SWIGTYPE_p_wxPNGHandler swig_types[62]
274 #define SWIGTYPE_p_wxANIHandler swig_types[63]
275 #define SWIGTYPE_p_wxMemoryFSHandler swig_types[64]
276 #define SWIGTYPE_p_wxEvtHandler swig_types[65]
277 #define SWIGTYPE_p_wxCURHandler swig_types[66]
278 #define SWIGTYPE_p_wxICOHandler swig_types[67]
279 #define SWIGTYPE_p_wxBMPHandler swig_types[68]
280 #define SWIGTYPE_p_wxImageHandler swig_types[69]
281 #define SWIGTYPE_p_wxFileSystemHandler swig_types[70]
282 #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[71]
283 #define SWIGTYPE_p_wxInternetFSHandler swig_types[72]
284 #define SWIGTYPE_p_wxZipFSHandler swig_types[73]
285 #define SWIGTYPE_p_wxRect swig_types[74]
286 #define SWIGTYPE_p_wxGBSpan swig_types[75]
287 #define SWIGTYPE_p_wxPropagateOnce swig_types[76]
288 #define SWIGTYPE_p_wxAcceleratorTable swig_types[77]
289 #define SWIGTYPE_p_char swig_types[78]
290 #define SWIGTYPE_p_wxGBPosition swig_types[79]
291 #define SWIGTYPE_p_wxImage swig_types[80]
292 #define SWIGTYPE_p_wxFrame swig_types[81]
293 #define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
294 #define SWIGTYPE_p_wxImageHistogram swig_types[83]
295 #define SWIGTYPE_p_byte swig_types[84]
296 #define SWIGTYPE_p_wxPoint swig_types[85]
297 #define SWIGTYPE_p_wxCursor swig_types[86]
298 #define SWIGTYPE_p_wxObject swig_types[87]
299 #define SWIGTYPE_p_wxPyInputStream swig_types[88]
300 #define SWIGTYPE_p_wxOutputStream swig_types[89]
301 #define SWIGTYPE_p_wxInputStream swig_types[90]
302 #define SWIGTYPE_p_wxDateTime swig_types[91]
303 #define SWIGTYPE_p_wxKeyEvent swig_types[92]
304 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
305 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[94]
306 #define SWIGTYPE_p_wxWindow swig_types[95]
307 #define SWIGTYPE_p_wxMenuBar swig_types[96]
308 #define SWIGTYPE_p_wxFileSystem swig_types[97]
309 #define SWIGTYPE_p_wxBitmap swig_types[98]
310 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
311 #define SWIGTYPE_p_wxContextMenuEvent swig_types[100]
312 #define SWIGTYPE_p_unsigned_char swig_types[101]
313 #define SWIGTYPE_p_wxCloseEvent swig_types[102]
314 #define SWIGTYPE_p_wxEraseEvent swig_types[103]
315 #define SWIGTYPE_p_wxMouseEvent swig_types[104]
316 #define SWIGTYPE_p_wxPyApp swig_types[105]
317 #define SWIGTYPE_p_wxCommandEvent swig_types[106]
318 #define SWIGTYPE_p_wxPyCommandEvent swig_types[107]
319 #define SWIGTYPE_p_wxPyDropTarget swig_types[108]
320 #define SWIGTYPE_p_wxQuantize swig_types[109]
321 #define SWIGTYPE_p_wxChildFocusEvent swig_types[110]
322 #define SWIGTYPE_p_wxFocusEvent swig_types[111]
323 #define SWIGTYPE_p_wxDropFilesEvent swig_types[112]
324 #define SWIGTYPE_p_wxControlWithItems swig_types[113]
325 #define SWIGTYPE_p_wxColour swig_types[114]
326 #define SWIGTYPE_p_wxValidator swig_types[115]
327 #define SWIGTYPE_p_wxPyValidator swig_types[116]
328 static swig_type_info *swig_types[118];
329
330 /* -------- TYPES TABLE (END) -------- */
331
332
333 /*-----------------------------------------------
334 @(target):= _core_.so
335 ------------------------------------------------*/
336 #define SWIG_init init_core_
337
338 #define SWIG_name "_core_"
339
340 /* Auxiliar swig macros that appear in the header */
341
342 #define SWIG_OLDOBJ 1
343 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
344 #define SWIG_PYSTR SWIG_NEWOBJ + 1
345
346 #ifdef __cplusplus
347 #define SWIGSTATICINLINE(a) static inline a
348 #define SWIGSTATIC(a) static a
349 #define swig_new_array(size,Type) (new Type[(size)])
350 #define swig_delete(cptr) delete cptr
351 #define swig_delete_array(cptr) delete[] cptr
352 #define swig_const_cast(a,Type) const_cast<Type >(a)
353 #define swig_static_cast(a,Type) static_cast<Type >(a)
354 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
355 #define swig_new_copy(ptr,Type) (new Type(*ptr))
356 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
357
358 #else /* C case */
359
360 #define SWIGSTATICINLINE(a) static a
361 #define SWIGSTATIC(a) static a
362 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
363 #define swig_delete(cptr) free((char*)cptr)
364 #define swig_delete_array(cptr) free((char*)cptr)
365 #define swig_const_cast(a,Type) (Type)(a)
366 #define swig_static_cast(a,Type) (Type)(a)
367 #define swig_reinterpret_cast(a,Type) (Type)(a)
368 #define swig_numeric_cast(a,Type) (Type)(a)
369 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
370
371 #endif /* __cplusplus */
372
373
374 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
375 #define SWIG_From_signed_SS_char PyInt_FromLong
376 /*@@*/
377 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
378 #define SWIG_From_unsigned_SS_char PyInt_FromLong
379 /*@@*/
380 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
381 #define SWIG_From_short PyInt_FromLong
382 /*@@*/
383 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
384 #define SWIG_From_unsigned_SS_short PyInt_FromLong
385 /*@@*/
386 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
387 #define SWIG_From_int PyInt_FromLong
388 /*@@*/
389 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
390 #define SWIG_From_long PyInt_FromLong
391 /*@@*/
392 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
393 #define SWIG_From_float PyFloat_FromDouble
394 /*@@*/
395 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
396 #define SWIG_From_double PyFloat_FromDouble
397 /*@@*/
398
399
400 #include "wx/wxPython/wxPython_int.h"
401 #include "wx/wxPython/pyclasses.h"
402
403
404 #ifndef wxPyUSE_EXPORT
405 // Helper functions for dealing with SWIG objects and such. These are
406 // located here so they know about the SWIG types and functions declared
407 // in the wrapper code.
408
409 #include <wx/hashmap.h>
410 WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
411
412
413 // Maintains a hashmap of className to swig_type_info pointers. Given the
414 // name of a class either looks up the type info in the cache, or scans the
415 // SWIG tables for it.
416 extern PyObject* wxPyPtrTypeMap;
417 static
418 swig_type_info* wxPyFindSwigType(const wxChar* className) {
419
420 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
421
422 if (typeInfoCache == NULL)
423 typeInfoCache = new wxPyTypeInfoHashMap;
424
425 wxString name(className);
426 swig_type_info* swigType = (*typeInfoCache)[name];
427
428 if (! swigType) {
429 // it wasn't in the cache, so look it up from SWIG
430 name.Append(wxT(" *"));
431 swigType = SWIG_Python_TypeQuery(name.mb_str());
432
433 // if it still wasn't found, try looking for a mapped name
434 if (!swigType) {
435 PyObject* item;
436 name = className;
437
438 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
439 (char*)(const char*)name.mbc_str())) != NULL) {
440 name = wxString(PyString_AsString(item), *wxConvCurrent);
441 name.Append(wxT(" *"));
442 swigType = SWIG_Python_TypeQuery(name.mb_str());
443 }
444 }
445 if (swigType) {
446 // and add it to the map if found
447 (*typeInfoCache)[className] = swigType;
448 }
449 }
450 return swigType;
451 }
452
453
454 // Check if a class name is a type known to SWIG
455 bool wxPyCheckSwigType(const wxChar* className) {
456
457 swig_type_info* swigType = wxPyFindSwigType(className);
458 return swigType != NULL;
459 }
460
461
462 // Given a pointer to a C++ object and a class name, construct a Python proxy
463 // object for it.
464 PyObject* wxPyConstructObject(void* ptr,
465 const wxChar* className,
466 int setThisOwn) {
467
468 swig_type_info* swigType = wxPyFindSwigType(className);
469 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
470
471 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
472 }
473
474
475 // Extract a pointer to the wrapped C++ object from a Python proxy object.
476 // Ensures that the proxy object is of the specified (or derived) type. If
477 // not able to perform the conversion then a Python exception is set and the
478 // error should be handled properly in the caller. Returns True on success.
479 bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
480 const wxChar* className) {
481
482 swig_type_info* swigType = wxPyFindSwigType(className);
483 wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
484
485 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
486 }
487
488
489 // Make a SWIGified pointer object suitable for a .this attribute
490 PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
491
492 PyObject* robj = NULL;
493
494 swig_type_info* swigType = wxPyFindSwigType(className);
495 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
496
497 #ifdef SWIG_COBJECT_TYPES
498 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
499 #else
500 {
501 char result[1024];
502 char *r = result;
503 *(r++) = '_';
504 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
505 strcpy(r, swigType->name);
506 robj = PyString_FromString(result);
507 }
508 #endif
509
510 return robj;
511 }
512
513
514
515
516 // Export a C API in a struct. Other modules will be able to load this from
517 // the wx._core_ module and will then have safe access to these functions,
518 // even if they are located in another shared library.
519 static wxPyCoreAPI API = {
520
521 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
522 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
523 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
524 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
525 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
526 (p_SWIG_Python_TypePrettyName_t)SWIG_Python_TypePrettyName,
527 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
528 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
529 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
530 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
531 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
532 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
533 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
534 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
535 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
536 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
537 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
538 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
539
540 wxPyCheckSwigType,
541 wxPyConstructObject,
542 wxPyConvertSwigPtr,
543 wxPyMakeSwigPtr,
544
545 wxPyBeginAllowThreads,
546 wxPyEndAllowThreads,
547 wxPyBeginBlockThreads,
548 wxPyEndBlockThreads,
549
550 wxPy_ConvertList,
551
552 wxString_in_helper,
553 Py2wxString,
554 wx2PyString,
555
556 byte_LIST_helper,
557 int_LIST_helper,
558 long_LIST_helper,
559 string_LIST_helper,
560 wxPoint_LIST_helper,
561 wxBitmap_LIST_helper,
562 wxString_LIST_helper,
563 wxAcceleratorEntry_LIST_helper,
564
565 wxSize_helper,
566 wxPoint_helper,
567 wxRealPoint_helper,
568 wxRect_helper,
569 wxColour_helper,
570 wxPoint2D_helper,
571
572 wxPySimple_typecheck,
573 wxColour_typecheck,
574
575 wxPyCBH_setCallbackInfo,
576 wxPyCBH_findCallback,
577 wxPyCBH_callCallback,
578 wxPyCBH_callCallbackObj,
579 wxPyCBH_delete,
580
581 wxPyMake_wxObject,
582 wxPyMake_wxSizer,
583 wxPyPtrTypeMap_Add,
584 wxPy2int_seq_helper,
585 wxPy4int_seq_helper,
586 wxArrayString2PyList_helper,
587 wxArrayInt2PyList_helper,
588
589 wxPyClientData_dtor,
590 wxPyUserData_dtor,
591 wxPyOORClientData_dtor,
592
593 wxPyCBInputStream_create,
594
595 wxPyInstance_Check,
596 wxPySwigInstance_Check,
597
598 wxPyCheckForApp
599
600 };
601
602 #endif
603
604
605 #if ! wxUSE_HOTKEY
606 enum wxHotkeyModifier
607 {
608 wxMOD_NONE = 0,
609 wxMOD_ALT = 1,
610 wxMOD_CONTROL = 2,
611 wxMOD_SHIFT = 4,
612 wxMOD_WIN = 8
613 };
614 #define wxEVT_HOTKEY 9999
615 #endif
616
617 static const wxString wxPyEmptyString(wxEmptyString);
618 wxString wxObject_GetClassName(wxObject *self){
619 return self->GetClassInfo()->GetClassName();
620 }
621 void wxObject_Destroy(wxObject *self){
622 delete self;
623 }
624
625 #ifndef __WXMAC__
626 #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
627 #endif
628
629
630 #include <limits.h>
631
632
633 SWIGSTATICINLINE(int)
634 SWIG_CheckLongInRange(long value, long min_value, long max_value,
635 const char *errmsg)
636 {
637 if (value < min_value) {
638 if (errmsg) {
639 PyErr_Format(PyExc_OverflowError,
640 "value %ld is less than '%s' minimum %ld",
641 value, errmsg, min_value);
642 }
643 return 0;
644 } else if (value > max_value) {
645 if (errmsg) {
646 PyErr_Format(PyExc_OverflowError,
647 "value %ld is greater than '%s' maximum %ld",
648 value, errmsg, max_value);
649 }
650 return 0;
651 }
652 return 1;
653 }
654
655
656 // See my_fragments.i
657 SWIGSTATICINLINE(int)
658 SWIG_AsVal_long(PyObject* obj, long* val)
659 {
660 if (PyNumber_Check(obj)) {
661 if (val) *val = PyInt_AsLong(obj);
662 return 1;
663 }
664 else {
665 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
666 obj->ob_type->tp_name);
667 PyErr_SetObject(PyExc_TypeError, errmsg);
668 Py_DECREF(errmsg);
669 }
670 return 0;
671 }
672
673
674 #if INT_MAX != LONG_MAX
675 SWIGSTATICINLINE(int)
676 SWIG_AsVal_int(PyObject *obj, int *val)
677 {
678 const char* errmsg = val ? "int" : 0;
679 long v;
680 if (SWIG_AsVal_long(obj, &v)) {
681 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
682 if (val) *val = swig_numeric_cast(v, int);
683 return 1;
684 } else {
685 return 0;
686 }
687 } else {
688 PyErr_Clear();
689 }
690 if (val) {
691 PyErr_SetString(PyExc_TypeError, "an int is expected");
692 }
693 return 0;
694 }
695 #else
696 SWIGSTATICINLINE(int)
697 SWIG_AsVal_int(PyObject *obj, int *val)
698 {
699 return SWIG_AsVal_long(obj,(long*)val);
700 }
701 #endif
702
703
704 SWIGSTATICINLINE(int)
705 SWIG_As_int(PyObject* obj)
706 {
707 int v;
708 if (!SWIG_AsVal_int(obj, &v)) {
709 /*
710 this is needed to make valgrind/purify happier. the other
711 solution is throw an exception, but since this code should work
712 with plain C ....
713 */
714 memset((void*)&v, 0, sizeof(int));
715 }
716 return v;
717 }
718
719
720 SWIGSTATICINLINE(int)
721 SWIG_Check_int(PyObject* obj)
722 {
723 return SWIG_AsVal_int(obj, (int*)0);
724 }
725
726 PyObject *wxSize_Get(wxSize *self){
727 bool blocked = wxPyBeginBlockThreads();
728 PyObject* tup = PyTuple_New(2);
729 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
730 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
731 wxPyEndBlockThreads(blocked);
732 return tup;
733 }
734
735 // See my_fragments.i
736 SWIGSTATICINLINE(int)
737 SWIG_AsVal_double(PyObject *obj, double* val)
738 {
739 if (PyNumber_Check(obj)) {
740 if (val) *val = PyFloat_AsDouble(obj);
741 return 1;
742 }
743 else {
744 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
745 obj->ob_type->tp_name);
746 PyErr_SetObject(PyExc_TypeError, errmsg);
747 Py_DECREF(errmsg);
748 }
749 return 0;
750 }
751
752
753 SWIGSTATICINLINE(double)
754 SWIG_As_double(PyObject* obj)
755 {
756 double v;
757 if (!SWIG_AsVal_double(obj, &v)) {
758 /*
759 this is needed to make valgrind/purify happier. the other
760 solution is throw an exception, but since this code should work
761 with plain C ....
762 */
763 memset((void*)&v, 0, sizeof(double));
764 }
765 return v;
766 }
767
768
769 SWIGSTATICINLINE(int)
770 SWIG_Check_double(PyObject* obj)
771 {
772 return SWIG_AsVal_double(obj, (double*)0);
773 }
774
775 void wxRealPoint_Set(wxRealPoint *self,double x,double y){
776 self->x = x;
777 self->y = y;
778 }
779 PyObject *wxRealPoint_Get(wxRealPoint *self){
780 bool blocked = wxPyBeginBlockThreads();
781 PyObject* tup = PyTuple_New(2);
782 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
783 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
784 wxPyEndBlockThreads(blocked);
785 return tup;
786 }
787
788 SWIGSTATICINLINE(long)
789 SWIG_As_long(PyObject* obj)
790 {
791 long v;
792 if (!SWIG_AsVal_long(obj, &v)) {
793 /*
794 this is needed to make valgrind/purify happier. the other
795 solution is throw an exception, but since this code should work
796 with plain C ....
797 */
798 memset((void*)&v, 0, sizeof(long));
799 }
800 return v;
801 }
802
803
804 SWIGSTATICINLINE(int)
805 SWIG_Check_long(PyObject* obj)
806 {
807 return SWIG_AsVal_long(obj, (long*)0);
808 }
809
810 void wxPoint_Set(wxPoint *self,long x,long y){
811 self->x = x;
812 self->y = y;
813 }
814 PyObject *wxPoint_Get(wxPoint *self){
815 bool blocked = wxPyBeginBlockThreads();
816 PyObject* tup = PyTuple_New(2);
817 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
818 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
819 wxPyEndBlockThreads(blocked);
820 return tup;
821 }
822 void wxRect_Set(wxRect *self,int x,int y,int width,int height){
823 self->x = x;
824 self->y = y;
825 self->width = width;
826 self->height = height;
827 }
828 PyObject *wxRect_Get(wxRect *self){
829 bool blocked = wxPyBeginBlockThreads();
830 PyObject* tup = PyTuple_New(4);
831 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
832 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
833 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
834 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
835 wxPyEndBlockThreads(blocked);
836 return tup;
837 }
838
839 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
840 wxRegion reg1(*r1);
841 wxRegion reg2(*r2);
842 wxRect dest(0,0,0,0);
843 PyObject* obj;
844
845 reg1.Intersect(reg2);
846 dest = reg1.GetBox();
847
848 if (dest != wxRect(0,0,0,0)) {
849 bool blocked = wxPyBeginBlockThreads();
850 wxRect* newRect = new wxRect(dest);
851 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
852 wxPyEndBlockThreads(blocked);
853 return obj;
854 }
855 Py_INCREF(Py_None);
856 return Py_None;
857 }
858
859
860 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
861 PyObject* o2;
862 PyObject* o3;
863
864 if (!target) {
865 target = o;
866 } else if (target == Py_None) {
867 Py_DECREF(Py_None);
868 target = o;
869 } else {
870 if (!PyTuple_Check(target)) {
871 o2 = target;
872 target = PyTuple_New(1);
873 PyTuple_SetItem(target, 0, o2);
874 }
875 o3 = PyTuple_New(1);
876 PyTuple_SetItem(o3, 0, o);
877
878 o2 = target;
879 target = PySequence_Concat(o2, o3);
880 Py_DECREF(o2);
881 Py_DECREF(o3);
882 }
883 return target;
884 }
885
886
887 void wxPoint2D_Set(wxPoint2D *self,double x,double y){
888 self->m_x = x;
889 self->m_y = y;
890 }
891 PyObject *wxPoint2D_Get(wxPoint2D *self){
892 bool blocked = wxPyBeginBlockThreads();
893 PyObject* tup = PyTuple_New(2);
894 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
895 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
896 wxPyEndBlockThreads(blocked);
897 return tup;
898 }
899
900 #include "wx/wxPython/pyistream.h"
901
902 wxPyInputStream *new_wxPyInputStream(PyObject *p){
903 wxInputStream* wxis = wxPyCBInputStream::create(p);
904 if (wxis)
905 return new wxPyInputStream(wxis);
906 else
907 return NULL;
908 }
909
910 SWIGSTATICINLINE(PyObject*)
911 SWIG_From_char(char c)
912 {
913 return PyString_FromStringAndSize(&c,1);
914 }
915
916
917 SWIGSTATICINLINE(PyObject* )
918 SWIG_From_unsigned_SS_long(unsigned long value)
919 {
920 return (value > LONG_MAX) ?
921 PyLong_FromUnsignedLong(value)
922 : PyInt_FromLong(swig_numeric_cast(value,long));
923 }
924
925
926 /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
927 SWIGSTATIC(int)
928 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
929 {
930 static swig_type_info* pchar_info = 0;
931 char* vptr = 0;
932 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
933 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
934 if (cptr) *cptr = vptr;
935 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
936 return SWIG_OLDOBJ;
937 } else {
938 if (PyString_Check(obj)) {
939 if (cptr) {
940 *cptr = PyString_AS_STRING(obj);
941 if (psize) {
942 *psize = PyString_GET_SIZE(obj) + 1;
943 }
944 }
945 return SWIG_PYSTR;
946 }
947 }
948 if (cptr) {
949 PyErr_SetString(PyExc_TypeError, "a string is expected");
950 }
951 return 0;
952 }
953
954
955 SWIGSTATIC(int)
956 SWIG_AsCharArray(PyObject *obj, char *val, size_t size)
957 {
958 char* cptr; size_t csize;
959 if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) {
960 /* in C you can do:
961
962 char x[5] = "hello";
963
964 ie, assing the array using an extra '0' char.
965 */
966 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
967 if (csize <= size) {
968 if (val) {
969 if (csize) memcpy(val, cptr, csize);
970 if (csize < size) memset(val + csize, 0, size - csize);
971 }
972 return 1;
973 }
974 }
975 if (val) {
976 PyErr_Format(PyExc_TypeError,
977 "a char array of maximum size %ld is expected",
978 size);
979 }
980 return 0;
981 }
982
983
984 SWIGSTATICINLINE(int)
985 SWIG_AsVal_char(PyObject *obj, char *val)
986 {
987 const char* errmsg = val ? "char" : 0;
988 long v;
989 if (SWIG_AsVal_long(obj, &v)) {
990 if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) {
991 if (val) *val = v;
992 return 1;
993 } else {
994 return 0;
995 }
996 } else {
997 PyErr_Clear();
998 return SWIG_AsCharArray(obj, val, 1);
999 }
1000 }
1001
1002
1003 SWIGSTATICINLINE(char)
1004 SWIG_As_char(PyObject* obj)
1005 {
1006 char v;
1007 if (!SWIG_AsVal_char(obj, &v)) {
1008 /*
1009 this is needed to make valgrind/purify happier. the other
1010 solution is throw an exception, but since this code should work
1011 with plain C ....
1012 */
1013 memset((void*)&v, 0, sizeof(char));
1014 }
1015 return v;
1016 }
1017
1018
1019 SWIGSTATICINLINE(int)
1020 SWIG_Check_char(PyObject* obj)
1021 {
1022 return SWIG_AsVal_char(obj, (char*)0);
1023 }
1024
1025 void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
1026 // We use only strings for the streams, not unicode
1027 PyObject* str = PyObject_Str(obj);
1028 if (! str) {
1029 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
1030 return;
1031 }
1032 self->Write(PyString_AS_STRING(str),
1033 PyString_GET_SIZE(str));
1034 Py_DECREF(str);
1035 }
1036
1037 #include "wx/wxPython/pyistream.h"
1038
1039
1040 class wxPyFileSystemHandler : public wxFileSystemHandler
1041 {
1042 public:
1043 wxPyFileSystemHandler() : wxFileSystemHandler() {}
1044
1045 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
1046 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
1047 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
1048 DEC_PYCALLBACK_STRING__pure(FindNext);
1049
1050 wxString GetProtocol(const wxString& location) {
1051 return wxFileSystemHandler::GetProtocol(location);
1052 }
1053
1054 wxString GetLeftLocation(const wxString& location) {
1055 return wxFileSystemHandler::GetLeftLocation(location);
1056 }
1057
1058 wxString GetAnchor(const wxString& location) {
1059 return wxFileSystemHandler::GetAnchor(location);
1060 }
1061
1062 wxString GetRightLocation(const wxString& location) {
1063 return wxFileSystemHandler::GetRightLocation(location);
1064 }
1065
1066 wxString GetMimeTypeFromExt(const wxString& location) {
1067 return wxFileSystemHandler::GetMimeTypeFromExt(location);
1068 }
1069
1070 PYPRIVATE;
1071 };
1072
1073
1074 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
1075 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
1076 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
1077 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
1078
1079
1080 SWIGSTATICINLINE(int)
1081 SWIG_AsVal_bool(PyObject *obj, bool *val)
1082 {
1083 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
1084 if (obj == Py_True) {
1085 if (val) *val = true;
1086 return 1;
1087 }
1088 if (obj == Py_False) {
1089 if (val) *val = false;
1090 return 1;
1091 }
1092 int res = 0;
1093 if (SWIG_AsVal_int(obj, &res)) {
1094 if (val) *val = (bool)res;
1095 return 1;
1096 }
1097 if (val) {
1098 PyErr_SetString(PyExc_TypeError, "a bool is expected");
1099 }
1100 return 0;
1101 }
1102
1103
1104 SWIGSTATICINLINE(bool)
1105 SWIG_As_bool(PyObject* obj)
1106 {
1107 bool v;
1108 if (!SWIG_AsVal_bool(obj, &v)) {
1109 /*
1110 this is needed to make valgrind/purify happier. the other
1111 solution is throw an exception, but since this code should work
1112 with plain C ....
1113 */
1114 memset((void*)&v, 0, sizeof(bool));
1115 }
1116 return v;
1117 }
1118
1119
1120 SWIGSTATICINLINE(int)
1121 SWIG_Check_bool(PyObject* obj)
1122 {
1123 return SWIG_AsVal_bool(obj, (bool*)0);
1124 }
1125
1126 wxString FileSystem_URLToFileName(wxString const &url){
1127 wxFileName fname = wxFileSystem::URLToFileName(url);
1128 return fname.GetFullPath();
1129 }
1130
1131 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1132 wxImage& image,
1133 long type) {
1134 wxMemoryFSHandler::AddFile(filename, image, type);
1135 }
1136
1137 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1138 const wxBitmap& bitmap,
1139 long type) {
1140 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1141 }
1142
1143 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1144 PyObject* data) {
1145 if (! PyString_Check(data)) {
1146 wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
1147 "Expected string object"));
1148 return;
1149 }
1150
1151 bool blocked = wxPyBeginBlockThreads();
1152 void* ptr = (void*)PyString_AsString(data);
1153 size_t size = PyString_Size(data);
1154 wxPyEndBlockThreads(blocked);
1155
1156 wxMemoryFSHandler::AddFile(filename, ptr, size);
1157 }
1158
1159
1160 #include "wx/wxPython/pyistream.h"
1161
1162
1163 // See my_fragments.i
1164 SWIGSTATICINLINE(int)
1165 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1166 {
1167 long v = 0;
1168 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1169 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1170 return 0;
1171 }
1172 else if (val)
1173 *val = (unsigned long)v;
1174 return 1;
1175 }
1176
1177
1178 SWIGSTATICINLINE(int)
1179 SWIG_CheckUnsignedLongInRange(unsigned long value,
1180 unsigned long max_value,
1181 const char *errmsg)
1182 {
1183 if (value > max_value) {
1184 if (errmsg) {
1185 PyErr_Format(PyExc_OverflowError,
1186 "value %ld is greater than '%s' minimum %ld",
1187 value, errmsg, max_value);
1188 }
1189 return 0;
1190 }
1191 return 1;
1192 }
1193
1194
1195 SWIGSTATICINLINE(int)
1196 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1197 {
1198 const char* errmsg = val ? "unsigned char" : 0;
1199 unsigned long v;
1200 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1201 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1202 if (val) *val = swig_numeric_cast(v, unsigned char);
1203 return 1;
1204 } else {
1205 return 0;
1206 }
1207 } else {
1208 PyErr_Clear();
1209 }
1210 if (val) {
1211 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
1212 }
1213 return 0;
1214 }
1215
1216
1217 SWIGSTATICINLINE(unsigned char)
1218 SWIG_As_unsigned_SS_char(PyObject* obj)
1219 {
1220 unsigned char v;
1221 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1222 /*
1223 this is needed to make valgrind/purify happier. the other
1224 solution is throw an exception, but since this code should work
1225 with plain C ....
1226 */
1227 memset((void*)&v, 0, sizeof(unsigned char));
1228 }
1229 return v;
1230 }
1231
1232
1233 SWIGSTATICINLINE(int)
1234 SWIG_Check_unsigned_SS_char(PyObject* obj)
1235 {
1236 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1237 }
1238
1239
1240 wxImage *new_wxImage(int width,int height,bool clear){
1241 if (width > 0 && height > 0)
1242 return new wxImage(width, height, clear);
1243 else
1244 return new wxImage;
1245 }
1246 wxImage *new_wxImage(wxBitmap const &bitmap){
1247 return new wxImage(bitmap.ConvertToImage());
1248 }
1249 wxImage *new_wxImage(int width,int height,unsigned char *data){
1250 // Copy the source data so the wxImage can clean it up later
1251 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1252 if (copy == NULL) {
1253 PyErr_NoMemory();
1254 return NULL;
1255 }
1256 memcpy(copy, data, width*height*3);
1257 return new wxImage(width, height, copy, false);
1258 }
1259 wxSize wxImage_GetSize(wxImage *self){
1260 wxSize size(self->GetWidth(), self->GetHeight());
1261 return size;
1262 }
1263 PyObject *wxImage_GetData(wxImage *self){
1264 unsigned char* data = self->GetData();
1265 int len = self->GetWidth() * self->GetHeight() * 3;
1266 PyObject* rv;
1267 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1268 return rv;
1269 }
1270 void wxImage_SetData(wxImage *self,PyObject *data){
1271 unsigned char* dataPtr;
1272
1273 if (! PyString_Check(data)) {
1274 wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
1275 "Expected string object"));
1276 return /* NULL */ ;
1277 }
1278
1279 size_t len = self->GetWidth() * self->GetHeight() * 3;
1280 dataPtr = (unsigned char*) malloc(len);
1281 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1282 self->SetData(dataPtr);
1283 // wxImage takes ownership of dataPtr...
1284 }
1285 PyObject *wxImage_GetDataBuffer(wxImage *self){
1286 unsigned char* data = self->GetData();
1287 int len = self->GetWidth() * self->GetHeight() * 3;
1288 PyObject* rv;
1289 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1290 return rv;
1291 }
1292 void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1293 unsigned char* buffer;
1294 int size;
1295
1296 bool blocked = wxPyBeginBlockThreads();
1297 if (!PyArg_Parse(data, "t#", &buffer, &size))
1298 goto done;
1299
1300 if (size != self->GetWidth() * self->GetHeight() * 3) {
1301 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1302 goto done;
1303 }
1304 self->SetData(buffer);
1305 done:
1306 wxPyEndBlockThreads(blocked);
1307 }
1308 PyObject *wxImage_GetAlphaData(wxImage *self){
1309 unsigned char* data = self->GetAlpha();
1310 if (! data) {
1311 RETURN_NONE();
1312 } else {
1313 int len = self->GetWidth() * self->GetHeight();
1314 PyObject* rv;
1315 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1316 return rv;
1317 }
1318 }
1319 void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1320 unsigned char* dataPtr;
1321
1322 if (! PyString_Check(data)) {
1323 PyErr_SetString(PyExc_TypeError, "Expected string object");
1324 return /* NULL */ ;
1325 }
1326
1327 size_t len = self->GetWidth() * self->GetHeight();
1328 dataPtr = (unsigned char*) malloc(len);
1329 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1330 self->SetAlpha(dataPtr);
1331 // wxImage takes ownership of dataPtr...
1332 }
1333 PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1334 unsigned char* data = self->GetAlpha();
1335 int len = self->GetWidth() * self->GetHeight();
1336 PyObject* rv;
1337 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1338 return rv;
1339 }
1340 void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1341 unsigned char* buffer;
1342 int size;
1343
1344 bool blocked = wxPyBeginBlockThreads();
1345 if (!PyArg_Parse(data, "t#", &buffer, &size))
1346 goto done;
1347
1348 if (size != self->GetWidth() * self->GetHeight()) {
1349 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1350 goto done;
1351 }
1352 self->SetAlpha(buffer);
1353 done:
1354 wxPyEndBlockThreads(blocked);
1355 }
1356
1357 SWIGSTATICINLINE(unsigned long)
1358 SWIG_As_unsigned_SS_long(PyObject* obj)
1359 {
1360 unsigned long v;
1361 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1362 /*
1363 this is needed to make valgrind/purify happier. the other
1364 solution is throw an exception, but since this code should work
1365 with plain C ....
1366 */
1367 memset((void*)&v, 0, sizeof(unsigned long));
1368 }
1369 return v;
1370 }
1371
1372
1373 SWIGSTATICINLINE(int)
1374 SWIG_Check_unsigned_SS_long(PyObject* obj)
1375 {
1376 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1377 }
1378
1379 wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){
1380 wxBitmap bitmap(*self, depth);
1381 return bitmap;
1382 }
1383 wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1384 wxImage mono = self->ConvertToMono( red, green, blue );
1385 wxBitmap bitmap( mono, 1 );
1386 return bitmap;
1387 }
1388 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1389 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1390 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1391 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1392 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1393
1394 #include <wx/quantize.h>
1395
1396 bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){
1397 return wxQuantize::Quantize(src, dest,
1398 //NULL, // palette
1399 desiredNoColours,
1400 NULL, // eightBitData
1401 flags);
1402 }
1403 void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1404 if (PyCallable_Check(func)) {
1405 self->Connect(id, lastId, eventType,
1406 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1407 new wxPyCallback(func));
1408 }
1409 else if (func == Py_None) {
1410 self->Disconnect(id, lastId, eventType,
1411 (wxObjectEventFunction)
1412 &wxPyCallback::EventThunker);
1413 }
1414 else {
1415 wxPyBLOCK_THREADS(
1416 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1417 }
1418 }
1419 bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1420 return self->Disconnect(id, lastId, eventType,
1421 (wxObjectEventFunction)
1422 &wxPyCallback::EventThunker);
1423 }
1424 void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1425 if (_self && _self != Py_None) {
1426 self->SetClientObject(new wxPyOORClientData(_self));
1427 }
1428 else {
1429 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1430 if (data) {
1431 self->SetClientObject(NULL); // This will delete it too
1432 }
1433 }
1434 }
1435
1436 int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
1437 #if wxUSE_UNICODE
1438 return self->GetUnicodeKey();
1439 #else
1440 return 0;
1441 #endif
1442 }
1443
1444 #if UINT_MAX < LONG_MAX
1445 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1446 #define SWIG_From_unsigned_SS_int SWIG_From_long
1447 /*@@*/
1448 #else
1449 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1450 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1451 /*@@*/
1452 #endif
1453
1454
1455 #if UINT_MAX != ULONG_MAX
1456 SWIGSTATICINLINE(int)
1457 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
1458 {
1459 const char* errmsg = val ? "unsigned int" : 0;
1460 unsigned long v;
1461 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1462 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
1463 if (val) *val = swig_numeric_cast(v, unsigned int);
1464 return 1;
1465 }
1466 } else {
1467 PyErr_Clear();
1468 }
1469 if (val) {
1470 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
1471 }
1472 return 0;
1473 }
1474 #else
1475 SWIGSTATICINLINE(unsigned int)
1476 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
1477 {
1478 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
1479 }
1480 #endif
1481
1482
1483 SWIGSTATICINLINE(unsigned int)
1484 SWIG_As_unsigned_SS_int(PyObject* obj)
1485 {
1486 unsigned int v;
1487 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
1488 /*
1489 this is needed to make valgrind/purify happier. the other
1490 solution is throw an exception, but since this code should work
1491 with plain C ....
1492 */
1493 memset((void*)&v, 0, sizeof(unsigned int));
1494 }
1495 return v;
1496 }
1497
1498
1499 SWIGSTATICINLINE(int)
1500 SWIG_Check_unsigned_SS_int(PyObject* obj)
1501 {
1502 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
1503 }
1504
1505 void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1506 self->m_size = size;
1507 }
1508 void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1509 self->m_pos = pos;
1510 }
1511 PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1512 int count = self->GetNumberOfFiles();
1513 wxString* files = self->GetFiles();
1514 PyObject* list = PyList_New(count);
1515
1516 if (!list) {
1517 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1518 return NULL;
1519 }
1520
1521 for (int i=0; i<count; i++) {
1522 PyList_SetItem(list, i, wx2PyString(files[i]));
1523 }
1524 return list;
1525 }
1526
1527
1528 wxPyApp *new_wxPyApp(){
1529 wxPythonApp = new wxPyApp();
1530 return wxPythonApp;
1531 }
1532 int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
1533
1534 void wxApp_CleanUp() {
1535 __wxPyCleanup();
1536 }
1537
1538
1539 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
1540
1541
1542 #ifdef __WXMAC__
1543
1544 // A dummy class that raises an exception if used...
1545 class wxEventLoop
1546 {
1547 public:
1548 wxEventLoop() { wxPyRaiseNotImplemented(); }
1549 int Run() { return 0; }
1550 void Exit(int rc = 0) {}
1551 bool Pending() const { return false; }
1552 bool Dispatch() { return false; }
1553 bool IsRunning() const { return false; }
1554 static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
1555 static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
1556 };
1557
1558 #else
1559
1560 #include <wx/evtloop.h>
1561
1562 #endif
1563
1564
1565
1566 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1567 wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
1568 void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
1569 PyObject *wxWindow_GetChildren(wxWindow *self){
1570 wxWindowList& list = self->GetChildren();
1571 return wxPy_ConvertList(&list);
1572 }
1573 bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1574 #if wxUSE_HOTKEY
1575 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
1576 #else
1577 return false;
1578 #endif
1579 }
1580 bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1581
1582
1583
1584 return false;
1585
1586 }
1587 long wxWindow_GetHandle(wxWindow *self){
1588 return wxPyGetWinHandle(self);
1589 }
1590 void wxWindow_AssociateHandle(wxWindow *self,long handle){
1591 self->AssociateHandle((WXWidget)handle);
1592 }
1593
1594 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1595 return wxWindow::FindWindowById(id, parent);
1596 }
1597
1598 wxWindow* wxFindWindowByName( const wxString& name,
1599 const wxWindow *parent = NULL ) {
1600 return wxWindow::FindWindowByName(name, parent);
1601 }
1602
1603 wxWindow* wxFindWindowByLabel( const wxString& label,
1604 const wxWindow *parent = NULL ) {
1605 return wxWindow::FindWindowByLabel(label, parent);
1606 }
1607
1608
1609 #ifdef __WXMSW__
1610 #include <wx/msw/private.h> // to get wxGetWindowId
1611 #endif
1612
1613
1614 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
1615 #ifdef __WXMSW__
1616 WXHWND hWnd = (WXHWND)_hWnd;
1617 long id = wxGetWindowId(hWnd);
1618 wxWindow* win = new wxWindow;
1619 parent->AddChild(win);
1620 win->SetEventHandler(win);
1621 win->SetHWND(hWnd);
1622 win->SetId(id);
1623 win->SubclassWin(hWnd);
1624 win->AdoptAttributesFromHWND();
1625 win->SetupColours();
1626 return win;
1627 #else
1628 wxPyRaiseNotImplemented();
1629 return NULL;
1630 #endif
1631 }
1632
1633
1634 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1635 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1636 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1637
1638 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1639
1640 void wxMenu_Destroy(wxMenu *self){ delete self; }
1641 PyObject *wxMenu_GetMenuItems(wxMenu *self){
1642 wxMenuItemList& list = self->GetMenuItems();
1643 return wxPy_ConvertList(&list);
1644 }
1645 int MenuItem_GetDefaultMarginWidth(){ return 0; }
1646 static const wxString wxPyControlNameStr(wxControlNameStr);
1647 int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1648 if (clientData) {
1649 wxPyClientData* data = new wxPyClientData(clientData);
1650 return self->Append(item, data);
1651 } else
1652 return self->Append(item);
1653 }
1654 int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1655 if (clientData) {
1656 wxPyClientData* data = new wxPyClientData(clientData);
1657 return self->Insert(item, pos, data);
1658 } else
1659 return self->Insert(item, pos);
1660 }
1661 PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1662 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1663 if (data) {
1664 Py_INCREF(data->m_obj);
1665 return data->m_obj;
1666 } else {
1667 Py_INCREF(Py_None);
1668 return Py_None;
1669 }
1670 }
1671 void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1672 wxPyClientData* data = new wxPyClientData(clientData);
1673 self->SetClientObject(n, data);
1674 }
1675
1676
1677 wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){
1678 wxPyUserData* data = NULL;
1679 if ( userData ) {
1680 bool blocked = wxPyBeginBlockThreads();
1681 data = new wxPyUserData(userData);
1682 wxPyEndBlockThreads(blocked);
1683 }
1684 return new wxSizerItem(window, proportion, flag, border, data);
1685 }
1686 wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){
1687 wxPyUserData* data = NULL;
1688 if ( userData ) {
1689 bool blocked = wxPyBeginBlockThreads();
1690 data = new wxPyUserData(userData);
1691 wxPyEndBlockThreads(blocked);
1692 }
1693 return new wxSizerItem(width, height, proportion, flag, border, data);
1694 }
1695 wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){
1696 wxPyUserData* data = NULL;
1697 if ( userData ) {
1698 bool blocked = wxPyBeginBlockThreads();
1699 data = new wxPyUserData(userData);
1700 wxPyEndBlockThreads(blocked);
1701 }
1702 return new wxSizerItem(sizer, proportion, flag, border, data);
1703 }
1704
1705 #include <float.h>
1706 SWIGSTATICINLINE(int)
1707 SWIG_CheckDoubleInRange(double value, double min_value,
1708 double max_value, const char* errmsg)
1709 {
1710 if (value < min_value) {
1711 if (errmsg) {
1712 PyErr_Format(PyExc_OverflowError,
1713 "value %g is less than %s minimum %g",
1714 value, errmsg, min_value);
1715 }
1716 return 0;
1717 } else if (value > max_value) {
1718 if (errmsg) {
1719 PyErr_Format(PyExc_OverflowError,
1720 "value %g is greater than %s maximum %g",
1721 value, errmsg, max_value);
1722 }
1723 return 0;
1724 }
1725 return 1;
1726 }
1727
1728
1729 SWIGSTATICINLINE(int)
1730 SWIG_AsVal_float(PyObject *obj, float *val)
1731 {
1732 const char* errmsg = val ? "float" : 0;
1733 double v;
1734 if (SWIG_AsVal_double(obj, &v)) {
1735 if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) {
1736 if (val) *val = v;
1737 return 1;
1738 } else {
1739 return 0;
1740 }
1741 } else {
1742 PyErr_Clear();
1743 }
1744 if (val) {
1745 PyErr_SetString(PyExc_TypeError, "a float is expected");
1746 }
1747 return 0;
1748 }
1749
1750
1751 SWIGSTATICINLINE(float)
1752 SWIG_As_float(PyObject* obj)
1753 {
1754 float v;
1755 if (!SWIG_AsVal_float(obj, &v)) {
1756 /*
1757 this is needed to make valgrind/purify happier. the other
1758 solution is throw an exception, but since this code should work
1759 with plain C ....
1760 */
1761 memset((void*)&v, 0, sizeof(float));
1762 }
1763 return v;
1764 }
1765
1766
1767 SWIGSTATICINLINE(int)
1768 SWIG_Check_float(PyObject* obj)
1769 {
1770 return SWIG_AsVal_float(obj, (float*)0);
1771 }
1772
1773 PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1774 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1775 if (data) {
1776 Py_INCREF(data->m_obj);
1777 return data->m_obj;
1778 } else {
1779 Py_INCREF(Py_None);
1780 return Py_None;
1781 }
1782 }
1783
1784 // Figure out the type of the sizer item
1785
1786 struct wxPySizerItemInfo {
1787 wxPySizerItemInfo()
1788 : window(NULL), sizer(NULL), gotSize(false),
1789 size(wxDefaultSize), gotPos(false), pos(-1)
1790 {}
1791
1792 wxWindow* window;
1793 wxSizer* sizer;
1794 bool gotSize;
1795 wxSize size;
1796 bool gotPos;
1797 int pos;
1798 };
1799
1800 static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1801
1802 wxPySizerItemInfo info;
1803 wxSize size;
1804 wxSize* sizePtr = &size;
1805
1806 // Find out what the type of the item is
1807 // try wxWindow
1808 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1809 PyErr_Clear();
1810 info.window = NULL;
1811
1812 // try wxSizer
1813 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1814 PyErr_Clear();
1815 info.sizer = NULL;
1816
1817 // try wxSize or (w,h)
1818 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1819 info.size = *sizePtr;
1820 info.gotSize = true;
1821 }
1822
1823 // or a single int
1824 if (checkIdx && PyInt_Check(item)) {
1825 info.pos = PyInt_AsLong(item);
1826 info.gotPos = true;
1827 }
1828 }
1829 }
1830
1831 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1832 // no expected type, figure out what kind of error message to generate
1833 if ( !checkSize && !checkIdx )
1834 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1835 else if ( checkSize && !checkIdx )
1836 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1837 else if ( !checkSize && checkIdx)
1838 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1839 else
1840 // can this one happen?
1841 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1842 }
1843
1844 return info;
1845 }
1846
1847 void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1848 if (!self->GetClientObject())
1849 self->SetClientObject(new wxPyOORClientData(_self));
1850 }
1851 wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1852
1853 wxPyUserData* data = NULL;
1854 bool blocked = wxPyBeginBlockThreads();
1855 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
1856 if ( userData && (info.window || info.sizer || info.gotSize) )
1857 data = new wxPyUserData(userData);
1858 wxPyEndBlockThreads(blocked);
1859
1860 // Now call the real Add method if a valid item type was found
1861 if ( info.window )
1862 return self->Add(info.window, proportion, flag, border, data);
1863 else if ( info.sizer )
1864 return self->Add(info.sizer, proportion, flag, border, data);
1865 else if (info.gotSize)
1866 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1867 proportion, flag, border, data);
1868 else
1869 return NULL;
1870 }
1871 wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1872
1873 wxPyUserData* data = NULL;
1874 bool blocked = wxPyBeginBlockThreads();
1875 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
1876 if ( userData && (info.window || info.sizer || info.gotSize) )
1877 data = new wxPyUserData(userData);
1878 wxPyEndBlockThreads(blocked);
1879
1880 // Now call the real Insert method if a valid item type was found
1881 if ( info.window )
1882 return self->Insert(before, info.window, proportion, flag, border, data);
1883 else if ( info.sizer )
1884 return self->Insert(before, info.sizer, proportion, flag, border, data);
1885 else if (info.gotSize)
1886 return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1887 proportion, flag, border, data);
1888 else
1889 return NULL;
1890 }
1891 wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1892
1893 wxPyUserData* data = NULL;
1894 bool blocked = wxPyBeginBlockThreads();
1895 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
1896 if ( userData && (info.window || info.sizer || info.gotSize) )
1897 data = new wxPyUserData(userData);
1898 wxPyEndBlockThreads(blocked);
1899
1900 // Now call the real Prepend method if a valid item type was found
1901 if ( info.window )
1902 return self->Prepend(info.window, proportion, flag, border, data);
1903 else if ( info.sizer )
1904 return self->Prepend(info.sizer, proportion, flag, border, data);
1905 else if (info.gotSize)
1906 return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1907 proportion, flag, border, data);
1908 else
1909 return NULL;
1910 }
1911 bool wxSizer_Remove(wxSizer *self,PyObject *item){
1912 bool blocked = wxPyBeginBlockThreads();
1913 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1914 wxPyEndBlockThreads(blocked);
1915 if ( info.window )
1916 return self->Remove(info.window);
1917 else if ( info.sizer )
1918 return self->Remove(info.sizer);
1919 else if ( info.gotPos )
1920 return self->Remove(info.pos);
1921 else
1922 return false;
1923 }
1924 bool wxSizer_Detach(wxSizer *self,PyObject *item){
1925 bool blocked = wxPyBeginBlockThreads();
1926 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1927 wxPyEndBlockThreads(blocked);
1928 if ( info.window )
1929 return self->Detach(info.window);
1930 else if ( info.sizer )
1931 return self->Detach(info.sizer);
1932 else if ( info.gotPos )
1933 return self->Detach(info.pos);
1934 else
1935 return false;
1936 }
1937 wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){
1938 bool blocked = wxPyBeginBlockThreads();
1939 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1940 wxPyEndBlockThreads(blocked);
1941 if ( info.window )
1942 return self->GetItem(info.window);
1943 else if ( info.sizer )
1944 return self->GetItem(info.sizer);
1945 else if ( info.gotPos )
1946 return self->GetItem(info.pos);
1947 else
1948 return NULL;
1949 }
1950 void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1951 bool blocked = wxPyBeginBlockThreads();
1952 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1953 wxPyEndBlockThreads(blocked);
1954 if ( info.window )
1955 self->SetItemMinSize(info.window, size);
1956 else if ( info.sizer )
1957 self->SetItemMinSize(info.sizer, size);
1958 else if ( info.gotPos )
1959 self->SetItemMinSize(info.pos, size);
1960 }
1961 PyObject *wxSizer_GetChildren(wxSizer *self){
1962 wxSizerItemList& list = self->GetChildren();
1963 return wxPy_ConvertList(&list);
1964 }
1965 bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){
1966 bool blocked = wxPyBeginBlockThreads();
1967 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1968 wxPyEndBlockThreads(blocked);
1969 if ( info.window )
1970 return self->Show(info.window, show, recursive);
1971 else if ( info.sizer )
1972 return self->Show(info.sizer, show, recursive);
1973 else if ( info.gotPos )
1974 return self->Show(info.pos, show);
1975 else
1976 return false;
1977 }
1978 bool wxSizer_IsShown(wxSizer *self,PyObject *item){
1979 bool blocked = wxPyBeginBlockThreads();
1980 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
1981 wxPyEndBlockThreads(blocked);
1982 if ( info.window )
1983 return self->IsShown(info.window);
1984 else if ( info.sizer )
1985 return self->IsShown(info.sizer);
1986 else if ( info.gotPos )
1987 return self->IsShown(info.pos);
1988 else
1989 return false;
1990 }
1991
1992 // See pyclasses.h
1993 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1994 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1995 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1996
1997
1998
1999
2000 bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
2001 {
2002 if (source == Py_None) {
2003 **obj = wxGBPosition(-1,-1);
2004 return true;
2005 }
2006 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
2007 }
2008
2009 bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
2010 {
2011 if (source == Py_None) {
2012 **obj = wxGBSpan(-1,-1);
2013 return true;
2014 }
2015 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
2016 }
2017
2018
2019 void wxGBPosition_Set(wxGBPosition *self,int row,int col){
2020 self->SetRow(row);
2021 self->SetCol(col);
2022 }
2023 PyObject *wxGBPosition_Get(wxGBPosition *self){
2024 bool blocked = wxPyBeginBlockThreads();
2025 PyObject* tup = PyTuple_New(2);
2026 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
2027 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
2028 wxPyEndBlockThreads(blocked);
2029 return tup;
2030 }
2031 void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
2032 self->SetRowspan(rowspan);
2033 self->SetColspan(colspan);
2034 }
2035 PyObject *wxGBSpan_Get(wxGBSpan *self){
2036 bool blocked = wxPyBeginBlockThreads();
2037 PyObject* tup = PyTuple_New(2);
2038 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
2039 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
2040 wxPyEndBlockThreads(blocked);
2041 return tup;
2042 }
2043 wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2044 wxPyUserData* data = NULL;
2045 if ( userData ) {
2046 bool blocked = wxPyBeginBlockThreads();
2047 data = new wxPyUserData(userData);
2048 wxPyEndBlockThreads(blocked);
2049 }
2050 return new wxGBSizerItem(window, pos, span, flag, border, data);
2051 }
2052 wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2053 wxPyUserData* data = NULL;
2054 if ( userData ) {
2055 bool blocked = wxPyBeginBlockThreads();
2056 data = new wxPyUserData(userData);
2057 wxPyEndBlockThreads(blocked);
2058 }
2059 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
2060 }
2061 wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2062 wxPyUserData* data = NULL;
2063 if ( userData ) {
2064 bool blocked = wxPyBeginBlockThreads();
2065 data = new wxPyUserData(userData);
2066 wxPyEndBlockThreads(blocked);
2067 }
2068 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
2069 }
2070 wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
2071 int row, col;
2072 self->GetEndPos(row, col);
2073 return wxGBPosition(row, col);
2074 }
2075 wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2076
2077 wxPyUserData* data = NULL;
2078 bool blocked = wxPyBeginBlockThreads();
2079 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
2080 if ( userData && (info.window || info.sizer || info.gotSize) )
2081 data = new wxPyUserData(userData);
2082 wxPyEndBlockThreads(blocked);
2083
2084 // Now call the real Add method if a valid item type was found
2085 if ( info.window )
2086 return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
2087 else if ( info.sizer )
2088 return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
2089 else if (info.gotSize)
2090 return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
2091 pos, span, flag, border, data);
2092 return NULL;
2093 }
2094
2095
2096 #ifdef __cplusplus
2097 extern "C" {
2098 #endif
2099 static int _wrap_EmptyString_set(PyObject *) {
2100 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
2101 return 1;
2102 }
2103
2104
2105 static PyObject *_wrap_EmptyString_get() {
2106 PyObject *pyobj;
2107
2108 {
2109 #if wxUSE_UNICODE
2110 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
2111 #else
2112 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
2113 #endif
2114 }
2115 return pyobj;
2116 }
2117
2118
2119 static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 wxObject *arg1 = (wxObject *) 0 ;
2122 wxString result;
2123 PyObject * obj0 = 0 ;
2124 char *kwnames[] = {
2125 (char *) "self", NULL
2126 };
2127
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
2129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
2130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2131 {
2132 PyThreadState* __tstate = wxPyBeginAllowThreads();
2133 result = wxObject_GetClassName(arg1);
2134
2135 wxPyEndAllowThreads(__tstate);
2136 if (PyErr_Occurred()) SWIG_fail;
2137 }
2138 {
2139 #if wxUSE_UNICODE
2140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2141 #else
2142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2143 #endif
2144 }
2145 return resultobj;
2146 fail:
2147 return NULL;
2148 }
2149
2150
2151 static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
2152 PyObject *resultobj;
2153 wxObject *arg1 = (wxObject *) 0 ;
2154 PyObject * obj0 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "self", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
2160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
2161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 wxObject_Destroy(arg1);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 Py_INCREF(Py_None); resultobj = Py_None;
2170 return resultobj;
2171 fail:
2172 return NULL;
2173 }
2174
2175
2176 static PyObject * Object_swigregister(PyObject *, PyObject *args) {
2177 PyObject *obj;
2178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2179 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
2180 Py_INCREF(obj);
2181 return Py_BuildValue((char *)"");
2182 }
2183 static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
2184 PyObject *resultobj;
2185 wxSize *arg1 = (wxSize *) 0 ;
2186 int arg2 ;
2187 PyObject * obj0 = 0 ;
2188 PyObject * obj1 = 0 ;
2189 char *kwnames[] = {
2190 (char *) "self",(char *) "x", NULL
2191 };
2192
2193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
2194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2196 arg2 = (int)SWIG_As_int(obj1);
2197 if (PyErr_Occurred()) SWIG_fail;
2198 if (arg1) (arg1)->x = arg2;
2199
2200 Py_INCREF(Py_None); resultobj = Py_None;
2201 return resultobj;
2202 fail:
2203 return NULL;
2204 }
2205
2206
2207 static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
2208 PyObject *resultobj;
2209 wxSize *arg1 = (wxSize *) 0 ;
2210 int result;
2211 PyObject * obj0 = 0 ;
2212 char *kwnames[] = {
2213 (char *) "self", NULL
2214 };
2215
2216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
2217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2219 result = (int) ((arg1)->x);
2220
2221 resultobj = SWIG_From_int((int)result);
2222 return resultobj;
2223 fail:
2224 return NULL;
2225 }
2226
2227
2228 static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
2229 PyObject *resultobj;
2230 wxSize *arg1 = (wxSize *) 0 ;
2231 int arg2 ;
2232 PyObject * obj0 = 0 ;
2233 PyObject * obj1 = 0 ;
2234 char *kwnames[] = {
2235 (char *) "self",(char *) "y", NULL
2236 };
2237
2238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
2239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2241 arg2 = (int)SWIG_As_int(obj1);
2242 if (PyErr_Occurred()) SWIG_fail;
2243 if (arg1) (arg1)->y = arg2;
2244
2245 Py_INCREF(Py_None); resultobj = Py_None;
2246 return resultobj;
2247 fail:
2248 return NULL;
2249 }
2250
2251
2252 static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
2253 PyObject *resultobj;
2254 wxSize *arg1 = (wxSize *) 0 ;
2255 int result;
2256 PyObject * obj0 = 0 ;
2257 char *kwnames[] = {
2258 (char *) "self", NULL
2259 };
2260
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2264 result = (int) ((arg1)->y);
2265
2266 resultobj = SWIG_From_int((int)result);
2267 return resultobj;
2268 fail:
2269 return NULL;
2270 }
2271
2272
2273 static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) {
2274 PyObject *resultobj;
2275 int arg1 = (int) 0 ;
2276 int arg2 = (int) 0 ;
2277 wxSize *result;
2278 PyObject * obj0 = 0 ;
2279 PyObject * obj1 = 0 ;
2280 char *kwnames[] = {
2281 (char *) "w",(char *) "h", NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
2285 if (obj0) {
2286 arg1 = (int)SWIG_As_int(obj0);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 if (obj1) {
2290 arg2 = (int)SWIG_As_int(obj1);
2291 if (PyErr_Occurred()) SWIG_fail;
2292 }
2293 {
2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
2295 result = (wxSize *)new wxSize(arg1,arg2);
2296
2297 wxPyEndAllowThreads(__tstate);
2298 if (PyErr_Occurred()) SWIG_fail;
2299 }
2300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
2301 return resultobj;
2302 fail:
2303 return NULL;
2304 }
2305
2306
2307 static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) {
2308 PyObject *resultobj;
2309 wxSize *arg1 = (wxSize *) 0 ;
2310 PyObject * obj0 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 delete arg1;
2321
2322 wxPyEndAllowThreads(__tstate);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 }
2325 Py_INCREF(Py_None); resultobj = Py_None;
2326 return resultobj;
2327 fail:
2328 return NULL;
2329 }
2330
2331
2332 static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxSize *arg1 = (wxSize *) 0 ;
2335 wxSize *arg2 = 0 ;
2336 bool result;
2337 wxSize temp2 ;
2338 PyObject * obj0 = 0 ;
2339 PyObject * obj1 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self",(char *) "sz", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 {
2348 arg2 = &temp2;
2349 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2350 }
2351 {
2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
2353 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 {
2359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2360 }
2361 return resultobj;
2362 fail:
2363 return NULL;
2364 }
2365
2366
2367 static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2368 PyObject *resultobj;
2369 wxSize *arg1 = (wxSize *) 0 ;
2370 wxSize *arg2 = 0 ;
2371 bool result;
2372 wxSize temp2 ;
2373 PyObject * obj0 = 0 ;
2374 PyObject * obj1 = 0 ;
2375 char *kwnames[] = {
2376 (char *) "self",(char *) "sz", NULL
2377 };
2378
2379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2382 {
2383 arg2 = &temp2;
2384 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2385 }
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 {
2394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2395 }
2396 return resultobj;
2397 fail:
2398 return NULL;
2399 }
2400
2401
2402 static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) {
2403 PyObject *resultobj;
2404 wxSize *arg1 = (wxSize *) 0 ;
2405 wxSize *arg2 = 0 ;
2406 wxSize result;
2407 wxSize temp2 ;
2408 PyObject * obj0 = 0 ;
2409 PyObject * obj1 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "self",(char *) "sz", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2417 {
2418 arg2 = &temp2;
2419 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2420 }
2421 {
2422 PyThreadState* __tstate = wxPyBeginAllowThreads();
2423 result = (arg1)->operator +((wxSize const &)*arg2);
2424
2425 wxPyEndAllowThreads(__tstate);
2426 if (PyErr_Occurred()) SWIG_fail;
2427 }
2428 {
2429 wxSize * resultptr;
2430 resultptr = new wxSize((wxSize &) result);
2431 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2432 }
2433 return resultobj;
2434 fail:
2435 return NULL;
2436 }
2437
2438
2439 static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
2440 PyObject *resultobj;
2441 wxSize *arg1 = (wxSize *) 0 ;
2442 wxSize *arg2 = 0 ;
2443 wxSize result;
2444 wxSize temp2 ;
2445 PyObject * obj0 = 0 ;
2446 PyObject * obj1 = 0 ;
2447 char *kwnames[] = {
2448 (char *) "self",(char *) "sz", NULL
2449 };
2450
2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2454 {
2455 arg2 = &temp2;
2456 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2457 }
2458 {
2459 PyThreadState* __tstate = wxPyBeginAllowThreads();
2460 result = (arg1)->operator -((wxSize const &)*arg2);
2461
2462 wxPyEndAllowThreads(__tstate);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 {
2466 wxSize * resultptr;
2467 resultptr = new wxSize((wxSize &) result);
2468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2469 }
2470 return resultobj;
2471 fail:
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) {
2477 PyObject *resultobj;
2478 wxSize *arg1 = (wxSize *) 0 ;
2479 wxSize *arg2 = 0 ;
2480 wxSize temp2 ;
2481 PyObject * obj0 = 0 ;
2482 PyObject * obj1 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self",(char *) "sz", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2490 {
2491 arg2 = &temp2;
2492 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2493 }
2494 {
2495 PyThreadState* __tstate = wxPyBeginAllowThreads();
2496 (arg1)->IncTo((wxSize const &)*arg2);
2497
2498 wxPyEndAllowThreads(__tstate);
2499 if (PyErr_Occurred()) SWIG_fail;
2500 }
2501 Py_INCREF(Py_None); resultobj = Py_None;
2502 return resultobj;
2503 fail:
2504 return NULL;
2505 }
2506
2507
2508 static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) {
2509 PyObject *resultobj;
2510 wxSize *arg1 = (wxSize *) 0 ;
2511 wxSize *arg2 = 0 ;
2512 wxSize temp2 ;
2513 PyObject * obj0 = 0 ;
2514 PyObject * obj1 = 0 ;
2515 char *kwnames[] = {
2516 (char *) "self",(char *) "sz", NULL
2517 };
2518
2519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2522 {
2523 arg2 = &temp2;
2524 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2525 }
2526 {
2527 PyThreadState* __tstate = wxPyBeginAllowThreads();
2528 (arg1)->DecTo((wxSize const &)*arg2);
2529
2530 wxPyEndAllowThreads(__tstate);
2531 if (PyErr_Occurred()) SWIG_fail;
2532 }
2533 Py_INCREF(Py_None); resultobj = Py_None;
2534 return resultobj;
2535 fail:
2536 return NULL;
2537 }
2538
2539
2540 static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) {
2541 PyObject *resultobj;
2542 wxSize *arg1 = (wxSize *) 0 ;
2543 int arg2 ;
2544 int arg3 ;
2545 PyObject * obj0 = 0 ;
2546 PyObject * obj1 = 0 ;
2547 PyObject * obj2 = 0 ;
2548 char *kwnames[] = {
2549 (char *) "self",(char *) "w",(char *) "h", NULL
2550 };
2551
2552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2555 arg2 = (int)SWIG_As_int(obj1);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 arg3 = (int)SWIG_As_int(obj2);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 {
2560 PyThreadState* __tstate = wxPyBeginAllowThreads();
2561 (arg1)->Set(arg2,arg3);
2562
2563 wxPyEndAllowThreads(__tstate);
2564 if (PyErr_Occurred()) SWIG_fail;
2565 }
2566 Py_INCREF(Py_None); resultobj = Py_None;
2567 return resultobj;
2568 fail:
2569 return NULL;
2570 }
2571
2572
2573 static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2574 PyObject *resultobj;
2575 wxSize *arg1 = (wxSize *) 0 ;
2576 int arg2 ;
2577 PyObject * obj0 = 0 ;
2578 PyObject * obj1 = 0 ;
2579 char *kwnames[] = {
2580 (char *) "self",(char *) "w", NULL
2581 };
2582
2583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2586 arg2 = (int)SWIG_As_int(obj1);
2587 if (PyErr_Occurred()) SWIG_fail;
2588 {
2589 PyThreadState* __tstate = wxPyBeginAllowThreads();
2590 (arg1)->SetWidth(arg2);
2591
2592 wxPyEndAllowThreads(__tstate);
2593 if (PyErr_Occurred()) SWIG_fail;
2594 }
2595 Py_INCREF(Py_None); resultobj = Py_None;
2596 return resultobj;
2597 fail:
2598 return NULL;
2599 }
2600
2601
2602 static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxSize *arg1 = (wxSize *) 0 ;
2605 int arg2 ;
2606 PyObject * obj0 = 0 ;
2607 PyObject * obj1 = 0 ;
2608 char *kwnames[] = {
2609 (char *) "self",(char *) "h", NULL
2610 };
2611
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2615 arg2 = (int)SWIG_As_int(obj1);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 {
2618 PyThreadState* __tstate = wxPyBeginAllowThreads();
2619 (arg1)->SetHeight(arg2);
2620
2621 wxPyEndAllowThreads(__tstate);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 Py_INCREF(Py_None); resultobj = Py_None;
2625 return resultobj;
2626 fail:
2627 return NULL;
2628 }
2629
2630
2631 static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2632 PyObject *resultobj;
2633 wxSize *arg1 = (wxSize *) 0 ;
2634 int result;
2635 PyObject * obj0 = 0 ;
2636 char *kwnames[] = {
2637 (char *) "self", NULL
2638 };
2639
2640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2643 {
2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
2645 result = (int)((wxSize const *)arg1)->GetWidth();
2646
2647 wxPyEndAllowThreads(__tstate);
2648 if (PyErr_Occurred()) SWIG_fail;
2649 }
2650 resultobj = SWIG_From_int((int)result);
2651 return resultobj;
2652 fail:
2653 return NULL;
2654 }
2655
2656
2657 static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
2658 PyObject *resultobj;
2659 wxSize *arg1 = (wxSize *) 0 ;
2660 int result;
2661 PyObject * obj0 = 0 ;
2662 char *kwnames[] = {
2663 (char *) "self", NULL
2664 };
2665
2666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 result = (int)((wxSize const *)arg1)->GetHeight();
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 resultobj = SWIG_From_int((int)result);
2677 return resultobj;
2678 fail:
2679 return NULL;
2680 }
2681
2682
2683 static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) {
2684 PyObject *resultobj;
2685 wxSize *arg1 = (wxSize *) 0 ;
2686 bool result;
2687 PyObject * obj0 = 0 ;
2688 char *kwnames[] = {
2689 (char *) "self", NULL
2690 };
2691
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 {
2703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2704 }
2705 return resultobj;
2706 fail:
2707 return NULL;
2708 }
2709
2710
2711 static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
2712 PyObject *resultobj;
2713 wxSize *arg1 = (wxSize *) 0 ;
2714 wxSize *arg2 = 0 ;
2715 wxSize temp2 ;
2716 PyObject * obj0 = 0 ;
2717 PyObject * obj1 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self",(char *) "size", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2725 {
2726 arg2 = &temp2;
2727 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2728 }
2729 {
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 (arg1)->SetDefaults((wxSize const &)*arg2);
2732
2733 wxPyEndAllowThreads(__tstate);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 }
2736 Py_INCREF(Py_None); resultobj = Py_None;
2737 return resultobj;
2738 fail:
2739 return NULL;
2740 }
2741
2742
2743 static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) {
2744 PyObject *resultobj;
2745 wxSize *arg1 = (wxSize *) 0 ;
2746 PyObject *result;
2747 PyObject * obj0 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "self", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2755 {
2756 PyThreadState* __tstate = wxPyBeginAllowThreads();
2757 result = (PyObject *)wxSize_Get(arg1);
2758
2759 wxPyEndAllowThreads(__tstate);
2760 if (PyErr_Occurred()) SWIG_fail;
2761 }
2762 resultobj = result;
2763 return resultobj;
2764 fail:
2765 return NULL;
2766 }
2767
2768
2769 static PyObject * Size_swigregister(PyObject *, PyObject *args) {
2770 PyObject *obj;
2771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2772 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2773 Py_INCREF(obj);
2774 return Py_BuildValue((char *)"");
2775 }
2776 static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj;
2778 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2779 double arg2 ;
2780 PyObject * obj0 = 0 ;
2781 PyObject * obj1 = 0 ;
2782 char *kwnames[] = {
2783 (char *) "self",(char *) "x", NULL
2784 };
2785
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2789 arg2 = (double)SWIG_As_double(obj1);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 if (arg1) (arg1)->x = arg2;
2792
2793 Py_INCREF(Py_None); resultobj = Py_None;
2794 return resultobj;
2795 fail:
2796 return NULL;
2797 }
2798
2799
2800 static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
2801 PyObject *resultobj;
2802 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2803 double result;
2804 PyObject * obj0 = 0 ;
2805 char *kwnames[] = {
2806 (char *) "self", NULL
2807 };
2808
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2812 result = (double) ((arg1)->x);
2813
2814 resultobj = SWIG_From_double((double)result);
2815 return resultobj;
2816 fail:
2817 return NULL;
2818 }
2819
2820
2821 static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
2822 PyObject *resultobj;
2823 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2824 double arg2 ;
2825 PyObject * obj0 = 0 ;
2826 PyObject * obj1 = 0 ;
2827 char *kwnames[] = {
2828 (char *) "self",(char *) "y", NULL
2829 };
2830
2831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2834 arg2 = (double)SWIG_As_double(obj1);
2835 if (PyErr_Occurred()) SWIG_fail;
2836 if (arg1) (arg1)->y = arg2;
2837
2838 Py_INCREF(Py_None); resultobj = Py_None;
2839 return resultobj;
2840 fail:
2841 return NULL;
2842 }
2843
2844
2845 static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
2846 PyObject *resultobj;
2847 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2848 double result;
2849 PyObject * obj0 = 0 ;
2850 char *kwnames[] = {
2851 (char *) "self", NULL
2852 };
2853
2854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2857 result = (double) ((arg1)->y);
2858
2859 resultobj = SWIG_From_double((double)result);
2860 return resultobj;
2861 fail:
2862 return NULL;
2863 }
2864
2865
2866 static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
2867 PyObject *resultobj;
2868 double arg1 = (double) 0.0 ;
2869 double arg2 = (double) 0.0 ;
2870 wxRealPoint *result;
2871 PyObject * obj0 = 0 ;
2872 PyObject * obj1 = 0 ;
2873 char *kwnames[] = {
2874 (char *) "x",(char *) "y", NULL
2875 };
2876
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2878 if (obj0) {
2879 arg1 = (double)SWIG_As_double(obj0);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
2882 if (obj1) {
2883 arg2 = (double)SWIG_As_double(obj1);
2884 if (PyErr_Occurred()) SWIG_fail;
2885 }
2886 {
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
2893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2894 return resultobj;
2895 fail:
2896 return NULL;
2897 }
2898
2899
2900 static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2903 PyObject * obj0 = 0 ;
2904 char *kwnames[] = {
2905 (char *) "self", NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2911 {
2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
2913 delete arg1;
2914
2915 wxPyEndAllowThreads(__tstate);
2916 if (PyErr_Occurred()) SWIG_fail;
2917 }
2918 Py_INCREF(Py_None); resultobj = Py_None;
2919 return resultobj;
2920 fail:
2921 return NULL;
2922 }
2923
2924
2925 static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2926 PyObject *resultobj;
2927 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2928 wxRealPoint *arg2 = 0 ;
2929 bool result;
2930 wxRealPoint temp2 ;
2931 PyObject * obj0 = 0 ;
2932 PyObject * obj1 = 0 ;
2933 char *kwnames[] = {
2934 (char *) "self",(char *) "pt", NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2940 {
2941 arg2 = &temp2;
2942 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2943 }
2944 {
2945 PyThreadState* __tstate = wxPyBeginAllowThreads();
2946 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2947
2948 wxPyEndAllowThreads(__tstate);
2949 if (PyErr_Occurred()) SWIG_fail;
2950 }
2951 {
2952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2953 }
2954 return resultobj;
2955 fail:
2956 return NULL;
2957 }
2958
2959
2960 static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2961 PyObject *resultobj;
2962 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2963 wxRealPoint *arg2 = 0 ;
2964 bool result;
2965 wxRealPoint temp2 ;
2966 PyObject * obj0 = 0 ;
2967 PyObject * obj1 = 0 ;
2968 char *kwnames[] = {
2969 (char *) "self",(char *) "pt", NULL
2970 };
2971
2972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2975 {
2976 arg2 = &temp2;
2977 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2978 }
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 }
2986 {
2987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2988 }
2989 return resultobj;
2990 fail:
2991 return NULL;
2992 }
2993
2994
2995 static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2998 wxRealPoint *arg2 = 0 ;
2999 wxRealPoint result;
3000 wxRealPoint temp2 ;
3001 PyObject * obj0 = 0 ;
3002 PyObject * obj1 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self",(char *) "pt", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3010 {
3011 arg2 = &temp2;
3012 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
3013 }
3014 {
3015 PyThreadState* __tstate = wxPyBeginAllowThreads();
3016 result = (arg1)->operator +((wxRealPoint const &)*arg2);
3017
3018 wxPyEndAllowThreads(__tstate);
3019 if (PyErr_Occurred()) SWIG_fail;
3020 }
3021 {
3022 wxRealPoint * resultptr;
3023 resultptr = new wxRealPoint((wxRealPoint &) result);
3024 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
3025 }
3026 return resultobj;
3027 fail:
3028 return NULL;
3029 }
3030
3031
3032 static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
3033 PyObject *resultobj;
3034 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3035 wxRealPoint *arg2 = 0 ;
3036 wxRealPoint result;
3037 wxRealPoint temp2 ;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 char *kwnames[] = {
3041 (char *) "self",(char *) "pt", NULL
3042 };
3043
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
3045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3047 {
3048 arg2 = &temp2;
3049 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
3050 }
3051 {
3052 PyThreadState* __tstate = wxPyBeginAllowThreads();
3053 result = (arg1)->operator -((wxRealPoint const &)*arg2);
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 }
3058 {
3059 wxRealPoint * resultptr;
3060 resultptr = new wxRealPoint((wxRealPoint &) result);
3061 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
3062 }
3063 return resultobj;
3064 fail:
3065 return NULL;
3066 }
3067
3068
3069 static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3072 double arg2 ;
3073 double arg3 ;
3074 PyObject * obj0 = 0 ;
3075 PyObject * obj1 = 0 ;
3076 PyObject * obj2 = 0 ;
3077 char *kwnames[] = {
3078 (char *) "self",(char *) "x",(char *) "y", NULL
3079 };
3080
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3084 arg2 = (double)SWIG_As_double(obj1);
3085 if (PyErr_Occurred()) SWIG_fail;
3086 arg3 = (double)SWIG_As_double(obj2);
3087 if (PyErr_Occurred()) SWIG_fail;
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 wxRealPoint_Set(arg1,arg2,arg3);
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
3095 Py_INCREF(Py_None); resultobj = Py_None;
3096 return resultobj;
3097 fail:
3098 return NULL;
3099 }
3100
3101
3102 static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3105 PyObject *result;
3106 PyObject * obj0 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = (PyObject *)wxRealPoint_Get(arg1);
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 resultobj = result;
3122 return resultobj;
3123 fail:
3124 return NULL;
3125 }
3126
3127
3128 static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) {
3129 PyObject *obj;
3130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3131 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
3132 Py_INCREF(obj);
3133 return Py_BuildValue((char *)"");
3134 }
3135 static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxPoint *arg1 = (wxPoint *) 0 ;
3138 int arg2 ;
3139 PyObject * obj0 = 0 ;
3140 PyObject * obj1 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self",(char *) "x", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3148 arg2 = (int)SWIG_As_int(obj1);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 if (arg1) (arg1)->x = arg2;
3151
3152 Py_INCREF(Py_None); resultobj = Py_None;
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj;
3161 wxPoint *arg1 = (wxPoint *) 0 ;
3162 int result;
3163 PyObject * obj0 = 0 ;
3164 char *kwnames[] = {
3165 (char *) "self", NULL
3166 };
3167
3168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
3169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3171 result = (int) ((arg1)->x);
3172
3173 resultobj = SWIG_From_int((int)result);
3174 return resultobj;
3175 fail:
3176 return NULL;
3177 }
3178
3179
3180 static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
3181 PyObject *resultobj;
3182 wxPoint *arg1 = (wxPoint *) 0 ;
3183 int arg2 ;
3184 PyObject * obj0 = 0 ;
3185 PyObject * obj1 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "self",(char *) "y", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
3191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3193 arg2 = (int)SWIG_As_int(obj1);
3194 if (PyErr_Occurred()) SWIG_fail;
3195 if (arg1) (arg1)->y = arg2;
3196
3197 Py_INCREF(Py_None); resultobj = Py_None;
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxPoint *arg1 = (wxPoint *) 0 ;
3207 int result;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3216 result = (int) ((arg1)->y);
3217
3218 resultobj = SWIG_From_int((int)result);
3219 return resultobj;
3220 fail:
3221 return NULL;
3222 }
3223
3224
3225 static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) {
3226 PyObject *resultobj;
3227 int arg1 = (int) 0 ;
3228 int arg2 = (int) 0 ;
3229 wxPoint *result;
3230 PyObject * obj0 = 0 ;
3231 PyObject * obj1 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "x",(char *) "y", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
3237 if (obj0) {
3238 arg1 = (int)SWIG_As_int(obj0);
3239 if (PyErr_Occurred()) SWIG_fail;
3240 }
3241 if (obj1) {
3242 arg2 = (int)SWIG_As_int(obj1);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 result = (wxPoint *)new wxPoint(arg1,arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxPoint *arg1 = (wxPoint *) 0 ;
3262 PyObject * obj0 = 0 ;
3263 char *kwnames[] = {
3264 (char *) "self", NULL
3265 };
3266
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
3268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3270 {
3271 PyThreadState* __tstate = wxPyBeginAllowThreads();
3272 delete arg1;
3273
3274 wxPyEndAllowThreads(__tstate);
3275 if (PyErr_Occurred()) SWIG_fail;
3276 }
3277 Py_INCREF(Py_None); resultobj = Py_None;
3278 return resultobj;
3279 fail:
3280 return NULL;
3281 }
3282
3283
3284 static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3285 PyObject *resultobj;
3286 wxPoint *arg1 = (wxPoint *) 0 ;
3287 wxPoint *arg2 = 0 ;
3288 bool result;
3289 wxPoint temp2 ;
3290 PyObject * obj0 = 0 ;
3291 PyObject * obj1 = 0 ;
3292 char *kwnames[] = {
3293 (char *) "self",(char *) "pt", NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
3297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3299 {
3300 arg2 = &temp2;
3301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3302 }
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
3306
3307 wxPyEndAllowThreads(__tstate);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 {
3311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3312 }
3313 return resultobj;
3314 fail:
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 wxPoint *arg1 = (wxPoint *) 0 ;
3322 wxPoint *arg2 = 0 ;
3323 bool result;
3324 wxPoint temp2 ;
3325 PyObject * obj0 = 0 ;
3326 PyObject * obj1 = 0 ;
3327 char *kwnames[] = {
3328 (char *) "self",(char *) "pt", NULL
3329 };
3330
3331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3334 {
3335 arg2 = &temp2;
3336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3337 }
3338 {
3339 PyThreadState* __tstate = wxPyBeginAllowThreads();
3340 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3341
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 }
3345 {
3346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3347 }
3348 return resultobj;
3349 fail:
3350 return NULL;
3351 }
3352
3353
3354 static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) {
3355 PyObject *resultobj;
3356 wxPoint *arg1 = (wxPoint *) 0 ;
3357 wxPoint *arg2 = 0 ;
3358 wxPoint result;
3359 wxPoint temp2 ;
3360 PyObject * obj0 = 0 ;
3361 PyObject * obj1 = 0 ;
3362 char *kwnames[] = {
3363 (char *) "self",(char *) "pt", NULL
3364 };
3365
3366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3369 {
3370 arg2 = &temp2;
3371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3372 }
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = (arg1)->operator +((wxPoint const &)*arg2);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 {
3381 wxPoint * resultptr;
3382 resultptr = new wxPoint((wxPoint &) result);
3383 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3384 }
3385 return resultobj;
3386 fail:
3387 return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxPoint *arg1 = (wxPoint *) 0 ;
3394 wxPoint *arg2 = 0 ;
3395 wxPoint result;
3396 wxPoint temp2 ;
3397 PyObject * obj0 = 0 ;
3398 PyObject * obj1 = 0 ;
3399 char *kwnames[] = {
3400 (char *) "self",(char *) "pt", NULL
3401 };
3402
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3406 {
3407 arg2 = &temp2;
3408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3409 }
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 result = (arg1)->operator -((wxPoint const &)*arg2);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 {
3418 wxPoint * resultptr;
3419 resultptr = new wxPoint((wxPoint &) result);
3420 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3421 }
3422 return resultobj;
3423 fail:
3424 return NULL;
3425 }
3426
3427
3428 static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxPoint *arg1 = (wxPoint *) 0 ;
3431 wxPoint *arg2 = 0 ;
3432 wxPoint *result;
3433 wxPoint temp2 ;
3434 PyObject * obj0 = 0 ;
3435 PyObject * obj1 = 0 ;
3436 char *kwnames[] = {
3437 (char *) "self",(char *) "pt", NULL
3438 };
3439
3440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3442 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
3443 {
3444 arg2 = &temp2;
3445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3446 }
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 {
3450 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3451 result = (wxPoint *) &_result_ref;
3452 }
3453
3454 wxPyEndAllowThreads(__tstate);
3455 if (PyErr_Occurred()) SWIG_fail;
3456 }
3457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
3458 return resultobj;
3459 fail:
3460 return NULL;
3461 }
3462
3463
3464 static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj;
3466 wxPoint *arg1 = (wxPoint *) 0 ;
3467 wxPoint *arg2 = 0 ;
3468 wxPoint *result;
3469 wxPoint temp2 ;
3470 PyObject * obj0 = 0 ;
3471 PyObject * obj1 = 0 ;
3472 char *kwnames[] = {
3473 (char *) "self",(char *) "pt", NULL
3474 };
3475
3476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3478 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
3479 {
3480 arg2 = &temp2;
3481 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3482 }
3483 {
3484 PyThreadState* __tstate = wxPyBeginAllowThreads();
3485 {
3486 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3487 result = (wxPoint *) &_result_ref;
3488 }
3489
3490 wxPyEndAllowThreads(__tstate);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 }
3493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
3494 return resultobj;
3495 fail:
3496 return NULL;
3497 }
3498
3499
3500 static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) {
3501 PyObject *resultobj;
3502 wxPoint *arg1 = (wxPoint *) 0 ;
3503 long arg2 ;
3504 long arg3 ;
3505 PyObject * obj0 = 0 ;
3506 PyObject * obj1 = 0 ;
3507 PyObject * obj2 = 0 ;
3508 char *kwnames[] = {
3509 (char *) "self",(char *) "x",(char *) "y", NULL
3510 };
3511
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3515 arg2 = (long)SWIG_As_long(obj1);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 arg3 = (long)SWIG_As_long(obj2);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 wxPoint_Set(arg1,arg2,arg3);
3522
3523 wxPyEndAllowThreads(__tstate);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 Py_INCREF(Py_None); resultobj = Py_None;
3527 return resultobj;
3528 fail:
3529 return NULL;
3530 }
3531
3532
3533 static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) {
3534 PyObject *resultobj;
3535 wxPoint *arg1 = (wxPoint *) 0 ;
3536 PyObject *result;
3537 PyObject * obj0 = 0 ;
3538 char *kwnames[] = {
3539 (char *) "self", NULL
3540 };
3541
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3545 {
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 result = (PyObject *)wxPoint_Get(arg1);
3548
3549 wxPyEndAllowThreads(__tstate);
3550 if (PyErr_Occurred()) SWIG_fail;
3551 }
3552 resultobj = result;
3553 return resultobj;
3554 fail:
3555 return NULL;
3556 }
3557
3558
3559 static PyObject * Point_swigregister(PyObject *, PyObject *args) {
3560 PyObject *obj;
3561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3562 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3563 Py_INCREF(obj);
3564 return Py_BuildValue((char *)"");
3565 }
3566 static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
3567 PyObject *resultobj;
3568 int arg1 = (int) 0 ;
3569 int arg2 = (int) 0 ;
3570 int arg3 = (int) 0 ;
3571 int arg4 = (int) 0 ;
3572 wxRect *result;
3573 PyObject * obj0 = 0 ;
3574 PyObject * obj1 = 0 ;
3575 PyObject * obj2 = 0 ;
3576 PyObject * obj3 = 0 ;
3577 char *kwnames[] = {
3578 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3579 };
3580
3581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3582 if (obj0) {
3583 arg1 = (int)SWIG_As_int(obj0);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 if (obj1) {
3587 arg2 = (int)SWIG_As_int(obj1);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 if (obj2) {
3591 arg3 = (int)SWIG_As_int(obj2);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 if (obj3) {
3595 arg4 = (int)SWIG_As_int(obj3);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3601
3602 wxPyEndAllowThreads(__tstate);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3606 return resultobj;
3607 fail:
3608 return NULL;
3609 }
3610
3611
3612 static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) {
3613 PyObject *resultobj;
3614 wxPoint *arg1 = 0 ;
3615 wxPoint *arg2 = 0 ;
3616 wxRect *result;
3617 wxPoint temp1 ;
3618 wxPoint temp2 ;
3619 PyObject * obj0 = 0 ;
3620 PyObject * obj1 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "topLeft",(char *) "bottomRight", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3626 {
3627 arg1 = &temp1;
3628 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3629 }
3630 {
3631 arg2 = &temp2;
3632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3633 }
3634 {
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3642 return resultobj;
3643 fail:
3644 return NULL;
3645 }
3646
3647
3648 static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj;
3650 wxPoint *arg1 = 0 ;
3651 wxSize *arg2 = 0 ;
3652 wxRect *result;
3653 wxPoint temp1 ;
3654 wxSize temp2 ;
3655 PyObject * obj0 = 0 ;
3656 PyObject * obj1 = 0 ;
3657 char *kwnames[] = {
3658 (char *) "pos",(char *) "size", NULL
3659 };
3660
3661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3662 {
3663 arg1 = &temp1;
3664 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3665 }
3666 {
3667 arg2 = &temp2;
3668 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3669 }
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3673
3674 wxPyEndAllowThreads(__tstate);
3675 if (PyErr_Occurred()) SWIG_fail;
3676 }
3677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3678 return resultobj;
3679 fail:
3680 return NULL;
3681 }
3682
3683
3684 static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) {
3685 PyObject *resultobj;
3686 wxSize *arg1 = 0 ;
3687 wxRect *result;
3688 wxSize temp1 ;
3689 PyObject * obj0 = 0 ;
3690 char *kwnames[] = {
3691 (char *) "size", NULL
3692 };
3693
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail;
3695 {
3696 arg1 = &temp1;
3697 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
3698 }
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (wxRect *)new wxRect((wxSize const &)*arg1);
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj;
3715 wxRect *arg1 = (wxRect *) 0 ;
3716 PyObject * obj0 = 0 ;
3717 char *kwnames[] = {
3718 (char *) "self", NULL
3719 };
3720
3721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3724 {
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 delete arg1;
3727
3728 wxPyEndAllowThreads(__tstate);
3729 if (PyErr_Occurred()) SWIG_fail;
3730 }
3731 Py_INCREF(Py_None); resultobj = Py_None;
3732 return resultobj;
3733 fail:
3734 return NULL;
3735 }
3736
3737
3738 static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
3739 PyObject *resultobj;
3740 wxRect *arg1 = (wxRect *) 0 ;
3741 int result;
3742 PyObject * obj0 = 0 ;
3743 char *kwnames[] = {
3744 (char *) "self", NULL
3745 };
3746
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3750 {
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 result = (int)((wxRect const *)arg1)->GetX();
3753
3754 wxPyEndAllowThreads(__tstate);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 resultobj = SWIG_From_int((int)result);
3758 return resultobj;
3759 fail:
3760 return NULL;
3761 }
3762
3763
3764 static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj;
3766 wxRect *arg1 = (wxRect *) 0 ;
3767 int arg2 ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 char *kwnames[] = {
3771 (char *) "self",(char *) "x", NULL
3772 };
3773
3774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3777 arg2 = (int)SWIG_As_int(obj1);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 {
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 (arg1)->SetX(arg2);
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 Py_INCREF(Py_None); resultobj = Py_None;
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj;
3795 wxRect *arg1 = (wxRect *) 0 ;
3796 int result;
3797 PyObject * obj0 = 0 ;
3798 char *kwnames[] = {
3799 (char *) "self", NULL
3800 };
3801
3802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3805 {
3806 PyThreadState* __tstate = wxPyBeginAllowThreads();
3807 result = (int)(arg1)->GetY();
3808
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) SWIG_fail;
3811 }
3812 resultobj = SWIG_From_int((int)result);
3813 return resultobj;
3814 fail:
3815 return NULL;
3816 }
3817
3818
3819 static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxRect *arg1 = (wxRect *) 0 ;
3822 int arg2 ;
3823 PyObject * obj0 = 0 ;
3824 PyObject * obj1 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self",(char *) "y", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3832 arg2 = (int)SWIG_As_int(obj1);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 {
3835 PyThreadState* __tstate = wxPyBeginAllowThreads();
3836 (arg1)->SetY(arg2);
3837
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 }
3841 Py_INCREF(Py_None); resultobj = Py_None;
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3849 PyObject *resultobj;
3850 wxRect *arg1 = (wxRect *) 0 ;
3851 int result;
3852 PyObject * obj0 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 result = (int)((wxRect const *)arg1)->GetWidth();
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 resultobj = SWIG_From_int((int)result);
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxRect *arg1 = (wxRect *) 0 ;
3877 int arg2 ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 char *kwnames[] = {
3881 (char *) "self",(char *) "w", NULL
3882 };
3883
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3887 arg2 = (int)SWIG_As_int(obj1);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 (arg1)->SetWidth(arg2);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 Py_INCREF(Py_None); resultobj = Py_None;
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 wxRect *arg1 = (wxRect *) 0 ;
3906 int result;
3907 PyObject * obj0 = 0 ;
3908 char *kwnames[] = {
3909 (char *) "self", NULL
3910 };
3911
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (int)((wxRect const *)arg1)->GetHeight();
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 resultobj = SWIG_From_int((int)result);
3923 return resultobj;
3924 fail:
3925 return NULL;
3926 }
3927
3928
3929 static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3930 PyObject *resultobj;
3931 wxRect *arg1 = (wxRect *) 0 ;
3932 int arg2 ;
3933 PyObject * obj0 = 0 ;
3934 PyObject * obj1 = 0 ;
3935 char *kwnames[] = {
3936 (char *) "self",(char *) "h", NULL
3937 };
3938
3939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3942 arg2 = (int)SWIG_As_int(obj1);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 {
3945 PyThreadState* __tstate = wxPyBeginAllowThreads();
3946 (arg1)->SetHeight(arg2);
3947
3948 wxPyEndAllowThreads(__tstate);
3949 if (PyErr_Occurred()) SWIG_fail;
3950 }
3951 Py_INCREF(Py_None); resultobj = Py_None;
3952 return resultobj;
3953 fail:
3954 return NULL;
3955 }
3956
3957
3958 static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3959 PyObject *resultobj;
3960 wxRect *arg1 = (wxRect *) 0 ;
3961 wxPoint result;
3962 PyObject * obj0 = 0 ;
3963 char *kwnames[] = {
3964 (char *) "self", NULL
3965 };
3966
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 result = ((wxRect const *)arg1)->GetPosition();
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 {
3978 wxPoint * resultptr;
3979 resultptr = new wxPoint((wxPoint &) result);
3980 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3981 }
3982 return resultobj;
3983 fail:
3984 return NULL;
3985 }
3986
3987
3988 static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3989 PyObject *resultobj;
3990 wxRect *arg1 = (wxRect *) 0 ;
3991 wxPoint *arg2 = 0 ;
3992 wxPoint temp2 ;
3993 PyObject * obj0 = 0 ;
3994 PyObject * obj1 = 0 ;
3995 char *kwnames[] = {
3996 (char *) "self",(char *) "p", NULL
3997 };
3998
3999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
4000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4002 {
4003 arg2 = &temp2;
4004 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 (arg1)->SetPosition((wxPoint const &)*arg2);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 Py_INCREF(Py_None); resultobj = Py_None;
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxRect *arg1 = (wxRect *) 0 ;
4023 wxSize result;
4024 PyObject * obj0 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "self", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 result = ((wxRect const *)arg1)->GetSize();
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 {
4040 wxSize * resultptr;
4041 resultptr = new wxSize((wxSize &) result);
4042 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxRect *arg1 = (wxRect *) 0 ;
4053 wxSize *arg2 = 0 ;
4054 wxSize temp2 ;
4055 PyObject * obj0 = 0 ;
4056 PyObject * obj1 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "self",(char *) "s", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
4062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4064 {
4065 arg2 = &temp2;
4066 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4067 }
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 (arg1)->SetSize((wxSize const &)*arg2);
4071
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 Py_INCREF(Py_None); resultobj = Py_None;
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj;
4084 wxRect *arg1 = (wxRect *) 0 ;
4085 wxPoint result;
4086 PyObject * obj0 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "self", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
4092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4094 {
4095 PyThreadState* __tstate = wxPyBeginAllowThreads();
4096 result = ((wxRect const *)arg1)->GetTopLeft();
4097
4098 wxPyEndAllowThreads(__tstate);
4099 if (PyErr_Occurred()) SWIG_fail;
4100 }
4101 {
4102 wxPoint * resultptr;
4103 resultptr = new wxPoint((wxPoint &) result);
4104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4105 }
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxRect *arg1 = (wxRect *) 0 ;
4115 wxPoint *arg2 = 0 ;
4116 wxPoint temp2 ;
4117 PyObject * obj0 = 0 ;
4118 PyObject * obj1 = 0 ;
4119 char *kwnames[] = {
4120 (char *) "self",(char *) "p", NULL
4121 };
4122
4123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
4124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4126 {
4127 arg2 = &temp2;
4128 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4129 }
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 (arg1)->SetTopLeft((wxPoint const &)*arg2);
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 Py_INCREF(Py_None); resultobj = Py_None;
4138 return resultobj;
4139 fail:
4140 return NULL;
4141 }
4142
4143
4144 static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
4145 PyObject *resultobj;
4146 wxRect *arg1 = (wxRect *) 0 ;
4147 wxPoint result;
4148 PyObject * obj0 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self", NULL
4151 };
4152
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
4154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 result = ((wxRect const *)arg1)->GetBottomRight();
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 {
4164 wxPoint * resultptr;
4165 resultptr = new wxPoint((wxPoint &) result);
4166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4167 }
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxRect *arg1 = (wxRect *) 0 ;
4177 wxPoint *arg2 = 0 ;
4178 wxPoint temp2 ;
4179 PyObject * obj0 = 0 ;
4180 PyObject * obj1 = 0 ;
4181 char *kwnames[] = {
4182 (char *) "self",(char *) "p", NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
4186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4188 {
4189 arg2 = &temp2;
4190 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4191 }
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->SetBottomRight((wxPoint const &)*arg2);
4195
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 Py_INCREF(Py_None); resultobj = Py_None;
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxRect *arg1 = (wxRect *) 0 ;
4209 int result;
4210 PyObject * obj0 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "self", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
4216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (int)((wxRect const *)arg1)->GetLeft();
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_From_int((int)result);
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxRect *arg1 = (wxRect *) 0 ;
4235 int result;
4236 PyObject * obj0 = 0 ;
4237 char *kwnames[] = {
4238 (char *) "self", NULL
4239 };
4240
4241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
4242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 result = (int)((wxRect const *)arg1)->GetTop();
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 resultobj = SWIG_From_int((int)result);
4252 return resultobj;
4253 fail:
4254 return NULL;
4255 }
4256
4257
4258 static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
4259 PyObject *resultobj;
4260 wxRect *arg1 = (wxRect *) 0 ;
4261 int result;
4262 PyObject * obj0 = 0 ;
4263 char *kwnames[] = {
4264 (char *) "self", NULL
4265 };
4266
4267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
4268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = (int)((wxRect const *)arg1)->GetBottom();
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_From_int((int)result);
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj;
4286 wxRect *arg1 = (wxRect *) 0 ;
4287 int result;
4288 PyObject * obj0 = 0 ;
4289 char *kwnames[] = {
4290 (char *) "self", NULL
4291 };
4292
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
4294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (int)((wxRect const *)arg1)->GetRight();
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 resultobj = SWIG_From_int((int)result);
4304 return resultobj;
4305 fail:
4306 return NULL;
4307 }
4308
4309
4310 static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
4311 PyObject *resultobj;
4312 wxRect *arg1 = (wxRect *) 0 ;
4313 int arg2 ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 char *kwnames[] = {
4317 (char *) "self",(char *) "left", NULL
4318 };
4319
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
4321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4323 arg2 = (int)SWIG_As_int(obj1);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 (arg1)->SetLeft(arg2);
4328
4329 wxPyEndAllowThreads(__tstate);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 }
4332 Py_INCREF(Py_None); resultobj = Py_None;
4333 return resultobj;
4334 fail:
4335 return NULL;
4336 }
4337
4338
4339 static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) {
4340 PyObject *resultobj;
4341 wxRect *arg1 = (wxRect *) 0 ;
4342 int arg2 ;
4343 PyObject * obj0 = 0 ;
4344 PyObject * obj1 = 0 ;
4345 char *kwnames[] = {
4346 (char *) "self",(char *) "right", NULL
4347 };
4348
4349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
4350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4352 arg2 = (int)SWIG_As_int(obj1);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 (arg1)->SetRight(arg2);
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 Py_INCREF(Py_None); resultobj = Py_None;
4362 return resultobj;
4363 fail:
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxRect *arg1 = (wxRect *) 0 ;
4371 int arg2 ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "top", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4381 arg2 = (int)SWIG_As_int(obj1);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 (arg1)->SetTop(arg2);
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 Py_INCREF(Py_None); resultobj = Py_None;
4391 return resultobj;
4392 fail:
4393 return NULL;
4394 }
4395
4396
4397 static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj;
4399 wxRect *arg1 = (wxRect *) 0 ;
4400 int arg2 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char *kwnames[] = {
4404 (char *) "self",(char *) "bottom", NULL
4405 };
4406
4407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4410 arg2 = (int)SWIG_As_int(obj1);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 (arg1)->SetBottom(arg2);
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 Py_INCREF(Py_None); resultobj = Py_None;
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 wxRect *arg1 = (wxRect *) 0 ;
4429 int arg2 ;
4430 int arg3 ;
4431 wxRect *result;
4432 PyObject * obj0 = 0 ;
4433 PyObject * obj1 = 0 ;
4434 PyObject * obj2 = 0 ;
4435 char *kwnames[] = {
4436 (char *) "self",(char *) "dx",(char *) "dy", NULL
4437 };
4438
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4442 arg2 = (int)SWIG_As_int(obj1);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 arg3 = (int)SWIG_As_int(obj2);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 {
4447 PyThreadState* __tstate = wxPyBeginAllowThreads();
4448 {
4449 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4450 result = (wxRect *) &_result_ref;
4451 }
4452
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4457 return resultobj;
4458 fail:
4459 return NULL;
4460 }
4461
4462
4463 static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) {
4464 PyObject *resultobj;
4465 wxRect *arg1 = (wxRect *) 0 ;
4466 int arg2 ;
4467 int arg3 ;
4468 wxRect *result;
4469 PyObject * obj0 = 0 ;
4470 PyObject * obj1 = 0 ;
4471 PyObject * obj2 = 0 ;
4472 char *kwnames[] = {
4473 (char *) "self",(char *) "dx",(char *) "dy", NULL
4474 };
4475
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4479 arg2 = (int)SWIG_As_int(obj1);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 arg3 = (int)SWIG_As_int(obj2);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 {
4484 PyThreadState* __tstate = wxPyBeginAllowThreads();
4485 {
4486 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4487 result = (wxRect *) &_result_ref;
4488 }
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj;
4502 wxRect *arg1 = (wxRect *) 0 ;
4503 int arg2 ;
4504 int arg3 ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 PyObject * obj2 = 0 ;
4508 char *kwnames[] = {
4509 (char *) "self",(char *) "dx",(char *) "dy", NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4515 arg2 = (int)SWIG_As_int(obj1);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 arg3 = (int)SWIG_As_int(obj2);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 (arg1)->Offset(arg2,arg3);
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 Py_INCREF(Py_None); resultobj = Py_None;
4527 return resultobj;
4528 fail:
4529 return NULL;
4530 }
4531
4532
4533 static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxRect *arg1 = (wxRect *) 0 ;
4536 wxPoint *arg2 = 0 ;
4537 wxPoint temp2 ;
4538 PyObject * obj0 = 0 ;
4539 PyObject * obj1 = 0 ;
4540 char *kwnames[] = {
4541 (char *) "self",(char *) "pt", NULL
4542 };
4543
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4547 {
4548 arg2 = &temp2;
4549 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4550 }
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 (arg1)->Offset((wxPoint const &)*arg2);
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 Py_INCREF(Py_None); resultobj = Py_None;
4559 return resultobj;
4560 fail:
4561 return NULL;
4562 }
4563
4564
4565 static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxRect *arg1 = (wxRect *) 0 ;
4568 wxRect *arg2 = 0 ;
4569 wxRect *result;
4570 wxRect temp2 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char *kwnames[] = {
4574 (char *) "self",(char *) "rect", NULL
4575 };
4576
4577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4580 {
4581 arg2 = &temp2;
4582 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4583 }
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 {
4587 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4588 result = (wxRect *) &_result_ref;
4589 }
4590
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj;
4603 wxRect *arg1 = (wxRect *) 0 ;
4604 wxRect *arg2 = 0 ;
4605 wxRect result;
4606 wxRect temp2 ;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 char *kwnames[] = {
4610 (char *) "self",(char *) "rect", NULL
4611 };
4612
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4616 {
4617 arg2 = &temp2;
4618 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4619 }
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4623
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 {
4628 wxRect * resultptr;
4629 resultptr = new wxRect((wxRect &) result);
4630 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4631 }
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj;
4640 wxRect *arg1 = (wxRect *) 0 ;
4641 wxRect *arg2 = 0 ;
4642 wxRect *result;
4643 wxRect temp2 ;
4644 PyObject * obj0 = 0 ;
4645 PyObject * obj1 = 0 ;
4646 char *kwnames[] = {
4647 (char *) "self",(char *) "rect", NULL
4648 };
4649
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4652 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
4653 {
4654 arg2 = &temp2;
4655 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4656 }
4657 {
4658 PyThreadState* __tstate = wxPyBeginAllowThreads();
4659 {
4660 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4661 result = (wxRect *) &_result_ref;
4662 }
4663
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj;
4676 wxRect *arg1 = (wxRect *) 0 ;
4677 wxRect *arg2 = 0 ;
4678 bool result;
4679 wxRect temp2 ;
4680 PyObject * obj0 = 0 ;
4681 PyObject * obj1 = 0 ;
4682 char *kwnames[] = {
4683 (char *) "self",(char *) "rect", NULL
4684 };
4685
4686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4689 {
4690 arg2 = &temp2;
4691 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4692 }
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4696
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 {
4701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4702 }
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
4710 PyObject *resultobj;
4711 wxRect *arg1 = (wxRect *) 0 ;
4712 wxRect *arg2 = 0 ;
4713 bool result;
4714 wxRect temp2 ;
4715 PyObject * obj0 = 0 ;
4716 PyObject * obj1 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "self",(char *) "rect", NULL
4719 };
4720
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4724 {
4725 arg2 = &temp2;
4726 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4727 }
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 {
4736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4737 }
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxRect *arg1 = (wxRect *) 0 ;
4747 int arg2 ;
4748 int arg3 ;
4749 bool result;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 char *kwnames[] = {
4754 (char *) "self",(char *) "x",(char *) "y", NULL
4755 };
4756
4757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4760 arg2 = (int)SWIG_As_int(obj1);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 arg3 = (int)SWIG_As_int(obj2);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 {
4765 PyThreadState* __tstate = wxPyBeginAllowThreads();
4766 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4767
4768 wxPyEndAllowThreads(__tstate);
4769 if (PyErr_Occurred()) SWIG_fail;
4770 }
4771 {
4772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4773 }
4774 return resultobj;
4775 fail:
4776 return NULL;
4777 }
4778
4779
4780 static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) {
4781 PyObject *resultobj;
4782 wxRect *arg1 = (wxRect *) 0 ;
4783 wxPoint *arg2 = 0 ;
4784 bool result;
4785 wxPoint temp2 ;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 char *kwnames[] = {
4789 (char *) "self",(char *) "pt", NULL
4790 };
4791
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4795 {
4796 arg2 = &temp2;
4797 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4798 }
4799 {
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4802
4803 wxPyEndAllowThreads(__tstate);
4804 if (PyErr_Occurred()) SWIG_fail;
4805 }
4806 {
4807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4808 }
4809 return resultobj;
4810 fail:
4811 return NULL;
4812 }
4813
4814
4815 static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
4816 PyObject *resultobj;
4817 wxRect *arg1 = (wxRect *) 0 ;
4818 wxRect *arg2 = 0 ;
4819 bool result;
4820 wxRect temp2 ;
4821 PyObject * obj0 = 0 ;
4822 PyObject * obj1 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "self",(char *) "rect", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4830 {
4831 arg2 = &temp2;
4832 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4833 }
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4837
4838 wxPyEndAllowThreads(__tstate);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 {
4842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4843 }
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
4851 PyObject *resultobj;
4852 wxRect *arg1 = (wxRect *) 0 ;
4853 int arg2 ;
4854 PyObject * obj0 = 0 ;
4855 PyObject * obj1 = 0 ;
4856 char *kwnames[] = {
4857 (char *) "self",(char *) "x", NULL
4858 };
4859
4860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4863 arg2 = (int)SWIG_As_int(obj1);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 if (arg1) (arg1)->x = arg2;
4866
4867 Py_INCREF(Py_None); resultobj = Py_None;
4868 return resultobj;
4869 fail:
4870 return NULL;
4871 }
4872
4873
4874 static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
4875 PyObject *resultobj;
4876 wxRect *arg1 = (wxRect *) 0 ;
4877 int result;
4878 PyObject * obj0 = 0 ;
4879 char *kwnames[] = {
4880 (char *) "self", NULL
4881 };
4882
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4886 result = (int) ((arg1)->x);
4887
4888 resultobj = SWIG_From_int((int)result);
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
4896 PyObject *resultobj;
4897 wxRect *arg1 = (wxRect *) 0 ;
4898 int arg2 ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self",(char *) "y", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4908 arg2 = (int)SWIG_As_int(obj1);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 if (arg1) (arg1)->y = arg2;
4911
4912 Py_INCREF(Py_None); resultobj = Py_None;
4913 return resultobj;
4914 fail:
4915 return NULL;
4916 }
4917
4918
4919 static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj;
4921 wxRect *arg1 = (wxRect *) 0 ;
4922 int result;
4923 PyObject * obj0 = 0 ;
4924 char *kwnames[] = {
4925 (char *) "self", NULL
4926 };
4927
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4931 result = (int) ((arg1)->y);
4932
4933 resultobj = SWIG_From_int((int)result);
4934 return resultobj;
4935 fail:
4936 return NULL;
4937 }
4938
4939
4940 static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
4941 PyObject *resultobj;
4942 wxRect *arg1 = (wxRect *) 0 ;
4943 int arg2 ;
4944 PyObject * obj0 = 0 ;
4945 PyObject * obj1 = 0 ;
4946 char *kwnames[] = {
4947 (char *) "self",(char *) "width", NULL
4948 };
4949
4950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4953 arg2 = (int)SWIG_As_int(obj1);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 if (arg1) (arg1)->width = arg2;
4956
4957 Py_INCREF(Py_None); resultobj = Py_None;
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj;
4966 wxRect *arg1 = (wxRect *) 0 ;
4967 int result;
4968 PyObject * obj0 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4976 result = (int) ((arg1)->width);
4977
4978 resultobj = SWIG_From_int((int)result);
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
4986 PyObject *resultobj;
4987 wxRect *arg1 = (wxRect *) 0 ;
4988 int arg2 ;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 char *kwnames[] = {
4992 (char *) "self",(char *) "height", NULL
4993 };
4994
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4998 arg2 = (int)SWIG_As_int(obj1);
4999 if (PyErr_Occurred()) SWIG_fail;
5000 if (arg1) (arg1)->height = arg2;
5001
5002 Py_INCREF(Py_None); resultobj = Py_None;
5003 return resultobj;
5004 fail:
5005 return NULL;
5006 }
5007
5008
5009 static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxRect *arg1 = (wxRect *) 0 ;
5012 int result;
5013 PyObject * obj0 = 0 ;
5014 char *kwnames[] = {
5015 (char *) "self", NULL
5016 };
5017
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
5019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5021 result = (int) ((arg1)->height);
5022
5023 resultobj = SWIG_From_int((int)result);
5024 return resultobj;
5025 fail:
5026 return NULL;
5027 }
5028
5029
5030 static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) {
5031 PyObject *resultobj;
5032 wxRect *arg1 = (wxRect *) 0 ;
5033 int arg2 = (int) 0 ;
5034 int arg3 = (int) 0 ;
5035 int arg4 = (int) 0 ;
5036 int arg5 = (int) 0 ;
5037 PyObject * obj0 = 0 ;
5038 PyObject * obj1 = 0 ;
5039 PyObject * obj2 = 0 ;
5040 PyObject * obj3 = 0 ;
5041 PyObject * obj4 = 0 ;
5042 char *kwnames[] = {
5043 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5049 if (obj1) {
5050 arg2 = (int)SWIG_As_int(obj1);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 if (obj2) {
5054 arg3 = (int)SWIG_As_int(obj2);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 if (obj3) {
5058 arg4 = (int)SWIG_As_int(obj3);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 if (obj4) {
5062 arg5 = (int)SWIG_As_int(obj4);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 {
5066 PyThreadState* __tstate = wxPyBeginAllowThreads();
5067 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
5068
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 Py_INCREF(Py_None); resultobj = Py_None;
5073 return resultobj;
5074 fail:
5075 return NULL;
5076 }
5077
5078
5079 static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) {
5080 PyObject *resultobj;
5081 wxRect *arg1 = (wxRect *) 0 ;
5082 PyObject *result;
5083 PyObject * obj0 = 0 ;
5084 char *kwnames[] = {
5085 (char *) "self", NULL
5086 };
5087
5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
5089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 result = (PyObject *)wxRect_Get(arg1);
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = result;
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 static PyObject * Rect_swigregister(PyObject *, PyObject *args) {
5106 PyObject *obj;
5107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5108 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
5109 Py_INCREF(obj);
5110 return Py_BuildValue((char *)"");
5111 }
5112 static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5113 PyObject *resultobj;
5114 wxRect *arg1 = (wxRect *) 0 ;
5115 wxRect *arg2 = (wxRect *) 0 ;
5116 PyObject *result;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 char *kwnames[] = {
5120 (char *) "r1",(char *) "r2", NULL
5121 };
5122
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
5127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5128 {
5129 if (!wxPyCheckForApp()) SWIG_fail;
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 result = (PyObject *)wxIntersectRect(arg1,arg2);
5132
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 resultobj = result;
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj;
5145 double arg1 = (double) 0.0 ;
5146 double arg2 = (double) 0.0 ;
5147 wxPoint2D *result;
5148 PyObject * obj0 = 0 ;
5149 PyObject * obj1 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "x",(char *) "y", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
5155 if (obj0) {
5156 arg1 = (double)SWIG_As_double(obj0);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 if (obj1) {
5160 arg2 = (double)SWIG_As_double(obj1);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5171 return resultobj;
5172 fail:
5173 return NULL;
5174 }
5175
5176
5177 static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
5179 wxPoint2D *arg1 = 0 ;
5180 wxPoint2D *result;
5181 wxPoint2D temp1 ;
5182 PyObject * obj0 = 0 ;
5183 char *kwnames[] = {
5184 (char *) "pt", NULL
5185 };
5186
5187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
5188 {
5189 arg1 = &temp1;
5190 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
5191 }
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
5195
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5200 return resultobj;
5201 fail:
5202 return NULL;
5203 }
5204
5205
5206 static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj;
5208 wxPoint *arg1 = 0 ;
5209 wxPoint2D *result;
5210 wxPoint temp1 ;
5211 PyObject * obj0 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "pt", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
5217 {
5218 arg1 = &temp1;
5219 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
5220 }
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
5224
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) {
5236 PyObject *resultobj;
5237 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5238 int *arg2 = (int *) 0 ;
5239 int *arg3 = (int *) 0 ;
5240 int temp2 ;
5241 int res2 = 0 ;
5242 int temp3 ;
5243 int res3 = 0 ;
5244 PyObject * obj0 = 0 ;
5245 char *kwnames[] = {
5246 (char *) "self", NULL
5247 };
5248
5249 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5250 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
5252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5254 {
5255 PyThreadState* __tstate = wxPyBeginAllowThreads();
5256 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
5257
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 Py_INCREF(Py_None); resultobj = Py_None;
5262 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5263 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5264 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5265 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) {
5273 PyObject *resultobj;
5274 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5275 int *arg2 = (int *) 0 ;
5276 int *arg3 = (int *) 0 ;
5277 int temp2 ;
5278 int res2 = 0 ;
5279 int temp3 ;
5280 int res3 = 0 ;
5281 PyObject * obj0 = 0 ;
5282 char *kwnames[] = {
5283 (char *) "self", NULL
5284 };
5285
5286 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5287 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
5289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
5294
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 Py_INCREF(Py_None); resultobj = Py_None;
5299 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5300 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5301 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5302 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5303 return resultobj;
5304 fail:
5305 return NULL;
5306 }
5307
5308
5309 static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
5310 PyObject *resultobj;
5311 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5312 double result;
5313 PyObject * obj0 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
5319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5321 {
5322 PyThreadState* __tstate = wxPyBeginAllowThreads();
5323 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
5324
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
5328 resultobj = SWIG_From_double((double)result);
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj;
5337 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5338 double result;
5339 PyObject * obj0 = 0 ;
5340 char *kwnames[] = {
5341 (char *) "self", NULL
5342 };
5343
5344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
5345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = SWIG_From_double((double)result);
5355 return resultobj;
5356 fail:
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5364 double arg2 ;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 char *kwnames[] = {
5368 (char *) "self",(char *) "length", NULL
5369 };
5370
5371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5374 arg2 = (double)SWIG_As_double(obj1);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 (arg1)->SetVectorLength(arg2);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 Py_INCREF(Py_None); resultobj = Py_None;
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
5391 PyObject *resultobj;
5392 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5393 double arg2 ;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 char *kwnames[] = {
5397 (char *) "self",(char *) "degrees", NULL
5398 };
5399
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5403 arg2 = (double)SWIG_As_double(obj1);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 (arg1)->SetVectorAngle(arg2);
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 Py_INCREF(Py_None); resultobj = Py_None;
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj;
5421 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5422 wxPoint2D *arg2 = 0 ;
5423 double result;
5424 wxPoint2D temp2 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "self",(char *) "pt", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 {
5435 arg2 = &temp2;
5436 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5437 }
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 resultobj = SWIG_From_double((double)result);
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5455 wxPoint2D *arg2 = 0 ;
5456 double result;
5457 wxPoint2D temp2 ;
5458 PyObject * obj0 = 0 ;
5459 PyObject * obj1 = 0 ;
5460 char *kwnames[] = {
5461 (char *) "self",(char *) "pt", NULL
5462 };
5463
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5467 {
5468 arg2 = &temp2;
5469 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5470 }
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) SWIG_fail;
5477 }
5478 resultobj = SWIG_From_double((double)result);
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj;
5487 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5488 wxPoint2D *arg2 = 0 ;
5489 double result;
5490 wxPoint2D temp2 ;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "vec", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5500 {
5501 arg2 = &temp2;
5502 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 resultobj = SWIG_From_double((double)result);
5512 return resultobj;
5513 fail:
5514 return NULL;
5515 }
5516
5517
5518 static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) {
5519 PyObject *resultobj;
5520 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5521 wxPoint2D *arg2 = 0 ;
5522 double result;
5523 wxPoint2D temp2 ;
5524 PyObject * obj0 = 0 ;
5525 PyObject * obj1 = 0 ;
5526 char *kwnames[] = {
5527 (char *) "self",(char *) "vec", NULL
5528 };
5529
5530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5533 {
5534 arg2 = &temp2;
5535 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5536 }
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5540
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 resultobj = SWIG_From_double((double)result);
5545 return resultobj;
5546 fail:
5547 return NULL;
5548 }
5549
5550
5551 static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj;
5553 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5554 wxPoint2D result;
5555 PyObject * obj0 = 0 ;
5556 char *kwnames[] = {
5557 (char *) "self", NULL
5558 };
5559
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5563 {
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
5565 result = (arg1)->operator -();
5566
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 }
5570 {
5571 wxPoint2D * resultptr;
5572 resultptr = new wxPoint2D((wxPoint2D &) result);
5573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5574 }
5575 return resultobj;
5576 fail:
5577 return NULL;
5578 }
5579
5580
5581 static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj;
5583 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5584 wxPoint2D *arg2 = 0 ;
5585 wxPoint2D *result;
5586 wxPoint2D temp2 ;
5587 PyObject * obj0 = 0 ;
5588 PyObject * obj1 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "self",(char *) "pt", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5595 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
5596 {
5597 arg2 = &temp2;
5598 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5599 }
5600 {
5601 PyThreadState* __tstate = wxPyBeginAllowThreads();
5602 {
5603 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5604 result = (wxPoint2D *) &_result_ref;
5605 }
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5611 return resultobj;
5612 fail:
5613 return NULL;
5614 }
5615
5616
5617 static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
5618 PyObject *resultobj;
5619 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5620 wxPoint2D *arg2 = 0 ;
5621 wxPoint2D *result;
5622 wxPoint2D temp2 ;
5623 PyObject * obj0 = 0 ;
5624 PyObject * obj1 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "self",(char *) "pt", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5631 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
5632 {
5633 arg2 = &temp2;
5634 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5635 }
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 {
5639 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5640 result = (wxPoint2D *) &_result_ref;
5641 }
5642
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5647 return resultobj;
5648 fail:
5649 return NULL;
5650 }
5651
5652
5653 static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj;
5655 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5656 wxPoint2D *arg2 = 0 ;
5657 wxPoint2D *result;
5658 wxPoint2D temp2 ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "self",(char *) "pt", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5667 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
5668 {
5669 arg2 = &temp2;
5670 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5671 }
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 {
5675 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5676 result = (wxPoint2D *) &_result_ref;
5677 }
5678
5679 wxPyEndAllowThreads(__tstate);
5680 if (PyErr_Occurred()) SWIG_fail;
5681 }
5682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5683 return resultobj;
5684 fail:
5685 return NULL;
5686 }
5687
5688
5689 static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) {
5690 PyObject *resultobj;
5691 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5692 wxPoint2D *arg2 = 0 ;
5693 wxPoint2D *result;
5694 wxPoint2D temp2 ;
5695 PyObject * obj0 = 0 ;
5696 PyObject * obj1 = 0 ;
5697 char *kwnames[] = {
5698 (char *) "self",(char *) "pt", NULL
5699 };
5700
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5703 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
5704 {
5705 arg2 = &temp2;
5706 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5707 }
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 {
5711 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5712 result = (wxPoint2D *) &_result_ref;
5713 }
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj;
5727 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5728 wxPoint2D *arg2 = 0 ;
5729 bool result;
5730 wxPoint2D temp2 ;
5731 PyObject * obj0 = 0 ;
5732 PyObject * obj1 = 0 ;
5733 char *kwnames[] = {
5734 (char *) "self",(char *) "pt", NULL
5735 };
5736
5737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5740 {
5741 arg2 = &temp2;
5742 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5743 }
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 {
5752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5753 }
5754 return resultobj;
5755 fail:
5756 return NULL;
5757 }
5758
5759
5760 static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
5761 PyObject *resultobj;
5762 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5763 wxPoint2D *arg2 = 0 ;
5764 bool result;
5765 wxPoint2D temp2 ;
5766 PyObject * obj0 = 0 ;
5767 PyObject * obj1 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self",(char *) "pt", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5775 {
5776 arg2 = &temp2;
5777 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5778 }
5779 {
5780 PyThreadState* __tstate = wxPyBeginAllowThreads();
5781 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5782
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj;
5797 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5798 double arg2 ;
5799 PyObject * obj0 = 0 ;
5800 PyObject * obj1 = 0 ;
5801 char *kwnames[] = {
5802 (char *) "self",(char *) "m_x", NULL
5803 };
5804
5805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5808 arg2 = (double)SWIG_As_double(obj1);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 if (arg1) (arg1)->m_x = arg2;
5811
5812 Py_INCREF(Py_None); resultobj = Py_None;
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj;
5821 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5822 double result;
5823 PyObject * obj0 = 0 ;
5824 char *kwnames[] = {
5825 (char *) "self", NULL
5826 };
5827
5828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5831 result = (double) ((arg1)->m_x);
5832
5833 resultobj = SWIG_From_double((double)result);
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5843 double arg2 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self",(char *) "m_y", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 arg2 = (double)SWIG_As_double(obj1);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 if (arg1) (arg1)->m_y = arg2;
5856
5857 Py_INCREF(Py_None); resultobj = Py_None;
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj;
5866 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5867 double result;
5868 PyObject * obj0 = 0 ;
5869 char *kwnames[] = {
5870 (char *) "self", NULL
5871 };
5872
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5876 result = (double) ((arg1)->m_y);
5877
5878 resultobj = SWIG_From_double((double)result);
5879 return resultobj;
5880 fail:
5881 return NULL;
5882 }
5883
5884
5885 static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) {
5886 PyObject *resultobj;
5887 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5888 double arg2 = (double) 0 ;
5889 double arg3 = (double) 0 ;
5890 PyObject * obj0 = 0 ;
5891 PyObject * obj1 = 0 ;
5892 PyObject * obj2 = 0 ;
5893 char *kwnames[] = {
5894 (char *) "self",(char *) "x",(char *) "y", NULL
5895 };
5896
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5900 if (obj1) {
5901 arg2 = (double)SWIG_As_double(obj1);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 if (obj2) {
5905 arg3 = (double)SWIG_As_double(obj2);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 wxPoint2D_Set(arg1,arg2,arg3);
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 Py_INCREF(Py_None); resultobj = Py_None;
5916 return resultobj;
5917 fail:
5918 return NULL;
5919 }
5920
5921
5922 static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) {
5923 PyObject *resultobj;
5924 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5925 PyObject *result;
5926 PyObject * obj0 = 0 ;
5927 char *kwnames[] = {
5928 (char *) "self", NULL
5929 };
5930
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 result = (PyObject *)wxPoint2D_Get(arg1);
5937
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 resultobj = result;
5942 return resultobj;
5943 fail:
5944 return NULL;
5945 }
5946
5947
5948 static PyObject * Point2D_swigregister(PyObject *, PyObject *args) {
5949 PyObject *obj;
5950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5951 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5952 Py_INCREF(obj);
5953 return Py_BuildValue((char *)"");
5954 }
5955 static int _wrap_DefaultPosition_set(PyObject *) {
5956 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5957 return 1;
5958 }
5959
5960
5961 static PyObject *_wrap_DefaultPosition_get() {
5962 PyObject *pyobj;
5963
5964 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5965 return pyobj;
5966 }
5967
5968
5969 static int _wrap_DefaultSize_set(PyObject *) {
5970 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5971 return 1;
5972 }
5973
5974
5975 static PyObject *_wrap_DefaultSize_get() {
5976 PyObject *pyobj;
5977
5978 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5979 return pyobj;
5980 }
5981
5982
5983 static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj;
5985 PyObject *arg1 = (PyObject *) 0 ;
5986 wxPyInputStream *result;
5987 PyObject * obj0 = 0 ;
5988 char *kwnames[] = {
5989 (char *) "p", NULL
5990 };
5991
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5993 arg1 = obj0;
5994 {
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5997
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
6002 return resultobj;
6003 fail:
6004 return NULL;
6005 }
6006
6007
6008 static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
6009 PyObject *resultobj;
6010 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6011 PyObject * obj0 = 0 ;
6012 char *kwnames[] = {
6013 (char *) "self", NULL
6014 };
6015
6016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail;
6017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 delete arg1;
6022
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 Py_INCREF(Py_None); resultobj = Py_None;
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6036 PyObject * obj0 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "self", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
6042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 (arg1)->close();
6047
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 Py_INCREF(Py_None); resultobj = Py_None;
6052 return resultobj;
6053 fail:
6054 return NULL;
6055 }
6056
6057
6058 static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) {
6059 PyObject *resultobj;
6060 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 (arg1)->flush();
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 Py_INCREF(Py_None); resultobj = Py_None;
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6086 bool result;
6087 PyObject * obj0 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (bool)(arg1)->eof();
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6104 }
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6114 int arg2 = (int) -1 ;
6115 PyObject *result;
6116 PyObject * obj0 = 0 ;
6117 PyObject * obj1 = 0 ;
6118 char *kwnames[] = {
6119 (char *) "self",(char *) "size", NULL
6120 };
6121
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
6123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6125 if (obj1) {
6126 arg2 = (int)SWIG_As_int(obj1);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (PyObject *)(arg1)->read(arg2);
6132
6133 wxPyEndAllowThreads(__tstate);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = result;
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj;
6145 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6146 int arg2 = (int) -1 ;
6147 PyObject *result;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 char *kwnames[] = {
6151 (char *) "self",(char *) "size", NULL
6152 };
6153
6154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
6155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6157 if (obj1) {
6158 arg2 = (int)SWIG_As_int(obj1);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 result = (PyObject *)(arg1)->readline(arg2);
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 resultobj = result;
6169 return resultobj;
6170 fail:
6171 return NULL;
6172 }
6173
6174
6175 static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) {
6176 PyObject *resultobj;
6177 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6178 int arg2 = (int) -1 ;
6179 PyObject *result;
6180 PyObject * obj0 = 0 ;
6181 PyObject * obj1 = 0 ;
6182 char *kwnames[] = {
6183 (char *) "self",(char *) "sizehint", NULL
6184 };
6185
6186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
6187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6189 if (obj1) {
6190 arg2 = (int)SWIG_As_int(obj1);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 {
6194 PyThreadState* __tstate = wxPyBeginAllowThreads();
6195 result = (PyObject *)(arg1)->readlines(arg2);
6196
6197 wxPyEndAllowThreads(__tstate);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 resultobj = result;
6201 return resultobj;
6202 fail:
6203 return NULL;
6204 }
6205
6206
6207 static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj;
6209 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6210 int arg2 ;
6211 int arg3 = (int) 0 ;
6212 PyObject * obj0 = 0 ;
6213 PyObject * obj1 = 0 ;
6214 PyObject * obj2 = 0 ;
6215 char *kwnames[] = {
6216 (char *) "self",(char *) "offset",(char *) "whence", NULL
6217 };
6218
6219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
6220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6222 arg2 = (int)SWIG_As_int(obj1);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 if (obj2) {
6225 arg3 = (int)SWIG_As_int(obj2);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 (arg1)->seek(arg2,arg3);
6231
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 Py_INCREF(Py_None); resultobj = Py_None;
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) {
6243 PyObject *resultobj;
6244 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6245 int result;
6246 PyObject * obj0 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "self", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (int)(arg1)->tell();
6257
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_From_int((int)result);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj;
6270 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6271 char result;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
6278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (char)(arg1)->Peek();
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 resultobj = SWIG_From_char((char)result);
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6297 char result;
6298 PyObject * obj0 = 0 ;
6299 char *kwnames[] = {
6300 (char *) "self", NULL
6301 };
6302
6303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
6304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (char)(arg1)->GetC();
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 resultobj = SWIG_From_char((char)result);
6314 return resultobj;
6315 fail:
6316 return NULL;
6317 }
6318
6319
6320 static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj;
6322 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6323 size_t result;
6324 PyObject * obj0 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "self", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 result = (size_t)(arg1)->LastRead();
6335
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj;
6348 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6349 bool result;
6350 PyObject * obj0 = 0 ;
6351 char *kwnames[] = {
6352 (char *) "self", NULL
6353 };
6354
6355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
6356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6358 {
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 result = (bool)(arg1)->CanRead();
6361
6362 wxPyEndAllowThreads(__tstate);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 {
6366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6367 }
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6377 bool result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 result = (bool)(arg1)->Eof();
6389
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj;
6404 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6405 char arg2 ;
6406 bool result;
6407 PyObject * obj0 = 0 ;
6408 PyObject * obj1 = 0 ;
6409 char *kwnames[] = {
6410 (char *) "self",(char *) "c", NULL
6411 };
6412
6413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6416 arg2 = (char)SWIG_As_char(obj1);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = (bool)(arg1)->Ungetch(arg2);
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
6426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6427 }
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj;
6436 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6437 long arg2 ;
6438 int arg3 = (int) wxFromStart ;
6439 long result;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "self",(char *) "pos",(char *) "mode", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6450 arg2 = (long)SWIG_As_long(obj1);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 if (obj2) {
6453 arg3 = (int)SWIG_As_int(obj2);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 {
6457 PyThreadState* __tstate = wxPyBeginAllowThreads();
6458 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6459
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_From_long((long)result);
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) {
6471 PyObject *resultobj;
6472 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6473 long result;
6474 PyObject * obj0 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 result = (long)(arg1)->TellI();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_From_long((long)result);
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 static PyObject * InputStream_swigregister(PyObject *, PyObject *args) {
6497 PyObject *obj;
6498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6499 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6500 Py_INCREF(obj);
6501 return Py_BuildValue((char *)"");
6502 }
6503 static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj;
6505 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6506 PyObject *arg2 = (PyObject *) 0 ;
6507 PyObject * obj0 = 0 ;
6508 PyObject * obj1 = 0 ;
6509 char *kwnames[] = {
6510 (char *) "self",(char *) "obj", NULL
6511 };
6512
6513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6516 arg2 = obj1;
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 wxOutputStream_write(arg1,arg2);
6520
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 Py_INCREF(Py_None); resultobj = Py_None;
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) {
6532 PyObject *obj;
6533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6534 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6535 Py_INCREF(obj);
6536 return Py_BuildValue((char *)"");
6537 }
6538 static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
6539 PyObject *resultobj;
6540 wxInputStream *arg1 = (wxInputStream *) 0 ;
6541 wxString *arg2 = 0 ;
6542 wxString *arg3 = 0 ;
6543 wxString *arg4 = 0 ;
6544 wxDateTime arg5 ;
6545 wxFSFile *result;
6546 wxPyInputStream *temp1 ;
6547 bool created1 ;
6548 bool temp2 = false ;
6549 bool temp3 = false ;
6550 bool temp4 = false ;
6551 wxDateTime *argp5 ;
6552 PyObject * obj0 = 0 ;
6553 PyObject * obj1 = 0 ;
6554 PyObject * obj2 = 0 ;
6555 PyObject * obj3 = 0 ;
6556 PyObject * obj4 = 0 ;
6557 char *kwnames[] = {
6558 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6559 };
6560
6561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6562 {
6563 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6564 arg1 = temp1->m_wxis;
6565 created1 = false;
6566 } else {
6567 PyErr_Clear(); // clear the failure of the wxPyConvert above
6568 arg1 = wxPyCBInputStream_create(obj0, false);
6569 if (arg1 == NULL) {
6570 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6571 SWIG_fail;
6572 }
6573 created1 = true;
6574 }
6575 }
6576 {
6577 arg2 = wxString_in_helper(obj1);
6578 if (arg2 == NULL) SWIG_fail;
6579 temp2 = true;
6580 }
6581 {
6582 arg3 = wxString_in_helper(obj2);
6583 if (arg3 == NULL) SWIG_fail;
6584 temp3 = true;
6585 }
6586 {
6587 arg4 = wxString_in_helper(obj3);
6588 if (arg4 == NULL) SWIG_fail;
6589 temp4 = true;
6590 }
6591 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6592 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6593 arg5 = *argp5;
6594 {
6595 PyThreadState* __tstate = wxPyBeginAllowThreads();
6596 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6597
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 {
6602 resultobj = wxPyMake_wxObject(result, 1);
6603 }
6604 {
6605 if (created1)
6606 delete arg1;
6607 }
6608 {
6609 if (temp2)
6610 delete arg2;
6611 }
6612 {
6613 if (temp3)
6614 delete arg3;
6615 }
6616 {
6617 if (temp4)
6618 delete arg4;
6619 }
6620 return resultobj;
6621 fail:
6622 {
6623 if (created1)
6624 delete arg1;
6625 }
6626 {
6627 if (temp2)
6628 delete arg2;
6629 }
6630 {
6631 if (temp3)
6632 delete arg3;
6633 }
6634 {
6635 if (temp4)
6636 delete arg4;
6637 }
6638 return NULL;
6639 }
6640
6641
6642 static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj;
6644 wxFSFile *arg1 = (wxFSFile *) 0 ;
6645 PyObject * obj0 = 0 ;
6646 char *kwnames[] = {
6647 (char *) "self", NULL
6648 };
6649
6650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 delete arg1;
6656
6657 wxPyEndAllowThreads(__tstate);
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 Py_INCREF(Py_None); resultobj = Py_None;
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj;
6669 wxFSFile *arg1 = (wxFSFile *) 0 ;
6670 wxInputStream *result;
6671 PyObject * obj0 = 0 ;
6672 char *kwnames[] = {
6673 (char *) "self", NULL
6674 };
6675
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6679 {
6680 PyThreadState* __tstate = wxPyBeginAllowThreads();
6681 result = (wxInputStream *)(arg1)->GetStream();
6682
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 {
6687 wxPyInputStream * _ptr = NULL;
6688
6689 if (result) {
6690 _ptr = new wxPyInputStream(result);
6691 }
6692 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
6693 }
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
6701 PyObject *resultobj;
6702 wxFSFile *arg1 = (wxFSFile *) 0 ;
6703 wxString *result;
6704 PyObject * obj0 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "self", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 {
6715 wxString const &_result_ref = (arg1)->GetMimeType();
6716 result = (wxString *) &_result_ref;
6717 }
6718
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 #if wxUSE_UNICODE
6724 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6725 #else
6726 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6727 #endif
6728 }
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj;
6737 wxFSFile *arg1 = (wxFSFile *) 0 ;
6738 wxString *result;
6739 PyObject * obj0 = 0 ;
6740 char *kwnames[] = {
6741 (char *) "self", NULL
6742 };
6743
6744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6747 {
6748 PyThreadState* __tstate = wxPyBeginAllowThreads();
6749 {
6750 wxString const &_result_ref = (arg1)->GetLocation();
6751 result = (wxString *) &_result_ref;
6752 }
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 {
6758 #if wxUSE_UNICODE
6759 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6760 #else
6761 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6762 #endif
6763 }
6764 return resultobj;
6765 fail:
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxFSFile *arg1 = (wxFSFile *) 0 ;
6773 wxString *result;
6774 PyObject * obj0 = 0 ;
6775 char *kwnames[] = {
6776 (char *) "self", NULL
6777 };
6778
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6782 {
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 {
6785 wxString const &_result_ref = (arg1)->GetAnchor();
6786 result = (wxString *) &_result_ref;
6787 }
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 {
6793 #if wxUSE_UNICODE
6794 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6795 #else
6796 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6797 #endif
6798 }
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxFSFile *arg1 = (wxFSFile *) 0 ;
6808 wxDateTime result;
6809 PyObject * obj0 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 result = (arg1)->GetModificationTime();
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 wxDateTime * resultptr;
6826 resultptr = new wxDateTime((wxDateTime &) result);
6827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6828 }
6829 return resultobj;
6830 fail:
6831 return NULL;
6832 }
6833
6834
6835 static PyObject * FSFile_swigregister(PyObject *, PyObject *args) {
6836 PyObject *obj;
6837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6838 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6839 Py_INCREF(obj);
6840 return Py_BuildValue((char *)"");
6841 }
6842 static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) {
6843 PyObject *obj;
6844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6845 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6846 Py_INCREF(obj);
6847 return Py_BuildValue((char *)"");
6848 }
6849 static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxPyFileSystemHandler *result;
6852 char *kwnames[] = {
6853 NULL
6854 };
6855
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6874 PyObject *arg2 = (PyObject *) 0 ;
6875 PyObject *arg3 = (PyObject *) 0 ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 PyObject * obj2 = 0 ;
6879 char *kwnames[] = {
6880 (char *) "self",(char *) "self",(char *) "_class", NULL
6881 };
6882
6883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6886 arg2 = obj1;
6887 arg3 = obj2;
6888 {
6889 PyThreadState* __tstate = wxPyBeginAllowThreads();
6890 (arg1)->_setCallbackInfo(arg2,arg3);
6891
6892 wxPyEndAllowThreads(__tstate);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 Py_INCREF(Py_None); resultobj = Py_None;
6896 return resultobj;
6897 fail:
6898 return NULL;
6899 }
6900
6901
6902 static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj;
6904 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6905 wxString *arg2 = 0 ;
6906 bool result;
6907 bool temp2 = false ;
6908 PyObject * obj0 = 0 ;
6909 PyObject * obj1 = 0 ;
6910 char *kwnames[] = {
6911 (char *) "self",(char *) "location", NULL
6912 };
6913
6914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6917 {
6918 arg2 = wxString_in_helper(obj1);
6919 if (arg2 == NULL) SWIG_fail;
6920 temp2 = true;
6921 }
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6925
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 {
6930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6931 }
6932 {
6933 if (temp2)
6934 delete arg2;
6935 }
6936 return resultobj;
6937 fail:
6938 {
6939 if (temp2)
6940 delete arg2;
6941 }
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6949 wxFileSystem *arg2 = 0 ;
6950 wxString *arg3 = 0 ;
6951 wxFSFile *result;
6952 bool temp3 = false ;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 PyObject * obj2 = 0 ;
6956 char *kwnames[] = {
6957 (char *) "self",(char *) "fs",(char *) "location", NULL
6958 };
6959
6960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6964 SWIG_POINTER_EXCEPTION | 0)) == -1)
6965 SWIG_fail;
6966 if (arg2 == NULL) {
6967 PyErr_SetString(PyExc_TypeError,"null reference");
6968 SWIG_fail;
6969 }
6970 {
6971 arg3 = wxString_in_helper(obj2);
6972 if (arg3 == NULL) SWIG_fail;
6973 temp3 = true;
6974 }
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 {
6983 resultobj = wxPyMake_wxObject(result, 1);
6984 }
6985 {
6986 if (temp3)
6987 delete arg3;
6988 }
6989 return resultobj;
6990 fail:
6991 {
6992 if (temp3)
6993 delete arg3;
6994 }
6995 return NULL;
6996 }
6997
6998
6999 static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj;
7001 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7002 wxString *arg2 = 0 ;
7003 int arg3 = (int) 0 ;
7004 wxString result;
7005 bool temp2 = false ;
7006 PyObject * obj0 = 0 ;
7007 PyObject * obj1 = 0 ;
7008 PyObject * obj2 = 0 ;
7009 char *kwnames[] = {
7010 (char *) "self",(char *) "spec",(char *) "flags", NULL
7011 };
7012
7013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7016 {
7017 arg2 = wxString_in_helper(obj1);
7018 if (arg2 == NULL) SWIG_fail;
7019 temp2 = true;
7020 }
7021 if (obj2) {
7022 arg3 = (int)SWIG_As_int(obj2);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7028
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 {
7033 #if wxUSE_UNICODE
7034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7035 #else
7036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7037 #endif
7038 }
7039 {
7040 if (temp2)
7041 delete arg2;
7042 }
7043 return resultobj;
7044 fail:
7045 {
7046 if (temp2)
7047 delete arg2;
7048 }
7049 return NULL;
7050 }
7051
7052
7053 static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj;
7055 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7056 wxString result;
7057 PyObject * obj0 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
7063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = (arg1)->FindNext();
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 {
7073 #if wxUSE_UNICODE
7074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7075 #else
7076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7077 #endif
7078 }
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj;
7087 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7088 wxString *arg2 = 0 ;
7089 wxString result;
7090 bool temp2 = false ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char *kwnames[] = {
7094 (char *) "self",(char *) "location", NULL
7095 };
7096
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
7098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7100 {
7101 arg2 = wxString_in_helper(obj1);
7102 if (arg2 == NULL) SWIG_fail;
7103 temp2 = true;
7104 }
7105 {
7106 PyThreadState* __tstate = wxPyBeginAllowThreads();
7107 result = (arg1)->GetProtocol((wxString const &)*arg2);
7108
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 {
7113 #if wxUSE_UNICODE
7114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7115 #else
7116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7117 #endif
7118 }
7119 {
7120 if (temp2)
7121 delete arg2;
7122 }
7123 return resultobj;
7124 fail:
7125 {
7126 if (temp2)
7127 delete arg2;
7128 }
7129 return NULL;
7130 }
7131
7132
7133 static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) {
7134 PyObject *resultobj;
7135 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7136 wxString *arg2 = 0 ;
7137 wxString result;
7138 bool temp2 = false ;
7139 PyObject * obj0 = 0 ;
7140 PyObject * obj1 = 0 ;
7141 char *kwnames[] = {
7142 (char *) "self",(char *) "location", NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
7146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7148 {
7149 arg2 = wxString_in_helper(obj1);
7150 if (arg2 == NULL) SWIG_fail;
7151 temp2 = true;
7152 }
7153 {
7154 PyThreadState* __tstate = wxPyBeginAllowThreads();
7155 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
7156
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 {
7161 #if wxUSE_UNICODE
7162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7163 #else
7164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7165 #endif
7166 }
7167 {
7168 if (temp2)
7169 delete arg2;
7170 }
7171 return resultobj;
7172 fail:
7173 {
7174 if (temp2)
7175 delete arg2;
7176 }
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7184 wxString *arg2 = 0 ;
7185 wxString result;
7186 bool temp2 = false ;
7187 PyObject * obj0 = 0 ;
7188 PyObject * obj1 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "self",(char *) "location", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
7194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7196 {
7197 arg2 = wxString_in_helper(obj1);
7198 if (arg2 == NULL) SWIG_fail;
7199 temp2 = true;
7200 }
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 result = (arg1)->GetAnchor((wxString const &)*arg2);
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 {
7209 #if wxUSE_UNICODE
7210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7211 #else
7212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7213 #endif
7214 }
7215 {
7216 if (temp2)
7217 delete arg2;
7218 }
7219 return resultobj;
7220 fail:
7221 {
7222 if (temp2)
7223 delete arg2;
7224 }
7225 return NULL;
7226 }
7227
7228
7229 static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) {
7230 PyObject *resultobj;
7231 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7232 wxString *arg2 = 0 ;
7233 wxString result;
7234 bool temp2 = false ;
7235 PyObject * obj0 = 0 ;
7236 PyObject * obj1 = 0 ;
7237 char *kwnames[] = {
7238 (char *) "self",(char *) "location", NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
7242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7244 {
7245 arg2 = wxString_in_helper(obj1);
7246 if (arg2 == NULL) SWIG_fail;
7247 temp2 = true;
7248 }
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 result = (arg1)->GetRightLocation((wxString const &)*arg2);
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 {
7257 #if wxUSE_UNICODE
7258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7259 #else
7260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7261 #endif
7262 }
7263 {
7264 if (temp2)
7265 delete arg2;
7266 }
7267 return resultobj;
7268 fail:
7269 {
7270 if (temp2)
7271 delete arg2;
7272 }
7273 return NULL;
7274 }
7275
7276
7277 static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj;
7279 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7280 wxString *arg2 = 0 ;
7281 wxString result;
7282 bool temp2 = false ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "self",(char *) "location", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
7290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7292 {
7293 arg2 = wxString_in_helper(obj1);
7294 if (arg2 == NULL) SWIG_fail;
7295 temp2 = true;
7296 }
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
7300
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 {
7305 #if wxUSE_UNICODE
7306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7307 #else
7308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7309 #endif
7310 }
7311 {
7312 if (temp2)
7313 delete arg2;
7314 }
7315 return resultobj;
7316 fail:
7317 {
7318 if (temp2)
7319 delete arg2;
7320 }
7321 return NULL;
7322 }
7323
7324
7325 static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) {
7326 PyObject *obj;
7327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7328 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
7329 Py_INCREF(obj);
7330 return Py_BuildValue((char *)"");
7331 }
7332 static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj;
7334 wxFileSystem *result;
7335 char *kwnames[] = {
7336 NULL
7337 };
7338
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 result = (wxFileSystem *)new wxFileSystem();
7343
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 {
7348 resultobj = wxPyMake_wxObject(result, 1);
7349 }
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7359 PyObject * obj0 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "self", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 delete arg1;
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 Py_INCREF(Py_None); resultobj = Py_None;
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7384 wxString *arg2 = 0 ;
7385 bool arg3 = (bool) false ;
7386 bool temp2 = false ;
7387 PyObject * obj0 = 0 ;
7388 PyObject * obj1 = 0 ;
7389 PyObject * obj2 = 0 ;
7390 char *kwnames[] = {
7391 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7397 {
7398 arg2 = wxString_in_helper(obj1);
7399 if (arg2 == NULL) SWIG_fail;
7400 temp2 = true;
7401 }
7402 if (obj2) {
7403 arg3 = (bool)SWIG_As_bool(obj2);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7409
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 Py_INCREF(Py_None); resultobj = Py_None;
7414 {
7415 if (temp2)
7416 delete arg2;
7417 }
7418 return resultobj;
7419 fail:
7420 {
7421 if (temp2)
7422 delete arg2;
7423 }
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7431 wxString result;
7432 PyObject * obj0 = 0 ;
7433 char *kwnames[] = {
7434 (char *) "self", NULL
7435 };
7436
7437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
7442 result = (arg1)->GetPath();
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 {
7448 #if wxUSE_UNICODE
7449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7450 #else
7451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7452 #endif
7453 }
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7463 wxString *arg2 = 0 ;
7464 wxFSFile *result;
7465 bool temp2 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 char *kwnames[] = {
7469 (char *) "self",(char *) "location", NULL
7470 };
7471
7472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7475 {
7476 arg2 = wxString_in_helper(obj1);
7477 if (arg2 == NULL) SWIG_fail;
7478 temp2 = true;
7479 }
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 {
7488 resultobj = wxPyMake_wxObject(result, 1);
7489 }
7490 {
7491 if (temp2)
7492 delete arg2;
7493 }
7494 return resultobj;
7495 fail:
7496 {
7497 if (temp2)
7498 delete arg2;
7499 }
7500 return NULL;
7501 }
7502
7503
7504 static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7507 wxString *arg2 = 0 ;
7508 int arg3 = (int) 0 ;
7509 wxString result;
7510 bool temp2 = false ;
7511 PyObject * obj0 = 0 ;
7512 PyObject * obj1 = 0 ;
7513 PyObject * obj2 = 0 ;
7514 char *kwnames[] = {
7515 (char *) "self",(char *) "spec",(char *) "flags", NULL
7516 };
7517
7518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7521 {
7522 arg2 = wxString_in_helper(obj1);
7523 if (arg2 == NULL) SWIG_fail;
7524 temp2 = true;
7525 }
7526 if (obj2) {
7527 arg3 = (int)SWIG_As_int(obj2);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 {
7538 #if wxUSE_UNICODE
7539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7540 #else
7541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7542 #endif
7543 }
7544 {
7545 if (temp2)
7546 delete arg2;
7547 }
7548 return resultobj;
7549 fail:
7550 {
7551 if (temp2)
7552 delete arg2;
7553 }
7554 return NULL;
7555 }
7556
7557
7558 static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
7559 PyObject *resultobj;
7560 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7561 wxString result;
7562 PyObject * obj0 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "self", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7570 {
7571 PyThreadState* __tstate = wxPyBeginAllowThreads();
7572 result = (arg1)->FindNext();
7573
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 {
7578 #if wxUSE_UNICODE
7579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7580 #else
7581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7582 #endif
7583 }
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj;
7592 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7593 PyObject * obj0 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "handler", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7601 {
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 wxFileSystem::AddHandler(arg1);
7604
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 Py_INCREF(Py_None); resultobj = Py_None;
7609 return resultobj;
7610 fail:
7611 return NULL;
7612 }
7613
7614
7615 static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) {
7616 PyObject *resultobj;
7617 char *kwnames[] = {
7618 NULL
7619 };
7620
7621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7622 {
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 wxFileSystem::CleanUpHandlers();
7625
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 Py_INCREF(Py_None); resultobj = Py_None;
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 wxString *arg1 = 0 ;
7639 wxString result;
7640 bool temp1 = false ;
7641 PyObject * obj0 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "filename", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7647 {
7648 arg1 = wxString_in_helper(obj0);
7649 if (arg1 == NULL) SWIG_fail;
7650 temp1 = true;
7651 }
7652 {
7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
7654 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7655
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 {
7660 #if wxUSE_UNICODE
7661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7662 #else
7663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7664 #endif
7665 }
7666 {
7667 if (temp1)
7668 delete arg1;
7669 }
7670 return resultobj;
7671 fail:
7672 {
7673 if (temp1)
7674 delete arg1;
7675 }
7676 return NULL;
7677 }
7678
7679
7680 static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj;
7682 wxString *arg1 = 0 ;
7683 wxString result;
7684 bool temp1 = false ;
7685 PyObject * obj0 = 0 ;
7686 char *kwnames[] = {
7687 (char *) "url", NULL
7688 };
7689
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7691 {
7692 arg1 = wxString_in_helper(obj0);
7693 if (arg1 == NULL) SWIG_fail;
7694 temp1 = true;
7695 }
7696 {
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 result = FileSystem_URLToFileName((wxString const &)*arg1);
7699
7700 wxPyEndAllowThreads(__tstate);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 {
7704 #if wxUSE_UNICODE
7705 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7706 #else
7707 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7708 #endif
7709 }
7710 {
7711 if (temp1)
7712 delete arg1;
7713 }
7714 return resultobj;
7715 fail:
7716 {
7717 if (temp1)
7718 delete arg1;
7719 }
7720 return NULL;
7721 }
7722
7723
7724 static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) {
7725 PyObject *obj;
7726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7727 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7728 Py_INCREF(obj);
7729 return Py_BuildValue((char *)"");
7730 }
7731 static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj;
7733 wxInternetFSHandler *result;
7734 char *kwnames[] = {
7735 NULL
7736 };
7737
7738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7747 return resultobj;
7748 fail:
7749 return NULL;
7750 }
7751
7752
7753 static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj;
7755 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7756 wxString *arg2 = 0 ;
7757 bool result;
7758 bool temp2 = false ;
7759 PyObject * obj0 = 0 ;
7760 PyObject * obj1 = 0 ;
7761 char *kwnames[] = {
7762 (char *) "self",(char *) "location", NULL
7763 };
7764
7765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7768 {
7769 arg2 = wxString_in_helper(obj1);
7770 if (arg2 == NULL) SWIG_fail;
7771 temp2 = true;
7772 }
7773 {
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7776
7777 wxPyEndAllowThreads(__tstate);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 {
7781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7782 }
7783 {
7784 if (temp2)
7785 delete arg2;
7786 }
7787 return resultobj;
7788 fail:
7789 {
7790 if (temp2)
7791 delete arg2;
7792 }
7793 return NULL;
7794 }
7795
7796
7797 static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
7798 PyObject *resultobj;
7799 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7800 wxFileSystem *arg2 = 0 ;
7801 wxString *arg3 = 0 ;
7802 wxFSFile *result;
7803 bool temp3 = false ;
7804 PyObject * obj0 = 0 ;
7805 PyObject * obj1 = 0 ;
7806 PyObject * obj2 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "self",(char *) "fs",(char *) "location", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7815 SWIG_POINTER_EXCEPTION | 0)) == -1)
7816 SWIG_fail;
7817 if (arg2 == NULL) {
7818 PyErr_SetString(PyExc_TypeError,"null reference");
7819 SWIG_fail;
7820 }
7821 {
7822 arg3 = wxString_in_helper(obj2);
7823 if (arg3 == NULL) SWIG_fail;
7824 temp3 = true;
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 {
7834 resultobj = wxPyMake_wxObject(result, 1);
7835 }
7836 {
7837 if (temp3)
7838 delete arg3;
7839 }
7840 return resultobj;
7841 fail:
7842 {
7843 if (temp3)
7844 delete arg3;
7845 }
7846 return NULL;
7847 }
7848
7849
7850 static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) {
7851 PyObject *obj;
7852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7853 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7854 Py_INCREF(obj);
7855 return Py_BuildValue((char *)"");
7856 }
7857 static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
7858 PyObject *resultobj;
7859 wxZipFSHandler *result;
7860 char *kwnames[] = {
7861 NULL
7862 };
7863
7864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 result = (wxZipFSHandler *)new wxZipFSHandler();
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
7880 PyObject *resultobj;
7881 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7882 wxString *arg2 = 0 ;
7883 bool result;
7884 bool temp2 = false ;
7885 PyObject * obj0 = 0 ;
7886 PyObject * obj1 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "self",(char *) "location", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7894 {
7895 arg2 = wxString_in_helper(obj1);
7896 if (arg2 == NULL) SWIG_fail;
7897 temp2 = true;
7898 }
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7902
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 {
7910 if (temp2)
7911 delete arg2;
7912 }
7913 return resultobj;
7914 fail:
7915 {
7916 if (temp2)
7917 delete arg2;
7918 }
7919 return NULL;
7920 }
7921
7922
7923 static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
7924 PyObject *resultobj;
7925 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7926 wxFileSystem *arg2 = 0 ;
7927 wxString *arg3 = 0 ;
7928 wxFSFile *result;
7929 bool temp3 = false ;
7930 PyObject * obj0 = 0 ;
7931 PyObject * obj1 = 0 ;
7932 PyObject * obj2 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self",(char *) "fs",(char *) "location", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7941 SWIG_POINTER_EXCEPTION | 0)) == -1)
7942 SWIG_fail;
7943 if (arg2 == NULL) {
7944 PyErr_SetString(PyExc_TypeError,"null reference");
7945 SWIG_fail;
7946 }
7947 {
7948 arg3 = wxString_in_helper(obj2);
7949 if (arg3 == NULL) SWIG_fail;
7950 temp3 = true;
7951 }
7952 {
7953 PyThreadState* __tstate = wxPyBeginAllowThreads();
7954 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7955
7956 wxPyEndAllowThreads(__tstate);
7957 if (PyErr_Occurred()) SWIG_fail;
7958 }
7959 {
7960 resultobj = wxPyMake_wxObject(result, 1);
7961 }
7962 {
7963 if (temp3)
7964 delete arg3;
7965 }
7966 return resultobj;
7967 fail:
7968 {
7969 if (temp3)
7970 delete arg3;
7971 }
7972 return NULL;
7973 }
7974
7975
7976 static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
7977 PyObject *resultobj;
7978 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7979 wxString *arg2 = 0 ;
7980 int arg3 = (int) 0 ;
7981 wxString result;
7982 bool temp2 = false ;
7983 PyObject * obj0 = 0 ;
7984 PyObject * obj1 = 0 ;
7985 PyObject * obj2 = 0 ;
7986 char *kwnames[] = {
7987 (char *) "self",(char *) "spec",(char *) "flags", NULL
7988 };
7989
7990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7993 {
7994 arg2 = wxString_in_helper(obj1);
7995 if (arg2 == NULL) SWIG_fail;
7996 temp2 = true;
7997 }
7998 if (obj2) {
7999 arg3 = (int)SWIG_As_int(obj2);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 {
8003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8004 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8005
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 {
8010 #if wxUSE_UNICODE
8011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8012 #else
8013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8014 #endif
8015 }
8016 {
8017 if (temp2)
8018 delete arg2;
8019 }
8020 return resultobj;
8021 fail:
8022 {
8023 if (temp2)
8024 delete arg2;
8025 }
8026 return NULL;
8027 }
8028
8029
8030 static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
8033 wxString result;
8034 PyObject * obj0 = 0 ;
8035 char *kwnames[] = {
8036 (char *) "self", NULL
8037 };
8038
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
8040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
8041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (arg1)->FindNext();
8045
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 {
8050 #if wxUSE_UNICODE
8051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8052 #else
8053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8054 #endif
8055 }
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) {
8063 PyObject *obj;
8064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8065 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
8066 Py_INCREF(obj);
8067 return Py_BuildValue((char *)"");
8068 }
8069 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) {
8070 PyObject *resultobj;
8071 wxString *arg1 = 0 ;
8072 wxImage *arg2 = 0 ;
8073 long arg3 ;
8074 bool temp1 = false ;
8075 PyObject * obj0 = 0 ;
8076 PyObject * obj1 = 0 ;
8077 PyObject * obj2 = 0 ;
8078 char *kwnames[] = {
8079 (char *) "filename",(char *) "image",(char *) "type", NULL
8080 };
8081
8082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
8083 {
8084 arg1 = wxString_in_helper(obj0);
8085 if (arg1 == NULL) SWIG_fail;
8086 temp1 = true;
8087 }
8088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1)
8090 SWIG_fail;
8091 if (arg2 == NULL) {
8092 PyErr_SetString(PyExc_TypeError,"null reference");
8093 SWIG_fail;
8094 }
8095 arg3 = (long)SWIG_As_long(obj2);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 Py_INCREF(Py_None); resultobj = Py_None;
8105 {
8106 if (temp1)
8107 delete arg1;
8108 }
8109 return resultobj;
8110 fail:
8111 {
8112 if (temp1)
8113 delete arg1;
8114 }
8115 return NULL;
8116 }
8117
8118
8119 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
8120 PyObject *resultobj;
8121 wxString *arg1 = 0 ;
8122 wxBitmap *arg2 = 0 ;
8123 long arg3 ;
8124 bool temp1 = false ;
8125 PyObject * obj0 = 0 ;
8126 PyObject * obj1 = 0 ;
8127 PyObject * obj2 = 0 ;
8128 char *kwnames[] = {
8129 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
8130 };
8131
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
8133 {
8134 arg1 = wxString_in_helper(obj0);
8135 if (arg1 == NULL) SWIG_fail;
8136 temp1 = true;
8137 }
8138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
8139 SWIG_POINTER_EXCEPTION | 0)) == -1)
8140 SWIG_fail;
8141 if (arg2 == NULL) {
8142 PyErr_SetString(PyExc_TypeError,"null reference");
8143 SWIG_fail;
8144 }
8145 arg3 = (long)SWIG_As_long(obj2);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 {
8148 PyThreadState* __tstate = wxPyBeginAllowThreads();
8149 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
8150
8151 wxPyEndAllowThreads(__tstate);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 Py_INCREF(Py_None); resultobj = Py_None;
8155 {
8156 if (temp1)
8157 delete arg1;
8158 }
8159 return resultobj;
8160 fail:
8161 {
8162 if (temp1)
8163 delete arg1;
8164 }
8165 return NULL;
8166 }
8167
8168
8169 static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj;
8171 wxString *arg1 = 0 ;
8172 PyObject *arg2 = (PyObject *) 0 ;
8173 bool temp1 = false ;
8174 PyObject * obj0 = 0 ;
8175 PyObject * obj1 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "filename",(char *) "data", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
8181 {
8182 arg1 = wxString_in_helper(obj0);
8183 if (arg1 == NULL) SWIG_fail;
8184 temp1 = true;
8185 }
8186 arg2 = obj1;
8187 {
8188 PyThreadState* __tstate = wxPyBeginAllowThreads();
8189 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
8190
8191 wxPyEndAllowThreads(__tstate);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 Py_INCREF(Py_None); resultobj = Py_None;
8195 {
8196 if (temp1)
8197 delete arg1;
8198 }
8199 return resultobj;
8200 fail:
8201 {
8202 if (temp1)
8203 delete arg1;
8204 }
8205 return NULL;
8206 }
8207
8208
8209 static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
8210 PyObject *resultobj;
8211 wxMemoryFSHandler *result;
8212 char *kwnames[] = {
8213 NULL
8214 };
8215
8216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
8217 {
8218 PyThreadState* __tstate = wxPyBeginAllowThreads();
8219 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
8220
8221 wxPyEndAllowThreads(__tstate);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
8225 return resultobj;
8226 fail:
8227 return NULL;
8228 }
8229
8230
8231 static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8232 PyObject *resultobj;
8233 wxString *arg1 = 0 ;
8234 bool temp1 = false ;
8235 PyObject * obj0 = 0 ;
8236 char *kwnames[] = {
8237 (char *) "filename", NULL
8238 };
8239
8240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
8241 {
8242 arg1 = wxString_in_helper(obj0);
8243 if (arg1 == NULL) SWIG_fail;
8244 temp1 = true;
8245 }
8246 {
8247 PyThreadState* __tstate = wxPyBeginAllowThreads();
8248 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
8249
8250 wxPyEndAllowThreads(__tstate);
8251 if (PyErr_Occurred()) SWIG_fail;
8252 }
8253 Py_INCREF(Py_None); resultobj = Py_None;
8254 {
8255 if (temp1)
8256 delete arg1;
8257 }
8258 return resultobj;
8259 fail:
8260 {
8261 if (temp1)
8262 delete arg1;
8263 }
8264 return NULL;
8265 }
8266
8267
8268 static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
8269 PyObject *resultobj;
8270 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8271 wxString *arg2 = 0 ;
8272 bool result;
8273 bool temp2 = false ;
8274 PyObject * obj0 = 0 ;
8275 PyObject * obj1 = 0 ;
8276 char *kwnames[] = {
8277 (char *) "self",(char *) "location", NULL
8278 };
8279
8280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
8281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8283 {
8284 arg2 = wxString_in_helper(obj1);
8285 if (arg2 == NULL) SWIG_fail;
8286 temp2 = true;
8287 }
8288 {
8289 PyThreadState* __tstate = wxPyBeginAllowThreads();
8290 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
8291
8292 wxPyEndAllowThreads(__tstate);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 {
8296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8297 }
8298 {
8299 if (temp2)
8300 delete arg2;
8301 }
8302 return resultobj;
8303 fail:
8304 {
8305 if (temp2)
8306 delete arg2;
8307 }
8308 return NULL;
8309 }
8310
8311
8312 static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj;
8314 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8315 wxFileSystem *arg2 = 0 ;
8316 wxString *arg3 = 0 ;
8317 wxFSFile *result;
8318 bool temp3 = false ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 PyObject * obj2 = 0 ;
8322 char *kwnames[] = {
8323 (char *) "self",(char *) "fs",(char *) "location", NULL
8324 };
8325
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
8330 SWIG_POINTER_EXCEPTION | 0)) == -1)
8331 SWIG_fail;
8332 if (arg2 == NULL) {
8333 PyErr_SetString(PyExc_TypeError,"null reference");
8334 SWIG_fail;
8335 }
8336 {
8337 arg3 = wxString_in_helper(obj2);
8338 if (arg3 == NULL) SWIG_fail;
8339 temp3 = true;
8340 }
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8344
8345 wxPyEndAllowThreads(__tstate);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 {
8349 resultobj = wxPyMake_wxObject(result, 1);
8350 }
8351 {
8352 if (temp3)
8353 delete arg3;
8354 }
8355 return resultobj;
8356 fail:
8357 {
8358 if (temp3)
8359 delete arg3;
8360 }
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8368 wxString *arg2 = 0 ;
8369 int arg3 = (int) 0 ;
8370 wxString result;
8371 bool temp2 = false ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 PyObject * obj2 = 0 ;
8375 char *kwnames[] = {
8376 (char *) "self",(char *) "spec",(char *) "flags", NULL
8377 };
8378
8379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8382 {
8383 arg2 = wxString_in_helper(obj1);
8384 if (arg2 == NULL) SWIG_fail;
8385 temp2 = true;
8386 }
8387 if (obj2) {
8388 arg3 = (int)SWIG_As_int(obj2);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 {
8399 #if wxUSE_UNICODE
8400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8401 #else
8402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8403 #endif
8404 }
8405 {
8406 if (temp2)
8407 delete arg2;
8408 }
8409 return resultobj;
8410 fail:
8411 {
8412 if (temp2)
8413 delete arg2;
8414 }
8415 return NULL;
8416 }
8417
8418
8419 static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8422 wxString result;
8423 PyObject * obj0 = 0 ;
8424 char *kwnames[] = {
8425 (char *) "self", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 result = (arg1)->FindNext();
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 #if wxUSE_UNICODE
8440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8441 #else
8442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8443 #endif
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) {
8452 PyObject *obj;
8453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8454 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8455 Py_INCREF(obj);
8456 return Py_BuildValue((char *)"");
8457 }
8458 static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
8459 PyObject *resultobj;
8460 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8461 wxString result;
8462 PyObject * obj0 = 0 ;
8463 char *kwnames[] = {
8464 (char *) "self", NULL
8465 };
8466
8467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 result = (arg1)->GetName();
8473
8474 wxPyEndAllowThreads(__tstate);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 }
8477 {
8478 #if wxUSE_UNICODE
8479 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8480 #else
8481 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8482 #endif
8483 }
8484 return resultobj;
8485 fail:
8486 return NULL;
8487 }
8488
8489
8490 static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj;
8492 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8493 wxString result;
8494 PyObject * obj0 = 0 ;
8495 char *kwnames[] = {
8496 (char *) "self", NULL
8497 };
8498
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 result = (arg1)->GetExtension();
8505
8506 wxPyEndAllowThreads(__tstate);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 {
8510 #if wxUSE_UNICODE
8511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8512 #else
8513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8514 #endif
8515 }
8516 return resultobj;
8517 fail:
8518 return NULL;
8519 }
8520
8521
8522 static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
8523 PyObject *resultobj;
8524 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8525 long result;
8526 PyObject * obj0 = 0 ;
8527 char *kwnames[] = {
8528 (char *) "self", NULL
8529 };
8530
8531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8534 {
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 result = (long)(arg1)->GetType();
8537
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_From_long((long)result);
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj;
8550 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8551 wxString result;
8552 PyObject * obj0 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 result = (arg1)->GetMimeType();
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 {
8568 #if wxUSE_UNICODE
8569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8570 #else
8571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8572 #endif
8573 }
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
8581 PyObject *resultobj;
8582 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8583 wxString *arg2 = 0 ;
8584 bool result;
8585 bool temp2 = false ;
8586 PyObject * obj0 = 0 ;
8587 PyObject * obj1 = 0 ;
8588 char *kwnames[] = {
8589 (char *) "self",(char *) "name", NULL
8590 };
8591
8592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8595 {
8596 arg2 = wxString_in_helper(obj1);
8597 if (arg2 == NULL) SWIG_fail;
8598 temp2 = true;
8599 }
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 {
8608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8609 }
8610 {
8611 if (temp2)
8612 delete arg2;
8613 }
8614 return resultobj;
8615 fail:
8616 {
8617 if (temp2)
8618 delete arg2;
8619 }
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8627 wxString *arg2 = 0 ;
8628 bool temp2 = false ;
8629 PyObject * obj0 = 0 ;
8630 PyObject * obj1 = 0 ;
8631 char *kwnames[] = {
8632 (char *) "self",(char *) "name", NULL
8633 };
8634
8635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8638 {
8639 arg2 = wxString_in_helper(obj1);
8640 if (arg2 == NULL) SWIG_fail;
8641 temp2 = true;
8642 }
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 (arg1)->SetName((wxString const &)*arg2);
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 Py_INCREF(Py_None); resultobj = Py_None;
8651 {
8652 if (temp2)
8653 delete arg2;
8654 }
8655 return resultobj;
8656 fail:
8657 {
8658 if (temp2)
8659 delete arg2;
8660 }
8661 return NULL;
8662 }
8663
8664
8665 static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj;
8667 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8668 wxString *arg2 = 0 ;
8669 bool temp2 = false ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char *kwnames[] = {
8673 (char *) "self",(char *) "extension", NULL
8674 };
8675
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8679 {
8680 arg2 = wxString_in_helper(obj1);
8681 if (arg2 == NULL) SWIG_fail;
8682 temp2 = true;
8683 }
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 (arg1)->SetExtension((wxString const &)*arg2);
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 Py_INCREF(Py_None); resultobj = Py_None;
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_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj;
8708 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8709 long arg2 ;
8710 PyObject * obj0 = 0 ;
8711 PyObject * obj1 = 0 ;
8712 char *kwnames[] = {
8713 (char *) "self",(char *) "type", NULL
8714 };
8715
8716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8719 arg2 = (long)SWIG_As_long(obj1);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 (arg1)->SetType(arg2);
8724
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 Py_INCREF(Py_None); resultobj = Py_None;
8729 return resultobj;
8730 fail:
8731 return NULL;
8732 }
8733
8734
8735 static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj;
8737 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8738 wxString *arg2 = 0 ;
8739 bool temp2 = false ;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 char *kwnames[] = {
8743 (char *) "self",(char *) "mimetype", NULL
8744 };
8745
8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8749 {
8750 arg2 = wxString_in_helper(obj1);
8751 if (arg2 == NULL) SWIG_fail;
8752 temp2 = true;
8753 }
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 (arg1)->SetMimeType((wxString const &)*arg2);
8757
8758 wxPyEndAllowThreads(__tstate);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 }
8761 Py_INCREF(Py_None); resultobj = Py_None;
8762 {
8763 if (temp2)
8764 delete arg2;
8765 }
8766 return resultobj;
8767 fail:
8768 {
8769 if (temp2)
8770 delete arg2;
8771 }
8772 return NULL;
8773 }
8774
8775
8776 static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) {
8777 PyObject *obj;
8778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8779 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8780 Py_INCREF(obj);
8781 return Py_BuildValue((char *)"");
8782 }
8783 static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
8784 PyObject *resultobj;
8785 wxImageHistogram *result;
8786 char *kwnames[] = {
8787 NULL
8788 };
8789
8790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8791 {
8792 PyThreadState* __tstate = wxPyBeginAllowThreads();
8793 result = (wxImageHistogram *)new wxImageHistogram();
8794
8795 wxPyEndAllowThreads(__tstate);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8799 return resultobj;
8800 fail:
8801 return NULL;
8802 }
8803
8804
8805 static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) {
8806 PyObject *resultobj;
8807 unsigned char arg1 ;
8808 unsigned char arg2 ;
8809 unsigned char arg3 ;
8810 unsigned long result;
8811 PyObject * obj0 = 0 ;
8812 PyObject * obj1 = 0 ;
8813 PyObject * obj2 = 0 ;
8814 char *kwnames[] = {
8815 (char *) "r",(char *) "g",(char *) "b", NULL
8816 };
8817
8818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8819 arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 {
8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
8827 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8828
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8842 unsigned char *arg2 = (unsigned char *) 0 ;
8843 unsigned char *arg3 = (unsigned char *) 0 ;
8844 unsigned char *arg4 = (unsigned char *) 0 ;
8845 unsigned char arg5 = (unsigned char) 1 ;
8846 unsigned char arg6 = (unsigned char) 0 ;
8847 unsigned char arg7 = (unsigned char) 0 ;
8848 bool result;
8849 unsigned char temp2 ;
8850 int res2 = 0 ;
8851 unsigned char temp3 ;
8852 int res3 = 0 ;
8853 unsigned char temp4 ;
8854 int res4 = 0 ;
8855 PyObject * obj0 = 0 ;
8856 PyObject * obj1 = 0 ;
8857 PyObject * obj2 = 0 ;
8858 PyObject * obj3 = 0 ;
8859 char *kwnames[] = {
8860 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8861 };
8862
8863 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8864 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8865 arg4 = &temp4; res4 = SWIG_NEWOBJ;
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8869 if (obj1) {
8870 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 if (obj2) {
8874 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 if (obj3) {
8878 arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 {
8889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8890 }
8891 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8892 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0)));
8893 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8894 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
8895 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
8896 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
8897 return resultobj;
8898 fail:
8899 return NULL;
8900 }
8901
8902
8903 static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) {
8904 PyObject *obj;
8905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8906 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8907 Py_INCREF(obj);
8908 return Py_BuildValue((char *)"");
8909 }
8910 static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj;
8912 wxString *arg1 = 0 ;
8913 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8914 int arg3 = (int) -1 ;
8915 wxImage *result;
8916 bool temp1 = false ;
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 PyObject * obj2 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "name",(char *) "type",(char *) "index", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8925 {
8926 arg1 = wxString_in_helper(obj0);
8927 if (arg1 == NULL) SWIG_fail;
8928 temp1 = true;
8929 }
8930 if (obj1) {
8931 arg2 = (long)SWIG_As_long(obj1);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 if (obj2) {
8935 arg3 = (int)SWIG_As_int(obj2);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 {
8939 PyThreadState* __tstate = wxPyBeginAllowThreads();
8940 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8941
8942 wxPyEndAllowThreads(__tstate);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
8945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8946 {
8947 if (temp1)
8948 delete arg1;
8949 }
8950 return resultobj;
8951 fail:
8952 {
8953 if (temp1)
8954 delete arg1;
8955 }
8956 return NULL;
8957 }
8958
8959
8960 static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj;
8962 wxImage *arg1 = (wxImage *) 0 ;
8963 PyObject * obj0 = 0 ;
8964 char *kwnames[] = {
8965 (char *) "self", NULL
8966 };
8967
8968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8971 {
8972 PyThreadState* __tstate = wxPyBeginAllowThreads();
8973 delete arg1;
8974
8975 wxPyEndAllowThreads(__tstate);
8976 if (PyErr_Occurred()) SWIG_fail;
8977 }
8978 Py_INCREF(Py_None); resultobj = Py_None;
8979 return resultobj;
8980 fail:
8981 return NULL;
8982 }
8983
8984
8985 static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) {
8986 PyObject *resultobj;
8987 wxString *arg1 = 0 ;
8988 wxString *arg2 = 0 ;
8989 int arg3 = (int) -1 ;
8990 wxImage *result;
8991 bool temp1 = false ;
8992 bool temp2 = false ;
8993 PyObject * obj0 = 0 ;
8994 PyObject * obj1 = 0 ;
8995 PyObject * obj2 = 0 ;
8996 char *kwnames[] = {
8997 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8998 };
8999
9000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
9001 {
9002 arg1 = wxString_in_helper(obj0);
9003 if (arg1 == NULL) SWIG_fail;
9004 temp1 = true;
9005 }
9006 {
9007 arg2 = wxString_in_helper(obj1);
9008 if (arg2 == NULL) SWIG_fail;
9009 temp2 = true;
9010 }
9011 if (obj2) {
9012 arg3 = (int)SWIG_As_int(obj2);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9018
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9023 {
9024 if (temp1)
9025 delete arg1;
9026 }
9027 {
9028 if (temp2)
9029 delete arg2;
9030 }
9031 return resultobj;
9032 fail:
9033 {
9034 if (temp1)
9035 delete arg1;
9036 }
9037 {
9038 if (temp2)
9039 delete arg2;
9040 }
9041 return NULL;
9042 }
9043
9044
9045 static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj;
9047 wxInputStream *arg1 = 0 ;
9048 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9049 int arg3 = (int) -1 ;
9050 wxImage *result;
9051 wxPyInputStream *temp1 ;
9052 bool created1 ;
9053 PyObject * obj0 = 0 ;
9054 PyObject * obj1 = 0 ;
9055 PyObject * obj2 = 0 ;
9056 char *kwnames[] = {
9057 (char *) "stream",(char *) "type",(char *) "index", NULL
9058 };
9059
9060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
9061 {
9062 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9063 arg1 = temp1->m_wxis;
9064 created1 = false;
9065 } else {
9066 PyErr_Clear(); // clear the failure of the wxPyConvert above
9067 arg1 = wxPyCBInputStream_create(obj0, false);
9068 if (arg1 == NULL) {
9069 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9070 SWIG_fail;
9071 }
9072 created1 = true;
9073 }
9074 }
9075 if (obj1) {
9076 arg2 = (long)SWIG_As_long(obj1);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 if (obj2) {
9080 arg3 = (int)SWIG_As_int(obj2);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
9086
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9091 {
9092 if (created1)
9093 delete arg1;
9094 }
9095 return resultobj;
9096 fail:
9097 {
9098 if (created1)
9099 delete arg1;
9100 }
9101 return NULL;
9102 }
9103
9104
9105 static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj;
9107 wxInputStream *arg1 = 0 ;
9108 wxString *arg2 = 0 ;
9109 int arg3 = (int) -1 ;
9110 wxImage *result;
9111 wxPyInputStream *temp1 ;
9112 bool created1 ;
9113 bool temp2 = false ;
9114 PyObject * obj0 = 0 ;
9115 PyObject * obj1 = 0 ;
9116 PyObject * obj2 = 0 ;
9117 char *kwnames[] = {
9118 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
9119 };
9120
9121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
9122 {
9123 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9124 arg1 = temp1->m_wxis;
9125 created1 = false;
9126 } else {
9127 PyErr_Clear(); // clear the failure of the wxPyConvert above
9128 arg1 = wxPyCBInputStream_create(obj0, false);
9129 if (arg1 == NULL) {
9130 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9131 SWIG_fail;
9132 }
9133 created1 = true;
9134 }
9135 }
9136 {
9137 arg2 = wxString_in_helper(obj1);
9138 if (arg2 == NULL) SWIG_fail;
9139 temp2 = true;
9140 }
9141 if (obj2) {
9142 arg3 = (int)SWIG_As_int(obj2);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9153 {
9154 if (created1)
9155 delete arg1;
9156 }
9157 {
9158 if (temp2)
9159 delete arg2;
9160 }
9161 return resultobj;
9162 fail:
9163 {
9164 if (created1)
9165 delete arg1;
9166 }
9167 {
9168 if (temp2)
9169 delete arg2;
9170 }
9171 return NULL;
9172 }
9173
9174
9175 static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj;
9177 int arg1 = (int) 0 ;
9178 int arg2 = (int) 0 ;
9179 bool arg3 = (bool) true ;
9180 wxImage *result;
9181 PyObject * obj0 = 0 ;
9182 PyObject * obj1 = 0 ;
9183 PyObject * obj2 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "width",(char *) "height",(char *) "clear", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
9189 if (obj0) {
9190 arg1 = (int)SWIG_As_int(obj0);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 if (obj1) {
9194 arg2 = (int)SWIG_As_int(obj1);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 if (obj2) {
9198 arg3 = (bool)SWIG_As_bool(obj2);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
9204
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9209 return resultobj;
9210 fail:
9211 return NULL;
9212 }
9213
9214
9215 static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 wxBitmap *arg1 = 0 ;
9218 wxImage *result;
9219 PyObject * obj0 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "bitmap", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
9225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
9226 SWIG_POINTER_EXCEPTION | 0)) == -1)
9227 SWIG_fail;
9228 if (arg1 == NULL) {
9229 PyErr_SetString(PyExc_TypeError,"null reference");
9230 SWIG_fail;
9231 }
9232 {
9233 if (!wxPyCheckForApp()) SWIG_fail;
9234 PyThreadState* __tstate = wxPyBeginAllowThreads();
9235 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
9236
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj;
9249 int arg1 ;
9250 int arg2 ;
9251 unsigned char *arg3 = (unsigned char *) 0 ;
9252 wxImage *result;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 PyObject * obj2 = 0 ;
9256 char *kwnames[] = {
9257 (char *) "width",(char *) "height",(char *) "data", NULL
9258 };
9259
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
9261 arg1 = (int)SWIG_As_int(obj0);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 arg2 = (int)SWIG_As_int(obj1);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
9266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9269 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
9270
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9275 return resultobj;
9276 fail:
9277 return NULL;
9278 }
9279
9280
9281 static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) {
9282 PyObject *resultobj;
9283 wxImage *arg1 = (wxImage *) 0 ;
9284 int arg2 ;
9285 int arg3 ;
9286 PyObject * obj0 = 0 ;
9287 PyObject * obj1 = 0 ;
9288 PyObject * obj2 = 0 ;
9289 char *kwnames[] = {
9290 (char *) "self",(char *) "width",(char *) "height", NULL
9291 };
9292
9293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
9294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9296 arg2 = (int)SWIG_As_int(obj1);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 arg3 = (int)SWIG_As_int(obj2);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 (arg1)->Create(arg2,arg3);
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 Py_INCREF(Py_None); resultobj = Py_None;
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj;
9316 wxImage *arg1 = (wxImage *) 0 ;
9317 PyObject * obj0 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self", NULL
9320 };
9321
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
9323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 (arg1)->Destroy();
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 Py_INCREF(Py_None); resultobj = Py_None;
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 wxImage *arg1 = (wxImage *) 0 ;
9342 int arg2 ;
9343 int arg3 ;
9344 SwigValueWrapper< wxImage > result;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 PyObject * obj2 = 0 ;
9348 char *kwnames[] = {
9349 (char *) "self",(char *) "width",(char *) "height", NULL
9350 };
9351
9352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9355 arg2 = (int)SWIG_As_int(obj1);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 arg3 = (int)SWIG_As_int(obj2);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (arg1)->Scale(arg2,arg3);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 wxImage * resultptr;
9368 resultptr = new wxImage((wxImage &) result);
9369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9370 }
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 wxImage *arg1 = (wxImage *) 0 ;
9380 int arg2 ;
9381 int arg3 ;
9382 SwigValueWrapper< wxImage > result;
9383 PyObject * obj0 = 0 ;
9384 PyObject * obj1 = 0 ;
9385 PyObject * obj2 = 0 ;
9386 char *kwnames[] = {
9387 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9388 };
9389
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9393 arg2 = (int)SWIG_As_int(obj1);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 arg3 = (int)SWIG_As_int(obj2);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 wxImage * resultptr;
9406 resultptr = new wxImage((wxImage &) result);
9407 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9408 }
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj;
9417 wxImage *arg1 = (wxImage *) 0 ;
9418 int arg2 ;
9419 int arg3 ;
9420 wxImage *result;
9421 PyObject * obj0 = 0 ;
9422 PyObject * obj1 = 0 ;
9423 PyObject * obj2 = 0 ;
9424 char *kwnames[] = {
9425 (char *) "self",(char *) "width",(char *) "height", NULL
9426 };
9427
9428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9431 arg2 = (int)SWIG_As_int(obj1);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 arg3 = (int)SWIG_As_int(obj2);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 {
9438 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9439 result = (wxImage *) &_result_ref;
9440 }
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj;
9454 wxImage *arg1 = (wxImage *) 0 ;
9455 int arg2 ;
9456 int arg3 ;
9457 unsigned char arg4 ;
9458 unsigned char arg5 ;
9459 unsigned char arg6 ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 PyObject * obj2 = 0 ;
9463 PyObject * obj3 = 0 ;
9464 PyObject * obj4 = 0 ;
9465 PyObject * obj5 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9473 arg2 = (int)SWIG_As_int(obj1);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 arg3 = (int)SWIG_As_int(obj2);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 Py_INCREF(Py_None); resultobj = Py_None;
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 wxImage *arg1 = (wxImage *) 0 ;
9500 int arg2 ;
9501 int arg3 ;
9502 unsigned char result;
9503 PyObject * obj0 = 0 ;
9504 PyObject * obj1 = 0 ;
9505 PyObject * obj2 = 0 ;
9506 char *kwnames[] = {
9507 (char *) "self",(char *) "x",(char *) "y", NULL
9508 };
9509
9510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9513 arg2 = (int)SWIG_As_int(obj1);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 arg3 = (int)SWIG_As_int(obj2);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9520
9521 wxPyEndAllowThreads(__tstate);
9522 if (PyErr_Occurred()) SWIG_fail;
9523 }
9524 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
9525 return resultobj;
9526 fail:
9527 return NULL;
9528 }
9529
9530
9531 static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) {
9532 PyObject *resultobj;
9533 wxImage *arg1 = (wxImage *) 0 ;
9534 int arg2 ;
9535 int arg3 ;
9536 unsigned char result;
9537 PyObject * obj0 = 0 ;
9538 PyObject * obj1 = 0 ;
9539 PyObject * obj2 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "self",(char *) "x",(char *) "y", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9547 arg2 = (int)SWIG_As_int(obj1);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 arg3 = (int)SWIG_As_int(obj2);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9554
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
9559 return resultobj;
9560 fail:
9561 return NULL;
9562 }
9563
9564
9565 static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) {
9566 PyObject *resultobj;
9567 wxImage *arg1 = (wxImage *) 0 ;
9568 int arg2 ;
9569 int arg3 ;
9570 unsigned char result;
9571 PyObject * obj0 = 0 ;
9572 PyObject * obj1 = 0 ;
9573 PyObject * obj2 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self",(char *) "x",(char *) "y", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9581 arg2 = (int)SWIG_As_int(obj1);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 arg3 = (int)SWIG_As_int(obj2);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxImage *arg1 = (wxImage *) 0 ;
9602 int arg2 ;
9603 int arg3 ;
9604 unsigned char arg4 ;
9605 PyObject * obj0 = 0 ;
9606 PyObject * obj1 = 0 ;
9607 PyObject * obj2 = 0 ;
9608 PyObject * obj3 = 0 ;
9609 char *kwnames[] = {
9610 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9611 };
9612
9613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9616 arg2 = (int)SWIG_As_int(obj1);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 arg3 = (int)SWIG_As_int(obj2);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 (arg1)->SetAlpha(arg2,arg3,arg4);
9625
9626 wxPyEndAllowThreads(__tstate);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 Py_INCREF(Py_None); resultobj = Py_None;
9630 return resultobj;
9631 fail:
9632 return NULL;
9633 }
9634
9635
9636 static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj;
9638 wxImage *arg1 = (wxImage *) 0 ;
9639 int arg2 ;
9640 int arg3 ;
9641 unsigned char result;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 PyObject * obj2 = 0 ;
9645 char *kwnames[] = {
9646 (char *) "self",(char *) "x",(char *) "y", NULL
9647 };
9648
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
9650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9652 arg2 = (int)SWIG_As_int(obj1);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 arg3 = (int)SWIG_As_int(obj2);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9659
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxImage *arg1 = (wxImage *) 0 ;
9673 bool result;
9674 PyObject * obj0 = 0 ;
9675 char *kwnames[] = {
9676 (char *) "self", NULL
9677 };
9678
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 result = (bool)(arg1)->HasAlpha();
9685
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 {
9690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9691 }
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxImage *arg1 = (wxImage *) 0 ;
9701 byte *arg2 = (byte *) 0 ;
9702 byte *arg3 = (byte *) 0 ;
9703 byte *arg4 = (byte *) 0 ;
9704 byte arg5 = (byte) 0 ;
9705 byte arg6 = (byte) 0 ;
9706 byte arg7 = (byte) 0 ;
9707 bool result;
9708 byte temp2 ;
9709 int res2 = 0 ;
9710 byte temp3 ;
9711 int res3 = 0 ;
9712 byte temp4 ;
9713 int res4 = 0 ;
9714 PyObject * obj0 = 0 ;
9715 PyObject * obj1 = 0 ;
9716 PyObject * obj2 = 0 ;
9717 PyObject * obj3 = 0 ;
9718 char *kwnames[] = {
9719 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9720 };
9721
9722 arg2 = &temp2; res2 = SWIG_NEWOBJ;
9723 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9724 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9728 if (obj1) {
9729 arg5 = (byte)SWIG_As_unsigned_SS_char(obj1);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 if (obj2) {
9733 arg6 = (byte)SWIG_As_unsigned_SS_char(obj2);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 if (obj3) {
9737 arg7 = (byte)SWIG_As_unsigned_SS_char(obj3);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9749 }
9750 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
9751 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0)));
9752 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9753 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
9754 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9755 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
9756 return resultobj;
9757 fail:
9758 return NULL;
9759 }
9760
9761
9762 static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj;
9764 wxImage *arg1 = (wxImage *) 0 ;
9765 byte arg2 = (byte) 128 ;
9766 bool result;
9767 PyObject * obj0 = 0 ;
9768 PyObject * obj1 = 0 ;
9769 char *kwnames[] = {
9770 (char *) "self",(char *) "threshold", NULL
9771 };
9772
9773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail;
9774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9776 if (obj1) {
9777 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 wxImage *arg1 = (wxImage *) 0 ;
9799 unsigned char arg2 ;
9800 unsigned char arg3 ;
9801 unsigned char arg4 ;
9802 bool result;
9803 PyObject * obj0 = 0 ;
9804 PyObject * obj1 = 0 ;
9805 PyObject * obj2 = 0 ;
9806 PyObject * obj3 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9814 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 {
9821 PyThreadState* __tstate = wxPyBeginAllowThreads();
9822 result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
9823
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 {
9828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9829 }
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj;
9838 wxImage *arg1 = (wxImage *) 0 ;
9839 wxImage *arg2 = 0 ;
9840 byte arg3 ;
9841 byte arg4 ;
9842 byte arg5 ;
9843 bool result;
9844 PyObject * obj0 = 0 ;
9845 PyObject * obj1 = 0 ;
9846 PyObject * obj2 = 0 ;
9847 PyObject * obj3 = 0 ;
9848 PyObject * obj4 = 0 ;
9849 char *kwnames[] = {
9850 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9857 SWIG_POINTER_EXCEPTION | 0)) == -1)
9858 SWIG_fail;
9859 if (arg2 == NULL) {
9860 PyErr_SetString(PyExc_TypeError,"null reference");
9861 SWIG_fail;
9862 }
9863 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 arg5 = (byte)SWIG_As_unsigned_SS_char(obj4);
9868 if (PyErr_Occurred()) SWIG_fail;
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 {
9877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9878 }
9879 return resultobj;
9880 fail:
9881 return NULL;
9882 }
9883
9884
9885 static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj;
9887 wxString *arg1 = 0 ;
9888 bool result;
9889 bool temp1 = false ;
9890 PyObject * obj0 = 0 ;
9891 char *kwnames[] = {
9892 (char *) "name", NULL
9893 };
9894
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9896 {
9897 arg1 = wxString_in_helper(obj0);
9898 if (arg1 == NULL) SWIG_fail;
9899 temp1 = true;
9900 }
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 {
9909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9910 }
9911 {
9912 if (temp1)
9913 delete arg1;
9914 }
9915 return resultobj;
9916 fail:
9917 {
9918 if (temp1)
9919 delete arg1;
9920 }
9921 return NULL;
9922 }
9923
9924
9925 static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
9926 PyObject *resultobj;
9927 wxString *arg1 = 0 ;
9928 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9929 int result;
9930 bool temp1 = false ;
9931 PyObject * obj0 = 0 ;
9932 PyObject * obj1 = 0 ;
9933 char *kwnames[] = {
9934 (char *) "name",(char *) "type", NULL
9935 };
9936
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9938 {
9939 arg1 = wxString_in_helper(obj0);
9940 if (arg1 == NULL) SWIG_fail;
9941 temp1 = true;
9942 }
9943 if (obj1) {
9944 arg2 = (long)SWIG_As_long(obj1);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9950
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 resultobj = SWIG_From_int((int)result);
9955 {
9956 if (temp1)
9957 delete arg1;
9958 }
9959 return resultobj;
9960 fail:
9961 {
9962 if (temp1)
9963 delete arg1;
9964 }
9965 return NULL;
9966 }
9967
9968
9969 static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
9970 PyObject *resultobj;
9971 wxImage *arg1 = (wxImage *) 0 ;
9972 wxString *arg2 = 0 ;
9973 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9974 int arg4 = (int) -1 ;
9975 bool result;
9976 bool temp2 = false ;
9977 PyObject * obj0 = 0 ;
9978 PyObject * obj1 = 0 ;
9979 PyObject * obj2 = 0 ;
9980 PyObject * obj3 = 0 ;
9981 char *kwnames[] = {
9982 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9983 };
9984
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9988 {
9989 arg2 = wxString_in_helper(obj1);
9990 if (arg2 == NULL) SWIG_fail;
9991 temp2 = true;
9992 }
9993 if (obj2) {
9994 arg3 = (long)SWIG_As_long(obj2);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 if (obj3) {
9998 arg4 = (int)SWIG_As_int(obj3);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
10004
10005 wxPyEndAllowThreads(__tstate);
10006 if (PyErr_Occurred()) SWIG_fail;
10007 }
10008 {
10009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10010 }
10011 {
10012 if (temp2)
10013 delete arg2;
10014 }
10015 return resultobj;
10016 fail:
10017 {
10018 if (temp2)
10019 delete arg2;
10020 }
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxImage *arg1 = (wxImage *) 0 ;
10028 wxString *arg2 = 0 ;
10029 wxString *arg3 = 0 ;
10030 int arg4 = (int) -1 ;
10031 bool result;
10032 bool temp2 = false ;
10033 bool temp3 = false ;
10034 PyObject * obj0 = 0 ;
10035 PyObject * obj1 = 0 ;
10036 PyObject * obj2 = 0 ;
10037 PyObject * obj3 = 0 ;
10038 char *kwnames[] = {
10039 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
10040 };
10041
10042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10045 {
10046 arg2 = wxString_in_helper(obj1);
10047 if (arg2 == NULL) SWIG_fail;
10048 temp2 = true;
10049 }
10050 {
10051 arg3 = wxString_in_helper(obj2);
10052 if (arg3 == NULL) SWIG_fail;
10053 temp3 = true;
10054 }
10055 if (obj3) {
10056 arg4 = (int)SWIG_As_int(obj3);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 {
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
10062
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 {
10067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10068 }
10069 {
10070 if (temp2)
10071 delete arg2;
10072 }
10073 {
10074 if (temp3)
10075 delete arg3;
10076 }
10077 return resultobj;
10078 fail:
10079 {
10080 if (temp2)
10081 delete arg2;
10082 }
10083 {
10084 if (temp3)
10085 delete arg3;
10086 }
10087 return NULL;
10088 }
10089
10090
10091 static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
10092 PyObject *resultobj;
10093 wxImage *arg1 = (wxImage *) 0 ;
10094 wxString *arg2 = 0 ;
10095 int arg3 ;
10096 bool result;
10097 bool temp2 = false ;
10098 PyObject * obj0 = 0 ;
10099 PyObject * obj1 = 0 ;
10100 PyObject * obj2 = 0 ;
10101 char *kwnames[] = {
10102 (char *) "self",(char *) "name",(char *) "type", NULL
10103 };
10104
10105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
10106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10108 {
10109 arg2 = wxString_in_helper(obj1);
10110 if (arg2 == NULL) SWIG_fail;
10111 temp2 = true;
10112 }
10113 arg3 = (int)SWIG_As_int(obj2);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 {
10116 PyThreadState* __tstate = wxPyBeginAllowThreads();
10117 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
10118
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 {
10123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10124 }
10125 {
10126 if (temp2)
10127 delete arg2;
10128 }
10129 return resultobj;
10130 fail:
10131 {
10132 if (temp2)
10133 delete arg2;
10134 }
10135 return NULL;
10136 }
10137
10138
10139 static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj;
10141 wxImage *arg1 = (wxImage *) 0 ;
10142 wxString *arg2 = 0 ;
10143 wxString *arg3 = 0 ;
10144 bool result;
10145 bool temp2 = false ;
10146 bool temp3 = false ;
10147 PyObject * obj0 = 0 ;
10148 PyObject * obj1 = 0 ;
10149 PyObject * obj2 = 0 ;
10150 char *kwnames[] = {
10151 (char *) "self",(char *) "name",(char *) "mimetype", NULL
10152 };
10153
10154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
10155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10157 {
10158 arg2 = wxString_in_helper(obj1);
10159 if (arg2 == NULL) SWIG_fail;
10160 temp2 = true;
10161 }
10162 {
10163 arg3 = wxString_in_helper(obj2);
10164 if (arg3 == NULL) SWIG_fail;
10165 temp3 = true;
10166 }
10167 {
10168 PyThreadState* __tstate = wxPyBeginAllowThreads();
10169 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
10170
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 }
10174 {
10175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10176 }
10177 {
10178 if (temp2)
10179 delete arg2;
10180 }
10181 {
10182 if (temp3)
10183 delete arg3;
10184 }
10185 return resultobj;
10186 fail:
10187 {
10188 if (temp2)
10189 delete arg2;
10190 }
10191 {
10192 if (temp3)
10193 delete arg3;
10194 }
10195 return NULL;
10196 }
10197
10198
10199 static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj;
10201 wxInputStream *arg1 = 0 ;
10202 bool result;
10203 wxPyInputStream *temp1 ;
10204 bool created1 ;
10205 PyObject * obj0 = 0 ;
10206 char *kwnames[] = {
10207 (char *) "stream", NULL
10208 };
10209
10210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
10211 {
10212 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
10213 arg1 = temp1->m_wxis;
10214 created1 = false;
10215 } else {
10216 PyErr_Clear(); // clear the failure of the wxPyConvert above
10217 arg1 = wxPyCBInputStream_create(obj0, false);
10218 if (arg1 == NULL) {
10219 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10220 SWIG_fail;
10221 }
10222 created1 = true;
10223 }
10224 }
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (bool)wxImage::CanRead(*arg1);
10228
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 {
10233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10234 }
10235 {
10236 if (created1)
10237 delete arg1;
10238 }
10239 return resultobj;
10240 fail:
10241 {
10242 if (created1)
10243 delete arg1;
10244 }
10245 return NULL;
10246 }
10247
10248
10249 static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj;
10251 wxImage *arg1 = (wxImage *) 0 ;
10252 wxInputStream *arg2 = 0 ;
10253 long arg3 = (long) wxBITMAP_TYPE_ANY ;
10254 int arg4 = (int) -1 ;
10255 bool result;
10256 wxPyInputStream *temp2 ;
10257 bool created2 ;
10258 PyObject * obj0 = 0 ;
10259 PyObject * obj1 = 0 ;
10260 PyObject * obj2 = 0 ;
10261 PyObject * obj3 = 0 ;
10262 char *kwnames[] = {
10263 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
10264 };
10265
10266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10269 {
10270 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
10271 arg2 = temp2->m_wxis;
10272 created2 = false;
10273 } else {
10274 PyErr_Clear(); // clear the failure of the wxPyConvert above
10275 arg2 = wxPyCBInputStream_create(obj1, false);
10276 if (arg2 == NULL) {
10277 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10278 SWIG_fail;
10279 }
10280 created2 = true;
10281 }
10282 }
10283 if (obj2) {
10284 arg3 = (long)SWIG_As_long(obj2);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 if (obj3) {
10288 arg4 = (int)SWIG_As_int(obj3);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 {
10299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10300 }
10301 {
10302 if (created2)
10303 delete arg2;
10304 }
10305 return resultobj;
10306 fail:
10307 {
10308 if (created2)
10309 delete arg2;
10310 }
10311 return NULL;
10312 }
10313
10314
10315 static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj;
10317 wxImage *arg1 = (wxImage *) 0 ;
10318 wxInputStream *arg2 = 0 ;
10319 wxString *arg3 = 0 ;
10320 int arg4 = (int) -1 ;
10321 bool result;
10322 wxPyInputStream *temp2 ;
10323 bool created2 ;
10324 bool temp3 = false ;
10325 PyObject * obj0 = 0 ;
10326 PyObject * obj1 = 0 ;
10327 PyObject * obj2 = 0 ;
10328 PyObject * obj3 = 0 ;
10329 char *kwnames[] = {
10330 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
10331 };
10332
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10336 {
10337 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
10338 arg2 = temp2->m_wxis;
10339 created2 = false;
10340 } else {
10341 PyErr_Clear(); // clear the failure of the wxPyConvert above
10342 arg2 = wxPyCBInputStream_create(obj1, false);
10343 if (arg2 == NULL) {
10344 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10345 SWIG_fail;
10346 }
10347 created2 = true;
10348 }
10349 }
10350 {
10351 arg3 = wxString_in_helper(obj2);
10352 if (arg3 == NULL) SWIG_fail;
10353 temp3 = true;
10354 }
10355 if (obj3) {
10356 arg4 = (int)SWIG_As_int(obj3);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 {
10367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10368 }
10369 {
10370 if (created2)
10371 delete arg2;
10372 }
10373 {
10374 if (temp3)
10375 delete arg3;
10376 }
10377 return resultobj;
10378 fail:
10379 {
10380 if (created2)
10381 delete arg2;
10382 }
10383 {
10384 if (temp3)
10385 delete arg3;
10386 }
10387 return NULL;
10388 }
10389
10390
10391 static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
10392 PyObject *resultobj;
10393 wxImage *arg1 = (wxImage *) 0 ;
10394 bool result;
10395 PyObject * obj0 = 0 ;
10396 char *kwnames[] = {
10397 (char *) "self", NULL
10398 };
10399
10400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
10401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (bool)(arg1)->Ok();
10406
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 {
10411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10412 }
10413 return resultobj;
10414 fail:
10415 return NULL;
10416 }
10417
10418
10419 static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
10420 PyObject *resultobj;
10421 wxImage *arg1 = (wxImage *) 0 ;
10422 int result;
10423 PyObject * obj0 = 0 ;
10424 char *kwnames[] = {
10425 (char *) "self", NULL
10426 };
10427
10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
10429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 result = (int)(arg1)->GetWidth();
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_From_int((int)result);
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj;
10447 wxImage *arg1 = (wxImage *) 0 ;
10448 int result;
10449 PyObject * obj0 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self", NULL
10452 };
10453
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (int)(arg1)->GetHeight();
10460
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_From_int((int)result);
10465 return resultobj;
10466 fail:
10467 return NULL;
10468 }
10469
10470
10471 static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj;
10473 wxImage *arg1 = (wxImage *) 0 ;
10474 wxSize result;
10475 PyObject * obj0 = 0 ;
10476 char *kwnames[] = {
10477 (char *) "self", NULL
10478 };
10479
10480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
10481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 result = wxImage_GetSize(arg1);
10486
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 {
10491 wxSize * resultptr;
10492 resultptr = new wxSize((wxSize &) result);
10493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10494 }
10495 return resultobj;
10496 fail:
10497 return NULL;
10498 }
10499
10500
10501 static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) {
10502 PyObject *resultobj;
10503 wxImage *arg1 = (wxImage *) 0 ;
10504 wxRect *arg2 = 0 ;
10505 SwigValueWrapper< wxImage > result;
10506 wxRect temp2 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 char *kwnames[] = {
10510 (char *) "self",(char *) "rect", NULL
10511 };
10512
10513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10516 {
10517 arg2 = &temp2;
10518 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10519 }
10520 {
10521 PyThreadState* __tstate = wxPyBeginAllowThreads();
10522 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10523
10524 wxPyEndAllowThreads(__tstate);
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 {
10528 wxImage * resultptr;
10529 resultptr = new wxImage((wxImage &) result);
10530 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10531 }
10532 return resultobj;
10533 fail:
10534 return NULL;
10535 }
10536
10537
10538 static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
10539 PyObject *resultobj;
10540 wxImage *arg1 = (wxImage *) 0 ;
10541 SwigValueWrapper< wxImage > result;
10542 PyObject * obj0 = 0 ;
10543 char *kwnames[] = {
10544 (char *) "self", NULL
10545 };
10546
10547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 result = (arg1)->Copy();
10553
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 {
10558 wxImage * resultptr;
10559 resultptr = new wxImage((wxImage &) result);
10560 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10561 }
10562 return resultobj;
10563 fail:
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj;
10570 wxImage *arg1 = (wxImage *) 0 ;
10571 wxImage *arg2 = 0 ;
10572 int arg3 ;
10573 int arg4 ;
10574 PyObject * obj0 = 0 ;
10575 PyObject * obj1 = 0 ;
10576 PyObject * obj2 = 0 ;
10577 PyObject * obj3 = 0 ;
10578 char *kwnames[] = {
10579 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10580 };
10581
10582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10586 SWIG_POINTER_EXCEPTION | 0)) == -1)
10587 SWIG_fail;
10588 if (arg2 == NULL) {
10589 PyErr_SetString(PyExc_TypeError,"null reference");
10590 SWIG_fail;
10591 }
10592 arg3 = (int)SWIG_As_int(obj2);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 arg4 = (int)SWIG_As_int(obj3);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 Py_INCREF(Py_None); resultobj = Py_None;
10604 return resultobj;
10605 fail:
10606 return NULL;
10607 }
10608
10609
10610 static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
10611 PyObject *resultobj;
10612 wxImage *arg1 = (wxImage *) 0 ;
10613 PyObject *result;
10614 PyObject * obj0 = 0 ;
10615 char *kwnames[] = {
10616 (char *) "self", NULL
10617 };
10618
10619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (PyObject *)wxImage_GetData(arg1);
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 resultobj = result;
10630 return resultobj;
10631 fail:
10632 return NULL;
10633 }
10634
10635
10636 static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
10637 PyObject *resultobj;
10638 wxImage *arg1 = (wxImage *) 0 ;
10639 PyObject *arg2 = (PyObject *) 0 ;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 char *kwnames[] = {
10643 (char *) "self",(char *) "data", NULL
10644 };
10645
10646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10649 arg2 = obj1;
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 wxImage_SetData(arg1,arg2);
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 Py_INCREF(Py_None); resultobj = Py_None;
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxImage *arg1 = (wxImage *) 0 ;
10667 PyObject *result;
10668 PyObject * obj0 = 0 ;
10669 char *kwnames[] = {
10670 (char *) "self", NULL
10671 };
10672
10673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10679
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 resultobj = result;
10684 return resultobj;
10685 fail:
10686 return NULL;
10687 }
10688
10689
10690 static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj;
10692 wxImage *arg1 = (wxImage *) 0 ;
10693 PyObject *arg2 = (PyObject *) 0 ;
10694 PyObject * obj0 = 0 ;
10695 PyObject * obj1 = 0 ;
10696 char *kwnames[] = {
10697 (char *) "self",(char *) "data", NULL
10698 };
10699
10700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10703 arg2 = obj1;
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 wxImage_SetDataBuffer(arg1,arg2);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxImage *arg1 = (wxImage *) 0 ;
10721 PyObject *result;
10722 PyObject * obj0 = 0 ;
10723 char *kwnames[] = {
10724 (char *) "self", NULL
10725 };
10726
10727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 result = (PyObject *)wxImage_GetAlphaData(arg1);
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 resultobj = result;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxImage *arg1 = (wxImage *) 0 ;
10747 PyObject *arg2 = (PyObject *) 0 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 char *kwnames[] = {
10751 (char *) "self",(char *) "data", NULL
10752 };
10753
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10757 arg2 = obj1;
10758 {
10759 PyThreadState* __tstate = wxPyBeginAllowThreads();
10760 wxImage_SetAlphaData(arg1,arg2);
10761
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 Py_INCREF(Py_None); resultobj = Py_None;
10766 return resultobj;
10767 fail:
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxImage *arg1 = (wxImage *) 0 ;
10775 PyObject *result;
10776 PyObject * obj0 = 0 ;
10777 char *kwnames[] = {
10778 (char *) "self", NULL
10779 };
10780
10781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10787
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 resultobj = result;
10792 return resultobj;
10793 fail:
10794 return NULL;
10795 }
10796
10797
10798 static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxImage *arg1 = (wxImage *) 0 ;
10801 PyObject *arg2 = (PyObject *) 0 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "data", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 arg2 = obj1;
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 wxImage_SetAlphaBuffer(arg1,arg2);
10815
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 Py_INCREF(Py_None); resultobj = Py_None;
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj;
10828 wxImage *arg1 = (wxImage *) 0 ;
10829 unsigned char arg2 ;
10830 unsigned char arg3 ;
10831 unsigned char arg4 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 PyObject * obj2 = 0 ;
10835 PyObject * obj3 = 0 ;
10836 char *kwnames[] = {
10837 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10838 };
10839
10840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10843 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 (arg1)->SetMaskColour(arg2,arg3,arg4);
10852
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 Py_INCREF(Py_None); resultobj = Py_None;
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj;
10865 wxImage *arg1 = (wxImage *) 0 ;
10866 unsigned char result;
10867 PyObject * obj0 = 0 ;
10868 char *kwnames[] = {
10869 (char *) "self", NULL
10870 };
10871
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = (unsigned char)(arg1)->GetMaskRed();
10878
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
10883 return resultobj;
10884 fail:
10885 return NULL;
10886 }
10887
10888
10889 static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) {
10890 PyObject *resultobj;
10891 wxImage *arg1 = (wxImage *) 0 ;
10892 unsigned char result;
10893 PyObject * obj0 = 0 ;
10894 char *kwnames[] = {
10895 (char *) "self", NULL
10896 };
10897
10898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10901 {
10902 PyThreadState* __tstate = wxPyBeginAllowThreads();
10903 result = (unsigned char)(arg1)->GetMaskGreen();
10904
10905 wxPyEndAllowThreads(__tstate);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
10909 return resultobj;
10910 fail:
10911 return NULL;
10912 }
10913
10914
10915 static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) {
10916 PyObject *resultobj;
10917 wxImage *arg1 = (wxImage *) 0 ;
10918 unsigned char result;
10919 PyObject * obj0 = 0 ;
10920 char *kwnames[] = {
10921 (char *) "self", NULL
10922 };
10923
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 result = (unsigned char)(arg1)->GetMaskBlue();
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
10942 PyObject *resultobj;
10943 wxImage *arg1 = (wxImage *) 0 ;
10944 bool arg2 = (bool) true ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 char *kwnames[] = {
10948 (char *) "self",(char *) "mask", NULL
10949 };
10950
10951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10954 if (obj1) {
10955 arg2 = (bool)SWIG_As_bool(obj1);
10956 if (PyErr_Occurred()) SWIG_fail;
10957 }
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 (arg1)->SetMask(arg2);
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 Py_INCREF(Py_None); resultobj = Py_None;
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxImage *arg1 = (wxImage *) 0 ;
10975 bool result;
10976 PyObject * obj0 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)(arg1)->HasMask();
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 {
10992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10993 }
10994 return resultobj;
10995 fail:
10996 return NULL;
10997 }
10998
10999
11000 static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj;
11002 wxImage *arg1 = (wxImage *) 0 ;
11003 double arg2 ;
11004 wxPoint *arg3 = 0 ;
11005 bool arg4 = (bool) true ;
11006 wxPoint *arg5 = (wxPoint *) NULL ;
11007 SwigValueWrapper< wxImage > result;
11008 wxPoint temp3 ;
11009 PyObject * obj0 = 0 ;
11010 PyObject * obj1 = 0 ;
11011 PyObject * obj2 = 0 ;
11012 PyObject * obj3 = 0 ;
11013 PyObject * obj4 = 0 ;
11014 char *kwnames[] = {
11015 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11021 arg2 = (double)SWIG_As_double(obj1);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 {
11024 arg3 = &temp3;
11025 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11026 }
11027 if (obj3) {
11028 arg4 = (bool)SWIG_As_bool(obj3);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 if (obj4) {
11032 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
11033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11034 }
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 {
11043 wxImage * resultptr;
11044 resultptr = new wxImage((wxImage &) result);
11045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11046 }
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj;
11055 wxImage *arg1 = (wxImage *) 0 ;
11056 bool arg2 = (bool) true ;
11057 SwigValueWrapper< wxImage > result;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 char *kwnames[] = {
11061 (char *) "self",(char *) "clockwise", NULL
11062 };
11063
11064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
11065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11067 if (obj1) {
11068 arg2 = (bool)SWIG_As_bool(obj1);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (arg1)->Rotate90(arg2);
11074
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 {
11079 wxImage * resultptr;
11080 resultptr = new wxImage((wxImage &) result);
11081 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11082 }
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) {
11090 PyObject *resultobj;
11091 wxImage *arg1 = (wxImage *) 0 ;
11092 bool arg2 = (bool) true ;
11093 SwigValueWrapper< wxImage > result;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 char *kwnames[] = {
11097 (char *) "self",(char *) "horizontally", NULL
11098 };
11099
11100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
11101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11103 if (obj1) {
11104 arg2 = (bool)SWIG_As_bool(obj1);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (arg1)->Mirror(arg2);
11110
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 {
11115 wxImage * resultptr;
11116 resultptr = new wxImage((wxImage &) result);
11117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11118 }
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj;
11127 wxImage *arg1 = (wxImage *) 0 ;
11128 unsigned char arg2 ;
11129 unsigned char arg3 ;
11130 unsigned char arg4 ;
11131 unsigned char arg5 ;
11132 unsigned char arg6 ;
11133 unsigned char arg7 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 PyObject * obj2 = 0 ;
11137 PyObject * obj3 = 0 ;
11138 PyObject * obj4 = 0 ;
11139 PyObject * obj5 = 0 ;
11140 PyObject * obj6 = 0 ;
11141 char *kwnames[] = {
11142 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
11143 };
11144
11145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11148 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
11163
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 Py_INCREF(Py_None); resultobj = Py_None;
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj;
11176 wxImage *arg1 = (wxImage *) 0 ;
11177 unsigned char arg2 ;
11178 unsigned char arg3 ;
11179 unsigned char arg4 ;
11180 SwigValueWrapper< wxImage > result;
11181 PyObject * obj0 = 0 ;
11182 PyObject * obj1 = 0 ;
11183 PyObject * obj2 = 0 ;
11184 PyObject * obj3 = 0 ;
11185 char *kwnames[] = {
11186 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
11187 };
11188
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11192 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 {
11206 wxImage * resultptr;
11207 resultptr = new wxImage((wxImage &) result);
11208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11209 }
11210 return resultobj;
11211 fail:
11212 return NULL;
11213 }
11214
11215
11216 static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj;
11218 wxImage *arg1 = (wxImage *) 0 ;
11219 wxString *arg2 = 0 ;
11220 wxString *arg3 = 0 ;
11221 bool temp2 = false ;
11222 bool temp3 = false ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 PyObject * obj2 = 0 ;
11226 char *kwnames[] = {
11227 (char *) "self",(char *) "name",(char *) "value", NULL
11228 };
11229
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
11231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11233 {
11234 arg2 = wxString_in_helper(obj1);
11235 if (arg2 == NULL) SWIG_fail;
11236 temp2 = true;
11237 }
11238 {
11239 arg3 = wxString_in_helper(obj2);
11240 if (arg3 == NULL) SWIG_fail;
11241 temp3 = true;
11242 }
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
11245 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
11246
11247 wxPyEndAllowThreads(__tstate);
11248 if (PyErr_Occurred()) SWIG_fail;
11249 }
11250 Py_INCREF(Py_None); resultobj = Py_None;
11251 {
11252 if (temp2)
11253 delete arg2;
11254 }
11255 {
11256 if (temp3)
11257 delete arg3;
11258 }
11259 return resultobj;
11260 fail:
11261 {
11262 if (temp2)
11263 delete arg2;
11264 }
11265 {
11266 if (temp3)
11267 delete arg3;
11268 }
11269 return NULL;
11270 }
11271
11272
11273 static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxImage *arg1 = (wxImage *) 0 ;
11276 wxString *arg2 = 0 ;
11277 int arg3 ;
11278 bool temp2 = false ;
11279 PyObject * obj0 = 0 ;
11280 PyObject * obj1 = 0 ;
11281 PyObject * obj2 = 0 ;
11282 char *kwnames[] = {
11283 (char *) "self",(char *) "name",(char *) "value", NULL
11284 };
11285
11286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
11287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11289 {
11290 arg2 = wxString_in_helper(obj1);
11291 if (arg2 == NULL) SWIG_fail;
11292 temp2 = true;
11293 }
11294 arg3 = (int)SWIG_As_int(obj2);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 (arg1)->SetOption((wxString const &)*arg2,arg3);
11299
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 Py_INCREF(Py_None); resultobj = Py_None;
11304 {
11305 if (temp2)
11306 delete arg2;
11307 }
11308 return resultobj;
11309 fail:
11310 {
11311 if (temp2)
11312 delete arg2;
11313 }
11314 return NULL;
11315 }
11316
11317
11318 static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj;
11320 wxImage *arg1 = (wxImage *) 0 ;
11321 wxString *arg2 = 0 ;
11322 wxString result;
11323 bool temp2 = false ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "name", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11333 {
11334 arg2 = wxString_in_helper(obj1);
11335 if (arg2 == NULL) SWIG_fail;
11336 temp2 = true;
11337 }
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
11341
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 {
11346 #if wxUSE_UNICODE
11347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11348 #else
11349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11350 #endif
11351 }
11352 {
11353 if (temp2)
11354 delete arg2;
11355 }
11356 return resultobj;
11357 fail:
11358 {
11359 if (temp2)
11360 delete arg2;
11361 }
11362 return NULL;
11363 }
11364
11365
11366 static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
11367 PyObject *resultobj;
11368 wxImage *arg1 = (wxImage *) 0 ;
11369 wxString *arg2 = 0 ;
11370 int result;
11371 bool temp2 = false ;
11372 PyObject * obj0 = 0 ;
11373 PyObject * obj1 = 0 ;
11374 char *kwnames[] = {
11375 (char *) "self",(char *) "name", NULL
11376 };
11377
11378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
11379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11381 {
11382 arg2 = wxString_in_helper(obj1);
11383 if (arg2 == NULL) SWIG_fail;
11384 temp2 = true;
11385 }
11386 {
11387 PyThreadState* __tstate = wxPyBeginAllowThreads();
11388 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
11389
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 resultobj = SWIG_From_int((int)result);
11394 {
11395 if (temp2)
11396 delete arg2;
11397 }
11398 return resultobj;
11399 fail:
11400 {
11401 if (temp2)
11402 delete arg2;
11403 }
11404 return NULL;
11405 }
11406
11407
11408 static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj;
11410 wxImage *arg1 = (wxImage *) 0 ;
11411 wxString *arg2 = 0 ;
11412 bool result;
11413 bool temp2 = false ;
11414 PyObject * obj0 = 0 ;
11415 PyObject * obj1 = 0 ;
11416 char *kwnames[] = {
11417 (char *) "self",(char *) "name", NULL
11418 };
11419
11420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
11421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11423 {
11424 arg2 = wxString_in_helper(obj1);
11425 if (arg2 == NULL) SWIG_fail;
11426 temp2 = true;
11427 }
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
11431
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 {
11436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11437 }
11438 {
11439 if (temp2)
11440 delete arg2;
11441 }
11442 return resultobj;
11443 fail:
11444 {
11445 if (temp2)
11446 delete arg2;
11447 }
11448 return NULL;
11449 }
11450
11451
11452 static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) {
11453 PyObject *resultobj;
11454 wxImage *arg1 = (wxImage *) 0 ;
11455 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11456 unsigned long result;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self",(char *) "stopafter", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11466 if (obj1) {
11467 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
11468 if (PyErr_Occurred()) SWIG_fail;
11469 }
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 result = (unsigned long)(arg1)->CountColours(arg2);
11473
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj;
11486 wxImage *arg1 = (wxImage *) 0 ;
11487 wxImageHistogram *arg2 = 0 ;
11488 unsigned long result;
11489 PyObject * obj0 = 0 ;
11490 PyObject * obj1 = 0 ;
11491 char *kwnames[] = {
11492 (char *) "self",(char *) "h", NULL
11493 };
11494
11495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1)
11500 SWIG_fail;
11501 if (arg2 == NULL) {
11502 PyErr_SetString(PyExc_TypeError,"null reference");
11503 SWIG_fail;
11504 }
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
11513 return resultobj;
11514 fail:
11515 return NULL;
11516 }
11517
11518
11519 static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11520 PyObject *resultobj;
11521 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11522 PyObject * obj0 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "handler", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 wxImage::AddHandler(arg1);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj;
11546 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11547 PyObject * obj0 = 0 ;
11548 char *kwnames[] = {
11549 (char *) "handler", NULL
11550 };
11551
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 wxImage::InsertHandler(arg1);
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 Py_INCREF(Py_None); resultobj = Py_None;
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj;
11571 wxString *arg1 = 0 ;
11572 bool result;
11573 bool temp1 = false ;
11574 PyObject * obj0 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "name", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11580 {
11581 arg1 = wxString_in_helper(obj0);
11582 if (arg1 == NULL) SWIG_fail;
11583 temp1 = true;
11584 }
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11588
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11594 }
11595 {
11596 if (temp1)
11597 delete arg1;
11598 }
11599 return resultobj;
11600 fail:
11601 {
11602 if (temp1)
11603 delete arg1;
11604 }
11605 return NULL;
11606 }
11607
11608
11609 static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) {
11610 PyObject *resultobj;
11611 wxString result;
11612 char *kwnames[] = {
11613 NULL
11614 };
11615
11616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 result = wxImage::GetImageExtWildcard();
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 {
11625 #if wxUSE_UNICODE
11626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11627 #else
11628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11629 #endif
11630 }
11631 return resultobj;
11632 fail:
11633 return NULL;
11634 }
11635
11636
11637 static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj;
11639 wxImage *arg1 = (wxImage *) 0 ;
11640 int arg2 = (int) -1 ;
11641 wxBitmap result;
11642 PyObject * obj0 = 0 ;
11643 PyObject * obj1 = 0 ;
11644 char *kwnames[] = {
11645 (char *) "self",(char *) "depth", NULL
11646 };
11647
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail;
11649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11651 if (obj1) {
11652 arg2 = (int)SWIG_As_int(obj1);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 }
11655 {
11656 if (!wxPyCheckForApp()) SWIG_fail;
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = wxImage_ConvertToBitmap(arg1,arg2);
11659
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 {
11664 wxBitmap * resultptr;
11665 resultptr = new wxBitmap((wxBitmap &) result);
11666 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11667 }
11668 return resultobj;
11669 fail:
11670 return NULL;
11671 }
11672
11673
11674 static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11675 PyObject *resultobj;
11676 wxImage *arg1 = (wxImage *) 0 ;
11677 unsigned char arg2 ;
11678 unsigned char arg3 ;
11679 unsigned char arg4 ;
11680 wxBitmap result;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 PyObject * obj3 = 0 ;
11685 char *kwnames[] = {
11686 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11692 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 {
11699 if (!wxPyCheckForApp()) SWIG_fail;
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 {
11707 wxBitmap * resultptr;
11708 resultptr = new wxBitmap((wxBitmap &) result);
11709 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11710 }
11711 return resultobj;
11712 fail:
11713 return NULL;
11714 }
11715
11716
11717 static PyObject * Image_swigregister(PyObject *, PyObject *args) {
11718 PyObject *obj;
11719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11720 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11721 Py_INCREF(obj);
11722 return Py_BuildValue((char *)"");
11723 }
11724 static int _wrap_NullImage_set(PyObject *) {
11725 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11726 return 1;
11727 }
11728
11729
11730 static PyObject *_wrap_NullImage_get() {
11731 PyObject *pyobj;
11732
11733 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11734 return pyobj;
11735 }
11736
11737
11738 static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
11739 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11740 return 1;
11741 }
11742
11743
11744 static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11745 PyObject *pyobj;
11746
11747 {
11748 #if wxUSE_UNICODE
11749 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11750 #else
11751 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11752 #endif
11753 }
11754 return pyobj;
11755 }
11756
11757
11758 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
11759 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11760 return 1;
11761 }
11762
11763
11764 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11765 PyObject *pyobj;
11766
11767 {
11768 #if wxUSE_UNICODE
11769 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11770 #else
11771 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11772 #endif
11773 }
11774 return pyobj;
11775 }
11776
11777
11778 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
11779 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11780 return 1;
11781 }
11782
11783
11784 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11785 PyObject *pyobj;
11786
11787 {
11788 #if wxUSE_UNICODE
11789 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11790 #else
11791 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11792 #endif
11793 }
11794 return pyobj;
11795 }
11796
11797
11798 static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) {
11799 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11800 return 1;
11801 }
11802
11803
11804 static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11805 PyObject *pyobj;
11806
11807 {
11808 #if wxUSE_UNICODE
11809 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11810 #else
11811 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11812 #endif
11813 }
11814 return pyobj;
11815 }
11816
11817
11818 static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
11819 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11820 return 1;
11821 }
11822
11823
11824 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11825 PyObject *pyobj;
11826
11827 {
11828 #if wxUSE_UNICODE
11829 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11830 #else
11831 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11832 #endif
11833 }
11834 return pyobj;
11835 }
11836
11837
11838 static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11839 PyObject *resultobj;
11840 wxBMPHandler *result;
11841 char *kwnames[] = {
11842 NULL
11843 };
11844
11845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (wxBMPHandler *)new wxBMPHandler();
11849
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11854 return resultobj;
11855 fail:
11856 return NULL;
11857 }
11858
11859
11860 static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) {
11861 PyObject *obj;
11862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11863 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11864 Py_INCREF(obj);
11865 return Py_BuildValue((char *)"");
11866 }
11867 static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj;
11869 wxICOHandler *result;
11870 char *kwnames[] = {
11871 NULL
11872 };
11873
11874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (wxICOHandler *)new wxICOHandler();
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) {
11890 PyObject *obj;
11891 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11892 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11893 Py_INCREF(obj);
11894 return Py_BuildValue((char *)"");
11895 }
11896 static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj;
11898 wxCURHandler *result;
11899 char *kwnames[] = {
11900 NULL
11901 };
11902
11903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (wxCURHandler *)new wxCURHandler();
11907
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) {
11919 PyObject *obj;
11920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11921 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11922 Py_INCREF(obj);
11923 return Py_BuildValue((char *)"");
11924 }
11925 static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11926 PyObject *resultobj;
11927 wxANIHandler *result;
11928 char *kwnames[] = {
11929 NULL
11930 };
11931
11932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (wxANIHandler *)new wxANIHandler();
11936
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11941 return resultobj;
11942 fail:
11943 return NULL;
11944 }
11945
11946
11947 static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) {
11948 PyObject *obj;
11949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11950 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11951 Py_INCREF(obj);
11952 return Py_BuildValue((char *)"");
11953 }
11954 static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11955 PyObject *resultobj;
11956 wxPNGHandler *result;
11957 char *kwnames[] = {
11958 NULL
11959 };
11960
11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 result = (wxPNGHandler *)new wxPNGHandler();
11965
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) {
11977 PyObject *obj;
11978 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11979 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11980 Py_INCREF(obj);
11981 return Py_BuildValue((char *)"");
11982 }
11983 static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj;
11985 wxGIFHandler *result;
11986 char *kwnames[] = {
11987 NULL
11988 };
11989
11990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (wxGIFHandler *)new wxGIFHandler();
11994
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) {
12006 PyObject *obj;
12007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12008 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
12009 Py_INCREF(obj);
12010 return Py_BuildValue((char *)"");
12011 }
12012 static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj;
12014 wxPCXHandler *result;
12015 char *kwnames[] = {
12016 NULL
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (wxPCXHandler *)new wxPCXHandler();
12023
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
12028 return resultobj;
12029 fail:
12030 return NULL;
12031 }
12032
12033
12034 static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) {
12035 PyObject *obj;
12036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12037 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
12038 Py_INCREF(obj);
12039 return Py_BuildValue((char *)"");
12040 }
12041 static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj;
12043 wxJPEGHandler *result;
12044 char *kwnames[] = {
12045 NULL
12046 };
12047
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (wxJPEGHandler *)new wxJPEGHandler();
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
12057 return resultobj;
12058 fail:
12059 return NULL;
12060 }
12061
12062
12063 static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) {
12064 PyObject *obj;
12065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12066 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
12067 Py_INCREF(obj);
12068 return Py_BuildValue((char *)"");
12069 }
12070 static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj;
12072 wxPNMHandler *result;
12073 char *kwnames[] = {
12074 NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = (wxPNMHandler *)new wxPNMHandler();
12081
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) {
12093 PyObject *obj;
12094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12095 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
12096 Py_INCREF(obj);
12097 return Py_BuildValue((char *)"");
12098 }
12099 static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxXPMHandler *result;
12102 char *kwnames[] = {
12103 NULL
12104 };
12105
12106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
12107 {
12108 PyThreadState* __tstate = wxPyBeginAllowThreads();
12109 result = (wxXPMHandler *)new wxXPMHandler();
12110
12111 wxPyEndAllowThreads(__tstate);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
12115 return resultobj;
12116 fail:
12117 return NULL;
12118 }
12119
12120
12121 static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) {
12122 PyObject *obj;
12123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12124 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
12125 Py_INCREF(obj);
12126 return Py_BuildValue((char *)"");
12127 }
12128 static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxTIFFHandler *result;
12131 char *kwnames[] = {
12132 NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (wxTIFFHandler *)new wxTIFFHandler();
12139
12140 wxPyEndAllowThreads(__tstate);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
12144 return resultobj;
12145 fail:
12146 return NULL;
12147 }
12148
12149
12150 static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) {
12151 PyObject *obj;
12152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12153 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
12154 Py_INCREF(obj);
12155 return Py_BuildValue((char *)"");
12156 }
12157 static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxImage *arg1 = 0 ;
12160 wxImage *arg2 = 0 ;
12161 int arg3 = (int) 236 ;
12162 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
12163 bool result;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 PyObject * obj2 = 0 ;
12167 PyObject * obj3 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1)
12175 SWIG_fail;
12176 if (arg1 == NULL) {
12177 PyErr_SetString(PyExc_TypeError,"null reference");
12178 SWIG_fail;
12179 }
12180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
12181 SWIG_POINTER_EXCEPTION | 0)) == -1)
12182 SWIG_fail;
12183 if (arg2 == NULL) {
12184 PyErr_SetString(PyExc_TypeError,"null reference");
12185 SWIG_fail;
12186 }
12187 if (obj2) {
12188 arg3 = (int)SWIG_As_int(obj2);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 if (obj3) {
12192 arg4 = (int)SWIG_As_int(obj3);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
12198
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 {
12203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12204 }
12205 return resultobj;
12206 fail:
12207 return NULL;
12208 }
12209
12210
12211 static PyObject * Quantize_swigregister(PyObject *, PyObject *args) {
12212 PyObject *obj;
12213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12214 SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj);
12215 Py_INCREF(obj);
12216 return Py_BuildValue((char *)"");
12217 }
12218 static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12219 PyObject *resultobj;
12220 wxEvtHandler *result;
12221 char *kwnames[] = {
12222 NULL
12223 };
12224
12225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (wxEvtHandler *)new wxEvtHandler();
12229
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1);
12234 return resultobj;
12235 fail:
12236 return NULL;
12237 }
12238
12239
12240 static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12241 PyObject *resultobj;
12242 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12243 wxEvtHandler *result;
12244 PyObject * obj0 = 0 ;
12245 char *kwnames[] = {
12246 (char *) "self", NULL
12247 };
12248
12249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
12250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12252 {
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 result = (wxEvtHandler *)(arg1)->GetNextHandler();
12255
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 {
12260 resultobj = wxPyMake_wxObject(result, 0);
12261 }
12262 return resultobj;
12263 fail:
12264 return NULL;
12265 }
12266
12267
12268 static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj;
12270 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12271 wxEvtHandler *result;
12272 PyObject * obj0 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
12283
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 {
12288 resultobj = wxPyMake_wxObject(result, 0);
12289 }
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj;
12298 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12299 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
12300 PyObject * obj0 = 0 ;
12301 PyObject * obj1 = 0 ;
12302 char *kwnames[] = {
12303 (char *) "self",(char *) "handler", NULL
12304 };
12305
12306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
12307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
12310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 (arg1)->SetNextHandler(arg2);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 Py_INCREF(Py_None); resultobj = Py_None;
12319 return resultobj;
12320 fail:
12321 return NULL;
12322 }
12323
12324
12325 static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj;
12327 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12328 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
12329 PyObject * obj0 = 0 ;
12330 PyObject * obj1 = 0 ;
12331 char *kwnames[] = {
12332 (char *) "self",(char *) "handler", NULL
12333 };
12334
12335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
12336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
12339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 (arg1)->SetPreviousHandler(arg2);
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 Py_INCREF(Py_None); resultobj = Py_None;
12348 return resultobj;
12349 fail:
12350 return NULL;
12351 }
12352
12353
12354 static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
12355 PyObject *resultobj;
12356 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12357 bool result;
12358 PyObject * obj0 = 0 ;
12359 char *kwnames[] = {
12360 (char *) "self", NULL
12361 };
12362
12363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
12364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = (bool)(arg1)->GetEvtHandlerEnabled();
12369
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 {
12374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12375 }
12376 return resultobj;
12377 fail:
12378 return NULL;
12379 }
12380
12381
12382 static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj;
12384 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12385 bool arg2 ;
12386 PyObject * obj0 = 0 ;
12387 PyObject * obj1 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "self",(char *) "enabled", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
12393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12395 arg2 = (bool)SWIG_As_bool(obj1);
12396 if (PyErr_Occurred()) SWIG_fail;
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 (arg1)->SetEvtHandlerEnabled(arg2);
12400
12401 wxPyEndAllowThreads(__tstate);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 Py_INCREF(Py_None); resultobj = Py_None;
12405 return resultobj;
12406 fail:
12407 return NULL;
12408 }
12409
12410
12411 static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12412 PyObject *resultobj;
12413 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12414 wxEvent *arg2 = 0 ;
12415 bool result;
12416 PyObject * obj0 = 0 ;
12417 PyObject * obj1 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self",(char *) "event", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12426 SWIG_POINTER_EXCEPTION | 0)) == -1)
12427 SWIG_fail;
12428 if (arg2 == NULL) {
12429 PyErr_SetString(PyExc_TypeError,"null reference");
12430 SWIG_fail;
12431 }
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (bool)(arg1)->ProcessEvent(*arg2);
12435
12436 wxPyEndAllowThreads(__tstate);
12437 if (PyErr_Occurred()) SWIG_fail;
12438 }
12439 {
12440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12441 }
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj;
12450 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12451 wxEvent *arg2 = 0 ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "event", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1)
12463 SWIG_fail;
12464 if (arg2 == NULL) {
12465 PyErr_SetString(PyExc_TypeError,"null reference");
12466 SWIG_fail;
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 (arg1)->AddPendingEvent(*arg2);
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 Py_INCREF(Py_None); resultobj = Py_None;
12476 return resultobj;
12477 fail:
12478 return NULL;
12479 }
12480
12481
12482 static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj;
12484 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12485 PyObject * obj0 = 0 ;
12486 char *kwnames[] = {
12487 (char *) "self", NULL
12488 };
12489
12490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
12491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 (arg1)->ProcessPendingEvents();
12496
12497 wxPyEndAllowThreads(__tstate);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 }
12500 Py_INCREF(Py_None); resultobj = Py_None;
12501 return resultobj;
12502 fail:
12503 return NULL;
12504 }
12505
12506
12507 static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) {
12508 PyObject *resultobj;
12509 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12510 int arg2 ;
12511 int arg3 ;
12512 int arg4 ;
12513 PyObject *arg5 = (PyObject *) 0 ;
12514 PyObject * obj0 = 0 ;
12515 PyObject * obj1 = 0 ;
12516 PyObject * obj2 = 0 ;
12517 PyObject * obj3 = 0 ;
12518 PyObject * obj4 = 0 ;
12519 char *kwnames[] = {
12520 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12521 };
12522
12523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12526 arg2 = (int)SWIG_As_int(obj1);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 arg3 = (int)SWIG_As_int(obj2);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 arg4 = (int)SWIG_As_int(obj3);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 arg5 = obj4;
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 Py_INCREF(Py_None); resultobj = Py_None;
12541 return resultobj;
12542 fail:
12543 return NULL;
12544 }
12545
12546
12547 static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj;
12549 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12550 int arg2 ;
12551 int arg3 = (int) -1 ;
12552 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12553 bool result;
12554 PyObject * obj0 = 0 ;
12555 PyObject * obj1 = 0 ;
12556 PyObject * obj2 = 0 ;
12557 PyObject * obj3 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12565 arg2 = (int)SWIG_As_int(obj1);
12566 if (PyErr_Occurred()) SWIG_fail;
12567 if (obj2) {
12568 arg3 = (int)SWIG_As_int(obj2);
12569 if (PyErr_Occurred()) SWIG_fail;
12570 }
12571 if (obj3) {
12572 arg4 = (wxEventType)SWIG_As_int(obj3);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12578
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 {
12583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12584 }
12585 return resultobj;
12586 fail:
12587 return NULL;
12588 }
12589
12590
12591 static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj;
12593 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12594 PyObject *arg2 = (PyObject *) 0 ;
12595 PyObject * obj0 = 0 ;
12596 PyObject * obj1 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self",(char *) "_self", NULL
12599 };
12600
12601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12604 arg2 = obj1;
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 wxEvtHandler__setOORInfo(arg1,arg2);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) {
12620 PyObject *obj;
12621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12622 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12623 Py_INCREF(obj);
12624 return Py_BuildValue((char *)"");
12625 }
12626 static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) {
12627 PyObject *resultobj;
12628 wxEventType result;
12629 char *kwnames[] = {
12630 NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 result = (wxEventType)wxNewEventType();
12637
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 resultobj = SWIG_From_int((int)result);
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxEvent *arg1 = (wxEvent *) 0 ;
12651 PyObject * obj0 = 0 ;
12652 char *kwnames[] = {
12653 (char *) "self", NULL
12654 };
12655
12656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 delete arg1;
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 Py_INCREF(Py_None); resultobj = Py_None;
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj;
12675 wxEvent *arg1 = (wxEvent *) 0 ;
12676 wxEventType arg2 ;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679 char *kwnames[] = {
12680 (char *) "self",(char *) "typ", NULL
12681 };
12682
12683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12686 arg2 = (wxEventType)SWIG_As_int(obj1);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 (arg1)->SetEventType(arg2);
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 Py_INCREF(Py_None); resultobj = Py_None;
12696 return resultobj;
12697 fail:
12698 return NULL;
12699 }
12700
12701
12702 static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
12703 PyObject *resultobj;
12704 wxEvent *arg1 = (wxEvent *) 0 ;
12705 wxEventType result;
12706 PyObject * obj0 = 0 ;
12707 char *kwnames[] = {
12708 (char *) "self", NULL
12709 };
12710
12711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 resultobj = SWIG_From_int((int)result);
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
12729 PyObject *resultobj;
12730 wxEvent *arg1 = (wxEvent *) 0 ;
12731 wxObject *result;
12732 PyObject * obj0 = 0 ;
12733 char *kwnames[] = {
12734 (char *) "self", NULL
12735 };
12736
12737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12743
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 {
12748 resultobj = wxPyMake_wxObject(result, 0);
12749 }
12750 return resultobj;
12751 fail:
12752 return NULL;
12753 }
12754
12755
12756 static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj;
12758 wxEvent *arg1 = (wxEvent *) 0 ;
12759 wxObject *arg2 = (wxObject *) 0 ;
12760 PyObject * obj0 = 0 ;
12761 PyObject * obj1 = 0 ;
12762 char *kwnames[] = {
12763 (char *) "self",(char *) "obj", NULL
12764 };
12765
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 (arg1)->SetEventObject(arg2);
12774
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 Py_INCREF(Py_None); resultobj = Py_None;
12779 return resultobj;
12780 fail:
12781 return NULL;
12782 }
12783
12784
12785 static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj;
12787 wxEvent *arg1 = (wxEvent *) 0 ;
12788 long result;
12789 PyObject * obj0 = 0 ;
12790 char *kwnames[] = {
12791 (char *) "self", NULL
12792 };
12793
12794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_From_long((long)result);
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj;
12813 wxEvent *arg1 = (wxEvent *) 0 ;
12814 long arg2 = (long) 0 ;
12815 PyObject * obj0 = 0 ;
12816 PyObject * obj1 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self",(char *) "ts", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12824 if (obj1) {
12825 arg2 = (long)SWIG_As_long(obj1);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 (arg1)->SetTimestamp(arg2);
12831
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 Py_INCREF(Py_None); resultobj = Py_None;
12836 return resultobj;
12837 fail:
12838 return NULL;
12839 }
12840
12841
12842 static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
12843 PyObject *resultobj;
12844 wxEvent *arg1 = (wxEvent *) 0 ;
12845 int result;
12846 PyObject * obj0 = 0 ;
12847 char *kwnames[] = {
12848 (char *) "self", NULL
12849 };
12850
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (int)((wxEvent const *)arg1)->GetId();
12857
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 resultobj = SWIG_From_int((int)result);
12862 return resultobj;
12863 fail:
12864 return NULL;
12865 }
12866
12867
12868 static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj;
12870 wxEvent *arg1 = (wxEvent *) 0 ;
12871 int arg2 ;
12872 PyObject * obj0 = 0 ;
12873 PyObject * obj1 = 0 ;
12874 char *kwnames[] = {
12875 (char *) "self",(char *) "Id", NULL
12876 };
12877
12878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12881 arg2 = (int)SWIG_As_int(obj1);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 (arg1)->SetId(arg2);
12886
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 Py_INCREF(Py_None); resultobj = Py_None;
12891 return resultobj;
12892 fail:
12893 return NULL;
12894 }
12895
12896
12897 static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
12898 PyObject *resultobj;
12899 wxEvent *arg1 = (wxEvent *) 0 ;
12900 bool result;
12901 PyObject * obj0 = 0 ;
12902 char *kwnames[] = {
12903 (char *) "self", NULL
12904 };
12905
12906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12912
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 {
12917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12918 }
12919 return resultobj;
12920 fail:
12921 return NULL;
12922 }
12923
12924
12925 static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) {
12926 PyObject *resultobj;
12927 wxEvent *arg1 = (wxEvent *) 0 ;
12928 bool arg2 = (bool) true ;
12929 PyObject * obj0 = 0 ;
12930 PyObject * obj1 = 0 ;
12931 char *kwnames[] = {
12932 (char *) "self",(char *) "skip", NULL
12933 };
12934
12935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12938 if (obj1) {
12939 arg2 = (bool)SWIG_As_bool(obj1);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 (arg1)->Skip(arg2);
12945
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 Py_INCREF(Py_None); resultobj = Py_None;
12950 return resultobj;
12951 fail:
12952 return NULL;
12953 }
12954
12955
12956 static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) {
12957 PyObject *resultobj;
12958 wxEvent *arg1 = (wxEvent *) 0 ;
12959 bool result;
12960 PyObject * obj0 = 0 ;
12961 char *kwnames[] = {
12962 (char *) "self", NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12971
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 {
12976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12977 }
12978 return resultobj;
12979 fail:
12980 return NULL;
12981 }
12982
12983
12984 static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) {
12985 PyObject *resultobj;
12986 wxEvent *arg1 = (wxEvent *) 0 ;
12987 bool result;
12988 PyObject * obj0 = 0 ;
12989 char *kwnames[] = {
12990 (char *) "self", NULL
12991 };
12992
12993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12996 {
12997 PyThreadState* __tstate = wxPyBeginAllowThreads();
12998 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12999
13000 wxPyEndAllowThreads(__tstate);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 }
13003 {
13004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13005 }
13006 return resultobj;
13007 fail:
13008 return NULL;
13009 }
13010
13011
13012 static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) {
13013 PyObject *resultobj;
13014 wxEvent *arg1 = (wxEvent *) 0 ;
13015 int result;
13016 PyObject * obj0 = 0 ;
13017 char *kwnames[] = {
13018 (char *) "self", NULL
13019 };
13020
13021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
13022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13024 {
13025 PyThreadState* __tstate = wxPyBeginAllowThreads();
13026 result = (int)(arg1)->StopPropagation();
13027
13028 wxPyEndAllowThreads(__tstate);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 resultobj = SWIG_From_int((int)result);
13032 return resultobj;
13033 fail:
13034 return NULL;
13035 }
13036
13037
13038 static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) {
13039 PyObject *resultobj;
13040 wxEvent *arg1 = (wxEvent *) 0 ;
13041 int arg2 ;
13042 PyObject * obj0 = 0 ;
13043 PyObject * obj1 = 0 ;
13044 char *kwnames[] = {
13045 (char *) "self",(char *) "propagationLevel", NULL
13046 };
13047
13048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
13049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13051 arg2 = (int)SWIG_As_int(obj1);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 (arg1)->ResumePropagation(arg2);
13056
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 Py_INCREF(Py_None); resultobj = Py_None;
13061 return resultobj;
13062 fail:
13063 return NULL;
13064 }
13065
13066
13067 static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj;
13069 wxEvent *arg1 = (wxEvent *) 0 ;
13070 wxEvent *result;
13071 PyObject * obj0 = 0 ;
13072 char *kwnames[] = {
13073 (char *) "self", NULL
13074 };
13075
13076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
13077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = (wxEvent *)(arg1)->Clone();
13082
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13087 return resultobj;
13088 fail:
13089 return NULL;
13090 }
13091
13092
13093 static PyObject * Event_swigregister(PyObject *, PyObject *args) {
13094 PyObject *obj;
13095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13096 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
13097 Py_INCREF(obj);
13098 return Py_BuildValue((char *)"");
13099 }
13100 static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj;
13102 wxEvent *arg1 = 0 ;
13103 wxPropagationDisabler *result;
13104 PyObject * obj0 = 0 ;
13105 char *kwnames[] = {
13106 (char *) "event", NULL
13107 };
13108
13109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
13110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13111 SWIG_POINTER_EXCEPTION | 0)) == -1)
13112 SWIG_fail;
13113 if (arg1 == NULL) {
13114 PyErr_SetString(PyExc_TypeError,"null reference");
13115 SWIG_fail;
13116 }
13117 {
13118 PyThreadState* __tstate = wxPyBeginAllowThreads();
13119 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
13120
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
13125 return resultobj;
13126 fail:
13127 return NULL;
13128 }
13129
13130
13131 static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
13132 PyObject *resultobj;
13133 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
13134 PyObject * obj0 = 0 ;
13135 char *kwnames[] = {
13136 (char *) "self", NULL
13137 };
13138
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
13140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
13141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 delete arg1;
13145
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 Py_INCREF(Py_None); resultobj = Py_None;
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) {
13157 PyObject *obj;
13158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13159 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
13160 Py_INCREF(obj);
13161 return Py_BuildValue((char *)"");
13162 }
13163 static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxEvent *arg1 = 0 ;
13166 wxPropagateOnce *result;
13167 PyObject * obj0 = 0 ;
13168 char *kwnames[] = {
13169 (char *) "event", NULL
13170 };
13171
13172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
13173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13174 SWIG_POINTER_EXCEPTION | 0)) == -1)
13175 SWIG_fail;
13176 if (arg1 == NULL) {
13177 PyErr_SetString(PyExc_TypeError,"null reference");
13178 SWIG_fail;
13179 }
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
13197 PyObject * obj0 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
13203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
13204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 delete arg1;
13208
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 Py_INCREF(Py_None); resultobj = Py_None;
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) {
13220 PyObject *obj;
13221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13222 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
13223 Py_INCREF(obj);
13224 return Py_BuildValue((char *)"");
13225 }
13226 static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj;
13228 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13229 int arg2 = (int) 0 ;
13230 wxCommandEvent *result;
13231 PyObject * obj0 = 0 ;
13232 PyObject * obj1 = 0 ;
13233 char *kwnames[] = {
13234 (char *) "commandType",(char *) "winid", NULL
13235 };
13236
13237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
13238 if (obj0) {
13239 arg1 = (wxEventType)SWIG_As_int(obj0);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 if (obj1) {
13243 arg2 = (int)SWIG_As_int(obj1);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 {
13247 PyThreadState* __tstate = wxPyBeginAllowThreads();
13248 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
13249
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
13254 return resultobj;
13255 fail:
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13263 int result;
13264 PyObject * obj0 = 0 ;
13265 char *kwnames[] = {
13266 (char *) "self", NULL
13267 };
13268
13269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
13270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13272 {
13273 PyThreadState* __tstate = wxPyBeginAllowThreads();
13274 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
13275
13276 wxPyEndAllowThreads(__tstate);
13277 if (PyErr_Occurred()) SWIG_fail;
13278 }
13279 resultobj = SWIG_From_int((int)result);
13280 return resultobj;
13281 fail:
13282 return NULL;
13283 }
13284
13285
13286 static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
13287 PyObject *resultobj;
13288 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13289 wxString *arg2 = 0 ;
13290 bool temp2 = false ;
13291 PyObject * obj0 = 0 ;
13292 PyObject * obj1 = 0 ;
13293 char *kwnames[] = {
13294 (char *) "self",(char *) "s", NULL
13295 };
13296
13297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
13298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13300 {
13301 arg2 = wxString_in_helper(obj1);
13302 if (arg2 == NULL) SWIG_fail;
13303 temp2 = true;
13304 }
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 (arg1)->SetString((wxString const &)*arg2);
13308
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 Py_INCREF(Py_None); resultobj = Py_None;
13313 {
13314 if (temp2)
13315 delete arg2;
13316 }
13317 return resultobj;
13318 fail:
13319 {
13320 if (temp2)
13321 delete arg2;
13322 }
13323 return NULL;
13324 }
13325
13326
13327 static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13330 wxString result;
13331 PyObject * obj0 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "self", NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
13337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = ((wxCommandEvent const *)arg1)->GetString();
13342
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 {
13347 #if wxUSE_UNICODE
13348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13349 #else
13350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13351 #endif
13352 }
13353 return resultobj;
13354 fail:
13355 return NULL;
13356 }
13357
13358
13359 static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj;
13361 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13362 bool result;
13363 PyObject * obj0 = 0 ;
13364 char *kwnames[] = {
13365 (char *) "self", NULL
13366 };
13367
13368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
13369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 {
13379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13380 }
13381 return resultobj;
13382 fail:
13383 return NULL;
13384 }
13385
13386
13387 static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13388 PyObject *resultobj;
13389 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13390 bool result;
13391 PyObject * obj0 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "self", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
13402
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 {
13407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13408 }
13409 return resultobj;
13410 fail:
13411 return NULL;
13412 }
13413
13414
13415 static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj;
13417 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13418 long arg2 ;
13419 PyObject * obj0 = 0 ;
13420 PyObject * obj1 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self",(char *) "extraLong", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
13426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13428 arg2 = (long)SWIG_As_long(obj1);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 (arg1)->SetExtraLong(arg2);
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 Py_INCREF(Py_None); resultobj = Py_None;
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13447 long result;
13448 PyObject * obj0 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_From_long((long)result);
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13473 int arg2 ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char *kwnames[] = {
13477 (char *) "self",(char *) "i", NULL
13478 };
13479
13480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
13481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13483 arg2 = (int)SWIG_As_int(obj1);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->SetInt(arg2);
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 Py_INCREF(Py_None); resultobj = Py_None;
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) {
13500 PyObject *resultobj;
13501 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13502 long result;
13503 PyObject * obj0 = 0 ;
13504 char *kwnames[] = {
13505 (char *) "self", NULL
13506 };
13507
13508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13514
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 resultobj = SWIG_From_long((long)result);
13519 return resultobj;
13520 fail:
13521 return NULL;
13522 }
13523
13524
13525 static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj;
13527 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13528 wxEvent *result;
13529 PyObject * obj0 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self", NULL
13532 };
13533
13534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13540
13541 wxPyEndAllowThreads(__tstate);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13545 return resultobj;
13546 fail:
13547 return NULL;
13548 }
13549
13550
13551 static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) {
13552 PyObject *obj;
13553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13554 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13555 Py_INCREF(obj);
13556 return Py_BuildValue((char *)"");
13557 }
13558 static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13561 int arg2 = (int) 0 ;
13562 wxNotifyEvent *result;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 char *kwnames[] = {
13566 (char *) "commandType",(char *) "winid", NULL
13567 };
13568
13569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13570 if (obj0) {
13571 arg1 = (wxEventType)SWIG_As_int(obj0);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 if (obj1) {
13575 arg2 = (int)SWIG_As_int(obj1);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13595 PyObject * obj0 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 (arg1)->Veto();
13606
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 Py_INCREF(Py_None); resultobj = Py_None;
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13620 PyObject * obj0 = 0 ;
13621 char *kwnames[] = {
13622 (char *) "self", NULL
13623 };
13624
13625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 (arg1)->Allow();
13631
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 Py_INCREF(Py_None); resultobj = Py_None;
13636 return resultobj;
13637 fail:
13638 return NULL;
13639 }
13640
13641
13642 static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj;
13644 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13645 bool result;
13646 PyObject * obj0 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 result = (bool)(arg1)->IsAllowed();
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 {
13662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13663 }
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) {
13671 PyObject *obj;
13672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13673 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13674 Py_INCREF(obj);
13675 return Py_BuildValue((char *)"");
13676 }
13677 static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj;
13679 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13680 int arg2 = (int) 0 ;
13681 int arg3 = (int) 0 ;
13682 int arg4 = (int) 0 ;
13683 wxScrollEvent *result;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 PyObject * obj2 = 0 ;
13687 PyObject * obj3 = 0 ;
13688 char *kwnames[] = {
13689 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13690 };
13691
13692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13693 if (obj0) {
13694 arg1 = (wxEventType)SWIG_As_int(obj0);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 if (obj1) {
13698 arg2 = (int)SWIG_As_int(obj1);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
13701 if (obj2) {
13702 arg3 = (int)SWIG_As_int(obj2);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 if (obj3) {
13706 arg4 = (int)SWIG_As_int(obj3);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13712
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj;
13725 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13726 int result;
13727 PyObject * obj0 = 0 ;
13728 char *kwnames[] = {
13729 (char *) "self", NULL
13730 };
13731
13732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13735 {
13736 PyThreadState* __tstate = wxPyBeginAllowThreads();
13737 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13738
13739 wxPyEndAllowThreads(__tstate);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 resultobj = SWIG_From_int((int)result);
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj;
13751 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13752 int result;
13753 PyObject * obj0 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 resultobj = SWIG_From_int((int)result);
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13778 int arg2 ;
13779 PyObject * obj0 = 0 ;
13780 PyObject * obj1 = 0 ;
13781 char *kwnames[] = {
13782 (char *) "self",(char *) "orient", NULL
13783 };
13784
13785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13788 arg2 = (int)SWIG_As_int(obj1);
13789 if (PyErr_Occurred()) SWIG_fail;
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 (arg1)->SetOrientation(arg2);
13793
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 Py_INCREF(Py_None); resultobj = Py_None;
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj;
13806 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13807 int arg2 ;
13808 PyObject * obj0 = 0 ;
13809 PyObject * obj1 = 0 ;
13810 char *kwnames[] = {
13811 (char *) "self",(char *) "pos", NULL
13812 };
13813
13814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13817 arg2 = (int)SWIG_As_int(obj1);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 (arg1)->SetPosition(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 * ScrollEvent_swigregister(PyObject *, PyObject *args) {
13834 PyObject *obj;
13835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13836 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13837 Py_INCREF(obj);
13838 return Py_BuildValue((char *)"");
13839 }
13840 static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj;
13842 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13843 int arg2 = (int) 0 ;
13844 int arg3 = (int) 0 ;
13845 wxScrollWinEvent *result;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 PyObject * obj2 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13854 if (obj0) {
13855 arg1 = (wxEventType)SWIG_As_int(obj0);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 if (obj1) {
13859 arg2 = (int)SWIG_As_int(obj1);
13860 if (PyErr_Occurred()) SWIG_fail;
13861 }
13862 if (obj2) {
13863 arg3 = (int)SWIG_As_int(obj2);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13883 int result;
13884 PyObject * obj0 = 0 ;
13885 char *kwnames[] = {
13886 (char *) "self", NULL
13887 };
13888
13889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13895
13896 wxPyEndAllowThreads(__tstate);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 resultobj = SWIG_From_int((int)result);
13900 return resultobj;
13901 fail:
13902 return NULL;
13903 }
13904
13905
13906 static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj;
13908 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13909 int result;
13910 PyObject * obj0 = 0 ;
13911 char *kwnames[] = {
13912 (char *) "self", NULL
13913 };
13914
13915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 resultobj = SWIG_From_int((int)result);
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj;
13934 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13935 int arg2 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self",(char *) "orient", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13945 arg2 = (int)SWIG_As_int(obj1);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 (arg1)->SetOrientation(arg2);
13950
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 Py_INCREF(Py_None); resultobj = Py_None;
13955 return resultobj;
13956 fail:
13957 return NULL;
13958 }
13959
13960
13961 static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13964 int arg2 ;
13965 PyObject * obj0 = 0 ;
13966 PyObject * obj1 = 0 ;
13967 char *kwnames[] = {
13968 (char *) "self",(char *) "pos", NULL
13969 };
13970
13971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13974 arg2 = (int)SWIG_As_int(obj1);
13975 if (PyErr_Occurred()) SWIG_fail;
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 (arg1)->SetPosition(arg2);
13979
13980 wxPyEndAllowThreads(__tstate);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 }
13983 Py_INCREF(Py_None); resultobj = Py_None;
13984 return resultobj;
13985 fail:
13986 return NULL;
13987 }
13988
13989
13990 static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) {
13991 PyObject *obj;
13992 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13993 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13994 Py_INCREF(obj);
13995 return Py_BuildValue((char *)"");
13996 }
13997 static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13998 PyObject *resultobj;
13999 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14000 wxMouseEvent *result;
14001 PyObject * obj0 = 0 ;
14002 char *kwnames[] = {
14003 (char *) "mouseType", NULL
14004 };
14005
14006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
14007 if (obj0) {
14008 arg1 = (wxEventType)SWIG_As_int(obj0);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = (wxMouseEvent *)new wxMouseEvent(arg1);
14014
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 {
14019 resultobj = wxPyMake_wxObject(result, 1);
14020 }
14021 return resultobj;
14022 fail:
14023 return NULL;
14024 }
14025
14026
14027 static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
14028 PyObject *resultobj;
14029 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14030 bool result;
14031 PyObject * obj0 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self", NULL
14034 };
14035
14036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
14037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
14042
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 {
14047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14048 }
14049 return resultobj;
14050 fail:
14051 return NULL;
14052 }
14053
14054
14055 static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
14056 PyObject *resultobj;
14057 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14058 int arg2 = (int) wxMOUSE_BTN_ANY ;
14059 bool result;
14060 PyObject * obj0 = 0 ;
14061 PyObject * obj1 = 0 ;
14062 char *kwnames[] = {
14063 (char *) "self",(char *) "but", NULL
14064 };
14065
14066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
14067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14069 if (obj1) {
14070 arg2 = (int)SWIG_As_int(obj1);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
14076
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 {
14081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14082 }
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14092 int arg2 = (int) wxMOUSE_BTN_ANY ;
14093 bool result;
14094 PyObject * obj0 = 0 ;
14095 PyObject * obj1 = 0 ;
14096 char *kwnames[] = {
14097 (char *) "self",(char *) "but", NULL
14098 };
14099
14100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
14101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14103 if (obj1) {
14104 arg2 = (int)SWIG_As_int(obj1);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
14110
14111 wxPyEndAllowThreads(__tstate);
14112 if (PyErr_Occurred()) SWIG_fail;
14113 }
14114 {
14115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14116 }
14117 return resultobj;
14118 fail:
14119 return NULL;
14120 }
14121
14122
14123 static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
14124 PyObject *resultobj;
14125 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14126 int arg2 = (int) wxMOUSE_BTN_ANY ;
14127 bool result;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 char *kwnames[] = {
14131 (char *) "self",(char *) "but", NULL
14132 };
14133
14134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
14135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14137 if (obj1) {
14138 arg2 = (int)SWIG_As_int(obj1);
14139 if (PyErr_Occurred()) SWIG_fail;
14140 }
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
14144
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 {
14149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14150 }
14151 return resultobj;
14152 fail:
14153 return NULL;
14154 }
14155
14156
14157 static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) {
14158 PyObject *resultobj;
14159 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14160 int arg2 ;
14161 bool result;
14162 PyObject * obj0 = 0 ;
14163 PyObject * obj1 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self",(char *) "but", NULL
14166 };
14167
14168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
14169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14171 arg2 = (int)SWIG_As_int(obj1);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 {
14181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14182 }
14183 return resultobj;
14184 fail:
14185 return NULL;
14186 }
14187
14188
14189 static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14190 PyObject *resultobj;
14191 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14192 int arg2 ;
14193 bool result;
14194 PyObject * obj0 = 0 ;
14195 PyObject * obj1 = 0 ;
14196 char *kwnames[] = {
14197 (char *) "self",(char *) "but", NULL
14198 };
14199
14200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
14201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14203 arg2 = (int)SWIG_As_int(obj1);
14204 if (PyErr_Occurred()) SWIG_fail;
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
14208
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 {
14213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14214 }
14215 return resultobj;
14216 fail:
14217 return NULL;
14218 }
14219
14220
14221 static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) {
14222 PyObject *resultobj;
14223 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14224 int result;
14225 PyObject * obj0 = 0 ;
14226 char *kwnames[] = {
14227 (char *) "self", NULL
14228 };
14229
14230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
14231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (int)((wxMouseEvent const *)arg1)->GetButton();
14236
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_From_int((int)result);
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14250 bool result;
14251 PyObject * obj0 = 0 ;
14252 char *kwnames[] = {
14253 (char *) "self", NULL
14254 };
14255
14256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
14257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
14261 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
14262
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 {
14267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14268 }
14269 return resultobj;
14270 fail:
14271 return NULL;
14272 }
14273
14274
14275 static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
14276 PyObject *resultobj;
14277 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14278 bool result;
14279 PyObject * obj0 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
14285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
14290
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 {
14295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14306 bool result;
14307 PyObject * obj0 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
14313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
14318
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 {
14323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14324 }
14325 return resultobj;
14326 fail:
14327 return NULL;
14328 }
14329
14330
14331 static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14334 bool result;
14335 PyObject * obj0 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
14346
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 {
14351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14352 }
14353 return resultobj;
14354 fail:
14355 return NULL;
14356 }
14357
14358
14359 static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj;
14361 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14362 bool result;
14363 PyObject * obj0 = 0 ;
14364 char *kwnames[] = {
14365 (char *) "self", NULL
14366 };
14367
14368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail;
14369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
14374
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 {
14379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14380 }
14381 return resultobj;
14382 fail:
14383 return NULL;
14384 }
14385
14386
14387 static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj;
14389 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14390 bool result;
14391 PyObject * obj0 = 0 ;
14392 char *kwnames[] = {
14393 (char *) "self", NULL
14394 };
14395
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
14402
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14408 }
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
14416 PyObject *resultobj;
14417 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14418 bool result;
14419 PyObject * obj0 = 0 ;
14420 char *kwnames[] = {
14421 (char *) "self", NULL
14422 };
14423
14424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
14425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14427 {
14428 PyThreadState* __tstate = wxPyBeginAllowThreads();
14429 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
14430
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 {
14435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14436 }
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj;
14445 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14446 bool result;
14447 PyObject * obj0 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 {
14463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14464 }
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14474 bool result;
14475 PyObject * obj0 = 0 ;
14476 char *kwnames[] = {
14477 (char *) "self", NULL
14478 };
14479
14480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
14481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14483 {
14484 PyThreadState* __tstate = wxPyBeginAllowThreads();
14485 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
14486
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 {
14491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14492 }
14493 return resultobj;
14494 fail:
14495 return NULL;
14496 }
14497
14498
14499 static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) {
14500 PyObject *resultobj;
14501 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14502 bool result;
14503 PyObject * obj0 = 0 ;
14504 char *kwnames[] = {
14505 (char *) "self", NULL
14506 };
14507
14508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
14509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14511 {
14512 PyThreadState* __tstate = wxPyBeginAllowThreads();
14513 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
14514
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 {
14519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14520 }
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14530 bool result;
14531 PyObject * obj0 = 0 ;
14532 char *kwnames[] = {
14533 (char *) "self", NULL
14534 };
14535
14536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14542
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 {
14547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14548 }
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14558 bool result;
14559 PyObject * obj0 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 {
14575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14576 }
14577 return resultobj;
14578 fail:
14579 return NULL;
14580 }
14581
14582
14583 static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj;
14585 wxMouseEvent *arg1 = (wxMouseEvent *) 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:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14598
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 {
14603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14604 }
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14614 bool result;
14615 PyObject * obj0 = 0 ;
14616 char *kwnames[] = {
14617 (char *) "self", NULL
14618 };
14619
14620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 {
14631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14632 }
14633 return resultobj;
14634 fail:
14635 return NULL;
14636 }
14637
14638
14639 static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14640 PyObject *resultobj;
14641 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14642 bool result;
14643 PyObject * obj0 = 0 ;
14644 char *kwnames[] = {
14645 (char *) "self", NULL
14646 };
14647
14648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 result = (bool)(arg1)->LeftIsDown();
14654
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 {
14659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14660 }
14661 return resultobj;
14662 fail:
14663 return NULL;
14664 }
14665
14666
14667 static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14668 PyObject *resultobj;
14669 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14670 bool result;
14671 PyObject * obj0 = 0 ;
14672 char *kwnames[] = {
14673 (char *) "self", NULL
14674 };
14675
14676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = (bool)(arg1)->MiddleIsDown();
14682
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 {
14687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14688 }
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14698 bool result;
14699 PyObject * obj0 = 0 ;
14700 char *kwnames[] = {
14701 (char *) "self", NULL
14702 };
14703
14704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (bool)(arg1)->RightIsDown();
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 {
14715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14716 }
14717 return resultobj;
14718 fail:
14719 return NULL;
14720 }
14721
14722
14723 static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj;
14725 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14726 bool result;
14727 PyObject * obj0 = 0 ;
14728 char *kwnames[] = {
14729 (char *) "self", NULL
14730 };
14731
14732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14735 {
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14738
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 {
14743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14744 }
14745 return resultobj;
14746 fail:
14747 return NULL;
14748 }
14749
14750
14751 static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj;
14753 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14754 bool result;
14755 PyObject * obj0 = 0 ;
14756 char *kwnames[] = {
14757 (char *) "self", NULL
14758 };
14759
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14766
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 {
14771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14772 }
14773 return resultobj;
14774 fail:
14775 return NULL;
14776 }
14777
14778
14779 static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj;
14781 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14782 bool result;
14783 PyObject * obj0 = 0 ;
14784 char *kwnames[] = {
14785 (char *) "self", NULL
14786 };
14787
14788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 {
14799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14800 }
14801 return resultobj;
14802 fail:
14803 return NULL;
14804 }
14805
14806
14807 static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14810 bool result;
14811 PyObject * obj0 = 0 ;
14812 char *kwnames[] = {
14813 (char *) "self", NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14822
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14828 }
14829 return resultobj;
14830 fail:
14831 return NULL;
14832 }
14833
14834
14835 static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14836 PyObject *resultobj;
14837 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14838 wxPoint result;
14839 PyObject * obj0 = 0 ;
14840 char *kwnames[] = {
14841 (char *) "self", NULL
14842 };
14843
14844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (arg1)->GetPosition();
14850
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 {
14855 wxPoint * resultptr;
14856 resultptr = new wxPoint((wxPoint &) result);
14857 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14858 }
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14868 long *arg2 = (long *) 0 ;
14869 long *arg3 = (long *) 0 ;
14870 long temp2 ;
14871 int res2 = 0 ;
14872 long temp3 ;
14873 int res3 = 0 ;
14874 PyObject * obj0 = 0 ;
14875 char *kwnames[] = {
14876 (char *) "self", NULL
14877 };
14878
14879 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14880 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 (arg1)->GetPosition(arg2,arg3);
14887
14888 wxPyEndAllowThreads(__tstate);
14889 if (PyErr_Occurred()) SWIG_fail;
14890 }
14891 Py_INCREF(Py_None); resultobj = Py_None;
14892 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14893 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
14894 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14895 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
14896 return resultobj;
14897 fail:
14898 return NULL;
14899 }
14900
14901
14902 static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) {
14903 PyObject *resultobj;
14904 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14905 wxDC *arg2 = 0 ;
14906 wxPoint result;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "self",(char *) "dc", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14917 SWIG_POINTER_EXCEPTION | 0)) == -1)
14918 SWIG_fail;
14919 if (arg2 == NULL) {
14920 PyErr_SetString(PyExc_TypeError,"null reference");
14921 SWIG_fail;
14922 }
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14926
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 {
14931 wxPoint * resultptr;
14932 resultptr = new wxPoint((wxPoint &) result);
14933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14934 }
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj;
14943 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14944 int result;
14945 PyObject * obj0 = 0 ;
14946 char *kwnames[] = {
14947 (char *) "self", NULL
14948 };
14949
14950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (int)((wxMouseEvent const *)arg1)->GetX();
14956
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_From_int((int)result);
14961 return resultobj;
14962 fail:
14963 return NULL;
14964 }
14965
14966
14967 static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14970 int result;
14971 PyObject * obj0 = 0 ;
14972 char *kwnames[] = {
14973 (char *) "self", NULL
14974 };
14975
14976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (int)((wxMouseEvent const *)arg1)->GetY();
14982
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_From_int((int)result);
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj;
14995 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14996 int result;
14997 PyObject * obj0 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "self", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 resultobj = SWIG_From_int((int)result);
15013 return resultobj;
15014 fail:
15015 return NULL;
15016 }
15017
15018
15019 static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) {
15020 PyObject *resultobj;
15021 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15022 int result;
15023 PyObject * obj0 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
15034
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 resultobj = SWIG_From_int((int)result);
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) {
15046 PyObject *resultobj;
15047 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15048 int result;
15049 PyObject * obj0 = 0 ;
15050 char *kwnames[] = {
15051 (char *) "self", NULL
15052 };
15053
15054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
15055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
15060
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_From_int((int)result);
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj;
15073 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15074 bool result;
15075 PyObject * obj0 = 0 ;
15076 char *kwnames[] = {
15077 (char *) "self", NULL
15078 };
15079
15080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
15081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
15086
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 {
15091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15092 }
15093 return resultobj;
15094 fail:
15095 return NULL;
15096 }
15097
15098
15099 static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj;
15101 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15102 int arg2 ;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 char *kwnames[] = {
15106 (char *) "self",(char *) "m_x", NULL
15107 };
15108
15109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15112 arg2 = (int)SWIG_As_int(obj1);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 if (arg1) (arg1)->m_x = arg2;
15115
15116 Py_INCREF(Py_None); resultobj = Py_None;
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj;
15125 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15126 int result;
15127 PyObject * obj0 = 0 ;
15128 char *kwnames[] = {
15129 (char *) "self", NULL
15130 };
15131
15132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
15133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15135 result = (int) ((arg1)->m_x);
15136
15137 resultobj = SWIG_From_int((int)result);
15138 return resultobj;
15139 fail:
15140 return NULL;
15141 }
15142
15143
15144 static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj;
15146 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15147 int arg2 ;
15148 PyObject * obj0 = 0 ;
15149 PyObject * obj1 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self",(char *) "m_y", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15157 arg2 = (int)SWIG_As_int(obj1);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 if (arg1) (arg1)->m_y = arg2;
15160
15161 Py_INCREF(Py_None); resultobj = Py_None;
15162 return resultobj;
15163 fail:
15164 return NULL;
15165 }
15166
15167
15168 static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
15169 PyObject *resultobj;
15170 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15171 int result;
15172 PyObject * obj0 = 0 ;
15173 char *kwnames[] = {
15174 (char *) "self", NULL
15175 };
15176
15177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
15178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15180 result = (int) ((arg1)->m_y);
15181
15182 resultobj = SWIG_From_int((int)result);
15183 return resultobj;
15184 fail:
15185 return NULL;
15186 }
15187
15188
15189 static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15190 PyObject *resultobj;
15191 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15192 bool arg2 ;
15193 PyObject * obj0 = 0 ;
15194 PyObject * obj1 = 0 ;
15195 char *kwnames[] = {
15196 (char *) "self",(char *) "m_leftDown", NULL
15197 };
15198
15199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
15200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15202 arg2 = (bool)SWIG_As_bool(obj1);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 if (arg1) (arg1)->m_leftDown = arg2;
15205
15206 Py_INCREF(Py_None); resultobj = Py_None;
15207 return resultobj;
15208 fail:
15209 return NULL;
15210 }
15211
15212
15213 static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj;
15215 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15216 bool result;
15217 PyObject * obj0 = 0 ;
15218 char *kwnames[] = {
15219 (char *) "self", NULL
15220 };
15221
15222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
15223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15225 result = (bool) ((arg1)->m_leftDown);
15226
15227 {
15228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15229 }
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj;
15238 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15239 bool arg2 ;
15240 PyObject * obj0 = 0 ;
15241 PyObject * obj1 = 0 ;
15242 char *kwnames[] = {
15243 (char *) "self",(char *) "m_middleDown", NULL
15244 };
15245
15246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
15247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15249 arg2 = (bool)SWIG_As_bool(obj1);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 if (arg1) (arg1)->m_middleDown = arg2;
15252
15253 Py_INCREF(Py_None); resultobj = Py_None;
15254 return resultobj;
15255 fail:
15256 return NULL;
15257 }
15258
15259
15260 static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15261 PyObject *resultobj;
15262 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15263 bool result;
15264 PyObject * obj0 = 0 ;
15265 char *kwnames[] = {
15266 (char *) "self", NULL
15267 };
15268
15269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
15270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15272 result = (bool) ((arg1)->m_middleDown);
15273
15274 {
15275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15276 }
15277 return resultobj;
15278 fail:
15279 return NULL;
15280 }
15281
15282
15283 static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15284 PyObject *resultobj;
15285 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15286 bool arg2 ;
15287 PyObject * obj0 = 0 ;
15288 PyObject * obj1 = 0 ;
15289 char *kwnames[] = {
15290 (char *) "self",(char *) "m_rightDown", NULL
15291 };
15292
15293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
15294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15296 arg2 = (bool)SWIG_As_bool(obj1);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 if (arg1) (arg1)->m_rightDown = arg2;
15299
15300 Py_INCREF(Py_None); resultobj = Py_None;
15301 return resultobj;
15302 fail:
15303 return NULL;
15304 }
15305
15306
15307 static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15308 PyObject *resultobj;
15309 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15310 bool result;
15311 PyObject * obj0 = 0 ;
15312 char *kwnames[] = {
15313 (char *) "self", NULL
15314 };
15315
15316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
15317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15319 result = (bool) ((arg1)->m_rightDown);
15320
15321 {
15322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15323 }
15324 return resultobj;
15325 fail:
15326 return NULL;
15327 }
15328
15329
15330 static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj;
15332 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15333 bool arg2 ;
15334 PyObject * obj0 = 0 ;
15335 PyObject * obj1 = 0 ;
15336 char *kwnames[] = {
15337 (char *) "self",(char *) "m_controlDown", NULL
15338 };
15339
15340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15343 arg2 = (bool)SWIG_As_bool(obj1);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 if (arg1) (arg1)->m_controlDown = arg2;
15346
15347 Py_INCREF(Py_None); resultobj = Py_None;
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15357 bool result;
15358 PyObject * obj0 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "self", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15366 result = (bool) ((arg1)->m_controlDown);
15367
15368 {
15369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15370 }
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15378 PyObject *resultobj;
15379 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15380 bool arg2 ;
15381 PyObject * obj0 = 0 ;
15382 PyObject * obj1 = 0 ;
15383 char *kwnames[] = {
15384 (char *) "self",(char *) "m_shiftDown", NULL
15385 };
15386
15387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15390 arg2 = (bool)SWIG_As_bool(obj1);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 if (arg1) (arg1)->m_shiftDown = arg2;
15393
15394 Py_INCREF(Py_None); resultobj = Py_None;
15395 return resultobj;
15396 fail:
15397 return NULL;
15398 }
15399
15400
15401 static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15402 PyObject *resultobj;
15403 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15404 bool result;
15405 PyObject * obj0 = 0 ;
15406 char *kwnames[] = {
15407 (char *) "self", NULL
15408 };
15409
15410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15413 result = (bool) ((arg1)->m_shiftDown);
15414
15415 {
15416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15417 }
15418 return resultobj;
15419 fail:
15420 return NULL;
15421 }
15422
15423
15424 static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15425 PyObject *resultobj;
15426 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15427 bool arg2 ;
15428 PyObject * obj0 = 0 ;
15429 PyObject * obj1 = 0 ;
15430 char *kwnames[] = {
15431 (char *) "self",(char *) "m_altDown", NULL
15432 };
15433
15434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15437 arg2 = (bool)SWIG_As_bool(obj1);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 if (arg1) (arg1)->m_altDown = arg2;
15440
15441 Py_INCREF(Py_None); resultobj = Py_None;
15442 return resultobj;
15443 fail:
15444 return NULL;
15445 }
15446
15447
15448 static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15449 PyObject *resultobj;
15450 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15451 bool result;
15452 PyObject * obj0 = 0 ;
15453 char *kwnames[] = {
15454 (char *) "self", NULL
15455 };
15456
15457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15460 result = (bool) ((arg1)->m_altDown);
15461
15462 {
15463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15464 }
15465 return resultobj;
15466 fail:
15467 return NULL;
15468 }
15469
15470
15471 static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
15472 PyObject *resultobj;
15473 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15474 bool arg2 ;
15475 PyObject * obj0 = 0 ;
15476 PyObject * obj1 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "self",(char *) "m_metaDown", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15484 arg2 = (bool)SWIG_As_bool(obj1);
15485 if (PyErr_Occurred()) SWIG_fail;
15486 if (arg1) (arg1)->m_metaDown = arg2;
15487
15488 Py_INCREF(Py_None); resultobj = Py_None;
15489 return resultobj;
15490 fail:
15491 return NULL;
15492 }
15493
15494
15495 static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
15496 PyObject *resultobj;
15497 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15498 bool result;
15499 PyObject * obj0 = 0 ;
15500 char *kwnames[] = {
15501 (char *) "self", NULL
15502 };
15503
15504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15507 result = (bool) ((arg1)->m_metaDown);
15508
15509 {
15510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15511 }
15512 return resultobj;
15513 fail:
15514 return NULL;
15515 }
15516
15517
15518 static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15521 int arg2 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self",(char *) "m_wheelRotation", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 arg2 = (int)SWIG_As_int(obj1);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 if (arg1) (arg1)->m_wheelRotation = arg2;
15534
15535 Py_INCREF(Py_None); resultobj = Py_None;
15536 return resultobj;
15537 fail:
15538 return NULL;
15539 }
15540
15541
15542 static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15545 int result;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "self", NULL
15549 };
15550
15551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15554 result = (int) ((arg1)->m_wheelRotation);
15555
15556 resultobj = SWIG_From_int((int)result);
15557 return resultobj;
15558 fail:
15559 return NULL;
15560 }
15561
15562
15563 static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) {
15564 PyObject *resultobj;
15565 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15566 int arg2 ;
15567 PyObject * obj0 = 0 ;
15568 PyObject * obj1 = 0 ;
15569 char *kwnames[] = {
15570 (char *) "self",(char *) "m_wheelDelta", NULL
15571 };
15572
15573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15576 arg2 = (int)SWIG_As_int(obj1);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 if (arg1) (arg1)->m_wheelDelta = arg2;
15579
15580 Py_INCREF(Py_None); resultobj = Py_None;
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj;
15589 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15590 int result;
15591 PyObject * obj0 = 0 ;
15592 char *kwnames[] = {
15593 (char *) "self", NULL
15594 };
15595
15596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15599 result = (int) ((arg1)->m_wheelDelta);
15600
15601 resultobj = SWIG_From_int((int)result);
15602 return resultobj;
15603 fail:
15604 return NULL;
15605 }
15606
15607
15608 static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) {
15609 PyObject *resultobj;
15610 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15611 int arg2 ;
15612 PyObject * obj0 = 0 ;
15613 PyObject * obj1 = 0 ;
15614 char *kwnames[] = {
15615 (char *) "self",(char *) "m_linesPerAction", NULL
15616 };
15617
15618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15621 arg2 = (int)SWIG_As_int(obj1);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 if (arg1) (arg1)->m_linesPerAction = arg2;
15624
15625 Py_INCREF(Py_None); resultobj = Py_None;
15626 return resultobj;
15627 fail:
15628 return NULL;
15629 }
15630
15631
15632 static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj;
15634 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15635 int result;
15636 PyObject * obj0 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 result = (int) ((arg1)->m_linesPerAction);
15645
15646 resultobj = SWIG_From_int((int)result);
15647 return resultobj;
15648 fail:
15649 return NULL;
15650 }
15651
15652
15653 static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) {
15654 PyObject *obj;
15655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15656 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15657 Py_INCREF(obj);
15658 return Py_BuildValue((char *)"");
15659 }
15660 static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 int arg1 = (int) 0 ;
15663 int arg2 = (int) 0 ;
15664 wxSetCursorEvent *result;
15665 PyObject * obj0 = 0 ;
15666 PyObject * obj1 = 0 ;
15667 char *kwnames[] = {
15668 (char *) "x",(char *) "y", NULL
15669 };
15670
15671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15672 if (obj0) {
15673 arg1 = (int)SWIG_As_int(obj0);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 if (obj1) {
15677 arg2 = (int)SWIG_As_int(obj1);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15683
15684 wxPyEndAllowThreads(__tstate);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15688 return resultobj;
15689 fail:
15690 return NULL;
15691 }
15692
15693
15694 static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
15695 PyObject *resultobj;
15696 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15697 int result;
15698 PyObject * obj0 = 0 ;
15699 char *kwnames[] = {
15700 (char *) "self", NULL
15701 };
15702
15703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15706 {
15707 PyThreadState* __tstate = wxPyBeginAllowThreads();
15708 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15709
15710 wxPyEndAllowThreads(__tstate);
15711 if (PyErr_Occurred()) SWIG_fail;
15712 }
15713 resultobj = SWIG_From_int((int)result);
15714 return resultobj;
15715 fail:
15716 return NULL;
15717 }
15718
15719
15720 static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj;
15722 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15723 int result;
15724 PyObject * obj0 = 0 ;
15725 char *kwnames[] = {
15726 (char *) "self", NULL
15727 };
15728
15729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15735
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_From_int((int)result);
15740 return resultobj;
15741 fail:
15742 return NULL;
15743 }
15744
15745
15746 static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
15747 PyObject *resultobj;
15748 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15749 wxCursor *arg2 = 0 ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 char *kwnames[] = {
15753 (char *) "self",(char *) "cursor", NULL
15754 };
15755
15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15760 SWIG_POINTER_EXCEPTION | 0)) == -1)
15761 SWIG_fail;
15762 if (arg2 == NULL) {
15763 PyErr_SetString(PyExc_TypeError,"null reference");
15764 SWIG_fail;
15765 }
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 (arg1)->SetCursor((wxCursor const &)*arg2);
15769
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 Py_INCREF(Py_None); resultobj = Py_None;
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
15781 PyObject *resultobj;
15782 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15783 wxCursor *result;
15784 PyObject * obj0 = 0 ;
15785 char *kwnames[] = {
15786 (char *) "self", NULL
15787 };
15788
15789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 {
15795 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15796 result = (wxCursor *) &_result_ref;
15797 }
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 {
15803 wxCursor* resultptr = new wxCursor(*result);
15804 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15805 }
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj;
15814 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15815 bool result;
15816 PyObject * obj0 = 0 ;
15817 char *kwnames[] = {
15818 (char *) "self", NULL
15819 };
15820
15821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 {
15832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15833 }
15834 return resultobj;
15835 fail:
15836 return NULL;
15837 }
15838
15839
15840 static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) {
15841 PyObject *obj;
15842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15843 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15844 Py_INCREF(obj);
15845 return Py_BuildValue((char *)"");
15846 }
15847 static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj;
15849 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15850 wxKeyEvent *result;
15851 PyObject * obj0 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "keyType", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15857 if (obj0) {
15858 arg1 = (wxEventType)SWIG_As_int(obj0);
15859 if (PyErr_Occurred()) SWIG_fail;
15860 }
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15864
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15869 return resultobj;
15870 fail:
15871 return NULL;
15872 }
15873
15874
15875 static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15878 bool result;
15879 PyObject * obj0 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "self", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15890
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 {
15895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15896 }
15897 return resultobj;
15898 fail:
15899 return NULL;
15900 }
15901
15902
15903 static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj;
15905 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15906 bool result;
15907 PyObject * obj0 = 0 ;
15908 char *kwnames[] = {
15909 (char *) "self", NULL
15910 };
15911
15912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15915 {
15916 PyThreadState* __tstate = wxPyBeginAllowThreads();
15917 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15918
15919 wxPyEndAllowThreads(__tstate);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 {
15923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15924 }
15925 return resultobj;
15926 fail:
15927 return NULL;
15928 }
15929
15930
15931 static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15934 bool result;
15935 PyObject * obj0 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "self", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15943 {
15944 PyThreadState* __tstate = wxPyBeginAllowThreads();
15945 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15946
15947 wxPyEndAllowThreads(__tstate);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 }
15950 {
15951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15952 }
15953 return resultobj;
15954 fail:
15955 return NULL;
15956 }
15957
15958
15959 static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
15960 PyObject *resultobj;
15961 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15962 bool result;
15963 PyObject * obj0 = 0 ;
15964 char *kwnames[] = {
15965 (char *) "self", NULL
15966 };
15967
15968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15974
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
15979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15980 }
15981 return resultobj;
15982 fail:
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15990 bool result;
15991 PyObject * obj0 = 0 ;
15992 char *kwnames[] = {
15993 (char *) "self", NULL
15994 };
15995
15996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail;
15997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 {
16007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16008 }
16009 return resultobj;
16010 fail:
16011 return NULL;
16012 }
16013
16014
16015 static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj;
16017 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16018 bool result;
16019 PyObject * obj0 = 0 ;
16020 char *kwnames[] = {
16021 (char *) "self", NULL
16022 };
16023
16024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
16025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16027 {
16028 PyThreadState* __tstate = wxPyBeginAllowThreads();
16029 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
16030
16031 wxPyEndAllowThreads(__tstate);
16032 if (PyErr_Occurred()) SWIG_fail;
16033 }
16034 {
16035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16036 }
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj;
16045 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16046 int result;
16047 PyObject * obj0 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "self", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
16053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 resultobj = SWIG_From_int((int)result);
16063 return resultobj;
16064 fail:
16065 return NULL;
16066 }
16067
16068
16069 static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) {
16070 PyObject *resultobj;
16071 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16072 int result;
16073 PyObject * obj0 = 0 ;
16074 char *kwnames[] = {
16075 (char *) "self", NULL
16076 };
16077
16078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
16079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16081 {
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
16083 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
16084
16085 wxPyEndAllowThreads(__tstate);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 resultobj = SWIG_From_int((int)result);
16089 return resultobj;
16090 fail:
16091 return NULL;
16092 }
16093
16094
16095 static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj;
16097 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16098 unsigned int result;
16099 PyObject * obj0 = 0 ;
16100 char *kwnames[] = {
16101 (char *) "self", NULL
16102 };
16103
16104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
16105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16107 {
16108 PyThreadState* __tstate = wxPyBeginAllowThreads();
16109 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
16110
16111 wxPyEndAllowThreads(__tstate);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 }
16114 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
16115 return resultobj;
16116 fail:
16117 return NULL;
16118 }
16119
16120
16121 static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) {
16122 PyObject *resultobj;
16123 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16124 unsigned int result;
16125 PyObject * obj0 = 0 ;
16126 char *kwnames[] = {
16127 (char *) "self", NULL
16128 };
16129
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
16131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16133 {
16134 PyThreadState* __tstate = wxPyBeginAllowThreads();
16135 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
16136
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
16141 return resultobj;
16142 fail:
16143 return NULL;
16144 }
16145
16146
16147 static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj;
16149 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16150 wxPoint result;
16151 PyObject * obj0 = 0 ;
16152 char *kwnames[] = {
16153 (char *) "self", NULL
16154 };
16155
16156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
16157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16159 {
16160 PyThreadState* __tstate = wxPyBeginAllowThreads();
16161 result = (arg1)->GetPosition();
16162
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 {
16167 wxPoint * resultptr;
16168 resultptr = new wxPoint((wxPoint &) result);
16169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16170 }
16171 return resultobj;
16172 fail:
16173 return NULL;
16174 }
16175
16176
16177 static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16178 PyObject *resultobj;
16179 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16180 long *arg2 = (long *) 0 ;
16181 long *arg3 = (long *) 0 ;
16182 long temp2 ;
16183 int res2 = 0 ;
16184 long temp3 ;
16185 int res3 = 0 ;
16186 PyObject * obj0 = 0 ;
16187 char *kwnames[] = {
16188 (char *) "self", NULL
16189 };
16190
16191 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16192 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
16194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16196 {
16197 PyThreadState* __tstate = wxPyBeginAllowThreads();
16198 (arg1)->GetPosition(arg2,arg3);
16199
16200 wxPyEndAllowThreads(__tstate);
16201 if (PyErr_Occurred()) SWIG_fail;
16202 }
16203 Py_INCREF(Py_None); resultobj = Py_None;
16204 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16205 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
16206 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16207 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
16215 PyObject *resultobj;
16216 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16217 int result;
16218 PyObject * obj0 = 0 ;
16219 char *kwnames[] = {
16220 (char *) "self", NULL
16221 };
16222
16223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
16224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 result = (int)((wxKeyEvent const *)arg1)->GetX();
16229
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 resultobj = SWIG_From_int((int)result);
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj;
16242 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16243 int result;
16244 PyObject * obj0 = 0 ;
16245 char *kwnames[] = {
16246 (char *) "self", NULL
16247 };
16248
16249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
16250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 result = (int)((wxKeyEvent const *)arg1)->GetY();
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 resultobj = SWIG_From_int((int)result);
16260 return resultobj;
16261 fail:
16262 return NULL;
16263 }
16264
16265
16266 static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj;
16268 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16269 int arg2 ;
16270 PyObject * obj0 = 0 ;
16271 PyObject * obj1 = 0 ;
16272 char *kwnames[] = {
16273 (char *) "self",(char *) "m_x", NULL
16274 };
16275
16276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
16277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16279 arg2 = (int)SWIG_As_int(obj1);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 if (arg1) (arg1)->m_x = arg2;
16282
16283 Py_INCREF(Py_None); resultobj = Py_None;
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16293 int result;
16294 PyObject * obj0 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
16300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16302 result = (int) ((arg1)->m_x);
16303
16304 resultobj = SWIG_From_int((int)result);
16305 return resultobj;
16306 fail:
16307 return NULL;
16308 }
16309
16310
16311 static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
16312 PyObject *resultobj;
16313 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16314 int arg2 ;
16315 PyObject * obj0 = 0 ;
16316 PyObject * obj1 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self",(char *) "m_y", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
16322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16324 arg2 = (int)SWIG_As_int(obj1);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 if (arg1) (arg1)->m_y = arg2;
16327
16328 Py_INCREF(Py_None); resultobj = Py_None;
16329 return resultobj;
16330 fail:
16331 return NULL;
16332 }
16333
16334
16335 static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj;
16337 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16338 int result;
16339 PyObject * obj0 = 0 ;
16340 char *kwnames[] = {
16341 (char *) "self", NULL
16342 };
16343
16344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
16345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16347 result = (int) ((arg1)->m_y);
16348
16349 resultobj = SWIG_From_int((int)result);
16350 return resultobj;
16351 fail:
16352 return NULL;
16353 }
16354
16355
16356 static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
16357 PyObject *resultobj;
16358 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16359 long arg2 ;
16360 PyObject * obj0 = 0 ;
16361 PyObject * obj1 = 0 ;
16362 char *kwnames[] = {
16363 (char *) "self",(char *) "m_keyCode", NULL
16364 };
16365
16366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
16367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16369 arg2 = (long)SWIG_As_long(obj1);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 if (arg1) (arg1)->m_keyCode = arg2;
16372
16373 Py_INCREF(Py_None); resultobj = Py_None;
16374 return resultobj;
16375 fail:
16376 return NULL;
16377 }
16378
16379
16380 static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
16381 PyObject *resultobj;
16382 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16383 long result;
16384 PyObject * obj0 = 0 ;
16385 char *kwnames[] = {
16386 (char *) "self", NULL
16387 };
16388
16389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
16390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16392 result = (long) ((arg1)->m_keyCode);
16393
16394 resultobj = SWIG_From_long((long)result);
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj;
16403 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16404 bool arg2 ;
16405 PyObject * obj0 = 0 ;
16406 PyObject * obj1 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self",(char *) "m_controlDown", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
16412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16414 arg2 = (bool)SWIG_As_bool(obj1);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 if (arg1) (arg1)->m_controlDown = arg2;
16417
16418 Py_INCREF(Py_None); resultobj = Py_None;
16419 return resultobj;
16420 fail:
16421 return NULL;
16422 }
16423
16424
16425 static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
16426 PyObject *resultobj;
16427 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16428 bool result;
16429 PyObject * obj0 = 0 ;
16430 char *kwnames[] = {
16431 (char *) "self", NULL
16432 };
16433
16434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
16435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16437 result = (bool) ((arg1)->m_controlDown);
16438
16439 {
16440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16441 }
16442 return resultobj;
16443 fail:
16444 return NULL;
16445 }
16446
16447
16448 static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16451 bool arg2 ;
16452 PyObject * obj0 = 0 ;
16453 PyObject * obj1 = 0 ;
16454 char *kwnames[] = {
16455 (char *) "self",(char *) "m_shiftDown", NULL
16456 };
16457
16458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
16459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16461 arg2 = (bool)SWIG_As_bool(obj1);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 if (arg1) (arg1)->m_shiftDown = arg2;
16464
16465 Py_INCREF(Py_None); resultobj = Py_None;
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
16473 PyObject *resultobj;
16474 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16475 bool result;
16476 PyObject * obj0 = 0 ;
16477 char *kwnames[] = {
16478 (char *) "self", NULL
16479 };
16480
16481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
16482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16484 result = (bool) ((arg1)->m_shiftDown);
16485
16486 {
16487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16488 }
16489 return resultobj;
16490 fail:
16491 return NULL;
16492 }
16493
16494
16495 static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj;
16497 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16498 bool arg2 ;
16499 PyObject * obj0 = 0 ;
16500 PyObject * obj1 = 0 ;
16501 char *kwnames[] = {
16502 (char *) "self",(char *) "m_altDown", NULL
16503 };
16504
16505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16508 arg2 = (bool)SWIG_As_bool(obj1);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 if (arg1) (arg1)->m_altDown = arg2;
16511
16512 Py_INCREF(Py_None); resultobj = Py_None;
16513 return resultobj;
16514 fail:
16515 return NULL;
16516 }
16517
16518
16519 static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj;
16521 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16522 bool result;
16523 PyObject * obj0 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "self", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16531 result = (bool) ((arg1)->m_altDown);
16532
16533 {
16534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16535 }
16536 return resultobj;
16537 fail:
16538 return NULL;
16539 }
16540
16541
16542 static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj;
16544 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16545 bool arg2 ;
16546 PyObject * obj0 = 0 ;
16547 PyObject * obj1 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "self",(char *) "m_metaDown", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16555 arg2 = (bool)SWIG_As_bool(obj1);
16556 if (PyErr_Occurred()) SWIG_fail;
16557 if (arg1) (arg1)->m_metaDown = arg2;
16558
16559 Py_INCREF(Py_None); resultobj = Py_None;
16560 return resultobj;
16561 fail:
16562 return NULL;
16563 }
16564
16565
16566 static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
16567 PyObject *resultobj;
16568 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16569 bool result;
16570 PyObject * obj0 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 result = (bool) ((arg1)->m_metaDown);
16579
16580 {
16581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16582 }
16583 return resultobj;
16584 fail:
16585 return NULL;
16586 }
16587
16588
16589 static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16592 bool arg2 ;
16593 PyObject * obj0 = 0 ;
16594 PyObject * obj1 = 0 ;
16595 char *kwnames[] = {
16596 (char *) "self",(char *) "m_scanCode", NULL
16597 };
16598
16599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16602 arg2 = (bool)SWIG_As_bool(obj1);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 if (arg1) (arg1)->m_scanCode = arg2;
16605
16606 Py_INCREF(Py_None); resultobj = Py_None;
16607 return resultobj;
16608 fail:
16609 return NULL;
16610 }
16611
16612
16613 static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
16614 PyObject *resultobj;
16615 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16616 bool result;
16617 PyObject * obj0 = 0 ;
16618 char *kwnames[] = {
16619 (char *) "self", NULL
16620 };
16621
16622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16625 result = (bool) ((arg1)->m_scanCode);
16626
16627 {
16628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16629 }
16630 return resultobj;
16631 fail:
16632 return NULL;
16633 }
16634
16635
16636 static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16639 unsigned int arg2 ;
16640 PyObject * obj0 = 0 ;
16641 PyObject * obj1 = 0 ;
16642 char *kwnames[] = {
16643 (char *) "self",(char *) "m_rawCode", NULL
16644 };
16645
16646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16649 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 if (arg1) (arg1)->m_rawCode = arg2;
16652
16653 Py_INCREF(Py_None); resultobj = Py_None;
16654 return resultobj;
16655 fail:
16656 return NULL;
16657 }
16658
16659
16660 static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
16661 PyObject *resultobj;
16662 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16663 unsigned int result;
16664 PyObject * obj0 = 0 ;
16665 char *kwnames[] = {
16666 (char *) "self", NULL
16667 };
16668
16669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16672 result = (unsigned int) ((arg1)->m_rawCode);
16673
16674 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
16675 return resultobj;
16676 fail:
16677 return NULL;
16678 }
16679
16680
16681 static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj;
16683 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16684 unsigned int arg2 ;
16685 PyObject * obj0 = 0 ;
16686 PyObject * obj1 = 0 ;
16687 char *kwnames[] = {
16688 (char *) "self",(char *) "m_rawFlags", NULL
16689 };
16690
16691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16694 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 if (arg1) (arg1)->m_rawFlags = arg2;
16697
16698 Py_INCREF(Py_None); resultobj = Py_None;
16699 return resultobj;
16700 fail:
16701 return NULL;
16702 }
16703
16704
16705 static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) {
16706 PyObject *resultobj;
16707 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16708 unsigned int result;
16709 PyObject * obj0 = 0 ;
16710 char *kwnames[] = {
16711 (char *) "self", NULL
16712 };
16713
16714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16717 result = (unsigned int) ((arg1)->m_rawFlags);
16718
16719 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) {
16727 PyObject *obj;
16728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16729 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16730 Py_INCREF(obj);
16731 return Py_BuildValue((char *)"");
16732 }
16733 static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16734 PyObject *resultobj;
16735 wxSize const &arg1_defvalue = wxDefaultSize ;
16736 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16737 int arg2 = (int) 0 ;
16738 wxSizeEvent *result;
16739 wxSize temp1 ;
16740 PyObject * obj0 = 0 ;
16741 PyObject * obj1 = 0 ;
16742 char *kwnames[] = {
16743 (char *) "sz",(char *) "winid", NULL
16744 };
16745
16746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16747 if (obj0) {
16748 {
16749 arg1 = &temp1;
16750 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16751 }
16752 }
16753 if (obj1) {
16754 arg2 = (int)SWIG_As_int(obj1);
16755 if (PyErr_Occurred()) SWIG_fail;
16756 }
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16760
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16765 return resultobj;
16766 fail:
16767 return NULL;
16768 }
16769
16770
16771 static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16772 PyObject *resultobj;
16773 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16774 wxSize result;
16775 PyObject * obj0 = 0 ;
16776 char *kwnames[] = {
16777 (char *) "self", NULL
16778 };
16779
16780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 result = ((wxSizeEvent const *)arg1)->GetSize();
16786
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 {
16791 wxSize * resultptr;
16792 resultptr = new wxSize((wxSize &) result);
16793 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16794 }
16795 return resultobj;
16796 fail:
16797 return NULL;
16798 }
16799
16800
16801 static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
16802 PyObject *resultobj;
16803 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16804 wxRect result;
16805 PyObject * obj0 = 0 ;
16806 char *kwnames[] = {
16807 (char *) "self", NULL
16808 };
16809
16810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = ((wxSizeEvent const *)arg1)->GetRect();
16816
16817 wxPyEndAllowThreads(__tstate);
16818 if (PyErr_Occurred()) SWIG_fail;
16819 }
16820 {
16821 wxRect * resultptr;
16822 resultptr = new wxRect((wxRect &) result);
16823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16824 }
16825 return resultobj;
16826 fail:
16827 return NULL;
16828 }
16829
16830
16831 static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj;
16833 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16834 wxRect arg2 ;
16835 wxRect *argp2 ;
16836 PyObject * obj0 = 0 ;
16837 PyObject * obj1 = 0 ;
16838 char *kwnames[] = {
16839 (char *) "self",(char *) "rect", NULL
16840 };
16841
16842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16845 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16846 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16847 arg2 = *argp2;
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 (arg1)->SetRect(arg2);
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 Py_INCREF(Py_None); resultobj = Py_None;
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16863 PyObject *resultobj;
16864 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16865 wxSize arg2 ;
16866 wxSize *argp2 ;
16867 PyObject * obj0 = 0 ;
16868 PyObject * obj1 = 0 ;
16869 char *kwnames[] = {
16870 (char *) "self",(char *) "size", NULL
16871 };
16872
16873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16876 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16877 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16878 arg2 = *argp2;
16879 {
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
16881 wxSizeEvent_SetSize(arg1,arg2);
16882
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 Py_INCREF(Py_None); resultobj = Py_None;
16887 return resultobj;
16888 fail:
16889 return NULL;
16890 }
16891
16892
16893 static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) {
16894 PyObject *resultobj;
16895 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16896 wxSize *arg2 = (wxSize *) 0 ;
16897 PyObject * obj0 = 0 ;
16898 PyObject * obj1 = 0 ;
16899 char *kwnames[] = {
16900 (char *) "self",(char *) "m_size", NULL
16901 };
16902
16903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16908 if (arg1) (arg1)->m_size = *arg2;
16909
16910 Py_INCREF(Py_None); resultobj = Py_None;
16911 return resultobj;
16912 fail:
16913 return NULL;
16914 }
16915
16916
16917 static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) {
16918 PyObject *resultobj;
16919 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16920 wxSize *result;
16921 PyObject * obj0 = 0 ;
16922 char *kwnames[] = {
16923 (char *) "self", NULL
16924 };
16925
16926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16929 result = (wxSize *)& ((arg1)->m_size);
16930
16931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16941 wxRect *arg2 = (wxRect *) 0 ;
16942 PyObject * obj0 = 0 ;
16943 PyObject * obj1 = 0 ;
16944 char *kwnames[] = {
16945 (char *) "self",(char *) "m_rect", NULL
16946 };
16947
16948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16953 if (arg1) (arg1)->m_rect = *arg2;
16954
16955 Py_INCREF(Py_None); resultobj = Py_None;
16956 return resultobj;
16957 fail:
16958 return NULL;
16959 }
16960
16961
16962 static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj;
16964 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16965 wxRect *result;
16966 PyObject * obj0 = 0 ;
16967 char *kwnames[] = {
16968 (char *) "self", NULL
16969 };
16970
16971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16974 result = (wxRect *)& ((arg1)->m_rect);
16975
16976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16977 return resultobj;
16978 fail:
16979 return NULL;
16980 }
16981
16982
16983 static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) {
16984 PyObject *obj;
16985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16986 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16987 Py_INCREF(obj);
16988 return Py_BuildValue((char *)"");
16989 }
16990 static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16991 PyObject *resultobj;
16992 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16993 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16994 int arg2 = (int) 0 ;
16995 wxMoveEvent *result;
16996 wxPoint temp1 ;
16997 PyObject * obj0 = 0 ;
16998 PyObject * obj1 = 0 ;
16999 char *kwnames[] = {
17000 (char *) "pos",(char *) "winid", NULL
17001 };
17002
17003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
17004 if (obj0) {
17005 {
17006 arg1 = &temp1;
17007 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
17008 }
17009 }
17010 if (obj1) {
17011 arg2 = (int)SWIG_As_int(obj1);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 {
17015 PyThreadState* __tstate = wxPyBeginAllowThreads();
17016 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
17017
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
17022 return resultobj;
17023 fail:
17024 return NULL;
17025 }
17026
17027
17028 static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj;
17030 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17031 wxPoint result;
17032 PyObject * obj0 = 0 ;
17033 char *kwnames[] = {
17034 (char *) "self", NULL
17035 };
17036
17037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
17038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17040 {
17041 PyThreadState* __tstate = wxPyBeginAllowThreads();
17042 result = ((wxMoveEvent const *)arg1)->GetPosition();
17043
17044 wxPyEndAllowThreads(__tstate);
17045 if (PyErr_Occurred()) SWIG_fail;
17046 }
17047 {
17048 wxPoint * resultptr;
17049 resultptr = new wxPoint((wxPoint &) result);
17050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17051 }
17052 return resultobj;
17053 fail:
17054 return NULL;
17055 }
17056
17057
17058 static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
17059 PyObject *resultobj;
17060 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17061 wxRect result;
17062 PyObject * obj0 = 0 ;
17063 char *kwnames[] = {
17064 (char *) "self", NULL
17065 };
17066
17067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
17068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17070 {
17071 PyThreadState* __tstate = wxPyBeginAllowThreads();
17072 result = ((wxMoveEvent const *)arg1)->GetRect();
17073
17074 wxPyEndAllowThreads(__tstate);
17075 if (PyErr_Occurred()) SWIG_fail;
17076 }
17077 {
17078 wxRect * resultptr;
17079 resultptr = new wxRect((wxRect &) result);
17080 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
17081 }
17082 return resultobj;
17083 fail:
17084 return NULL;
17085 }
17086
17087
17088 static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj;
17090 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17091 wxRect arg2 ;
17092 wxRect *argp2 ;
17093 PyObject * obj0 = 0 ;
17094 PyObject * obj1 = 0 ;
17095 char *kwnames[] = {
17096 (char *) "self",(char *) "rect", NULL
17097 };
17098
17099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
17100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17102 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
17103 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
17104 arg2 = *argp2;
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 (arg1)->SetRect(arg2);
17108
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 Py_INCREF(Py_None); resultobj = Py_None;
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj;
17121 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17122 wxPoint arg2 ;
17123 wxPoint *argp2 ;
17124 PyObject * obj0 = 0 ;
17125 PyObject * obj1 = 0 ;
17126 char *kwnames[] = {
17127 (char *) "self",(char *) "pos", NULL
17128 };
17129
17130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
17131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17133 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
17134 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
17135 arg2 = *argp2;
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 wxMoveEvent_SetPosition(arg1,arg2);
17139
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 Py_INCREF(Py_None); resultobj = Py_None;
17144 return resultobj;
17145 fail:
17146 return NULL;
17147 }
17148
17149
17150 static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
17151 PyObject *resultobj;
17152 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17153 wxPoint *arg2 = (wxPoint *) 0 ;
17154 PyObject * obj0 = 0 ;
17155 PyObject * obj1 = 0 ;
17156 char *kwnames[] = {
17157 (char *) "self",(char *) "m_pos", NULL
17158 };
17159
17160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
17161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
17164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17165 if (arg1) (arg1)->m_pos = *arg2;
17166
17167 Py_INCREF(Py_None); resultobj = Py_None;
17168 return resultobj;
17169 fail:
17170 return NULL;
17171 }
17172
17173
17174 static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17177 wxPoint *result;
17178 PyObject * obj0 = 0 ;
17179 char *kwnames[] = {
17180 (char *) "self", NULL
17181 };
17182
17183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
17184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17186 result = (wxPoint *)& ((arg1)->m_pos);
17187
17188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
17189 return resultobj;
17190 fail:
17191 return NULL;
17192 }
17193
17194
17195 static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) {
17196 PyObject *resultobj;
17197 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17198 wxRect *arg2 = (wxRect *) 0 ;
17199 PyObject * obj0 = 0 ;
17200 PyObject * obj1 = 0 ;
17201 char *kwnames[] = {
17202 (char *) "self",(char *) "m_rect", NULL
17203 };
17204
17205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
17206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17208 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
17209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17210 if (arg1) (arg1)->m_rect = *arg2;
17211
17212 Py_INCREF(Py_None); resultobj = Py_None;
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17222 wxRect *result;
17223 PyObject * obj0 = 0 ;
17224 char *kwnames[] = {
17225 (char *) "self", NULL
17226 };
17227
17228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
17229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17231 result = (wxRect *)& ((arg1)->m_rect);
17232
17233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
17234 return resultobj;
17235 fail:
17236 return NULL;
17237 }
17238
17239
17240 static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) {
17241 PyObject *obj;
17242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17243 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
17244 Py_INCREF(obj);
17245 return Py_BuildValue((char *)"");
17246 }
17247 static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17248 PyObject *resultobj;
17249 int arg1 = (int) 0 ;
17250 wxPaintEvent *result;
17251 PyObject * obj0 = 0 ;
17252 char *kwnames[] = {
17253 (char *) "Id", NULL
17254 };
17255
17256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
17257 if (obj0) {
17258 arg1 = (int)SWIG_As_int(obj0);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 result = (wxPaintEvent *)new wxPaintEvent(arg1);
17264
17265 wxPyEndAllowThreads(__tstate);
17266 if (PyErr_Occurred()) SWIG_fail;
17267 }
17268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
17269 return resultobj;
17270 fail:
17271 return NULL;
17272 }
17273
17274
17275 static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) {
17276 PyObject *obj;
17277 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17278 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
17279 Py_INCREF(obj);
17280 return Py_BuildValue((char *)"");
17281 }
17282 static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17283 PyObject *resultobj;
17284 int arg1 = (int) 0 ;
17285 wxNcPaintEvent *result;
17286 PyObject * obj0 = 0 ;
17287 char *kwnames[] = {
17288 (char *) "winid", NULL
17289 };
17290
17291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
17292 if (obj0) {
17293 arg1 = (int)SWIG_As_int(obj0);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
17299
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
17304 return resultobj;
17305 fail:
17306 return NULL;
17307 }
17308
17309
17310 static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) {
17311 PyObject *obj;
17312 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17313 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
17314 Py_INCREF(obj);
17315 return Py_BuildValue((char *)"");
17316 }
17317 static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17318 PyObject *resultobj;
17319 int arg1 = (int) 0 ;
17320 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
17321 wxEraseEvent *result;
17322 PyObject * obj0 = 0 ;
17323 PyObject * obj1 = 0 ;
17324 char *kwnames[] = {
17325 (char *) "Id",(char *) "dc", NULL
17326 };
17327
17328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
17329 if (obj0) {
17330 arg1 = (int)SWIG_As_int(obj0);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 if (obj1) {
17334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
17345 return resultobj;
17346 fail:
17347 return NULL;
17348 }
17349
17350
17351 static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) {
17352 PyObject *resultobj;
17353 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
17354 wxDC *result;
17355 PyObject * obj0 = 0 ;
17356 char *kwnames[] = {
17357 (char *) "self", NULL
17358 };
17359
17360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
17361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
17362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17363 {
17364 PyThreadState* __tstate = wxPyBeginAllowThreads();
17365 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
17366
17367 wxPyEndAllowThreads(__tstate);
17368 if (PyErr_Occurred()) SWIG_fail;
17369 }
17370 {
17371 resultobj = wxPyMake_wxObject(result, 0);
17372 }
17373 return resultobj;
17374 fail:
17375 return NULL;
17376 }
17377
17378
17379 static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) {
17380 PyObject *obj;
17381 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17382 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
17383 Py_INCREF(obj);
17384 return Py_BuildValue((char *)"");
17385 }
17386 static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17387 PyObject *resultobj;
17388 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17389 int arg2 = (int) 0 ;
17390 wxFocusEvent *result;
17391 PyObject * obj0 = 0 ;
17392 PyObject * obj1 = 0 ;
17393 char *kwnames[] = {
17394 (char *) "type",(char *) "winid", NULL
17395 };
17396
17397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
17398 if (obj0) {
17399 arg1 = (wxEventType)SWIG_As_int(obj0);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 }
17402 if (obj1) {
17403 arg2 = (int)SWIG_As_int(obj1);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 {
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
17409
17410 wxPyEndAllowThreads(__tstate);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
17414 return resultobj;
17415 fail:
17416 return NULL;
17417 }
17418
17419
17420 static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj;
17422 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17423 wxWindow *result;
17424 PyObject * obj0 = 0 ;
17425 char *kwnames[] = {
17426 (char *) "self", NULL
17427 };
17428
17429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17432 {
17433 PyThreadState* __tstate = wxPyBeginAllowThreads();
17434 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
17435
17436 wxPyEndAllowThreads(__tstate);
17437 if (PyErr_Occurred()) SWIG_fail;
17438 }
17439 {
17440 resultobj = wxPyMake_wxObject(result, 0);
17441 }
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17451 wxWindow *arg2 = (wxWindow *) 0 ;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 char *kwnames[] = {
17455 (char *) "self",(char *) "win", NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
17459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 (arg1)->SetWindow(arg2);
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 Py_INCREF(Py_None); resultobj = Py_None;
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) {
17478 PyObject *obj;
17479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17480 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
17481 Py_INCREF(obj);
17482 return Py_BuildValue((char *)"");
17483 }
17484 static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17485 PyObject *resultobj;
17486 wxWindow *arg1 = (wxWindow *) NULL ;
17487 wxChildFocusEvent *result;
17488 PyObject * obj0 = 0 ;
17489 char *kwnames[] = {
17490 (char *) "win", NULL
17491 };
17492
17493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
17494 if (obj0) {
17495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17497 }
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17501
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj;
17514 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17515 wxWindow *result;
17516 PyObject * obj0 = 0 ;
17517 char *kwnames[] = {
17518 (char *) "self", NULL
17519 };
17520
17521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17527
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 {
17532 resultobj = wxPyMake_wxObject(result, 0);
17533 }
17534 return resultobj;
17535 fail:
17536 return NULL;
17537 }
17538
17539
17540 static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) {
17541 PyObject *obj;
17542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17543 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17544 Py_INCREF(obj);
17545 return Py_BuildValue((char *)"");
17546 }
17547 static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17548 PyObject *resultobj;
17549 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17550 bool arg2 = (bool) true ;
17551 int arg3 = (int) 0 ;
17552 wxActivateEvent *result;
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
17555 PyObject * obj2 = 0 ;
17556 char *kwnames[] = {
17557 (char *) "type",(char *) "active",(char *) "Id", NULL
17558 };
17559
17560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17561 if (obj0) {
17562 arg1 = (wxEventType)SWIG_As_int(obj0);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 if (obj1) {
17566 arg2 = (bool)SWIG_As_bool(obj1);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
17569 if (obj2) {
17570 arg3 = (int)SWIG_As_int(obj2);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 {
17574 PyThreadState* __tstate = wxPyBeginAllowThreads();
17575 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17576
17577 wxPyEndAllowThreads(__tstate);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 }
17580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17581 return resultobj;
17582 fail:
17583 return NULL;
17584 }
17585
17586
17587 static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
17588 PyObject *resultobj;
17589 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17590 bool result;
17591 PyObject * obj0 = 0 ;
17592 char *kwnames[] = {
17593 (char *) "self", NULL
17594 };
17595
17596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17599 {
17600 PyThreadState* __tstate = wxPyBeginAllowThreads();
17601 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17602
17603 wxPyEndAllowThreads(__tstate);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 {
17607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17608 }
17609 return resultobj;
17610 fail:
17611 return NULL;
17612 }
17613
17614
17615 static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) {
17616 PyObject *obj;
17617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17618 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17619 Py_INCREF(obj);
17620 return Py_BuildValue((char *)"");
17621 }
17622 static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17623 PyObject *resultobj;
17624 int arg1 = (int) 0 ;
17625 wxInitDialogEvent *result;
17626 PyObject * obj0 = 0 ;
17627 char *kwnames[] = {
17628 (char *) "Id", NULL
17629 };
17630
17631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17632 if (obj0) {
17633 arg1 = (int)SWIG_As_int(obj0);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 {
17637 PyThreadState* __tstate = wxPyBeginAllowThreads();
17638 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17639
17640 wxPyEndAllowThreads(__tstate);
17641 if (PyErr_Occurred()) SWIG_fail;
17642 }
17643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17644 return resultobj;
17645 fail:
17646 return NULL;
17647 }
17648
17649
17650 static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) {
17651 PyObject *obj;
17652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17653 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17654 Py_INCREF(obj);
17655 return Py_BuildValue((char *)"");
17656 }
17657 static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj;
17659 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17660 int arg2 = (int) 0 ;
17661 wxMenu *arg3 = (wxMenu *) NULL ;
17662 wxMenuEvent *result;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 char *kwnames[] = {
17667 (char *) "type",(char *) "winid",(char *) "menu", NULL
17668 };
17669
17670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17671 if (obj0) {
17672 arg1 = (wxEventType)SWIG_As_int(obj0);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 }
17675 if (obj1) {
17676 arg2 = (int)SWIG_As_int(obj1);
17677 if (PyErr_Occurred()) SWIG_fail;
17678 }
17679 if (obj2) {
17680 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17682 }
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17686
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17691 return resultobj;
17692 fail:
17693 return NULL;
17694 }
17695
17696
17697 static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) {
17698 PyObject *resultobj;
17699 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17700 int result;
17701 PyObject * obj0 = 0 ;
17702 char *kwnames[] = {
17703 (char *) "self", NULL
17704 };
17705
17706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17712
17713 wxPyEndAllowThreads(__tstate);
17714 if (PyErr_Occurred()) SWIG_fail;
17715 }
17716 resultobj = SWIG_From_int((int)result);
17717 return resultobj;
17718 fail:
17719 return NULL;
17720 }
17721
17722
17723 static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) {
17724 PyObject *resultobj;
17725 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17726 bool result;
17727 PyObject * obj0 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17738
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 {
17743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17744 }
17745 return resultobj;
17746 fail:
17747 return NULL;
17748 }
17749
17750
17751 static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
17752 PyObject *resultobj;
17753 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17754 wxMenu *result;
17755 PyObject * obj0 = 0 ;
17756 char *kwnames[] = {
17757 (char *) "self", NULL
17758 };
17759
17760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17766
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 {
17771 resultobj = wxPyMake_wxObject(result, 0);
17772 }
17773 return resultobj;
17774 fail:
17775 return NULL;
17776 }
17777
17778
17779 static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) {
17780 PyObject *obj;
17781 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17782 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17783 Py_INCREF(obj);
17784 return Py_BuildValue((char *)"");
17785 }
17786 static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
17787 PyObject *resultobj;
17788 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17789 int arg2 = (int) 0 ;
17790 wxCloseEvent *result;
17791 PyObject * obj0 = 0 ;
17792 PyObject * obj1 = 0 ;
17793 char *kwnames[] = {
17794 (char *) "type",(char *) "winid", NULL
17795 };
17796
17797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17798 if (obj0) {
17799 arg1 = (wxEventType)SWIG_As_int(obj0);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 if (obj1) {
17803 arg2 = (int)SWIG_As_int(obj1);
17804 if (PyErr_Occurred()) SWIG_fail;
17805 }
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17814 return resultobj;
17815 fail:
17816 return NULL;
17817 }
17818
17819
17820 static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj;
17822 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17823 bool arg2 ;
17824 PyObject * obj0 = 0 ;
17825 PyObject * obj1 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self",(char *) "logOff", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17833 arg2 = (bool)SWIG_As_bool(obj1);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 {
17836 PyThreadState* __tstate = wxPyBeginAllowThreads();
17837 (arg1)->SetLoggingOff(arg2);
17838
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 Py_INCREF(Py_None); resultobj = Py_None;
17843 return resultobj;
17844 fail:
17845 return NULL;
17846 }
17847
17848
17849 static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj;
17851 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17852 bool result;
17853 PyObject * obj0 = 0 ;
17854 char *kwnames[] = {
17855 (char *) "self", NULL
17856 };
17857
17858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17864
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 {
17869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17870 }
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17880 bool arg2 = (bool) true ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 char *kwnames[] = {
17884 (char *) "self",(char *) "veto", NULL
17885 };
17886
17887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17890 if (obj1) {
17891 arg2 = (bool)SWIG_As_bool(obj1);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 (arg1)->Veto(arg2);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 Py_INCREF(Py_None); resultobj = Py_None;
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17911 bool arg2 ;
17912 PyObject * obj0 = 0 ;
17913 PyObject * obj1 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self",(char *) "canVeto", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 arg2 = (bool)SWIG_As_bool(obj1);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 {
17924 PyThreadState* __tstate = wxPyBeginAllowThreads();
17925 (arg1)->SetCanVeto(arg2);
17926
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 Py_INCREF(Py_None); resultobj = Py_None;
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj;
17939 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17940 bool result;
17941 PyObject * obj0 = 0 ;
17942 char *kwnames[] = {
17943 (char *) "self", NULL
17944 };
17945
17946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17952
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 {
17957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17958 }
17959 return resultobj;
17960 fail:
17961 return NULL;
17962 }
17963
17964
17965 static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj;
17967 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17968 bool result;
17969 PyObject * obj0 = 0 ;
17970 char *kwnames[] = {
17971 (char *) "self", NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 {
17985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17986 }
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) {
17994 PyObject *obj;
17995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17996 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17997 Py_INCREF(obj);
17998 return Py_BuildValue((char *)"");
17999 }
18000 static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 int arg1 = (int) 0 ;
18003 bool arg2 = (bool) false ;
18004 wxShowEvent *result;
18005 PyObject * obj0 = 0 ;
18006 PyObject * obj1 = 0 ;
18007 char *kwnames[] = {
18008 (char *) "winid",(char *) "show", NULL
18009 };
18010
18011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
18012 if (obj0) {
18013 arg1 = (int)SWIG_As_int(obj0);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 }
18016 if (obj1) {
18017 arg2 = (bool)SWIG_As_bool(obj1);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
18023
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
18028 return resultobj;
18029 fail:
18030 return NULL;
18031 }
18032
18033
18034 static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) {
18035 PyObject *resultobj;
18036 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
18037 bool arg2 ;
18038 PyObject * obj0 = 0 ;
18039 PyObject * obj1 = 0 ;
18040 char *kwnames[] = {
18041 (char *) "self",(char *) "show", NULL
18042 };
18043
18044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
18045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
18046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18047 arg2 = (bool)SWIG_As_bool(obj1);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 {
18050 PyThreadState* __tstate = wxPyBeginAllowThreads();
18051 (arg1)->SetShow(arg2);
18052
18053 wxPyEndAllowThreads(__tstate);
18054 if (PyErr_Occurred()) SWIG_fail;
18055 }
18056 Py_INCREF(Py_None); resultobj = Py_None;
18057 return resultobj;
18058 fail:
18059 return NULL;
18060 }
18061
18062
18063 static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) {
18064 PyObject *resultobj;
18065 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
18066 bool result;
18067 PyObject * obj0 = 0 ;
18068 char *kwnames[] = {
18069 (char *) "self", NULL
18070 };
18071
18072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
18073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
18074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18075 {
18076 PyThreadState* __tstate = wxPyBeginAllowThreads();
18077 result = (bool)((wxShowEvent const *)arg1)->GetShow();
18078
18079 wxPyEndAllowThreads(__tstate);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 {
18083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18084 }
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) {
18092 PyObject *obj;
18093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18094 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
18095 Py_INCREF(obj);
18096 return Py_BuildValue((char *)"");
18097 }
18098 static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 int arg1 = (int) 0 ;
18101 bool arg2 = (bool) true ;
18102 wxIconizeEvent *result;
18103 PyObject * obj0 = 0 ;
18104 PyObject * obj1 = 0 ;
18105 char *kwnames[] = {
18106 (char *) "id",(char *) "iconized", NULL
18107 };
18108
18109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
18110 if (obj0) {
18111 arg1 = (int)SWIG_As_int(obj0);
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 if (obj1) {
18115 arg2 = (bool)SWIG_As_bool(obj1);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 {
18119 PyThreadState* __tstate = wxPyBeginAllowThreads();
18120 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
18121
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj;
18134 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
18135 bool result;
18136 PyObject * obj0 = 0 ;
18137 char *kwnames[] = {
18138 (char *) "self", NULL
18139 };
18140
18141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
18142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
18143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18144 {
18145 PyThreadState* __tstate = wxPyBeginAllowThreads();
18146 result = (bool)(arg1)->Iconized();
18147
18148 wxPyEndAllowThreads(__tstate);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 {
18152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18153 }
18154 return resultobj;
18155 fail:
18156 return NULL;
18157 }
18158
18159
18160 static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) {
18161 PyObject *obj;
18162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18163 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
18164 Py_INCREF(obj);
18165 return Py_BuildValue((char *)"");
18166 }
18167 static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18168 PyObject *resultobj;
18169 int arg1 = (int) 0 ;
18170 wxMaximizeEvent *result;
18171 PyObject * obj0 = 0 ;
18172 char *kwnames[] = {
18173 (char *) "id", NULL
18174 };
18175
18176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
18177 if (obj0) {
18178 arg1 = (int)SWIG_As_int(obj0);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
18184
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
18189 return resultobj;
18190 fail:
18191 return NULL;
18192 }
18193
18194
18195 static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) {
18196 PyObject *obj;
18197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18198 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
18199 Py_INCREF(obj);
18200 return Py_BuildValue((char *)"");
18201 }
18202 static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj;
18204 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18205 wxPoint result;
18206 PyObject * obj0 = 0 ;
18207 char *kwnames[] = {
18208 (char *) "self", NULL
18209 };
18210
18211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
18212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 result = (arg1)->GetPosition();
18217
18218 wxPyEndAllowThreads(__tstate);
18219 if (PyErr_Occurred()) SWIG_fail;
18220 }
18221 {
18222 wxPoint * resultptr;
18223 resultptr = new wxPoint((wxPoint &) result);
18224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
18225 }
18226 return resultobj;
18227 fail:
18228 return NULL;
18229 }
18230
18231
18232 static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) {
18233 PyObject *resultobj;
18234 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18235 int result;
18236 PyObject * obj0 = 0 ;
18237 char *kwnames[] = {
18238 (char *) "self", NULL
18239 };
18240
18241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
18242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 result = (int)(arg1)->GetNumberOfFiles();
18247
18248 wxPyEndAllowThreads(__tstate);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 resultobj = SWIG_From_int((int)result);
18252 return resultobj;
18253 fail:
18254 return NULL;
18255 }
18256
18257
18258 static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) {
18259 PyObject *resultobj;
18260 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18261 PyObject *result;
18262 PyObject * obj0 = 0 ;
18263 char *kwnames[] = {
18264 (char *) "self", NULL
18265 };
18266
18267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
18268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
18273
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = result;
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) {
18285 PyObject *obj;
18286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18287 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
18288 Py_INCREF(obj);
18289 return Py_BuildValue((char *)"");
18290 }
18291 static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj;
18293 int arg1 = (int) 0 ;
18294 wxUpdateUIEvent *result;
18295 PyObject * obj0 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "commandId", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
18301 if (obj0) {
18302 arg1 = (int)SWIG_As_int(obj0);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
18308
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
18313 return resultobj;
18314 fail:
18315 return NULL;
18316 }
18317
18318
18319 static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj;
18321 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18322 bool result;
18323 PyObject * obj0 = 0 ;
18324 char *kwnames[] = {
18325 (char *) "self", NULL
18326 };
18327
18328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
18329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
18334
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 {
18339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18340 }
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj;
18349 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18350 bool result;
18351 PyObject * obj0 = 0 ;
18352 char *kwnames[] = {
18353 (char *) "self", NULL
18354 };
18355
18356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
18357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
18362
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18368 }
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj;
18377 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18378 wxString result;
18379 PyObject * obj0 = 0 ;
18380 char *kwnames[] = {
18381 (char *) "self", NULL
18382 };
18383
18384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
18385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 result = ((wxUpdateUIEvent const *)arg1)->GetText();
18390
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 {
18395 #if wxUSE_UNICODE
18396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18397 #else
18398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18399 #endif
18400 }
18401 return resultobj;
18402 fail:
18403 return NULL;
18404 }
18405
18406
18407 static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) {
18408 PyObject *resultobj;
18409 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18410 bool result;
18411 PyObject * obj0 = 0 ;
18412 char *kwnames[] = {
18413 (char *) "self", NULL
18414 };
18415
18416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
18417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
18422
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 {
18427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18428 }
18429 return resultobj;
18430 fail:
18431 return NULL;
18432 }
18433
18434
18435 static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj;
18437 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18438 bool result;
18439 PyObject * obj0 = 0 ;
18440 char *kwnames[] = {
18441 (char *) "self", NULL
18442 };
18443
18444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
18445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18447 {
18448 PyThreadState* __tstate = wxPyBeginAllowThreads();
18449 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
18450
18451 wxPyEndAllowThreads(__tstate);
18452 if (PyErr_Occurred()) SWIG_fail;
18453 }
18454 {
18455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18456 }
18457 return resultobj;
18458 fail:
18459 return NULL;
18460 }
18461
18462
18463 static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18464 PyObject *resultobj;
18465 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18466 bool result;
18467 PyObject * obj0 = 0 ;
18468 char *kwnames[] = {
18469 (char *) "self", NULL
18470 };
18471
18472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
18473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18475 {
18476 PyThreadState* __tstate = wxPyBeginAllowThreads();
18477 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
18478
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
18482 {
18483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18484 }
18485 return resultobj;
18486 fail:
18487 return NULL;
18488 }
18489
18490
18491 static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) {
18492 PyObject *resultobj;
18493 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18494 bool arg2 ;
18495 PyObject * obj0 = 0 ;
18496 PyObject * obj1 = 0 ;
18497 char *kwnames[] = {
18498 (char *) "self",(char *) "check", NULL
18499 };
18500
18501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18504 arg2 = (bool)SWIG_As_bool(obj1);
18505 if (PyErr_Occurred()) SWIG_fail;
18506 {
18507 PyThreadState* __tstate = wxPyBeginAllowThreads();
18508 (arg1)->Check(arg2);
18509
18510 wxPyEndAllowThreads(__tstate);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 Py_INCREF(Py_None); resultobj = Py_None;
18514 return resultobj;
18515 fail:
18516 return NULL;
18517 }
18518
18519
18520 static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj;
18522 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18523 bool arg2 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 char *kwnames[] = {
18527 (char *) "self",(char *) "enable", NULL
18528 };
18529
18530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18533 arg2 = (bool)SWIG_As_bool(obj1);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 (arg1)->Enable(arg2);
18538
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 Py_INCREF(Py_None); resultobj = Py_None;
18543 return resultobj;
18544 fail:
18545 return NULL;
18546 }
18547
18548
18549 static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
18550 PyObject *resultobj;
18551 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18552 wxString *arg2 = 0 ;
18553 bool temp2 = false ;
18554 PyObject * obj0 = 0 ;
18555 PyObject * obj1 = 0 ;
18556 char *kwnames[] = {
18557 (char *) "self",(char *) "text", NULL
18558 };
18559
18560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18563 {
18564 arg2 = wxString_in_helper(obj1);
18565 if (arg2 == NULL) SWIG_fail;
18566 temp2 = true;
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 (arg1)->SetText((wxString const &)*arg2);
18571
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 Py_INCREF(Py_None); resultobj = Py_None;
18576 {
18577 if (temp2)
18578 delete arg2;
18579 }
18580 return resultobj;
18581 fail:
18582 {
18583 if (temp2)
18584 delete arg2;
18585 }
18586 return NULL;
18587 }
18588
18589
18590 static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
18591 PyObject *resultobj;
18592 long arg1 ;
18593 PyObject * obj0 = 0 ;
18594 char *kwnames[] = {
18595 (char *) "updateInterval", NULL
18596 };
18597
18598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18599 arg1 = (long)SWIG_As_long(obj0);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 {
18602 PyThreadState* __tstate = wxPyBeginAllowThreads();
18603 wxUpdateUIEvent::SetUpdateInterval(arg1);
18604
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 Py_INCREF(Py_None); resultobj = Py_None;
18609 return resultobj;
18610 fail:
18611 return NULL;
18612 }
18613
18614
18615 static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
18616 PyObject *resultobj;
18617 long result;
18618 char *kwnames[] = {
18619 NULL
18620 };
18621
18622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18626
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_From_long((long)result);
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj;
18639 wxWindow *arg1 = (wxWindow *) 0 ;
18640 bool result;
18641 PyObject * obj0 = 0 ;
18642 char *kwnames[] = {
18643 (char *) "win", NULL
18644 };
18645
18646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18652
18653 wxPyEndAllowThreads(__tstate);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 }
18656 {
18657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18658 }
18659 return resultobj;
18660 fail:
18661 return NULL;
18662 }
18663
18664
18665 static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) {
18666 PyObject *resultobj;
18667 char *kwnames[] = {
18668 NULL
18669 };
18670
18671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 wxUpdateUIEvent::ResetUpdateTime();
18675
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 Py_INCREF(Py_None); resultobj = Py_None;
18680 return resultobj;
18681 fail:
18682 return NULL;
18683 }
18684
18685
18686 static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj;
18688 int arg1 ;
18689 PyObject * obj0 = 0 ;
18690 char *kwnames[] = {
18691 (char *) "mode", NULL
18692 };
18693
18694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18695 arg1 = (int)SWIG_As_int(obj0);
18696 if (PyErr_Occurred()) SWIG_fail;
18697 {
18698 PyThreadState* __tstate = wxPyBeginAllowThreads();
18699 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18700
18701 wxPyEndAllowThreads(__tstate);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 }
18704 Py_INCREF(Py_None); resultobj = Py_None;
18705 return resultobj;
18706 fail:
18707 return NULL;
18708 }
18709
18710
18711 static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
18712 PyObject *resultobj;
18713 int result;
18714 char *kwnames[] = {
18715 NULL
18716 };
18717
18718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 result = (int)wxUpdateUIEvent::GetMode();
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = SWIG_From_int((int)result);
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) {
18734 PyObject *obj;
18735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18736 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18737 Py_INCREF(obj);
18738 return Py_BuildValue((char *)"");
18739 }
18740 static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18741 PyObject *resultobj;
18742 wxSysColourChangedEvent *result;
18743 char *kwnames[] = {
18744 NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18748 {
18749 PyThreadState* __tstate = wxPyBeginAllowThreads();
18750 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18751
18752 wxPyEndAllowThreads(__tstate);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 }
18755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18756 return resultobj;
18757 fail:
18758 return NULL;
18759 }
18760
18761
18762 static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) {
18763 PyObject *obj;
18764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18765 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18766 Py_INCREF(obj);
18767 return Py_BuildValue((char *)"");
18768 }
18769 static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18770 PyObject *resultobj;
18771 int arg1 = (int) 0 ;
18772 wxWindow *arg2 = (wxWindow *) NULL ;
18773 wxMouseCaptureChangedEvent *result;
18774 PyObject * obj0 = 0 ;
18775 PyObject * obj1 = 0 ;
18776 char *kwnames[] = {
18777 (char *) "winid",(char *) "gainedCapture", NULL
18778 };
18779
18780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18781 if (obj0) {
18782 arg1 = (int)SWIG_As_int(obj0);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 if (obj1) {
18786 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 }
18789 {
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18792
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj;
18805 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18806 wxWindow *result;
18807 PyObject * obj0 = 0 ;
18808 char *kwnames[] = {
18809 (char *) "self", NULL
18810 };
18811
18812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18818
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 {
18823 resultobj = wxPyMake_wxObject(result, 0);
18824 }
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) {
18832 PyObject *obj;
18833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18834 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18835 Py_INCREF(obj);
18836 return Py_BuildValue((char *)"");
18837 }
18838 static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18839 PyObject *resultobj;
18840 wxDisplayChangedEvent *result;
18841 char *kwnames[] = {
18842 NULL
18843 };
18844
18845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18846 {
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
18848 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18849
18850 wxPyEndAllowThreads(__tstate);
18851 if (PyErr_Occurred()) SWIG_fail;
18852 }
18853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18854 return resultobj;
18855 fail:
18856 return NULL;
18857 }
18858
18859
18860 static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) {
18861 PyObject *obj;
18862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18863 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18864 Py_INCREF(obj);
18865 return Py_BuildValue((char *)"");
18866 }
18867 static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18868 PyObject *resultobj;
18869 int arg1 = (int) 0 ;
18870 wxPaletteChangedEvent *result;
18871 PyObject * obj0 = 0 ;
18872 char *kwnames[] = {
18873 (char *) "id", NULL
18874 };
18875
18876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18877 if (obj0) {
18878 arg1 = (int)SWIG_As_int(obj0);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18884
18885 wxPyEndAllowThreads(__tstate);
18886 if (PyErr_Occurred()) SWIG_fail;
18887 }
18888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18889 return resultobj;
18890 fail:
18891 return NULL;
18892 }
18893
18894
18895 static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
18896 PyObject *resultobj;
18897 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18898 wxWindow *arg2 = (wxWindow *) 0 ;
18899 PyObject * obj0 = 0 ;
18900 PyObject * obj1 = 0 ;
18901 char *kwnames[] = {
18902 (char *) "self",(char *) "win", NULL
18903 };
18904
18905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18908 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18910 {
18911 PyThreadState* __tstate = wxPyBeginAllowThreads();
18912 (arg1)->SetChangedWindow(arg2);
18913
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 Py_INCREF(Py_None); resultobj = Py_None;
18918 return resultobj;
18919 fail:
18920 return NULL;
18921 }
18922
18923
18924 static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj;
18926 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18927 wxWindow *result;
18928 PyObject * obj0 = 0 ;
18929 char *kwnames[] = {
18930 (char *) "self", NULL
18931 };
18932
18933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 result = (wxWindow *)(arg1)->GetChangedWindow();
18939
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 {
18944 resultobj = wxPyMake_wxObject(result, 0);
18945 }
18946 return resultobj;
18947 fail:
18948 return NULL;
18949 }
18950
18951
18952 static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) {
18953 PyObject *obj;
18954 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18955 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18956 Py_INCREF(obj);
18957 return Py_BuildValue((char *)"");
18958 }
18959 static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18960 PyObject *resultobj;
18961 int arg1 = (int) 0 ;
18962 wxQueryNewPaletteEvent *result;
18963 PyObject * obj0 = 0 ;
18964 char *kwnames[] = {
18965 (char *) "winid", NULL
18966 };
18967
18968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18969 if (obj0) {
18970 arg1 = (int)SWIG_As_int(obj0);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 {
18974 PyThreadState* __tstate = wxPyBeginAllowThreads();
18975 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18976
18977 wxPyEndAllowThreads(__tstate);
18978 if (PyErr_Occurred()) SWIG_fail;
18979 }
18980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18981 return resultobj;
18982 fail:
18983 return NULL;
18984 }
18985
18986
18987 static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
18988 PyObject *resultobj;
18989 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18990 bool arg2 ;
18991 PyObject * obj0 = 0 ;
18992 PyObject * obj1 = 0 ;
18993 char *kwnames[] = {
18994 (char *) "self",(char *) "realized", NULL
18995 };
18996
18997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19000 arg2 = (bool)SWIG_As_bool(obj1);
19001 if (PyErr_Occurred()) SWIG_fail;
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 (arg1)->SetPaletteRealized(arg2);
19005
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 Py_INCREF(Py_None); resultobj = Py_None;
19010 return resultobj;
19011 fail:
19012 return NULL;
19013 }
19014
19015
19016 static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
19017 PyObject *resultobj;
19018 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
19019 bool result;
19020 PyObject * obj0 = 0 ;
19021 char *kwnames[] = {
19022 (char *) "self", NULL
19023 };
19024
19025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
19026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
19027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19028 {
19029 PyThreadState* __tstate = wxPyBeginAllowThreads();
19030 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
19031
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 {
19036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19037 }
19038 return resultobj;
19039 fail:
19040 return NULL;
19041 }
19042
19043
19044 static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) {
19045 PyObject *obj;
19046 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19047 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
19048 Py_INCREF(obj);
19049 return Py_BuildValue((char *)"");
19050 }
19051 static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19052 PyObject *resultobj;
19053 wxNavigationKeyEvent *result;
19054 char *kwnames[] = {
19055 NULL
19056 };
19057
19058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
19059 {
19060 PyThreadState* __tstate = wxPyBeginAllowThreads();
19061 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
19062
19063 wxPyEndAllowThreads(__tstate);
19064 if (PyErr_Occurred()) SWIG_fail;
19065 }
19066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
19067 return resultobj;
19068 fail:
19069 return NULL;
19070 }
19071
19072
19073 static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
19074 PyObject *resultobj;
19075 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19076 bool result;
19077 PyObject * obj0 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19085 {
19086 PyThreadState* __tstate = wxPyBeginAllowThreads();
19087 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
19088
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 {
19093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19094 }
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
19102 PyObject *resultobj;
19103 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19104 bool arg2 ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 char *kwnames[] = {
19108 (char *) "self",(char *) "forward", NULL
19109 };
19110
19111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
19112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19114 arg2 = (bool)SWIG_As_bool(obj1);
19115 if (PyErr_Occurred()) SWIG_fail;
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 (arg1)->SetDirection(arg2);
19119
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 Py_INCREF(Py_None); resultobj = Py_None;
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj;
19132 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19133 bool result;
19134 PyObject * obj0 = 0 ;
19135 char *kwnames[] = {
19136 (char *) "self", NULL
19137 };
19138
19139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
19140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
19145
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 {
19150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19151 }
19152 return resultobj;
19153 fail:
19154 return NULL;
19155 }
19156
19157
19158 static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
19159 PyObject *resultobj;
19160 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19161 bool arg2 ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 char *kwnames[] = {
19165 (char *) "self",(char *) "ischange", NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
19169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19171 arg2 = (bool)SWIG_As_bool(obj1);
19172 if (PyErr_Occurred()) SWIG_fail;
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->SetWindowChange(arg2);
19176
19177 wxPyEndAllowThreads(__tstate);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 Py_INCREF(Py_None); resultobj = Py_None;
19181 return resultobj;
19182 fail:
19183 return NULL;
19184 }
19185
19186
19187 static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
19188 PyObject *resultobj;
19189 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19190 long arg2 ;
19191 PyObject * obj0 = 0 ;
19192 PyObject * obj1 = 0 ;
19193 char *kwnames[] = {
19194 (char *) "self",(char *) "flags", NULL
19195 };
19196
19197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
19198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19200 arg2 = (long)SWIG_As_long(obj1);
19201 if (PyErr_Occurred()) SWIG_fail;
19202 {
19203 PyThreadState* __tstate = wxPyBeginAllowThreads();
19204 (arg1)->SetFlags(arg2);
19205
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 Py_INCREF(Py_None); resultobj = Py_None;
19210 return resultobj;
19211 fail:
19212 return NULL;
19213 }
19214
19215
19216 static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj;
19218 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19219 wxWindow *result;
19220 PyObject * obj0 = 0 ;
19221 char *kwnames[] = {
19222 (char *) "self", NULL
19223 };
19224
19225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
19226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19228 {
19229 PyThreadState* __tstate = wxPyBeginAllowThreads();
19230 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
19231
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 {
19236 resultobj = wxPyMake_wxObject(result, 0);
19237 }
19238 return resultobj;
19239 fail:
19240 return NULL;
19241 }
19242
19243
19244 static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj;
19246 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19247 wxWindow *arg2 = (wxWindow *) 0 ;
19248 PyObject * obj0 = 0 ;
19249 PyObject * obj1 = 0 ;
19250 char *kwnames[] = {
19251 (char *) "self",(char *) "win", NULL
19252 };
19253
19254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
19255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19257 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 (arg1)->SetCurrentFocus(arg2);
19262
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 Py_INCREF(Py_None); resultobj = Py_None;
19267 return resultobj;
19268 fail:
19269 return NULL;
19270 }
19271
19272
19273 static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) {
19274 PyObject *obj;
19275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19276 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
19277 Py_INCREF(obj);
19278 return Py_BuildValue((char *)"");
19279 }
19280 static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19281 PyObject *resultobj;
19282 wxWindow *arg1 = (wxWindow *) NULL ;
19283 wxWindowCreateEvent *result;
19284 PyObject * obj0 = 0 ;
19285 char *kwnames[] = {
19286 (char *) "win", NULL
19287 };
19288
19289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
19290 if (obj0) {
19291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19293 }
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
19297
19298 wxPyEndAllowThreads(__tstate);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 }
19301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
19302 return resultobj;
19303 fail:
19304 return NULL;
19305 }
19306
19307
19308 static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
19309 PyObject *resultobj;
19310 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
19311 wxWindow *result;
19312 PyObject * obj0 = 0 ;
19313 char *kwnames[] = {
19314 (char *) "self", NULL
19315 };
19316
19317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
19318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
19319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19320 {
19321 PyThreadState* __tstate = wxPyBeginAllowThreads();
19322 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
19323
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 {
19328 resultobj = wxPyMake_wxObject(result, 0);
19329 }
19330 return resultobj;
19331 fail:
19332 return NULL;
19333 }
19334
19335
19336 static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) {
19337 PyObject *obj;
19338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19339 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
19340 Py_INCREF(obj);
19341 return Py_BuildValue((char *)"");
19342 }
19343 static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19344 PyObject *resultobj;
19345 wxWindow *arg1 = (wxWindow *) NULL ;
19346 wxWindowDestroyEvent *result;
19347 PyObject * obj0 = 0 ;
19348 char *kwnames[] = {
19349 (char *) "win", NULL
19350 };
19351
19352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
19353 if (obj0) {
19354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19356 }
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
19360
19361 wxPyEndAllowThreads(__tstate);
19362 if (PyErr_Occurred()) SWIG_fail;
19363 }
19364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
19365 return resultobj;
19366 fail:
19367 return NULL;
19368 }
19369
19370
19371 static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj;
19373 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
19374 wxWindow *result;
19375 PyObject * obj0 = 0 ;
19376 char *kwnames[] = {
19377 (char *) "self", NULL
19378 };
19379
19380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
19381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
19382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
19386
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 {
19391 resultobj = wxPyMake_wxObject(result, 0);
19392 }
19393 return resultobj;
19394 fail:
19395 return NULL;
19396 }
19397
19398
19399 static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) {
19400 PyObject *obj;
19401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19402 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
19403 Py_INCREF(obj);
19404 return Py_BuildValue((char *)"");
19405 }
19406 static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19407 PyObject *resultobj;
19408 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19409 int arg2 = (int) 0 ;
19410 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19411 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19412 wxContextMenuEvent *result;
19413 wxPoint temp3 ;
19414 PyObject * obj0 = 0 ;
19415 PyObject * obj1 = 0 ;
19416 PyObject * obj2 = 0 ;
19417 char *kwnames[] = {
19418 (char *) "type",(char *) "winid",(char *) "pt", NULL
19419 };
19420
19421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
19422 if (obj0) {
19423 arg1 = (wxEventType)SWIG_As_int(obj0);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 if (obj1) {
19427 arg2 = (int)SWIG_As_int(obj1);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 if (obj2) {
19431 {
19432 arg3 = &temp3;
19433 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19434 }
19435 }
19436 {
19437 PyThreadState* __tstate = wxPyBeginAllowThreads();
19438 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
19439
19440 wxPyEndAllowThreads(__tstate);
19441 if (PyErr_Occurred()) SWIG_fail;
19442 }
19443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
19444 return resultobj;
19445 fail:
19446 return NULL;
19447 }
19448
19449
19450 static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19451 PyObject *resultobj;
19452 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19453 wxPoint *result;
19454 PyObject * obj0 = 0 ;
19455 char *kwnames[] = {
19456 (char *) "self", NULL
19457 };
19458
19459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
19460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 {
19465 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
19466 result = (wxPoint *) &_result_ref;
19467 }
19468
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19473 return resultobj;
19474 fail:
19475 return NULL;
19476 }
19477
19478
19479 static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj;
19481 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19482 wxPoint *arg2 = 0 ;
19483 wxPoint temp2 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 char *kwnames[] = {
19487 (char *) "self",(char *) "pos", NULL
19488 };
19489
19490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19493 {
19494 arg2 = &temp2;
19495 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19496 }
19497 {
19498 PyThreadState* __tstate = wxPyBeginAllowThreads();
19499 (arg1)->SetPosition((wxPoint const &)*arg2);
19500
19501 wxPyEndAllowThreads(__tstate);
19502 if (PyErr_Occurred()) SWIG_fail;
19503 }
19504 Py_INCREF(Py_None); resultobj = Py_None;
19505 return resultobj;
19506 fail:
19507 return NULL;
19508 }
19509
19510
19511 static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) {
19512 PyObject *obj;
19513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19514 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19515 Py_INCREF(obj);
19516 return Py_BuildValue((char *)"");
19517 }
19518 static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19519 PyObject *resultobj;
19520 wxIdleEvent *result;
19521 char *kwnames[] = {
19522 NULL
19523 };
19524
19525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 result = (wxIdleEvent *)new wxIdleEvent();
19529
19530 wxPyEndAllowThreads(__tstate);
19531 if (PyErr_Occurred()) SWIG_fail;
19532 }
19533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19534 return resultobj;
19535 fail:
19536 return NULL;
19537 }
19538
19539
19540 static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) {
19541 PyObject *resultobj;
19542 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19543 bool arg2 = (bool) true ;
19544 PyObject * obj0 = 0 ;
19545 PyObject * obj1 = 0 ;
19546 char *kwnames[] = {
19547 (char *) "self",(char *) "needMore", NULL
19548 };
19549
19550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19553 if (obj1) {
19554 arg2 = (bool)SWIG_As_bool(obj1);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 (arg1)->RequestMore(arg2);
19560
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 Py_INCREF(Py_None); resultobj = Py_None;
19565 return resultobj;
19566 fail:
19567 return NULL;
19568 }
19569
19570
19571 static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj;
19573 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19574 bool result;
19575 PyObject * obj0 = 0 ;
19576 char *kwnames[] = {
19577 (char *) "self", NULL
19578 };
19579
19580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19586
19587 wxPyEndAllowThreads(__tstate);
19588 if (PyErr_Occurred()) SWIG_fail;
19589 }
19590 {
19591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19592 }
19593 return resultobj;
19594 fail:
19595 return NULL;
19596 }
19597
19598
19599 static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj;
19601 int arg1 ;
19602 PyObject * obj0 = 0 ;
19603 char *kwnames[] = {
19604 (char *) "mode", NULL
19605 };
19606
19607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19608 arg1 = (int)SWIG_As_int(obj0);
19609 if (PyErr_Occurred()) SWIG_fail;
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 wxIdleEvent::SetMode((wxIdleMode )arg1);
19613
19614 wxPyEndAllowThreads(__tstate);
19615 if (PyErr_Occurred()) SWIG_fail;
19616 }
19617 Py_INCREF(Py_None); resultobj = Py_None;
19618 return resultobj;
19619 fail:
19620 return NULL;
19621 }
19622
19623
19624 static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj;
19626 int result;
19627 char *kwnames[] = {
19628 NULL
19629 };
19630
19631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19632 {
19633 PyThreadState* __tstate = wxPyBeginAllowThreads();
19634 result = (int)wxIdleEvent::GetMode();
19635
19636 wxPyEndAllowThreads(__tstate);
19637 if (PyErr_Occurred()) SWIG_fail;
19638 }
19639 resultobj = SWIG_From_int((int)result);
19640 return resultobj;
19641 fail:
19642 return NULL;
19643 }
19644
19645
19646 static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) {
19647 PyObject *resultobj;
19648 wxWindow *arg1 = (wxWindow *) 0 ;
19649 bool result;
19650 PyObject * obj0 = 0 ;
19651 char *kwnames[] = {
19652 (char *) "win", NULL
19653 };
19654
19655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 result = (bool)wxIdleEvent::CanSend(arg1);
19661
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 {
19666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19667 }
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) {
19675 PyObject *obj;
19676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19677 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19678 Py_INCREF(obj);
19679 return Py_BuildValue((char *)"");
19680 }
19681 static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19682 PyObject *resultobj;
19683 int arg1 = (int) 0 ;
19684 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19685 wxPyEvent *result;
19686 PyObject * obj0 = 0 ;
19687 PyObject * obj1 = 0 ;
19688 char *kwnames[] = {
19689 (char *) "winid",(char *) "commandType", NULL
19690 };
19691
19692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19693 if (obj0) {
19694 arg1 = (int)SWIG_As_int(obj0);
19695 if (PyErr_Occurred()) SWIG_fail;
19696 }
19697 if (obj1) {
19698 arg2 = (wxEventType)SWIG_As_int(obj1);
19699 if (PyErr_Occurred()) SWIG_fail;
19700 }
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19704
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19709 return resultobj;
19710 fail:
19711 return NULL;
19712 }
19713
19714
19715 static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19716 PyObject *resultobj;
19717 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19718 PyObject * obj0 = 0 ;
19719 char *kwnames[] = {
19720 (char *) "self", NULL
19721 };
19722
19723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 delete arg1;
19729
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 Py_INCREF(Py_None); resultobj = Py_None;
19734 return resultobj;
19735 fail:
19736 return NULL;
19737 }
19738
19739
19740 static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj;
19742 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19743 PyObject *arg2 = (PyObject *) 0 ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 char *kwnames[] = {
19747 (char *) "self",(char *) "self", NULL
19748 };
19749
19750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19753 arg2 = obj1;
19754 {
19755 PyThreadState* __tstate = wxPyBeginAllowThreads();
19756 (arg1)->SetSelf(arg2);
19757
19758 wxPyEndAllowThreads(__tstate);
19759 if (PyErr_Occurred()) SWIG_fail;
19760 }
19761 Py_INCREF(Py_None); resultobj = Py_None;
19762 return resultobj;
19763 fail:
19764 return NULL;
19765 }
19766
19767
19768 static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
19769 PyObject *resultobj;
19770 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19771 PyObject *result;
19772 PyObject * obj0 = 0 ;
19773 char *kwnames[] = {
19774 (char *) "self", NULL
19775 };
19776
19777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19780 {
19781 PyThreadState* __tstate = wxPyBeginAllowThreads();
19782 result = (PyObject *)(arg1)->GetSelf();
19783
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = result;
19788 return resultobj;
19789 fail:
19790 return NULL;
19791 }
19792
19793
19794 static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) {
19795 PyObject *obj;
19796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19797 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19798 Py_INCREF(obj);
19799 return Py_BuildValue((char *)"");
19800 }
19801 static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19802 PyObject *resultobj;
19803 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19804 int arg2 = (int) 0 ;
19805 wxPyCommandEvent *result;
19806 PyObject * obj0 = 0 ;
19807 PyObject * obj1 = 0 ;
19808 char *kwnames[] = {
19809 (char *) "commandType",(char *) "id", NULL
19810 };
19811
19812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19813 if (obj0) {
19814 arg1 = (wxEventType)SWIG_As_int(obj0);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 if (obj1) {
19818 arg2 = (int)SWIG_As_int(obj1);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19824
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
19828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19829 return resultobj;
19830 fail:
19831 return NULL;
19832 }
19833
19834
19835 static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj;
19837 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19838 PyObject * obj0 = 0 ;
19839 char *kwnames[] = {
19840 (char *) "self", NULL
19841 };
19842
19843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 delete arg1;
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 Py_INCREF(Py_None); resultobj = Py_None;
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj;
19862 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19863 PyObject *arg2 = (PyObject *) 0 ;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self",(char *) "self", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19873 arg2 = obj1;
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 (arg1)->SetSelf(arg2);
19877
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 Py_INCREF(Py_None); resultobj = Py_None;
19882 return resultobj;
19883 fail:
19884 return NULL;
19885 }
19886
19887
19888 static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj;
19890 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19891 PyObject *result;
19892 PyObject * obj0 = 0 ;
19893 char *kwnames[] = {
19894 (char *) "self", NULL
19895 };
19896
19897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 result = (PyObject *)(arg1)->GetSelf();
19903
19904 wxPyEndAllowThreads(__tstate);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 }
19907 resultobj = result;
19908 return resultobj;
19909 fail:
19910 return NULL;
19911 }
19912
19913
19914 static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) {
19915 PyObject *obj;
19916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19917 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19918 Py_INCREF(obj);
19919 return Py_BuildValue((char *)"");
19920 }
19921 static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
19922 PyObject *resultobj;
19923 wxPyApp *result;
19924 char *kwnames[] = {
19925 NULL
19926 };
19927
19928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19929 {
19930 PyThreadState* __tstate = wxPyBeginAllowThreads();
19931 result = (wxPyApp *)new_wxPyApp();
19932
19933 wxPyEndAllowThreads(__tstate);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 }
19936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1);
19937 return resultobj;
19938 fail:
19939 return NULL;
19940 }
19941
19942
19943 static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
19944 PyObject *resultobj;
19945 wxPyApp *arg1 = (wxPyApp *) 0 ;
19946 PyObject * obj0 = 0 ;
19947 char *kwnames[] = {
19948 (char *) "self", NULL
19949 };
19950
19951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 delete arg1;
19957
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 Py_INCREF(Py_None); resultobj = Py_None;
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
19969 PyObject *resultobj;
19970 wxPyApp *arg1 = (wxPyApp *) 0 ;
19971 PyObject *arg2 = (PyObject *) 0 ;
19972 PyObject *arg3 = (PyObject *) 0 ;
19973 PyObject * obj0 = 0 ;
19974 PyObject * obj1 = 0 ;
19975 PyObject * obj2 = 0 ;
19976 char *kwnames[] = {
19977 (char *) "self",(char *) "self",(char *) "_class", NULL
19978 };
19979
19980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19983 arg2 = obj1;
19984 arg3 = obj2;
19985 {
19986 PyThreadState* __tstate = wxPyBeginAllowThreads();
19987 (arg1)->_setCallbackInfo(arg2,arg3);
19988
19989 wxPyEndAllowThreads(__tstate);
19990 if (PyErr_Occurred()) SWIG_fail;
19991 }
19992 Py_INCREF(Py_None); resultobj = Py_None;
19993 return resultobj;
19994 fail:
19995 return NULL;
19996 }
19997
19998
19999 static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
20000 PyObject *resultobj;
20001 wxPyApp *arg1 = (wxPyApp *) 0 ;
20002 wxString result;
20003 PyObject * obj0 = 0 ;
20004 char *kwnames[] = {
20005 (char *) "self", NULL
20006 };
20007
20008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
20009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20011 {
20012 PyThreadState* __tstate = wxPyBeginAllowThreads();
20013 result = ((wxPyApp const *)arg1)->GetAppName();
20014
20015 wxPyEndAllowThreads(__tstate);
20016 if (PyErr_Occurred()) SWIG_fail;
20017 }
20018 {
20019 #if wxUSE_UNICODE
20020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20021 #else
20022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20023 #endif
20024 }
20025 return resultobj;
20026 fail:
20027 return NULL;
20028 }
20029
20030
20031 static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
20032 PyObject *resultobj;
20033 wxPyApp *arg1 = (wxPyApp *) 0 ;
20034 wxString *arg2 = 0 ;
20035 bool temp2 = false ;
20036 PyObject * obj0 = 0 ;
20037 PyObject * obj1 = 0 ;
20038 char *kwnames[] = {
20039 (char *) "self",(char *) "name", NULL
20040 };
20041
20042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
20043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20045 {
20046 arg2 = wxString_in_helper(obj1);
20047 if (arg2 == NULL) SWIG_fail;
20048 temp2 = true;
20049 }
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 (arg1)->SetAppName((wxString const &)*arg2);
20053
20054 wxPyEndAllowThreads(__tstate);
20055 if (PyErr_Occurred()) SWIG_fail;
20056 }
20057 Py_INCREF(Py_None); resultobj = Py_None;
20058 {
20059 if (temp2)
20060 delete arg2;
20061 }
20062 return resultobj;
20063 fail:
20064 {
20065 if (temp2)
20066 delete arg2;
20067 }
20068 return NULL;
20069 }
20070
20071
20072 static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
20073 PyObject *resultobj;
20074 wxPyApp *arg1 = (wxPyApp *) 0 ;
20075 wxString result;
20076 PyObject * obj0 = 0 ;
20077 char *kwnames[] = {
20078 (char *) "self", NULL
20079 };
20080
20081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
20082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 result = ((wxPyApp const *)arg1)->GetClassName();
20087
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 {
20092 #if wxUSE_UNICODE
20093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20094 #else
20095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20096 #endif
20097 }
20098 return resultobj;
20099 fail:
20100 return NULL;
20101 }
20102
20103
20104 static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
20105 PyObject *resultobj;
20106 wxPyApp *arg1 = (wxPyApp *) 0 ;
20107 wxString *arg2 = 0 ;
20108 bool temp2 = false ;
20109 PyObject * obj0 = 0 ;
20110 PyObject * obj1 = 0 ;
20111 char *kwnames[] = {
20112 (char *) "self",(char *) "name", NULL
20113 };
20114
20115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
20116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20118 {
20119 arg2 = wxString_in_helper(obj1);
20120 if (arg2 == NULL) SWIG_fail;
20121 temp2 = true;
20122 }
20123 {
20124 PyThreadState* __tstate = wxPyBeginAllowThreads();
20125 (arg1)->SetClassName((wxString const &)*arg2);
20126
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 Py_INCREF(Py_None); resultobj = Py_None;
20131 {
20132 if (temp2)
20133 delete arg2;
20134 }
20135 return resultobj;
20136 fail:
20137 {
20138 if (temp2)
20139 delete arg2;
20140 }
20141 return NULL;
20142 }
20143
20144
20145 static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj;
20147 wxPyApp *arg1 = (wxPyApp *) 0 ;
20148 wxString *result;
20149 PyObject * obj0 = 0 ;
20150 char *kwnames[] = {
20151 (char *) "self", NULL
20152 };
20153
20154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
20155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20157 {
20158 PyThreadState* __tstate = wxPyBeginAllowThreads();
20159 {
20160 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
20161 result = (wxString *) &_result_ref;
20162 }
20163
20164 wxPyEndAllowThreads(__tstate);
20165 if (PyErr_Occurred()) SWIG_fail;
20166 }
20167 {
20168 #if wxUSE_UNICODE
20169 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20170 #else
20171 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20172 #endif
20173 }
20174 return resultobj;
20175 fail:
20176 return NULL;
20177 }
20178
20179
20180 static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
20181 PyObject *resultobj;
20182 wxPyApp *arg1 = (wxPyApp *) 0 ;
20183 wxString *arg2 = 0 ;
20184 bool temp2 = false ;
20185 PyObject * obj0 = 0 ;
20186 PyObject * obj1 = 0 ;
20187 char *kwnames[] = {
20188 (char *) "self",(char *) "name", NULL
20189 };
20190
20191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
20192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20194 {
20195 arg2 = wxString_in_helper(obj1);
20196 if (arg2 == NULL) SWIG_fail;
20197 temp2 = true;
20198 }
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 (arg1)->SetVendorName((wxString const &)*arg2);
20202
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 Py_INCREF(Py_None); resultobj = Py_None;
20207 {
20208 if (temp2)
20209 delete arg2;
20210 }
20211 return resultobj;
20212 fail:
20213 {
20214 if (temp2)
20215 delete arg2;
20216 }
20217 return NULL;
20218 }
20219
20220
20221 static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) {
20222 PyObject *resultobj;
20223 wxPyApp *arg1 = (wxPyApp *) 0 ;
20224 wxAppTraits *result;
20225 PyObject * obj0 = 0 ;
20226 char *kwnames[] = {
20227 (char *) "self", NULL
20228 };
20229
20230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
20231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20233 {
20234 PyThreadState* __tstate = wxPyBeginAllowThreads();
20235 result = (wxAppTraits *)(arg1)->GetTraits();
20236
20237 wxPyEndAllowThreads(__tstate);
20238 if (PyErr_Occurred()) SWIG_fail;
20239 }
20240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
20241 return resultobj;
20242 fail:
20243 return NULL;
20244 }
20245
20246
20247 static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
20248 PyObject *resultobj;
20249 wxPyApp *arg1 = (wxPyApp *) 0 ;
20250 PyObject * obj0 = 0 ;
20251 char *kwnames[] = {
20252 (char *) "self", NULL
20253 };
20254
20255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
20256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20258 {
20259 PyThreadState* __tstate = wxPyBeginAllowThreads();
20260 (arg1)->ProcessPendingEvents();
20261
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 Py_INCREF(Py_None); resultobj = Py_None;
20266 return resultobj;
20267 fail:
20268 return NULL;
20269 }
20270
20271
20272 static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
20273 PyObject *resultobj;
20274 wxPyApp *arg1 = (wxPyApp *) 0 ;
20275 bool arg2 = (bool) false ;
20276 bool result;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 char *kwnames[] = {
20280 (char *) "self",(char *) "onlyIfNeeded", NULL
20281 };
20282
20283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
20284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20286 if (obj1) {
20287 arg2 = (bool)SWIG_As_bool(obj1);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 {
20291 PyThreadState* __tstate = wxPyBeginAllowThreads();
20292 result = (bool)(arg1)->Yield(arg2);
20293
20294 wxPyEndAllowThreads(__tstate);
20295 if (PyErr_Occurred()) SWIG_fail;
20296 }
20297 {
20298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20299 }
20300 return resultobj;
20301 fail:
20302 return NULL;
20303 }
20304
20305
20306 static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
20307 PyObject *resultobj;
20308 wxPyApp *arg1 = (wxPyApp *) 0 ;
20309 PyObject * obj0 = 0 ;
20310 char *kwnames[] = {
20311 (char *) "self", NULL
20312 };
20313
20314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
20315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20317 {
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 (arg1)->WakeUpIdle();
20320
20321 wxPyEndAllowThreads(__tstate);
20322 if (PyErr_Occurred()) SWIG_fail;
20323 }
20324 Py_INCREF(Py_None); resultobj = Py_None;
20325 return resultobj;
20326 fail:
20327 return NULL;
20328 }
20329
20330
20331 static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) {
20332 PyObject *resultobj;
20333 bool result;
20334 char *kwnames[] = {
20335 NULL
20336 };
20337
20338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail;
20339 {
20340 PyThreadState* __tstate = wxPyBeginAllowThreads();
20341 result = (bool)wxPyApp::IsMainLoopRunning();
20342
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 {
20347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20348 }
20349 return resultobj;
20350 fail:
20351 return NULL;
20352 }
20353
20354
20355 static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
20356 PyObject *resultobj;
20357 wxPyApp *arg1 = (wxPyApp *) 0 ;
20358 int result;
20359 PyObject * obj0 = 0 ;
20360 char *kwnames[] = {
20361 (char *) "self", NULL
20362 };
20363
20364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
20365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20367 {
20368 PyThreadState* __tstate = wxPyBeginAllowThreads();
20369 result = (int)(arg1)->MainLoop();
20370
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = SWIG_From_int((int)result);
20375 return resultobj;
20376 fail:
20377 return NULL;
20378 }
20379
20380
20381 static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
20382 PyObject *resultobj;
20383 wxPyApp *arg1 = (wxPyApp *) 0 ;
20384 PyObject * obj0 = 0 ;
20385 char *kwnames[] = {
20386 (char *) "self", NULL
20387 };
20388
20389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
20390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 (arg1)->Exit();
20395
20396 wxPyEndAllowThreads(__tstate);
20397 if (PyErr_Occurred()) SWIG_fail;
20398 }
20399 Py_INCREF(Py_None); resultobj = Py_None;
20400 return resultobj;
20401 fail:
20402 return NULL;
20403 }
20404
20405
20406 static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
20407 PyObject *resultobj;
20408 wxPyApp *arg1 = (wxPyApp *) 0 ;
20409 PyObject * obj0 = 0 ;
20410 char *kwnames[] = {
20411 (char *) "self", NULL
20412 };
20413
20414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
20415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20417 {
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 (arg1)->ExitMainLoop();
20420
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 Py_INCREF(Py_None); resultobj = Py_None;
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj;
20433 wxPyApp *arg1 = (wxPyApp *) 0 ;
20434 bool result;
20435 PyObject * obj0 = 0 ;
20436 char *kwnames[] = {
20437 (char *) "self", NULL
20438 };
20439
20440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
20441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20443 {
20444 PyThreadState* __tstate = wxPyBeginAllowThreads();
20445 result = (bool)(arg1)->Pending();
20446
20447 wxPyEndAllowThreads(__tstate);
20448 if (PyErr_Occurred()) SWIG_fail;
20449 }
20450 {
20451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20452 }
20453 return resultobj;
20454 fail:
20455 return NULL;
20456 }
20457
20458
20459 static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
20460 PyObject *resultobj;
20461 wxPyApp *arg1 = (wxPyApp *) 0 ;
20462 bool result;
20463 PyObject * obj0 = 0 ;
20464 char *kwnames[] = {
20465 (char *) "self", NULL
20466 };
20467
20468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
20469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 result = (bool)(arg1)->Dispatch();
20474
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 {
20479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20480 }
20481 return resultobj;
20482 fail:
20483 return NULL;
20484 }
20485
20486
20487 static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj;
20489 wxPyApp *arg1 = (wxPyApp *) 0 ;
20490 bool result;
20491 PyObject * obj0 = 0 ;
20492 char *kwnames[] = {
20493 (char *) "self", NULL
20494 };
20495
20496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
20497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20499 {
20500 PyThreadState* __tstate = wxPyBeginAllowThreads();
20501 result = (bool)(arg1)->ProcessIdle();
20502
20503 wxPyEndAllowThreads(__tstate);
20504 if (PyErr_Occurred()) SWIG_fail;
20505 }
20506 {
20507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20508 }
20509 return resultobj;
20510 fail:
20511 return NULL;
20512 }
20513
20514
20515 static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) {
20516 PyObject *resultobj;
20517 wxPyApp *arg1 = (wxPyApp *) 0 ;
20518 wxWindow *arg2 = (wxWindow *) 0 ;
20519 wxIdleEvent *arg3 = 0 ;
20520 bool result;
20521 PyObject * obj0 = 0 ;
20522 PyObject * obj1 = 0 ;
20523 PyObject * obj2 = 0 ;
20524 char *kwnames[] = {
20525 (char *) "self",(char *) "win",(char *) "event", NULL
20526 };
20527
20528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20534 SWIG_POINTER_EXCEPTION | 0)) == -1)
20535 SWIG_fail;
20536 if (arg3 == NULL) {
20537 PyErr_SetString(PyExc_TypeError,"null reference");
20538 SWIG_fail;
20539 }
20540 {
20541 PyThreadState* __tstate = wxPyBeginAllowThreads();
20542 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20543
20544 wxPyEndAllowThreads(__tstate);
20545 if (PyErr_Occurred()) SWIG_fail;
20546 }
20547 {
20548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20549 }
20550 return resultobj;
20551 fail:
20552 return NULL;
20553 }
20554
20555
20556 static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj;
20558 wxPyApp *arg1 = (wxPyApp *) 0 ;
20559 bool result;
20560 PyObject * obj0 = 0 ;
20561 char *kwnames[] = {
20562 (char *) "self", NULL
20563 };
20564
20565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20568 {
20569 PyThreadState* __tstate = wxPyBeginAllowThreads();
20570 result = (bool)((wxPyApp const *)arg1)->IsActive();
20571
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 {
20576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20577 }
20578 return resultobj;
20579 fail:
20580 return NULL;
20581 }
20582
20583
20584 static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
20585 PyObject *resultobj;
20586 wxPyApp *arg1 = (wxPyApp *) 0 ;
20587 wxWindow *arg2 = (wxWindow *) 0 ;
20588 PyObject * obj0 = 0 ;
20589 PyObject * obj1 = 0 ;
20590 char *kwnames[] = {
20591 (char *) "self",(char *) "win", NULL
20592 };
20593
20594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 (arg1)->SetTopWindow(arg2);
20602
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 Py_INCREF(Py_None); resultobj = Py_None;
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj;
20615 wxPyApp *arg1 = (wxPyApp *) 0 ;
20616 wxWindow *result;
20617 PyObject * obj0 = 0 ;
20618 char *kwnames[] = {
20619 (char *) "self", NULL
20620 };
20621
20622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20628
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 {
20633 resultobj = wxPyMake_wxObject(result, 0);
20634 }
20635 return resultobj;
20636 fail:
20637 return NULL;
20638 }
20639
20640
20641 static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj;
20643 wxPyApp *arg1 = (wxPyApp *) 0 ;
20644 bool arg2 ;
20645 PyObject * obj0 = 0 ;
20646 PyObject * obj1 = 0 ;
20647 char *kwnames[] = {
20648 (char *) "self",(char *) "flag", NULL
20649 };
20650
20651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20654 arg2 = (bool)SWIG_As_bool(obj1);
20655 if (PyErr_Occurred()) SWIG_fail;
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 (arg1)->SetExitOnFrameDelete(arg2);
20659
20660 wxPyEndAllowThreads(__tstate);
20661 if (PyErr_Occurred()) SWIG_fail;
20662 }
20663 Py_INCREF(Py_None); resultobj = Py_None;
20664 return resultobj;
20665 fail:
20666 return NULL;
20667 }
20668
20669
20670 static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj;
20672 wxPyApp *arg1 = (wxPyApp *) 0 ;
20673 bool result;
20674 PyObject * obj0 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20685
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 {
20690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20691 }
20692 return resultobj;
20693 fail:
20694 return NULL;
20695 }
20696
20697
20698 static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj;
20700 wxPyApp *arg1 = (wxPyApp *) 0 ;
20701 bool arg2 ;
20702 PyObject * obj0 = 0 ;
20703 PyObject * obj1 = 0 ;
20704 char *kwnames[] = {
20705 (char *) "self",(char *) "flag", NULL
20706 };
20707
20708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20711 arg2 = (bool)SWIG_As_bool(obj1);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 (arg1)->SetUseBestVisual(arg2);
20716
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 Py_INCREF(Py_None); resultobj = Py_None;
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
20728 PyObject *resultobj;
20729 wxPyApp *arg1 = (wxPyApp *) 0 ;
20730 bool result;
20731 PyObject * obj0 = 0 ;
20732 char *kwnames[] = {
20733 (char *) "self", NULL
20734 };
20735
20736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20739 {
20740 PyThreadState* __tstate = wxPyBeginAllowThreads();
20741 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20742
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 {
20747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20748 }
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj;
20757 wxPyApp *arg1 = (wxPyApp *) 0 ;
20758 int arg2 ;
20759 PyObject * obj0 = 0 ;
20760 PyObject * obj1 = 0 ;
20761 char *kwnames[] = {
20762 (char *) "self",(char *) "mode", NULL
20763 };
20764
20765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20768 arg2 = (int)SWIG_As_int(obj1);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 {
20771 PyThreadState* __tstate = wxPyBeginAllowThreads();
20772 (arg1)->SetPrintMode(arg2);
20773
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
20777 Py_INCREF(Py_None); resultobj = Py_None;
20778 return resultobj;
20779 fail:
20780 return NULL;
20781 }
20782
20783
20784 static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
20785 PyObject *resultobj;
20786 wxPyApp *arg1 = (wxPyApp *) 0 ;
20787 int result;
20788 PyObject * obj0 = 0 ;
20789 char *kwnames[] = {
20790 (char *) "self", NULL
20791 };
20792
20793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20799
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_From_int((int)result);
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj;
20812 wxPyApp *arg1 = (wxPyApp *) 0 ;
20813 int arg2 ;
20814 PyObject * obj0 = 0 ;
20815 PyObject * obj1 = 0 ;
20816 char *kwnames[] = {
20817 (char *) "self",(char *) "mode", NULL
20818 };
20819
20820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20823 arg2 = (int)SWIG_As_int(obj1);
20824 if (PyErr_Occurred()) SWIG_fail;
20825 {
20826 PyThreadState* __tstate = wxPyBeginAllowThreads();
20827 (arg1)->SetAssertMode(arg2);
20828
20829 wxPyEndAllowThreads(__tstate);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 }
20832 Py_INCREF(Py_None); resultobj = Py_None;
20833 return resultobj;
20834 fail:
20835 return NULL;
20836 }
20837
20838
20839 static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
20840 PyObject *resultobj;
20841 wxPyApp *arg1 = (wxPyApp *) 0 ;
20842 int result;
20843 PyObject * obj0 = 0 ;
20844 char *kwnames[] = {
20845 (char *) "self", NULL
20846 };
20847
20848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 result = (int)(arg1)->GetAssertMode();
20854
20855 wxPyEndAllowThreads(__tstate);
20856 if (PyErr_Occurred()) SWIG_fail;
20857 }
20858 resultobj = SWIG_From_int((int)result);
20859 return resultobj;
20860 fail:
20861 return NULL;
20862 }
20863
20864
20865 static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
20866 PyObject *resultobj;
20867 bool result;
20868 char *kwnames[] = {
20869 NULL
20870 };
20871
20872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20876
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 {
20881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20882 }
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj;
20891 long result;
20892 char *kwnames[] = {
20893 NULL
20894 };
20895
20896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (long)wxPyApp::GetMacAboutMenuItemId();
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 resultobj = SWIG_From_long((long)result);
20905 return resultobj;
20906 fail:
20907 return NULL;
20908 }
20909
20910
20911 static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
20912 PyObject *resultobj;
20913 long result;
20914 char *kwnames[] = {
20915 NULL
20916 };
20917
20918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20922
20923 wxPyEndAllowThreads(__tstate);
20924 if (PyErr_Occurred()) SWIG_fail;
20925 }
20926 resultobj = SWIG_From_long((long)result);
20927 return resultobj;
20928 fail:
20929 return NULL;
20930 }
20931
20932
20933 static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
20934 PyObject *resultobj;
20935 long result;
20936 char *kwnames[] = {
20937 NULL
20938 };
20939
20940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (long)wxPyApp::GetMacExitMenuItemId();
20944
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_From_long((long)result);
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj;
20957 wxString result;
20958 char *kwnames[] = {
20959 NULL
20960 };
20961
20962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20963 {
20964 PyThreadState* __tstate = wxPyBeginAllowThreads();
20965 result = wxPyApp::GetMacHelpMenuTitleName();
20966
20967 wxPyEndAllowThreads(__tstate);
20968 if (PyErr_Occurred()) SWIG_fail;
20969 }
20970 {
20971 #if wxUSE_UNICODE
20972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20973 #else
20974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20975 #endif
20976 }
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
20984 PyObject *resultobj;
20985 bool arg1 ;
20986 PyObject * obj0 = 0 ;
20987 char *kwnames[] = {
20988 (char *) "val", NULL
20989 };
20990
20991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20992 arg1 = (bool)SWIG_As_bool(obj0);
20993 if (PyErr_Occurred()) SWIG_fail;
20994 {
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
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_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
21009 PyObject *resultobj;
21010 long arg1 ;
21011 PyObject * obj0 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "val", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
21017 arg1 = (long)SWIG_As_long(obj0);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 wxPyApp::SetMacAboutMenuItemId(arg1);
21022
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 Py_INCREF(Py_None); resultobj = Py_None;
21027 return resultobj;
21028 fail:
21029 return NULL;
21030 }
21031
21032
21033 static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
21034 PyObject *resultobj;
21035 long arg1 ;
21036 PyObject * obj0 = 0 ;
21037 char *kwnames[] = {
21038 (char *) "val", NULL
21039 };
21040
21041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
21042 arg1 = (long)SWIG_As_long(obj0);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 {
21045 PyThreadState* __tstate = wxPyBeginAllowThreads();
21046 wxPyApp::SetMacPreferencesMenuItemId(arg1);
21047
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 Py_INCREF(Py_None); resultobj = Py_None;
21052 return resultobj;
21053 fail:
21054 return NULL;
21055 }
21056
21057
21058 static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
21059 PyObject *resultobj;
21060 long arg1 ;
21061 PyObject * obj0 = 0 ;
21062 char *kwnames[] = {
21063 (char *) "val", NULL
21064 };
21065
21066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
21067 arg1 = (long)SWIG_As_long(obj0);
21068 if (PyErr_Occurred()) SWIG_fail;
21069 {
21070 PyThreadState* __tstate = wxPyBeginAllowThreads();
21071 wxPyApp::SetMacExitMenuItemId(arg1);
21072
21073 wxPyEndAllowThreads(__tstate);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 }
21076 Py_INCREF(Py_None); resultobj = Py_None;
21077 return resultobj;
21078 fail:
21079 return NULL;
21080 }
21081
21082
21083 static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
21084 PyObject *resultobj;
21085 wxString *arg1 = 0 ;
21086 bool temp1 = false ;
21087 PyObject * obj0 = 0 ;
21088 char *kwnames[] = {
21089 (char *) "val", NULL
21090 };
21091
21092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
21093 {
21094 arg1 = wxString_in_helper(obj0);
21095 if (arg1 == NULL) SWIG_fail;
21096 temp1 = true;
21097 }
21098 {
21099 PyThreadState* __tstate = wxPyBeginAllowThreads();
21100 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
21101
21102 wxPyEndAllowThreads(__tstate);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 Py_INCREF(Py_None); resultobj = Py_None;
21106 {
21107 if (temp1)
21108 delete arg1;
21109 }
21110 return resultobj;
21111 fail:
21112 {
21113 if (temp1)
21114 delete arg1;
21115 }
21116 return NULL;
21117 }
21118
21119
21120 static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) {
21121 PyObject *resultobj;
21122 wxPyApp *arg1 = (wxPyApp *) 0 ;
21123 PyObject * obj0 = 0 ;
21124 char *kwnames[] = {
21125 (char *) "self", NULL
21126 };
21127
21128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
21129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
21130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 (arg1)->_BootstrapApp();
21134
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 Py_INCREF(Py_None); resultobj = Py_None;
21139 return resultobj;
21140 fail:
21141 return NULL;
21142 }
21143
21144
21145 static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) {
21146 PyObject *resultobj;
21147 int result;
21148 char *kwnames[] = {
21149 NULL
21150 };
21151
21152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
21153 {
21154 PyThreadState* __tstate = wxPyBeginAllowThreads();
21155 result = (int)PyApp_GetComCtl32Version();
21156
21157 wxPyEndAllowThreads(__tstate);
21158 if (PyErr_Occurred()) SWIG_fail;
21159 }
21160 resultobj = SWIG_From_int((int)result);
21161 return resultobj;
21162 fail:
21163 return NULL;
21164 }
21165
21166
21167 static PyObject * PyApp_swigregister(PyObject *, PyObject *args) {
21168 PyObject *obj;
21169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21170 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
21171 Py_INCREF(obj);
21172 return Py_BuildValue((char *)"");
21173 }
21174 static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 char *kwnames[] = {
21177 NULL
21178 };
21179
21180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 wxExit();
21184
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 Py_INCREF(Py_None); resultobj = Py_None;
21189 return resultobj;
21190 fail:
21191 return NULL;
21192 }
21193
21194
21195 static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
21196 PyObject *resultobj;
21197 bool result;
21198 char *kwnames[] = {
21199 NULL
21200 };
21201
21202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 result = (bool)wxYield();
21206
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 {
21211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21212 }
21213 return resultobj;
21214 fail:
21215 return NULL;
21216 }
21217
21218
21219 static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) {
21220 PyObject *resultobj;
21221 bool result;
21222 char *kwnames[] = {
21223 NULL
21224 };
21225
21226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = (bool)wxYieldIfNeeded();
21230
21231 wxPyEndAllowThreads(__tstate);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 {
21235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21236 }
21237 return resultobj;
21238 fail:
21239 return NULL;
21240 }
21241
21242
21243 static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) {
21244 PyObject *resultobj;
21245 wxWindow *arg1 = (wxWindow *) NULL ;
21246 bool arg2 = (bool) false ;
21247 bool result;
21248 PyObject * obj0 = 0 ;
21249 PyObject * obj1 = 0 ;
21250 char *kwnames[] = {
21251 (char *) "win",(char *) "onlyIfNeeded", NULL
21252 };
21253
21254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
21255 if (obj0) {
21256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21258 }
21259 if (obj1) {
21260 arg2 = (bool)SWIG_As_bool(obj1);
21261 if (PyErr_Occurred()) SWIG_fail;
21262 }
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 result = (bool)wxSafeYield(arg1,arg2);
21266
21267 wxPyEndAllowThreads(__tstate);
21268 if (PyErr_Occurred()) SWIG_fail;
21269 }
21270 {
21271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21272 }
21273 return resultobj;
21274 fail:
21275 return NULL;
21276 }
21277
21278
21279 static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
21280 PyObject *resultobj;
21281 char *kwnames[] = {
21282 NULL
21283 };
21284
21285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
21286 {
21287 PyThreadState* __tstate = wxPyBeginAllowThreads();
21288 wxWakeUpIdle();
21289
21290 wxPyEndAllowThreads(__tstate);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 }
21293 Py_INCREF(Py_None); resultobj = Py_None;
21294 return resultobj;
21295 fail:
21296 return NULL;
21297 }
21298
21299
21300 static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21301 PyObject *resultobj;
21302 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
21303 wxEvent *arg2 = 0 ;
21304 PyObject * obj0 = 0 ;
21305 PyObject * obj1 = 0 ;
21306 char *kwnames[] = {
21307 (char *) "dest",(char *) "event", NULL
21308 };
21309
21310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
21311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
21312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
21314 SWIG_POINTER_EXCEPTION | 0)) == -1)
21315 SWIG_fail;
21316 if (arg2 == NULL) {
21317 PyErr_SetString(PyExc_TypeError,"null reference");
21318 SWIG_fail;
21319 }
21320 {
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 wxPostEvent(arg1,*arg2);
21323
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 Py_INCREF(Py_None); resultobj = Py_None;
21328 return resultobj;
21329 fail:
21330 return NULL;
21331 }
21332
21333
21334 static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) {
21335 PyObject *resultobj;
21336 char *kwnames[] = {
21337 NULL
21338 };
21339
21340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 wxApp_CleanUp();
21344
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 Py_INCREF(Py_None); resultobj = Py_None;
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) {
21356 PyObject *resultobj;
21357 wxPyApp *result;
21358 char *kwnames[] = {
21359 NULL
21360 };
21361
21362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
21363 {
21364 PyThreadState* __tstate = wxPyBeginAllowThreads();
21365 result = (wxPyApp *)wxPyGetApp();
21366
21367 wxPyEndAllowThreads(__tstate);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 }
21370 {
21371 resultobj = wxPyMake_wxObject(result, 0);
21372 }
21373 return resultobj;
21374 fail:
21375 return NULL;
21376 }
21377
21378
21379 static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
21380 PyObject *resultobj;
21381 wxEventLoop *result;
21382 char *kwnames[] = {
21383 NULL
21384 };
21385
21386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail;
21387 {
21388 PyThreadState* __tstate = wxPyBeginAllowThreads();
21389 result = (wxEventLoop *)new wxEventLoop();
21390
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1);
21395 return resultobj;
21396 fail:
21397 return NULL;
21398 }
21399
21400
21401 static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
21402 PyObject *resultobj;
21403 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21404 PyObject * obj0 = 0 ;
21405 char *kwnames[] = {
21406 (char *) "self", NULL
21407 };
21408
21409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail;
21410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 delete arg1;
21415
21416 wxPyEndAllowThreads(__tstate);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 }
21419 Py_INCREF(Py_None); resultobj = Py_None;
21420 return resultobj;
21421 fail:
21422 return NULL;
21423 }
21424
21425
21426 static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) {
21427 PyObject *resultobj;
21428 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21429 int result;
21430 PyObject * obj0 = 0 ;
21431 char *kwnames[] = {
21432 (char *) "self", NULL
21433 };
21434
21435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail;
21436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21438 {
21439 PyThreadState* __tstate = wxPyBeginAllowThreads();
21440 result = (int)(arg1)->Run();
21441
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
21445 resultobj = SWIG_From_int((int)result);
21446 return resultobj;
21447 fail:
21448 return NULL;
21449 }
21450
21451
21452 static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
21453 PyObject *resultobj;
21454 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21455 int arg2 = (int) 0 ;
21456 PyObject * obj0 = 0 ;
21457 PyObject * obj1 = 0 ;
21458 char *kwnames[] = {
21459 (char *) "self",(char *) "rc", NULL
21460 };
21461
21462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail;
21463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21465 if (obj1) {
21466 arg2 = (int)SWIG_As_int(obj1);
21467 if (PyErr_Occurred()) SWIG_fail;
21468 }
21469 {
21470 PyThreadState* __tstate = wxPyBeginAllowThreads();
21471 (arg1)->Exit(arg2);
21472
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 Py_INCREF(Py_None); resultobj = Py_None;
21477 return resultobj;
21478 fail:
21479 return NULL;
21480 }
21481
21482
21483 static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
21484 PyObject *resultobj;
21485 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21486 bool result;
21487 PyObject * obj0 = 0 ;
21488 char *kwnames[] = {
21489 (char *) "self", NULL
21490 };
21491
21492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail;
21493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 result = (bool)((wxEventLoop const *)arg1)->Pending();
21498
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 {
21503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21504 }
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj;
21513 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21514 bool result;
21515 PyObject * obj0 = 0 ;
21516 char *kwnames[] = {
21517 (char *) "self", NULL
21518 };
21519
21520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail;
21521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21523 {
21524 PyThreadState* __tstate = wxPyBeginAllowThreads();
21525 result = (bool)(arg1)->Dispatch();
21526
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 {
21531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21532 }
21533 return resultobj;
21534 fail:
21535 return NULL;
21536 }
21537
21538
21539 static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
21540 PyObject *resultobj;
21541 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21542 bool result;
21543 PyObject * obj0 = 0 ;
21544 char *kwnames[] = {
21545 (char *) "self", NULL
21546 };
21547
21548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail;
21549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21551 {
21552 PyThreadState* __tstate = wxPyBeginAllowThreads();
21553 result = (bool)((wxEventLoop const *)arg1)->IsRunning();
21554
21555 wxPyEndAllowThreads(__tstate);
21556 if (PyErr_Occurred()) SWIG_fail;
21557 }
21558 {
21559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21560 }
21561 return resultobj;
21562 fail:
21563 return NULL;
21564 }
21565
21566
21567 static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
21568 PyObject *resultobj;
21569 wxEventLoop *result;
21570 char *kwnames[] = {
21571 NULL
21572 };
21573
21574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail;
21575 {
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (wxEventLoop *)wxEventLoop::GetActive();
21578
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0);
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj;
21591 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
21592 PyObject * obj0 = 0 ;
21593 char *kwnames[] = {
21594 (char *) "loop", NULL
21595 };
21596
21597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail;
21598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop,
21599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21600 {
21601 PyThreadState* __tstate = wxPyBeginAllowThreads();
21602 wxEventLoop::SetActive(arg1);
21603
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 Py_INCREF(Py_None); resultobj = Py_None;
21608 return resultobj;
21609 fail:
21610 return NULL;
21611 }
21612
21613
21614 static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) {
21615 PyObject *obj;
21616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21617 SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj);
21618 Py_INCREF(obj);
21619 return Py_BuildValue((char *)"");
21620 }
21621 static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
21622 PyObject *resultobj;
21623 int arg1 = (int) 0 ;
21624 int arg2 = (int) 0 ;
21625 int arg3 = (int) 0 ;
21626 wxAcceleratorEntry *result;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 PyObject * obj2 = 0 ;
21630 char *kwnames[] = {
21631 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
21632 };
21633
21634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
21635 if (obj0) {
21636 arg1 = (int)SWIG_As_int(obj0);
21637 if (PyErr_Occurred()) SWIG_fail;
21638 }
21639 if (obj1) {
21640 arg2 = (int)SWIG_As_int(obj1);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 if (obj2) {
21644 arg3 = (int)SWIG_As_int(obj2);
21645 if (PyErr_Occurred()) SWIG_fail;
21646 }
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
21650
21651 wxPyEndAllowThreads(__tstate);
21652 if (PyErr_Occurred()) SWIG_fail;
21653 }
21654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
21655 return resultobj;
21656 fail:
21657 return NULL;
21658 }
21659
21660
21661 static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
21662 PyObject *resultobj;
21663 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21664 PyObject * obj0 = 0 ;
21665 char *kwnames[] = {
21666 (char *) "self", NULL
21667 };
21668
21669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
21670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 delete arg1;
21675
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 Py_INCREF(Py_None); resultobj = Py_None;
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj;
21688 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21689 int arg2 ;
21690 int arg3 ;
21691 int arg4 ;
21692 PyObject * obj0 = 0 ;
21693 PyObject * obj1 = 0 ;
21694 PyObject * obj2 = 0 ;
21695 PyObject * obj3 = 0 ;
21696 char *kwnames[] = {
21697 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
21698 };
21699
21700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21703 arg2 = (int)SWIG_As_int(obj1);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 arg3 = (int)SWIG_As_int(obj2);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 arg4 = (int)SWIG_As_int(obj3);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 {
21710 PyThreadState* __tstate = wxPyBeginAllowThreads();
21711 (arg1)->Set(arg2,arg3,arg4);
21712
21713 wxPyEndAllowThreads(__tstate);
21714 if (PyErr_Occurred()) SWIG_fail;
21715 }
21716 Py_INCREF(Py_None); resultobj = Py_None;
21717 return resultobj;
21718 fail:
21719 return NULL;
21720 }
21721
21722
21723 static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
21724 PyObject *resultobj;
21725 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21726 int result;
21727 PyObject * obj0 = 0 ;
21728 char *kwnames[] = {
21729 (char *) "self", NULL
21730 };
21731
21732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
21733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
21737 result = (int)(arg1)->GetFlags();
21738
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 resultobj = SWIG_From_int((int)result);
21743 return resultobj;
21744 fail:
21745 return NULL;
21746 }
21747
21748
21749 static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
21750 PyObject *resultobj;
21751 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21752 int result;
21753 PyObject * obj0 = 0 ;
21754 char *kwnames[] = {
21755 (char *) "self", NULL
21756 };
21757
21758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
21759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21761 {
21762 PyThreadState* __tstate = wxPyBeginAllowThreads();
21763 result = (int)(arg1)->GetKeyCode();
21764
21765 wxPyEndAllowThreads(__tstate);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 resultobj = SWIG_From_int((int)result);
21769 return resultobj;
21770 fail:
21771 return NULL;
21772 }
21773
21774
21775 static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj;
21777 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21778 int result;
21779 PyObject * obj0 = 0 ;
21780 char *kwnames[] = {
21781 (char *) "self", NULL
21782 };
21783
21784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21787 {
21788 PyThreadState* __tstate = wxPyBeginAllowThreads();
21789 result = (int)(arg1)->GetCommand();
21790
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_From_int((int)result);
21795 return resultobj;
21796 fail:
21797 return NULL;
21798 }
21799
21800
21801 static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) {
21802 PyObject *obj;
21803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21804 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21805 Py_INCREF(obj);
21806 return Py_BuildValue((char *)"");
21807 }
21808 static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
21809 PyObject *resultobj;
21810 int arg1 ;
21811 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21812 wxAcceleratorTable *result;
21813 PyObject * obj0 = 0 ;
21814 char *kwnames[] = {
21815 (char *) "n", NULL
21816 };
21817
21818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21819 {
21820 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21821 if (arg2) arg1 = PyList_Size(obj0);
21822 else arg1 = 0;
21823 }
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21827
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21832 {
21833 delete [] arg2;
21834 }
21835 return resultobj;
21836 fail:
21837 {
21838 delete [] arg2;
21839 }
21840 return NULL;
21841 }
21842
21843
21844 static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
21845 PyObject *resultobj;
21846 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21847 PyObject * obj0 = 0 ;
21848 char *kwnames[] = {
21849 (char *) "self", NULL
21850 };
21851
21852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21855 {
21856 PyThreadState* __tstate = wxPyBeginAllowThreads();
21857 delete arg1;
21858
21859 wxPyEndAllowThreads(__tstate);
21860 if (PyErr_Occurred()) SWIG_fail;
21861 }
21862 Py_INCREF(Py_None); resultobj = Py_None;
21863 return resultobj;
21864 fail:
21865 return NULL;
21866 }
21867
21868
21869 static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
21870 PyObject *resultobj;
21871 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21872 bool result;
21873 PyObject * obj0 = 0 ;
21874 char *kwnames[] = {
21875 (char *) "self", NULL
21876 };
21877
21878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21884
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21890 }
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) {
21898 PyObject *obj;
21899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21900 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21901 Py_INCREF(obj);
21902 return Py_BuildValue((char *)"");
21903 }
21904 static int _wrap_NullAcceleratorTable_set(PyObject *) {
21905 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21906 return 1;
21907 }
21908
21909
21910 static PyObject *_wrap_NullAcceleratorTable_get() {
21911 PyObject *pyobj;
21912
21913 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21914 return pyobj;
21915 }
21916
21917
21918 static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) {
21919 PyObject *resultobj;
21920 wxString *arg1 = 0 ;
21921 wxAcceleratorEntry *result;
21922 bool temp1 = false ;
21923 PyObject * obj0 = 0 ;
21924 char *kwnames[] = {
21925 (char *) "label", NULL
21926 };
21927
21928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21929 {
21930 arg1 = wxString_in_helper(obj0);
21931 if (arg1 == NULL) SWIG_fail;
21932 temp1 = true;
21933 }
21934 {
21935 PyThreadState* __tstate = wxPyBeginAllowThreads();
21936 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21937
21938 wxPyEndAllowThreads(__tstate);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 }
21941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21942 {
21943 if (temp1)
21944 delete arg1;
21945 }
21946 return resultobj;
21947 fail:
21948 {
21949 if (temp1)
21950 delete arg1;
21951 }
21952 return NULL;
21953 }
21954
21955
21956 static int _wrap_PanelNameStr_set(PyObject *) {
21957 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21958 return 1;
21959 }
21960
21961
21962 static PyObject *_wrap_PanelNameStr_get() {
21963 PyObject *pyobj;
21964
21965 {
21966 #if wxUSE_UNICODE
21967 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21968 #else
21969 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21970 #endif
21971 }
21972 return pyobj;
21973 }
21974
21975
21976 static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
21977 PyObject *resultobj;
21978 wxVisualAttributes *result;
21979 char *kwnames[] = {
21980 NULL
21981 };
21982
21983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21984 {
21985 PyThreadState* __tstate = wxPyBeginAllowThreads();
21986 result = (wxVisualAttributes *)new_wxVisualAttributes();
21987
21988 wxPyEndAllowThreads(__tstate);
21989 if (PyErr_Occurred()) SWIG_fail;
21990 }
21991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21992 return resultobj;
21993 fail:
21994 return NULL;
21995 }
21996
21997
21998 static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
21999 PyObject *resultobj;
22000 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22001 PyObject * obj0 = 0 ;
22002 char *kwnames[] = {
22003 (char *) "self", NULL
22004 };
22005
22006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
22007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22009 {
22010 PyThreadState* __tstate = wxPyBeginAllowThreads();
22011 delete_wxVisualAttributes(arg1);
22012
22013 wxPyEndAllowThreads(__tstate);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 Py_INCREF(Py_None); resultobj = Py_None;
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) {
22024 PyObject *resultobj;
22025 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22026 wxFont *arg2 = (wxFont *) 0 ;
22027 PyObject * obj0 = 0 ;
22028 PyObject * obj1 = 0 ;
22029 char *kwnames[] = {
22030 (char *) "self",(char *) "font", NULL
22031 };
22032
22033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
22034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
22037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22038 if (arg1) (arg1)->font = *arg2;
22039
22040 Py_INCREF(Py_None); resultobj = Py_None;
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj;
22049 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22050 wxFont *result;
22051 PyObject * obj0 = 0 ;
22052 char *kwnames[] = {
22053 (char *) "self", NULL
22054 };
22055
22056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
22057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22059 result = (wxFont *)& ((arg1)->font);
22060
22061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
22062 return resultobj;
22063 fail:
22064 return NULL;
22065 }
22066
22067
22068 static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) {
22069 PyObject *resultobj;
22070 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22071 wxColour *arg2 = (wxColour *) 0 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 char *kwnames[] = {
22075 (char *) "self",(char *) "colFg", NULL
22076 };
22077
22078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
22079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
22082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22083 if (arg1) (arg1)->colFg = *arg2;
22084
22085 Py_INCREF(Py_None); resultobj = Py_None;
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) {
22093 PyObject *resultobj;
22094 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22095 wxColour *result;
22096 PyObject * obj0 = 0 ;
22097 char *kwnames[] = {
22098 (char *) "self", NULL
22099 };
22100
22101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
22102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22104 result = (wxColour *)& ((arg1)->colFg);
22105
22106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
22107 return resultobj;
22108 fail:
22109 return NULL;
22110 }
22111
22112
22113 static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) {
22114 PyObject *resultobj;
22115 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22116 wxColour *arg2 = (wxColour *) 0 ;
22117 PyObject * obj0 = 0 ;
22118 PyObject * obj1 = 0 ;
22119 char *kwnames[] = {
22120 (char *) "self",(char *) "colBg", NULL
22121 };
22122
22123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
22124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
22127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22128 if (arg1) (arg1)->colBg = *arg2;
22129
22130 Py_INCREF(Py_None); resultobj = Py_None;
22131 return resultobj;
22132 fail:
22133 return NULL;
22134 }
22135
22136
22137 static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj;
22139 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
22140 wxColour *result;
22141 PyObject * obj0 = 0 ;
22142 char *kwnames[] = {
22143 (char *) "self", NULL
22144 };
22145
22146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
22147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
22148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22149 result = (wxColour *)& ((arg1)->colBg);
22150
22151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
22152 return resultobj;
22153 fail:
22154 return NULL;
22155 }
22156
22157
22158 static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) {
22159 PyObject *obj;
22160 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22161 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
22162 Py_INCREF(obj);
22163 return Py_BuildValue((char *)"");
22164 }
22165 static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) {
22166 PyObject *resultobj;
22167 wxWindow *arg1 = (wxWindow *) 0 ;
22168 int arg2 = (int) (int)-1 ;
22169 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22170 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22171 wxSize const &arg4_defvalue = wxDefaultSize ;
22172 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22173 long arg5 = (long) 0 ;
22174 wxString const &arg6_defvalue = wxPyPanelNameStr ;
22175 wxString *arg6 = (wxString *) &arg6_defvalue ;
22176 wxWindow *result;
22177 wxPoint temp3 ;
22178 wxSize temp4 ;
22179 bool temp6 = false ;
22180 PyObject * obj0 = 0 ;
22181 PyObject * obj1 = 0 ;
22182 PyObject * obj2 = 0 ;
22183 PyObject * obj3 = 0 ;
22184 PyObject * obj4 = 0 ;
22185 PyObject * obj5 = 0 ;
22186 char *kwnames[] = {
22187 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22188 };
22189
22190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22193 if (obj1) {
22194 arg2 = (int)SWIG_As_int(obj1);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 if (obj2) {
22198 {
22199 arg3 = &temp3;
22200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22201 }
22202 }
22203 if (obj3) {
22204 {
22205 arg4 = &temp4;
22206 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22207 }
22208 }
22209 if (obj4) {
22210 arg5 = (long)SWIG_As_long(obj4);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 if (obj5) {
22214 {
22215 arg6 = wxString_in_helper(obj5);
22216 if (arg6 == NULL) SWIG_fail;
22217 temp6 = true;
22218 }
22219 }
22220 {
22221 if (!wxPyCheckForApp()) SWIG_fail;
22222 PyThreadState* __tstate = wxPyBeginAllowThreads();
22223 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22224
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
22229 {
22230 if (temp6)
22231 delete arg6;
22232 }
22233 return resultobj;
22234 fail:
22235 {
22236 if (temp6)
22237 delete arg6;
22238 }
22239 return NULL;
22240 }
22241
22242
22243 static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) {
22244 PyObject *resultobj;
22245 wxWindow *result;
22246 char *kwnames[] = {
22247 NULL
22248 };
22249
22250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
22251 {
22252 if (!wxPyCheckForApp()) SWIG_fail;
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = (wxWindow *)new wxWindow();
22255
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
22260 return resultobj;
22261 fail:
22262 return NULL;
22263 }
22264
22265
22266 static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj;
22268 wxWindow *arg1 = (wxWindow *) 0 ;
22269 wxWindow *arg2 = (wxWindow *) 0 ;
22270 int arg3 = (int) (int)-1 ;
22271 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22272 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22273 wxSize const &arg5_defvalue = wxDefaultSize ;
22274 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22275 long arg6 = (long) 0 ;
22276 wxString const &arg7_defvalue = wxPyPanelNameStr ;
22277 wxString *arg7 = (wxString *) &arg7_defvalue ;
22278 bool result;
22279 wxPoint temp4 ;
22280 wxSize temp5 ;
22281 bool temp7 = false ;
22282 PyObject * obj0 = 0 ;
22283 PyObject * obj1 = 0 ;
22284 PyObject * obj2 = 0 ;
22285 PyObject * obj3 = 0 ;
22286 PyObject * obj4 = 0 ;
22287 PyObject * obj5 = 0 ;
22288 PyObject * obj6 = 0 ;
22289 char *kwnames[] = {
22290 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22291 };
22292
22293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
22297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22298 if (obj2) {
22299 arg3 = (int)SWIG_As_int(obj2);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 if (obj3) {
22303 {
22304 arg4 = &temp4;
22305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22306 }
22307 }
22308 if (obj4) {
22309 {
22310 arg5 = &temp5;
22311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22312 }
22313 }
22314 if (obj5) {
22315 arg6 = (long)SWIG_As_long(obj5);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 if (obj6) {
22319 {
22320 arg7 = wxString_in_helper(obj6);
22321 if (arg7 == NULL) SWIG_fail;
22322 temp7 = true;
22323 }
22324 }
22325 {
22326 PyThreadState* __tstate = wxPyBeginAllowThreads();
22327 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22328
22329 wxPyEndAllowThreads(__tstate);
22330 if (PyErr_Occurred()) SWIG_fail;
22331 }
22332 {
22333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22334 }
22335 {
22336 if (temp7)
22337 delete arg7;
22338 }
22339 return resultobj;
22340 fail:
22341 {
22342 if (temp7)
22343 delete arg7;
22344 }
22345 return NULL;
22346 }
22347
22348
22349 static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj;
22351 wxWindow *arg1 = (wxWindow *) 0 ;
22352 bool arg2 = (bool) false ;
22353 bool result;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 char *kwnames[] = {
22357 (char *) "self",(char *) "force", NULL
22358 };
22359
22360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
22361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22363 if (obj1) {
22364 arg2 = (bool)SWIG_As_bool(obj1);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 {
22368 PyThreadState* __tstate = wxPyBeginAllowThreads();
22369 result = (bool)(arg1)->Close(arg2);
22370
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 {
22375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22376 }
22377 return resultobj;
22378 fail:
22379 return NULL;
22380 }
22381
22382
22383 static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
22384 PyObject *resultobj;
22385 wxWindow *arg1 = (wxWindow *) 0 ;
22386 bool result;
22387 PyObject * obj0 = 0 ;
22388 char *kwnames[] = {
22389 (char *) "self", NULL
22390 };
22391
22392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
22393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22395 {
22396 PyThreadState* __tstate = wxPyBeginAllowThreads();
22397 result = (bool)(arg1)->Destroy();
22398
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 {
22403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22404 }
22405 return resultobj;
22406 fail:
22407 return NULL;
22408 }
22409
22410
22411 static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) {
22412 PyObject *resultobj;
22413 wxWindow *arg1 = (wxWindow *) 0 ;
22414 bool result;
22415 PyObject * obj0 = 0 ;
22416 char *kwnames[] = {
22417 (char *) "self", NULL
22418 };
22419
22420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
22421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 result = (bool)(arg1)->DestroyChildren();
22426
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 {
22431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22432 }
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) {
22440 PyObject *resultobj;
22441 wxWindow *arg1 = (wxWindow *) 0 ;
22442 bool result;
22443 PyObject * obj0 = 0 ;
22444 char *kwnames[] = {
22445 (char *) "self", NULL
22446 };
22447
22448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
22449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22451 {
22452 PyThreadState* __tstate = wxPyBeginAllowThreads();
22453 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
22454
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 {
22459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22460 }
22461 return resultobj;
22462 fail:
22463 return NULL;
22464 }
22465
22466
22467 static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
22468 PyObject *resultobj;
22469 wxWindow *arg1 = (wxWindow *) 0 ;
22470 wxString *arg2 = 0 ;
22471 bool temp2 = false ;
22472 PyObject * obj0 = 0 ;
22473 PyObject * obj1 = 0 ;
22474 char *kwnames[] = {
22475 (char *) "self",(char *) "title", NULL
22476 };
22477
22478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
22479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22481 {
22482 arg2 = wxString_in_helper(obj1);
22483 if (arg2 == NULL) SWIG_fail;
22484 temp2 = true;
22485 }
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 (arg1)->SetTitle((wxString const &)*arg2);
22489
22490 wxPyEndAllowThreads(__tstate);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 }
22493 Py_INCREF(Py_None); resultobj = Py_None;
22494 {
22495 if (temp2)
22496 delete arg2;
22497 }
22498 return resultobj;
22499 fail:
22500 {
22501 if (temp2)
22502 delete arg2;
22503 }
22504 return NULL;
22505 }
22506
22507
22508 static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
22509 PyObject *resultobj;
22510 wxWindow *arg1 = (wxWindow *) 0 ;
22511 wxString result;
22512 PyObject * obj0 = 0 ;
22513 char *kwnames[] = {
22514 (char *) "self", NULL
22515 };
22516
22517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
22518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = ((wxWindow const *)arg1)->GetTitle();
22523
22524 wxPyEndAllowThreads(__tstate);
22525 if (PyErr_Occurred()) SWIG_fail;
22526 }
22527 {
22528 #if wxUSE_UNICODE
22529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22530 #else
22531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22532 #endif
22533 }
22534 return resultobj;
22535 fail:
22536 return NULL;
22537 }
22538
22539
22540 static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
22541 PyObject *resultobj;
22542 wxWindow *arg1 = (wxWindow *) 0 ;
22543 wxString *arg2 = 0 ;
22544 bool temp2 = false ;
22545 PyObject * obj0 = 0 ;
22546 PyObject * obj1 = 0 ;
22547 char *kwnames[] = {
22548 (char *) "self",(char *) "label", NULL
22549 };
22550
22551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
22552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22554 {
22555 arg2 = wxString_in_helper(obj1);
22556 if (arg2 == NULL) SWIG_fail;
22557 temp2 = true;
22558 }
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 (arg1)->SetLabel((wxString const &)*arg2);
22562
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 Py_INCREF(Py_None); resultobj = Py_None;
22567 {
22568 if (temp2)
22569 delete arg2;
22570 }
22571 return resultobj;
22572 fail:
22573 {
22574 if (temp2)
22575 delete arg2;
22576 }
22577 return NULL;
22578 }
22579
22580
22581 static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
22582 PyObject *resultobj;
22583 wxWindow *arg1 = (wxWindow *) 0 ;
22584 wxString result;
22585 PyObject * obj0 = 0 ;
22586 char *kwnames[] = {
22587 (char *) "self", NULL
22588 };
22589
22590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
22591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22593 {
22594 PyThreadState* __tstate = wxPyBeginAllowThreads();
22595 result = ((wxWindow const *)arg1)->GetLabel();
22596
22597 wxPyEndAllowThreads(__tstate);
22598 if (PyErr_Occurred()) SWIG_fail;
22599 }
22600 {
22601 #if wxUSE_UNICODE
22602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22603 #else
22604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22605 #endif
22606 }
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
22614 PyObject *resultobj;
22615 wxWindow *arg1 = (wxWindow *) 0 ;
22616 wxString *arg2 = 0 ;
22617 bool temp2 = false ;
22618 PyObject * obj0 = 0 ;
22619 PyObject * obj1 = 0 ;
22620 char *kwnames[] = {
22621 (char *) "self",(char *) "name", NULL
22622 };
22623
22624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
22625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22627 {
22628 arg2 = wxString_in_helper(obj1);
22629 if (arg2 == NULL) SWIG_fail;
22630 temp2 = true;
22631 }
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 (arg1)->SetName((wxString const &)*arg2);
22635
22636 wxPyEndAllowThreads(__tstate);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 }
22639 Py_INCREF(Py_None); resultobj = Py_None;
22640 {
22641 if (temp2)
22642 delete arg2;
22643 }
22644 return resultobj;
22645 fail:
22646 {
22647 if (temp2)
22648 delete arg2;
22649 }
22650 return NULL;
22651 }
22652
22653
22654 static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
22655 PyObject *resultobj;
22656 wxWindow *arg1 = (wxWindow *) 0 ;
22657 wxString result;
22658 PyObject * obj0 = 0 ;
22659 char *kwnames[] = {
22660 (char *) "self", NULL
22661 };
22662
22663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
22664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 result = ((wxWindow const *)arg1)->GetName();
22669
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 {
22674 #if wxUSE_UNICODE
22675 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22676 #else
22677 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22678 #endif
22679 }
22680 return resultobj;
22681 fail:
22682 return NULL;
22683 }
22684
22685
22686 static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
22687 PyObject *resultobj;
22688 wxWindow *arg1 = (wxWindow *) 0 ;
22689 int arg2 ;
22690 PyObject * obj0 = 0 ;
22691 PyObject * obj1 = 0 ;
22692 char *kwnames[] = {
22693 (char *) "self",(char *) "variant", NULL
22694 };
22695
22696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
22697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22699 arg2 = (int)SWIG_As_int(obj1);
22700 if (PyErr_Occurred()) SWIG_fail;
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
22704
22705 wxPyEndAllowThreads(__tstate);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 }
22708 Py_INCREF(Py_None); resultobj = Py_None;
22709 return resultobj;
22710 fail:
22711 return NULL;
22712 }
22713
22714
22715 static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
22716 PyObject *resultobj;
22717 wxWindow *arg1 = (wxWindow *) 0 ;
22718 int result;
22719 PyObject * obj0 = 0 ;
22720 char *kwnames[] = {
22721 (char *) "self", NULL
22722 };
22723
22724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
22725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
22730
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 resultobj = SWIG_From_int((int)result);
22735 return resultobj;
22736 fail:
22737 return NULL;
22738 }
22739
22740
22741 static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
22742 PyObject *resultobj;
22743 wxWindow *arg1 = (wxWindow *) 0 ;
22744 int arg2 ;
22745 PyObject * obj0 = 0 ;
22746 PyObject * obj1 = 0 ;
22747 char *kwnames[] = {
22748 (char *) "self",(char *) "winid", NULL
22749 };
22750
22751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
22752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22754 arg2 = (int)SWIG_As_int(obj1);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 {
22757 PyThreadState* __tstate = wxPyBeginAllowThreads();
22758 (arg1)->SetId(arg2);
22759
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 Py_INCREF(Py_None); resultobj = Py_None;
22764 return resultobj;
22765 fail:
22766 return NULL;
22767 }
22768
22769
22770 static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
22771 PyObject *resultobj;
22772 wxWindow *arg1 = (wxWindow *) 0 ;
22773 int result;
22774 PyObject * obj0 = 0 ;
22775 char *kwnames[] = {
22776 (char *) "self", NULL
22777 };
22778
22779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = (int)((wxWindow const *)arg1)->GetId();
22785
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 resultobj = SWIG_From_int((int)result);
22790 return resultobj;
22791 fail:
22792 return NULL;
22793 }
22794
22795
22796 static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) {
22797 PyObject *resultobj;
22798 int result;
22799 char *kwnames[] = {
22800 NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (int)wxWindow::NewControlId();
22807
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_From_int((int)result);
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) {
22819 PyObject *resultobj;
22820 int arg1 ;
22821 int result;
22822 PyObject * obj0 = 0 ;
22823 char *kwnames[] = {
22824 (char *) "winid", NULL
22825 };
22826
22827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
22828 arg1 = (int)SWIG_As_int(obj0);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (int)wxWindow::NextControlId(arg1);
22833
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_From_int((int)result);
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj;
22846 int arg1 ;
22847 int result;
22848 PyObject * obj0 = 0 ;
22849 char *kwnames[] = {
22850 (char *) "winid", NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22854 arg1 = (int)SWIG_As_int(obj0);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 {
22857 PyThreadState* __tstate = wxPyBeginAllowThreads();
22858 result = (int)wxWindow::PrevControlId(arg1);
22859
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_From_int((int)result);
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
22871 PyObject *resultobj;
22872 wxWindow *arg1 = (wxWindow *) 0 ;
22873 wxSize *arg2 = 0 ;
22874 wxSize temp2 ;
22875 PyObject * obj0 = 0 ;
22876 PyObject * obj1 = 0 ;
22877 char *kwnames[] = {
22878 (char *) "self",(char *) "size", NULL
22879 };
22880
22881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22884 {
22885 arg2 = &temp2;
22886 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22887 }
22888 {
22889 PyThreadState* __tstate = wxPyBeginAllowThreads();
22890 (arg1)->SetSize((wxSize const &)*arg2);
22891
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 Py_INCREF(Py_None); resultobj = Py_None;
22896 return resultobj;
22897 fail:
22898 return NULL;
22899 }
22900
22901
22902 static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj;
22904 wxWindow *arg1 = (wxWindow *) 0 ;
22905 int arg2 ;
22906 int arg3 ;
22907 int arg4 ;
22908 int arg5 ;
22909 int arg6 = (int) wxSIZE_AUTO ;
22910 PyObject * obj0 = 0 ;
22911 PyObject * obj1 = 0 ;
22912 PyObject * obj2 = 0 ;
22913 PyObject * obj3 = 0 ;
22914 PyObject * obj4 = 0 ;
22915 PyObject * obj5 = 0 ;
22916 char *kwnames[] = {
22917 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22918 };
22919
22920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22923 arg2 = (int)SWIG_As_int(obj1);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 arg3 = (int)SWIG_As_int(obj2);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 arg4 = (int)SWIG_As_int(obj3);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 arg5 = (int)SWIG_As_int(obj4);
22930 if (PyErr_Occurred()) SWIG_fail;
22931 if (obj5) {
22932 arg6 = (int)SWIG_As_int(obj5);
22933 if (PyErr_Occurred()) SWIG_fail;
22934 }
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22938
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 Py_INCREF(Py_None); resultobj = Py_None;
22943 return resultobj;
22944 fail:
22945 return NULL;
22946 }
22947
22948
22949 static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj;
22951 wxWindow *arg1 = (wxWindow *) 0 ;
22952 wxRect *arg2 = 0 ;
22953 int arg3 = (int) wxSIZE_AUTO ;
22954 wxRect temp2 ;
22955 PyObject * obj0 = 0 ;
22956 PyObject * obj1 = 0 ;
22957 PyObject * obj2 = 0 ;
22958 char *kwnames[] = {
22959 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22960 };
22961
22962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22965 {
22966 arg2 = &temp2;
22967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22968 }
22969 if (obj2) {
22970 arg3 = (int)SWIG_As_int(obj2);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22976
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 Py_INCREF(Py_None); resultobj = Py_None;
22981 return resultobj;
22982 fail:
22983 return NULL;
22984 }
22985
22986
22987 static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
22988 PyObject *resultobj;
22989 wxWindow *arg1 = (wxWindow *) 0 ;
22990 int arg2 ;
22991 int arg3 ;
22992 PyObject * obj0 = 0 ;
22993 PyObject * obj1 = 0 ;
22994 PyObject * obj2 = 0 ;
22995 char *kwnames[] = {
22996 (char *) "self",(char *) "width",(char *) "height", NULL
22997 };
22998
22999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23002 arg2 = (int)SWIG_As_int(obj1);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 arg3 = (int)SWIG_As_int(obj2);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 (arg1)->SetSize(arg2,arg3);
23009
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 Py_INCREF(Py_None); resultobj = Py_None;
23014 return resultobj;
23015 fail:
23016 return NULL;
23017 }
23018
23019
23020 static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj;
23022 wxWindow *arg1 = (wxWindow *) 0 ;
23023 wxPoint *arg2 = 0 ;
23024 int arg3 = (int) wxSIZE_USE_EXISTING ;
23025 wxPoint temp2 ;
23026 PyObject * obj0 = 0 ;
23027 PyObject * obj1 = 0 ;
23028 PyObject * obj2 = 0 ;
23029 char *kwnames[] = {
23030 (char *) "self",(char *) "pt",(char *) "flags", NULL
23031 };
23032
23033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
23034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23036 {
23037 arg2 = &temp2;
23038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23039 }
23040 if (obj2) {
23041 arg3 = (int)SWIG_As_int(obj2);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 (arg1)->Move((wxPoint const &)*arg2,arg3);
23047
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 Py_INCREF(Py_None); resultobj = Py_None;
23052 return resultobj;
23053 fail:
23054 return NULL;
23055 }
23056
23057
23058 static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj;
23060 wxWindow *arg1 = (wxWindow *) 0 ;
23061 int arg2 ;
23062 int arg3 ;
23063 int arg4 = (int) wxSIZE_USE_EXISTING ;
23064 PyObject * obj0 = 0 ;
23065 PyObject * obj1 = 0 ;
23066 PyObject * obj2 = 0 ;
23067 PyObject * obj3 = 0 ;
23068 char *kwnames[] = {
23069 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
23070 };
23071
23072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23075 arg2 = (int)SWIG_As_int(obj1);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 arg3 = (int)SWIG_As_int(obj2);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 if (obj3) {
23080 arg4 = (int)SWIG_As_int(obj3);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 }
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 (arg1)->Move(arg2,arg3,arg4);
23086
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 Py_INCREF(Py_None); resultobj = Py_None;
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
23098 PyObject *resultobj;
23099 wxWindow *arg1 = (wxWindow *) 0 ;
23100 wxSize const &arg2_defvalue = wxDefaultSize ;
23101 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
23102 wxSize temp2 ;
23103 PyObject * obj0 = 0 ;
23104 PyObject * obj1 = 0 ;
23105 char *kwnames[] = {
23106 (char *) "self",(char *) "size", NULL
23107 };
23108
23109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
23110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23112 if (obj1) {
23113 {
23114 arg2 = &temp2;
23115 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23116 }
23117 }
23118 {
23119 PyThreadState* __tstate = wxPyBeginAllowThreads();
23120 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
23121
23122 wxPyEndAllowThreads(__tstate);
23123 if (PyErr_Occurred()) SWIG_fail;
23124 }
23125 Py_INCREF(Py_None); resultobj = Py_None;
23126 return resultobj;
23127 fail:
23128 return NULL;
23129 }
23130
23131
23132 static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) {
23133 PyObject *resultobj;
23134 wxWindow *arg1 = (wxWindow *) 0 ;
23135 PyObject * obj0 = 0 ;
23136 char *kwnames[] = {
23137 (char *) "self", NULL
23138 };
23139
23140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
23141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 (arg1)->Raise();
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 Py_INCREF(Py_None); resultobj = Py_None;
23151 return resultobj;
23152 fail:
23153 return NULL;
23154 }
23155
23156
23157 static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) {
23158 PyObject *resultobj;
23159 wxWindow *arg1 = (wxWindow *) 0 ;
23160 PyObject * obj0 = 0 ;
23161 char *kwnames[] = {
23162 (char *) "self", NULL
23163 };
23164
23165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
23166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 (arg1)->Lower();
23171
23172 wxPyEndAllowThreads(__tstate);
23173 if (PyErr_Occurred()) SWIG_fail;
23174 }
23175 Py_INCREF(Py_None); resultobj = Py_None;
23176 return resultobj;
23177 fail:
23178 return NULL;
23179 }
23180
23181
23182 static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
23183 PyObject *resultobj;
23184 wxWindow *arg1 = (wxWindow *) 0 ;
23185 wxSize *arg2 = 0 ;
23186 wxSize temp2 ;
23187 PyObject * obj0 = 0 ;
23188 PyObject * obj1 = 0 ;
23189 char *kwnames[] = {
23190 (char *) "self",(char *) "size", NULL
23191 };
23192
23193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
23194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23196 {
23197 arg2 = &temp2;
23198 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23199 }
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 (arg1)->SetClientSize((wxSize const &)*arg2);
23203
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 Py_INCREF(Py_None); resultobj = Py_None;
23208 return resultobj;
23209 fail:
23210 return NULL;
23211 }
23212
23213
23214 static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj;
23216 wxWindow *arg1 = (wxWindow *) 0 ;
23217 int arg2 ;
23218 int arg3 ;
23219 PyObject * obj0 = 0 ;
23220 PyObject * obj1 = 0 ;
23221 PyObject * obj2 = 0 ;
23222 char *kwnames[] = {
23223 (char *) "self",(char *) "width",(char *) "height", NULL
23224 };
23225
23226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23229 arg2 = (int)SWIG_As_int(obj1);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 arg3 = (int)SWIG_As_int(obj2);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 (arg1)->SetClientSize(arg2,arg3);
23236
23237 wxPyEndAllowThreads(__tstate);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 }
23240 Py_INCREF(Py_None); resultobj = Py_None;
23241 return resultobj;
23242 fail:
23243 return NULL;
23244 }
23245
23246
23247 static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
23248 PyObject *resultobj;
23249 wxWindow *arg1 = (wxWindow *) 0 ;
23250 wxRect *arg2 = 0 ;
23251 wxRect temp2 ;
23252 PyObject * obj0 = 0 ;
23253 PyObject * obj1 = 0 ;
23254 char *kwnames[] = {
23255 (char *) "self",(char *) "rect", NULL
23256 };
23257
23258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
23259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23261 {
23262 arg2 = &temp2;
23263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23264 }
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 (arg1)->SetClientSize((wxRect const &)*arg2);
23268
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 Py_INCREF(Py_None); resultobj = Py_None;
23273 return resultobj;
23274 fail:
23275 return NULL;
23276 }
23277
23278
23279 static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
23280 PyObject *resultobj;
23281 wxWindow *arg1 = (wxWindow *) 0 ;
23282 wxPoint result;
23283 PyObject * obj0 = 0 ;
23284 char *kwnames[] = {
23285 (char *) "self", NULL
23286 };
23287
23288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
23289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 result = (arg1)->GetPosition();
23294
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 {
23299 wxPoint * resultptr;
23300 resultptr = new wxPoint((wxPoint &) result);
23301 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23302 }
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 wxWindow *arg1 = (wxWindow *) 0 ;
23312 int *arg2 = (int *) 0 ;
23313 int *arg3 = (int *) 0 ;
23314 int temp2 ;
23315 int res2 = 0 ;
23316 int temp3 ;
23317 int res3 = 0 ;
23318 PyObject * obj0 = 0 ;
23319 char *kwnames[] = {
23320 (char *) "self", NULL
23321 };
23322
23323 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23324 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
23326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 (arg1)->GetPosition(arg2,arg3);
23331
23332 wxPyEndAllowThreads(__tstate);
23333 if (PyErr_Occurred()) SWIG_fail;
23334 }
23335 Py_INCREF(Py_None); resultobj = Py_None;
23336 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23337 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23338 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23339 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj;
23348 wxWindow *arg1 = (wxWindow *) 0 ;
23349 wxSize result;
23350 PyObject * obj0 = 0 ;
23351 char *kwnames[] = {
23352 (char *) "self", NULL
23353 };
23354
23355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
23356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 result = ((wxWindow const *)arg1)->GetSize();
23361
23362 wxPyEndAllowThreads(__tstate);
23363 if (PyErr_Occurred()) SWIG_fail;
23364 }
23365 {
23366 wxSize * resultptr;
23367 resultptr = new wxSize((wxSize &) result);
23368 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23369 }
23370 return resultobj;
23371 fail:
23372 return NULL;
23373 }
23374
23375
23376 static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
23377 PyObject *resultobj;
23378 wxWindow *arg1 = (wxWindow *) 0 ;
23379 int *arg2 = (int *) 0 ;
23380 int *arg3 = (int *) 0 ;
23381 int temp2 ;
23382 int res2 = 0 ;
23383 int temp3 ;
23384 int res3 = 0 ;
23385 PyObject * obj0 = 0 ;
23386 char *kwnames[] = {
23387 (char *) "self", NULL
23388 };
23389
23390 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23391 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
23393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23395 {
23396 PyThreadState* __tstate = wxPyBeginAllowThreads();
23397 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
23398
23399 wxPyEndAllowThreads(__tstate);
23400 if (PyErr_Occurred()) SWIG_fail;
23401 }
23402 Py_INCREF(Py_None); resultobj = Py_None;
23403 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23404 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23405 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23406 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23407 return resultobj;
23408 fail:
23409 return NULL;
23410 }
23411
23412
23413 static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj;
23415 wxWindow *arg1 = (wxWindow *) 0 ;
23416 wxRect result;
23417 PyObject * obj0 = 0 ;
23418 char *kwnames[] = {
23419 (char *) "self", NULL
23420 };
23421
23422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
23423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 result = ((wxWindow const *)arg1)->GetRect();
23428
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 {
23433 wxRect * resultptr;
23434 resultptr = new wxRect((wxRect &) result);
23435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
23436 }
23437 return resultobj;
23438 fail:
23439 return NULL;
23440 }
23441
23442
23443 static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
23444 PyObject *resultobj;
23445 wxWindow *arg1 = (wxWindow *) 0 ;
23446 wxSize result;
23447 PyObject * obj0 = 0 ;
23448 char *kwnames[] = {
23449 (char *) "self", NULL
23450 };
23451
23452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
23453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 result = ((wxWindow const *)arg1)->GetClientSize();
23458
23459 wxPyEndAllowThreads(__tstate);
23460 if (PyErr_Occurred()) SWIG_fail;
23461 }
23462 {
23463 wxSize * resultptr;
23464 resultptr = new wxSize((wxSize &) result);
23465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23466 }
23467 return resultobj;
23468 fail:
23469 return NULL;
23470 }
23471
23472
23473 static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
23474 PyObject *resultobj;
23475 wxWindow *arg1 = (wxWindow *) 0 ;
23476 int *arg2 = (int *) 0 ;
23477 int *arg3 = (int *) 0 ;
23478 int temp2 ;
23479 int res2 = 0 ;
23480 int temp3 ;
23481 int res3 = 0 ;
23482 PyObject * obj0 = 0 ;
23483 char *kwnames[] = {
23484 (char *) "self", NULL
23485 };
23486
23487 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23488 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
23490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
23495
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 Py_INCREF(Py_None); resultobj = Py_None;
23500 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23501 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23502 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23503 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23504 return resultobj;
23505 fail:
23506 return NULL;
23507 }
23508
23509
23510 static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
23511 PyObject *resultobj;
23512 wxWindow *arg1 = (wxWindow *) 0 ;
23513 wxPoint result;
23514 PyObject * obj0 = 0 ;
23515 char *kwnames[] = {
23516 (char *) "self", NULL
23517 };
23518
23519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
23520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
23525
23526 wxPyEndAllowThreads(__tstate);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 }
23529 {
23530 wxPoint * resultptr;
23531 resultptr = new wxPoint((wxPoint &) result);
23532 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23533 }
23534 return resultobj;
23535 fail:
23536 return NULL;
23537 }
23538
23539
23540 static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
23541 PyObject *resultobj;
23542 wxWindow *arg1 = (wxWindow *) 0 ;
23543 wxRect result;
23544 PyObject * obj0 = 0 ;
23545 char *kwnames[] = {
23546 (char *) "self", NULL
23547 };
23548
23549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
23550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = ((wxWindow const *)arg1)->GetClientRect();
23555
23556 wxPyEndAllowThreads(__tstate);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 {
23560 wxRect * resultptr;
23561 resultptr = new wxRect((wxRect &) result);
23562 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
23563 }
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj;
23572 wxWindow *arg1 = (wxWindow *) 0 ;
23573 wxSize result;
23574 PyObject * obj0 = 0 ;
23575 char *kwnames[] = {
23576 (char *) "self", NULL
23577 };
23578
23579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
23580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 result = ((wxWindow const *)arg1)->GetBestSize();
23585
23586 wxPyEndAllowThreads(__tstate);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 }
23589 {
23590 wxSize * resultptr;
23591 resultptr = new wxSize((wxSize &) result);
23592 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23593 }
23594 return resultobj;
23595 fail:
23596 return NULL;
23597 }
23598
23599
23600 static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
23601 PyObject *resultobj;
23602 wxWindow *arg1 = (wxWindow *) 0 ;
23603 int *arg2 = (int *) 0 ;
23604 int *arg3 = (int *) 0 ;
23605 int temp2 ;
23606 int res2 = 0 ;
23607 int temp3 ;
23608 int res3 = 0 ;
23609 PyObject * obj0 = 0 ;
23610 char *kwnames[] = {
23611 (char *) "self", NULL
23612 };
23613
23614 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23615 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
23617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
23622
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 Py_INCREF(Py_None); resultobj = Py_None;
23627 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23628 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23629 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23630 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj;
23639 wxWindow *arg1 = (wxWindow *) 0 ;
23640 PyObject * obj0 = 0 ;
23641 char *kwnames[] = {
23642 (char *) "self", NULL
23643 };
23644
23645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
23646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 (arg1)->InvalidateBestSize();
23651
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 Py_INCREF(Py_None); resultobj = Py_None;
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj;
23664 wxWindow *arg1 = (wxWindow *) 0 ;
23665 wxSize result;
23666 PyObject * obj0 = 0 ;
23667 char *kwnames[] = {
23668 (char *) "self", NULL
23669 };
23670
23671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
23672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23674 {
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 result = ((wxWindow const *)arg1)->GetBestFittingSize();
23677
23678 wxPyEndAllowThreads(__tstate);
23679 if (PyErr_Occurred()) SWIG_fail;
23680 }
23681 {
23682 wxSize * resultptr;
23683 resultptr = new wxSize((wxSize &) result);
23684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23685 }
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
23693 PyObject *resultobj;
23694 wxWindow *arg1 = (wxWindow *) 0 ;
23695 wxSize result;
23696 PyObject * obj0 = 0 ;
23697 char *kwnames[] = {
23698 (char *) "self", NULL
23699 };
23700
23701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
23702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
23707
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 {
23712 wxSize * resultptr;
23713 resultptr = new wxSize((wxSize &) result);
23714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23715 }
23716 return resultobj;
23717 fail:
23718 return NULL;
23719 }
23720
23721
23722 static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj;
23724 wxWindow *arg1 = (wxWindow *) 0 ;
23725 int arg2 = (int) wxBOTH ;
23726 PyObject * obj0 = 0 ;
23727 PyObject * obj1 = 0 ;
23728 char *kwnames[] = {
23729 (char *) "self",(char *) "direction", NULL
23730 };
23731
23732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
23733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23735 if (obj1) {
23736 arg2 = (int)SWIG_As_int(obj1);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 (arg1)->Center(arg2);
23742
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 Py_INCREF(Py_None); resultobj = Py_None;
23747 return resultobj;
23748 fail:
23749 return NULL;
23750 }
23751
23752
23753 static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) {
23754 PyObject *resultobj;
23755 wxWindow *arg1 = (wxWindow *) 0 ;
23756 int arg2 = (int) wxBOTH ;
23757 PyObject * obj0 = 0 ;
23758 PyObject * obj1 = 0 ;
23759 char *kwnames[] = {
23760 (char *) "self",(char *) "dir", NULL
23761 };
23762
23763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
23764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23766 if (obj1) {
23767 arg2 = (int)SWIG_As_int(obj1);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 (arg1)->CenterOnScreen(arg2);
23773
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 Py_INCREF(Py_None); resultobj = Py_None;
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) {
23785 PyObject *resultobj;
23786 wxWindow *arg1 = (wxWindow *) 0 ;
23787 int arg2 = (int) wxBOTH ;
23788 PyObject * obj0 = 0 ;
23789 PyObject * obj1 = 0 ;
23790 char *kwnames[] = {
23791 (char *) "self",(char *) "dir", NULL
23792 };
23793
23794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
23795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23797 if (obj1) {
23798 arg2 = (int)SWIG_As_int(obj1);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 }
23801 {
23802 PyThreadState* __tstate = wxPyBeginAllowThreads();
23803 (arg1)->CenterOnParent(arg2);
23804
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 Py_INCREF(Py_None); resultobj = Py_None;
23809 return resultobj;
23810 fail:
23811 return NULL;
23812 }
23813
23814
23815 static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
23816 PyObject *resultobj;
23817 wxWindow *arg1 = (wxWindow *) 0 ;
23818 PyObject * obj0 = 0 ;
23819 char *kwnames[] = {
23820 (char *) "self", NULL
23821 };
23822
23823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
23824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23826 {
23827 PyThreadState* __tstate = wxPyBeginAllowThreads();
23828 (arg1)->Fit();
23829
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 Py_INCREF(Py_None); resultobj = Py_None;
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj;
23842 wxWindow *arg1 = (wxWindow *) 0 ;
23843 PyObject * obj0 = 0 ;
23844 char *kwnames[] = {
23845 (char *) "self", NULL
23846 };
23847
23848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23851 {
23852 PyThreadState* __tstate = wxPyBeginAllowThreads();
23853 (arg1)->FitInside();
23854
23855 wxPyEndAllowThreads(__tstate);
23856 if (PyErr_Occurred()) SWIG_fail;
23857 }
23858 Py_INCREF(Py_None); resultobj = Py_None;
23859 return resultobj;
23860 fail:
23861 return NULL;
23862 }
23863
23864
23865 static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
23866 PyObject *resultobj;
23867 wxWindow *arg1 = (wxWindow *) 0 ;
23868 int arg2 ;
23869 int arg3 ;
23870 int arg4 = (int) -1 ;
23871 int arg5 = (int) -1 ;
23872 int arg6 = (int) -1 ;
23873 int arg7 = (int) -1 ;
23874 PyObject * obj0 = 0 ;
23875 PyObject * obj1 = 0 ;
23876 PyObject * obj2 = 0 ;
23877 PyObject * obj3 = 0 ;
23878 PyObject * obj4 = 0 ;
23879 PyObject * obj5 = 0 ;
23880 PyObject * obj6 = 0 ;
23881 char *kwnames[] = {
23882 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
23883 };
23884
23885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23888 arg2 = (int)SWIG_As_int(obj1);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 arg3 = (int)SWIG_As_int(obj2);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 if (obj3) {
23893 arg4 = (int)SWIG_As_int(obj3);
23894 if (PyErr_Occurred()) SWIG_fail;
23895 }
23896 if (obj4) {
23897 arg5 = (int)SWIG_As_int(obj4);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 }
23900 if (obj5) {
23901 arg6 = (int)SWIG_As_int(obj5);
23902 if (PyErr_Occurred()) SWIG_fail;
23903 }
23904 if (obj6) {
23905 arg7 = (int)SWIG_As_int(obj6);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23911
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 Py_INCREF(Py_None); resultobj = Py_None;
23916 return resultobj;
23917 fail:
23918 return NULL;
23919 }
23920
23921
23922 static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
23923 PyObject *resultobj;
23924 wxWindow *arg1 = (wxWindow *) 0 ;
23925 wxSize *arg2 = 0 ;
23926 wxSize const &arg3_defvalue = wxDefaultSize ;
23927 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23928 wxSize const &arg4_defvalue = wxDefaultSize ;
23929 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23930 wxSize temp2 ;
23931 wxSize temp3 ;
23932 wxSize temp4 ;
23933 PyObject * obj0 = 0 ;
23934 PyObject * obj1 = 0 ;
23935 PyObject * obj2 = 0 ;
23936 PyObject * obj3 = 0 ;
23937 char *kwnames[] = {
23938 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
23939 };
23940
23941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23944 {
23945 arg2 = &temp2;
23946 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23947 }
23948 if (obj2) {
23949 {
23950 arg3 = &temp3;
23951 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23952 }
23953 }
23954 if (obj3) {
23955 {
23956 arg4 = &temp4;
23957 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23958 }
23959 }
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
23963
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 Py_INCREF(Py_None); resultobj = Py_None;
23968 return resultobj;
23969 fail:
23970 return NULL;
23971 }
23972
23973
23974 static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj;
23976 wxWindow *arg1 = (wxWindow *) 0 ;
23977 int arg2 ;
23978 int arg3 ;
23979 int arg4 = (int) -1 ;
23980 int arg5 = (int) -1 ;
23981 PyObject * obj0 = 0 ;
23982 PyObject * obj1 = 0 ;
23983 PyObject * obj2 = 0 ;
23984 PyObject * obj3 = 0 ;
23985 PyObject * obj4 = 0 ;
23986 char *kwnames[] = {
23987 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
23988 };
23989
23990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23993 arg2 = (int)SWIG_As_int(obj1);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 arg3 = (int)SWIG_As_int(obj2);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 if (obj3) {
23998 arg4 = (int)SWIG_As_int(obj3);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 if (obj4) {
24002 arg5 = (int)SWIG_As_int(obj4);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 PyThreadState* __tstate = wxPyBeginAllowThreads();
24007 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
24008
24009 wxPyEndAllowThreads(__tstate);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 }
24012 Py_INCREF(Py_None); resultobj = Py_None;
24013 return resultobj;
24014 fail:
24015 return NULL;
24016 }
24017
24018
24019 static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
24020 PyObject *resultobj;
24021 wxWindow *arg1 = (wxWindow *) 0 ;
24022 wxSize *arg2 = 0 ;
24023 wxSize const &arg3_defvalue = wxDefaultSize ;
24024 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
24025 wxSize temp2 ;
24026 wxSize temp3 ;
24027 PyObject * obj0 = 0 ;
24028 PyObject * obj1 = 0 ;
24029 PyObject * obj2 = 0 ;
24030 char *kwnames[] = {
24031 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
24032 };
24033
24034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail;
24035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24037 {
24038 arg2 = &temp2;
24039 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24040 }
24041 if (obj2) {
24042 {
24043 arg3 = &temp3;
24044 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
24045 }
24046 }
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
24050
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 Py_INCREF(Py_None); resultobj = Py_None;
24055 return resultobj;
24056 fail:
24057 return NULL;
24058 }
24059
24060
24061 static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
24062 PyObject *resultobj;
24063 wxWindow *arg1 = (wxWindow *) 0 ;
24064 wxSize result;
24065 PyObject * obj0 = 0 ;
24066 char *kwnames[] = {
24067 (char *) "self", NULL
24068 };
24069
24070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
24071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24073 {
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 result = ((wxWindow const *)arg1)->GetMaxSize();
24076
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 {
24081 wxSize * resultptr;
24082 resultptr = new wxSize((wxSize &) result);
24083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
24084 }
24085 return resultobj;
24086 fail:
24087 return NULL;
24088 }
24089
24090
24091 static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj;
24093 wxWindow *arg1 = (wxWindow *) 0 ;
24094 wxSize result;
24095 PyObject * obj0 = 0 ;
24096 char *kwnames[] = {
24097 (char *) "self", NULL
24098 };
24099
24100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
24101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 result = ((wxWindow const *)arg1)->GetMinSize();
24106
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 {
24111 wxSize * resultptr;
24112 resultptr = new wxSize((wxSize &) result);
24113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
24114 }
24115 return resultobj;
24116 fail:
24117 return NULL;
24118 }
24119
24120
24121 static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
24122 PyObject *resultobj;
24123 wxWindow *arg1 = (wxWindow *) 0 ;
24124 wxSize *arg2 = 0 ;
24125 wxSize temp2 ;
24126 PyObject * obj0 = 0 ;
24127 PyObject * obj1 = 0 ;
24128 char *kwnames[] = {
24129 (char *) "self",(char *) "minSize", NULL
24130 };
24131
24132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
24133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24135 {
24136 arg2 = &temp2;
24137 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24138 }
24139 {
24140 PyThreadState* __tstate = wxPyBeginAllowThreads();
24141 (arg1)->SetMinSize((wxSize const &)*arg2);
24142
24143 wxPyEndAllowThreads(__tstate);
24144 if (PyErr_Occurred()) SWIG_fail;
24145 }
24146 Py_INCREF(Py_None); resultobj = Py_None;
24147 return resultobj;
24148 fail:
24149 return NULL;
24150 }
24151
24152
24153 static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj;
24155 wxWindow *arg1 = (wxWindow *) 0 ;
24156 wxSize *arg2 = 0 ;
24157 wxSize temp2 ;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 char *kwnames[] = {
24161 (char *) "self",(char *) "maxSize", NULL
24162 };
24163
24164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
24165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24167 {
24168 arg2 = &temp2;
24169 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24170 }
24171 {
24172 PyThreadState* __tstate = wxPyBeginAllowThreads();
24173 (arg1)->SetMaxSize((wxSize const &)*arg2);
24174
24175 wxPyEndAllowThreads(__tstate);
24176 if (PyErr_Occurred()) SWIG_fail;
24177 }
24178 Py_INCREF(Py_None); resultobj = Py_None;
24179 return resultobj;
24180 fail:
24181 return NULL;
24182 }
24183
24184
24185 static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) {
24186 PyObject *resultobj;
24187 wxWindow *arg1 = (wxWindow *) 0 ;
24188 int result;
24189 PyObject * obj0 = 0 ;
24190 char *kwnames[] = {
24191 (char *) "self", NULL
24192 };
24193
24194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
24195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24197 {
24198 PyThreadState* __tstate = wxPyBeginAllowThreads();
24199 result = (int)((wxWindow const *)arg1)->GetMinWidth();
24200
24201 wxPyEndAllowThreads(__tstate);
24202 if (PyErr_Occurred()) SWIG_fail;
24203 }
24204 resultobj = SWIG_From_int((int)result);
24205 return resultobj;
24206 fail:
24207 return NULL;
24208 }
24209
24210
24211 static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj;
24213 wxWindow *arg1 = (wxWindow *) 0 ;
24214 int result;
24215 PyObject * obj0 = 0 ;
24216 char *kwnames[] = {
24217 (char *) "self", NULL
24218 };
24219
24220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
24221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (int)((wxWindow const *)arg1)->GetMinHeight();
24226
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_From_int((int)result);
24231 return resultobj;
24232 fail:
24233 return NULL;
24234 }
24235
24236
24237 static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj;
24239 wxWindow *arg1 = (wxWindow *) 0 ;
24240 int result;
24241 PyObject * obj0 = 0 ;
24242 char *kwnames[] = {
24243 (char *) "self", NULL
24244 };
24245
24246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
24247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24249 {
24250 PyThreadState* __tstate = wxPyBeginAllowThreads();
24251 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
24252
24253 wxPyEndAllowThreads(__tstate);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 }
24256 resultobj = SWIG_From_int((int)result);
24257 return resultobj;
24258 fail:
24259 return NULL;
24260 }
24261
24262
24263 static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) {
24264 PyObject *resultobj;
24265 wxWindow *arg1 = (wxWindow *) 0 ;
24266 int result;
24267 PyObject * obj0 = 0 ;
24268 char *kwnames[] = {
24269 (char *) "self", NULL
24270 };
24271
24272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
24273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24275 {
24276 PyThreadState* __tstate = wxPyBeginAllowThreads();
24277 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
24278
24279 wxPyEndAllowThreads(__tstate);
24280 if (PyErr_Occurred()) SWIG_fail;
24281 }
24282 resultobj = SWIG_From_int((int)result);
24283 return resultobj;
24284 fail:
24285 return NULL;
24286 }
24287
24288
24289 static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
24290 PyObject *resultobj;
24291 wxWindow *arg1 = (wxWindow *) 0 ;
24292 wxSize *arg2 = 0 ;
24293 wxSize temp2 ;
24294 PyObject * obj0 = 0 ;
24295 PyObject * obj1 = 0 ;
24296 char *kwnames[] = {
24297 (char *) "self",(char *) "size", NULL
24298 };
24299
24300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
24301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24303 {
24304 arg2 = &temp2;
24305 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24306 }
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 (arg1)->SetVirtualSize((wxSize const &)*arg2);
24310
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 Py_INCREF(Py_None); resultobj = Py_None;
24315 return resultobj;
24316 fail:
24317 return NULL;
24318 }
24319
24320
24321 static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj;
24323 wxWindow *arg1 = (wxWindow *) 0 ;
24324 int arg2 ;
24325 int arg3 ;
24326 PyObject * obj0 = 0 ;
24327 PyObject * obj1 = 0 ;
24328 PyObject * obj2 = 0 ;
24329 char *kwnames[] = {
24330 (char *) "self",(char *) "w",(char *) "h", NULL
24331 };
24332
24333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
24334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24336 arg2 = (int)SWIG_As_int(obj1);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 arg3 = (int)SWIG_As_int(obj2);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 {
24341 PyThreadState* __tstate = wxPyBeginAllowThreads();
24342 (arg1)->SetVirtualSize(arg2,arg3);
24343
24344 wxPyEndAllowThreads(__tstate);
24345 if (PyErr_Occurred()) SWIG_fail;
24346 }
24347 Py_INCREF(Py_None); resultobj = Py_None;
24348 return resultobj;
24349 fail:
24350 return NULL;
24351 }
24352
24353
24354 static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
24355 PyObject *resultobj;
24356 wxWindow *arg1 = (wxWindow *) 0 ;
24357 wxSize result;
24358 PyObject * obj0 = 0 ;
24359 char *kwnames[] = {
24360 (char *) "self", NULL
24361 };
24362
24363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
24364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 result = ((wxWindow const *)arg1)->GetVirtualSize();
24369
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 {
24374 wxSize * resultptr;
24375 resultptr = new wxSize((wxSize &) result);
24376 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
24377 }
24378 return resultobj;
24379 fail:
24380 return NULL;
24381 }
24382
24383
24384 static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
24385 PyObject *resultobj;
24386 wxWindow *arg1 = (wxWindow *) 0 ;
24387 int *arg2 = (int *) 0 ;
24388 int *arg3 = (int *) 0 ;
24389 int temp2 ;
24390 int res2 = 0 ;
24391 int temp3 ;
24392 int res3 = 0 ;
24393 PyObject * obj0 = 0 ;
24394 char *kwnames[] = {
24395 (char *) "self", NULL
24396 };
24397
24398 arg2 = &temp2; res2 = SWIG_NEWOBJ;
24399 arg3 = &temp3; res3 = SWIG_NEWOBJ;
24400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
24401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24403 {
24404 PyThreadState* __tstate = wxPyBeginAllowThreads();
24405 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
24406
24407 wxPyEndAllowThreads(__tstate);
24408 if (PyErr_Occurred()) SWIG_fail;
24409 }
24410 Py_INCREF(Py_None); resultobj = Py_None;
24411 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
24412 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
24413 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
24414 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
24415 return resultobj;
24416 fail:
24417 return NULL;
24418 }
24419
24420
24421 static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj;
24423 wxWindow *arg1 = (wxWindow *) 0 ;
24424 wxSize result;
24425 PyObject * obj0 = 0 ;
24426 char *kwnames[] = {
24427 (char *) "self", NULL
24428 };
24429
24430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
24431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
24436
24437 wxPyEndAllowThreads(__tstate);
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 {
24441 wxSize * resultptr;
24442 resultptr = new wxSize((wxSize &) result);
24443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
24444 }
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj;
24453 wxWindow *arg1 = (wxWindow *) 0 ;
24454 bool arg2 = (bool) true ;
24455 bool result;
24456 PyObject * obj0 = 0 ;
24457 PyObject * obj1 = 0 ;
24458 char *kwnames[] = {
24459 (char *) "self",(char *) "show", NULL
24460 };
24461
24462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
24463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24465 if (obj1) {
24466 arg2 = (bool)SWIG_As_bool(obj1);
24467 if (PyErr_Occurred()) SWIG_fail;
24468 }
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 result = (bool)(arg1)->Show(arg2);
24472
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 {
24477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24478 }
24479 return resultobj;
24480 fail:
24481 return NULL;
24482 }
24483
24484
24485 static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
24486 PyObject *resultobj;
24487 wxWindow *arg1 = (wxWindow *) 0 ;
24488 bool result;
24489 PyObject * obj0 = 0 ;
24490 char *kwnames[] = {
24491 (char *) "self", NULL
24492 };
24493
24494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
24495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (bool)(arg1)->Hide();
24500
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 {
24505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24506 }
24507 return resultobj;
24508 fail:
24509 return NULL;
24510 }
24511
24512
24513 static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
24514 PyObject *resultobj;
24515 wxWindow *arg1 = (wxWindow *) 0 ;
24516 bool arg2 = (bool) true ;
24517 bool result;
24518 PyObject * obj0 = 0 ;
24519 PyObject * obj1 = 0 ;
24520 char *kwnames[] = {
24521 (char *) "self",(char *) "enable", NULL
24522 };
24523
24524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
24525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24527 if (obj1) {
24528 arg2 = (bool)SWIG_As_bool(obj1);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 {
24532 PyThreadState* __tstate = wxPyBeginAllowThreads();
24533 result = (bool)(arg1)->Enable(arg2);
24534
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 {
24539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24540 }
24541 return resultobj;
24542 fail:
24543 return NULL;
24544 }
24545
24546
24547 static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) {
24548 PyObject *resultobj;
24549 wxWindow *arg1 = (wxWindow *) 0 ;
24550 bool result;
24551 PyObject * obj0 = 0 ;
24552 char *kwnames[] = {
24553 (char *) "self", NULL
24554 };
24555
24556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
24557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 result = (bool)(arg1)->Disable();
24562
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24568 }
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj;
24577 wxWindow *arg1 = (wxWindow *) 0 ;
24578 bool result;
24579 PyObject * obj0 = 0 ;
24580 char *kwnames[] = {
24581 (char *) "self", NULL
24582 };
24583
24584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
24585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24587 {
24588 PyThreadState* __tstate = wxPyBeginAllowThreads();
24589 result = (bool)((wxWindow const *)arg1)->IsShown();
24590
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 {
24595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24596 }
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
24604 PyObject *resultobj;
24605 wxWindow *arg1 = (wxWindow *) 0 ;
24606 bool result;
24607 PyObject * obj0 = 0 ;
24608 char *kwnames[] = {
24609 (char *) "self", NULL
24610 };
24611
24612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
24613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 result = (bool)((wxWindow const *)arg1)->IsEnabled();
24618
24619 wxPyEndAllowThreads(__tstate);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 {
24623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24624 }
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj;
24633 wxWindow *arg1 = (wxWindow *) 0 ;
24634 long arg2 ;
24635 PyObject * obj0 = 0 ;
24636 PyObject * obj1 = 0 ;
24637 char *kwnames[] = {
24638 (char *) "self",(char *) "style", NULL
24639 };
24640
24641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
24642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24644 arg2 = (long)SWIG_As_long(obj1);
24645 if (PyErr_Occurred()) SWIG_fail;
24646 {
24647 PyThreadState* __tstate = wxPyBeginAllowThreads();
24648 (arg1)->SetWindowStyleFlag(arg2);
24649
24650 wxPyEndAllowThreads(__tstate);
24651 if (PyErr_Occurred()) SWIG_fail;
24652 }
24653 Py_INCREF(Py_None); resultobj = Py_None;
24654 return resultobj;
24655 fail:
24656 return NULL;
24657 }
24658
24659
24660 static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
24661 PyObject *resultobj;
24662 wxWindow *arg1 = (wxWindow *) 0 ;
24663 long result;
24664 PyObject * obj0 = 0 ;
24665 char *kwnames[] = {
24666 (char *) "self", NULL
24667 };
24668
24669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
24670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
24675
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_From_long((long)result);
24680 return resultobj;
24681 fail:
24682 return NULL;
24683 }
24684
24685
24686 static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj;
24688 wxWindow *arg1 = (wxWindow *) 0 ;
24689 int arg2 ;
24690 bool result;
24691 PyObject * obj0 = 0 ;
24692 PyObject * obj1 = 0 ;
24693 char *kwnames[] = {
24694 (char *) "self",(char *) "flag", NULL
24695 };
24696
24697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
24698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24700 arg2 = (int)SWIG_As_int(obj1);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 {
24703 PyThreadState* __tstate = wxPyBeginAllowThreads();
24704 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24705
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 {
24710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24711 }
24712 return resultobj;
24713 fail:
24714 return NULL;
24715 }
24716
24717
24718 static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj;
24720 wxWindow *arg1 = (wxWindow *) 0 ;
24721 bool result;
24722 PyObject * obj0 = 0 ;
24723 char *kwnames[] = {
24724 (char *) "self", NULL
24725 };
24726
24727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (bool)((wxWindow const *)arg1)->IsRetained();
24733
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 {
24738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24739 }
24740 return resultobj;
24741 fail:
24742 return NULL;
24743 }
24744
24745
24746 static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
24747 PyObject *resultobj;
24748 wxWindow *arg1 = (wxWindow *) 0 ;
24749 long arg2 ;
24750 PyObject * obj0 = 0 ;
24751 PyObject * obj1 = 0 ;
24752 char *kwnames[] = {
24753 (char *) "self",(char *) "exStyle", NULL
24754 };
24755
24756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24759 arg2 = (long)SWIG_As_long(obj1);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 {
24762 PyThreadState* __tstate = wxPyBeginAllowThreads();
24763 (arg1)->SetExtraStyle(arg2);
24764
24765 wxPyEndAllowThreads(__tstate);
24766 if (PyErr_Occurred()) SWIG_fail;
24767 }
24768 Py_INCREF(Py_None); resultobj = Py_None;
24769 return resultobj;
24770 fail:
24771 return NULL;
24772 }
24773
24774
24775 static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
24776 PyObject *resultobj;
24777 wxWindow *arg1 = (wxWindow *) 0 ;
24778 long result;
24779 PyObject * obj0 = 0 ;
24780 char *kwnames[] = {
24781 (char *) "self", NULL
24782 };
24783
24784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24787 {
24788 PyThreadState* __tstate = wxPyBeginAllowThreads();
24789 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24790
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 resultobj = SWIG_From_long((long)result);
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj;
24803 wxWindow *arg1 = (wxWindow *) 0 ;
24804 bool arg2 = (bool) true ;
24805 PyObject * obj0 = 0 ;
24806 PyObject * obj1 = 0 ;
24807 char *kwnames[] = {
24808 (char *) "self",(char *) "modal", NULL
24809 };
24810
24811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24814 if (obj1) {
24815 arg2 = (bool)SWIG_As_bool(obj1);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 (arg1)->MakeModal(arg2);
24821
24822 wxPyEndAllowThreads(__tstate);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
24825 Py_INCREF(Py_None); resultobj = Py_None;
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj;
24834 wxWindow *arg1 = (wxWindow *) 0 ;
24835 bool arg2 ;
24836 PyObject * obj0 = 0 ;
24837 PyObject * obj1 = 0 ;
24838 char *kwnames[] = {
24839 (char *) "self",(char *) "enableTheme", NULL
24840 };
24841
24842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24845 arg2 = (bool)SWIG_As_bool(obj1);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 {
24848 PyThreadState* __tstate = wxPyBeginAllowThreads();
24849 (arg1)->SetThemeEnabled(arg2);
24850
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 Py_INCREF(Py_None); resultobj = Py_None;
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj;
24863 wxWindow *arg1 = (wxWindow *) 0 ;
24864 bool result;
24865 PyObject * obj0 = 0 ;
24866 char *kwnames[] = {
24867 (char *) "self", NULL
24868 };
24869
24870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24873 {
24874 PyThreadState* __tstate = wxPyBeginAllowThreads();
24875 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24876
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 {
24881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24882 }
24883 return resultobj;
24884 fail:
24885 return NULL;
24886 }
24887
24888
24889 static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj;
24891 wxWindow *arg1 = (wxWindow *) 0 ;
24892 PyObject * obj0 = 0 ;
24893 char *kwnames[] = {
24894 (char *) "self", NULL
24895 };
24896
24897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24900 {
24901 PyThreadState* __tstate = wxPyBeginAllowThreads();
24902 (arg1)->SetFocus();
24903
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 Py_INCREF(Py_None); resultobj = Py_None;
24908 return resultobj;
24909 fail:
24910 return NULL;
24911 }
24912
24913
24914 static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) {
24915 PyObject *resultobj;
24916 wxWindow *arg1 = (wxWindow *) 0 ;
24917 PyObject * obj0 = 0 ;
24918 char *kwnames[] = {
24919 (char *) "self", NULL
24920 };
24921
24922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 (arg1)->SetFocusFromKbd();
24928
24929 wxPyEndAllowThreads(__tstate);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 Py_INCREF(Py_None); resultobj = Py_None;
24933 return resultobj;
24934 fail:
24935 return NULL;
24936 }
24937
24938
24939 static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj;
24941 wxWindow *result;
24942 char *kwnames[] = {
24943 NULL
24944 };
24945
24946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24947 {
24948 if (!wxPyCheckForApp()) SWIG_fail;
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 result = (wxWindow *)wxWindow::FindFocus();
24951
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 {
24956 resultobj = wxPyMake_wxObject(result, 0);
24957 }
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj;
24966 wxWindow *arg1 = (wxWindow *) 0 ;
24967 bool result;
24968 PyObject * obj0 = 0 ;
24969 char *kwnames[] = {
24970 (char *) "self", NULL
24971 };
24972
24973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24976 {
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24979
24980 wxPyEndAllowThreads(__tstate);
24981 if (PyErr_Occurred()) SWIG_fail;
24982 }
24983 {
24984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24985 }
24986 return resultobj;
24987 fail:
24988 return NULL;
24989 }
24990
24991
24992 static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
24993 PyObject *resultobj;
24994 wxWindow *arg1 = (wxWindow *) 0 ;
24995 bool result;
24996 PyObject * obj0 = 0 ;
24997 char *kwnames[] = {
24998 (char *) "self", NULL
24999 };
25000
25001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
25002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
25007
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 {
25012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25013 }
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj;
25022 wxWindow *arg1 = (wxWindow *) 0 ;
25023 wxWindow *result;
25024 PyObject * obj0 = 0 ;
25025 char *kwnames[] = {
25026 (char *) "self", NULL
25027 };
25028
25029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
25030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
25035
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 {
25040 resultobj = wxPyMake_wxObject(result, 0);
25041 }
25042 return resultobj;
25043 fail:
25044 return NULL;
25045 }
25046
25047
25048 static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
25049 PyObject *resultobj;
25050 wxWindow *arg1 = (wxWindow *) 0 ;
25051 wxWindow *arg2 = (wxWindow *) 0 ;
25052 wxWindow *result;
25053 PyObject * obj0 = 0 ;
25054 PyObject * obj1 = 0 ;
25055 char *kwnames[] = {
25056 (char *) "self",(char *) "child", NULL
25057 };
25058
25059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
25060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25064 {
25065 PyThreadState* __tstate = wxPyBeginAllowThreads();
25066 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
25067
25068 wxPyEndAllowThreads(__tstate);
25069 if (PyErr_Occurred()) SWIG_fail;
25070 }
25071 {
25072 resultobj = wxPyMake_wxObject(result, 0);
25073 }
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxWindow *arg1 = (wxWindow *) 0 ;
25083 wxWindow *arg2 = (wxWindow *) 0 ;
25084 PyObject * obj0 = 0 ;
25085 PyObject * obj1 = 0 ;
25086 char *kwnames[] = {
25087 (char *) "self",(char *) "win", NULL
25088 };
25089
25090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
25091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25093 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 (arg1)->SetTmpDefaultItem(arg2);
25098
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 Py_INCREF(Py_None); resultobj = Py_None;
25103 return resultobj;
25104 fail:
25105 return NULL;
25106 }
25107
25108
25109 static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) {
25110 PyObject *resultobj;
25111 wxWindow *arg1 = (wxWindow *) 0 ;
25112 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
25113 bool result;
25114 PyObject * obj0 = 0 ;
25115 PyObject * obj1 = 0 ;
25116 char *kwnames[] = {
25117 (char *) "self",(char *) "flags", NULL
25118 };
25119
25120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
25121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25123 if (obj1) {
25124 arg2 = (int)SWIG_As_int(obj1);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 {
25128 PyThreadState* __tstate = wxPyBeginAllowThreads();
25129 result = (bool)(arg1)->Navigate(arg2);
25130
25131 wxPyEndAllowThreads(__tstate);
25132 if (PyErr_Occurred()) SWIG_fail;
25133 }
25134 {
25135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25136 }
25137 return resultobj;
25138 fail:
25139 return NULL;
25140 }
25141
25142
25143 static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
25144 PyObject *resultobj;
25145 wxWindow *arg1 = (wxWindow *) 0 ;
25146 wxWindow *arg2 = (wxWindow *) 0 ;
25147 PyObject * obj0 = 0 ;
25148 PyObject * obj1 = 0 ;
25149 char *kwnames[] = {
25150 (char *) "self",(char *) "win", NULL
25151 };
25152
25153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
25154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25158 {
25159 PyThreadState* __tstate = wxPyBeginAllowThreads();
25160 (arg1)->MoveAfterInTabOrder(arg2);
25161
25162 wxPyEndAllowThreads(__tstate);
25163 if (PyErr_Occurred()) SWIG_fail;
25164 }
25165 Py_INCREF(Py_None); resultobj = Py_None;
25166 return resultobj;
25167 fail:
25168 return NULL;
25169 }
25170
25171
25172 static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
25173 PyObject *resultobj;
25174 wxWindow *arg1 = (wxWindow *) 0 ;
25175 wxWindow *arg2 = (wxWindow *) 0 ;
25176 PyObject * obj0 = 0 ;
25177 PyObject * obj1 = 0 ;
25178 char *kwnames[] = {
25179 (char *) "self",(char *) "win", NULL
25180 };
25181
25182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
25183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25187 {
25188 PyThreadState* __tstate = wxPyBeginAllowThreads();
25189 (arg1)->MoveBeforeInTabOrder(arg2);
25190
25191 wxPyEndAllowThreads(__tstate);
25192 if (PyErr_Occurred()) SWIG_fail;
25193 }
25194 Py_INCREF(Py_None); resultobj = Py_None;
25195 return resultobj;
25196 fail:
25197 return NULL;
25198 }
25199
25200
25201 static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
25202 PyObject *resultobj;
25203 wxWindow *arg1 = (wxWindow *) 0 ;
25204 PyObject *result;
25205 PyObject * obj0 = 0 ;
25206 char *kwnames[] = {
25207 (char *) "self", NULL
25208 };
25209
25210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
25211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (PyObject *)wxWindow_GetChildren(arg1);
25216
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = result;
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj;
25229 wxWindow *arg1 = (wxWindow *) 0 ;
25230 wxWindow *result;
25231 PyObject * obj0 = 0 ;
25232 char *kwnames[] = {
25233 (char *) "self", NULL
25234 };
25235
25236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
25237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
25242
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 {
25247 resultobj = wxPyMake_wxObject(result, 0);
25248 }
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj;
25257 wxWindow *arg1 = (wxWindow *) 0 ;
25258 wxWindow *result;
25259 PyObject * obj0 = 0 ;
25260 char *kwnames[] = {
25261 (char *) "self", NULL
25262 };
25263
25264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
25265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25267 {
25268 PyThreadState* __tstate = wxPyBeginAllowThreads();
25269 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
25270
25271 wxPyEndAllowThreads(__tstate);
25272 if (PyErr_Occurred()) SWIG_fail;
25273 }
25274 {
25275 resultobj = wxPyMake_wxObject(result, 0);
25276 }
25277 return resultobj;
25278 fail:
25279 return NULL;
25280 }
25281
25282
25283 static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) {
25284 PyObject *resultobj;
25285 wxWindow *arg1 = (wxWindow *) 0 ;
25286 bool result;
25287 PyObject * obj0 = 0 ;
25288 char *kwnames[] = {
25289 (char *) "self", NULL
25290 };
25291
25292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
25293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
25298
25299 wxPyEndAllowThreads(__tstate);
25300 if (PyErr_Occurred()) SWIG_fail;
25301 }
25302 {
25303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25304 }
25305 return resultobj;
25306 fail:
25307 return NULL;
25308 }
25309
25310
25311 static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj;
25313 wxWindow *arg1 = (wxWindow *) 0 ;
25314 wxWindow *arg2 = (wxWindow *) 0 ;
25315 bool result;
25316 PyObject * obj0 = 0 ;
25317 PyObject * obj1 = 0 ;
25318 char *kwnames[] = {
25319 (char *) "self",(char *) "newParent", NULL
25320 };
25321
25322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
25323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 result = (bool)(arg1)->Reparent(arg2);
25330
25331 wxPyEndAllowThreads(__tstate);
25332 if (PyErr_Occurred()) SWIG_fail;
25333 }
25334 {
25335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25336 }
25337 return resultobj;
25338 fail:
25339 return NULL;
25340 }
25341
25342
25343 static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj;
25345 wxWindow *arg1 = (wxWindow *) 0 ;
25346 wxWindow *arg2 = (wxWindow *) 0 ;
25347 PyObject * obj0 = 0 ;
25348 PyObject * obj1 = 0 ;
25349 char *kwnames[] = {
25350 (char *) "self",(char *) "child", NULL
25351 };
25352
25353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
25354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 PyThreadState* __tstate = wxPyBeginAllowThreads();
25360 (arg1)->AddChild(arg2);
25361
25362 wxPyEndAllowThreads(__tstate);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 Py_INCREF(Py_None); resultobj = Py_None;
25366 return resultobj;
25367 fail:
25368 return NULL;
25369 }
25370
25371
25372 static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
25373 PyObject *resultobj;
25374 wxWindow *arg1 = (wxWindow *) 0 ;
25375 wxWindow *arg2 = (wxWindow *) 0 ;
25376 PyObject * obj0 = 0 ;
25377 PyObject * obj1 = 0 ;
25378 char *kwnames[] = {
25379 (char *) "self",(char *) "child", NULL
25380 };
25381
25382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
25383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25387 {
25388 PyThreadState* __tstate = wxPyBeginAllowThreads();
25389 (arg1)->RemoveChild(arg2);
25390
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 Py_INCREF(Py_None); resultobj = Py_None;
25395 return resultobj;
25396 fail:
25397 return NULL;
25398 }
25399
25400
25401 static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj;
25403 wxWindow *arg1 = (wxWindow *) 0 ;
25404 long arg2 ;
25405 wxWindow *result;
25406 PyObject * obj0 = 0 ;
25407 PyObject * obj1 = 0 ;
25408 char *kwnames[] = {
25409 (char *) "self",(char *) "winid", NULL
25410 };
25411
25412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
25413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25415 arg2 = (long)SWIG_As_long(obj1);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 result = (wxWindow *)(arg1)->FindWindow(arg2);
25420
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 {
25425 resultobj = wxPyMake_wxObject(result, 0);
25426 }
25427 return resultobj;
25428 fail:
25429 return NULL;
25430 }
25431
25432
25433 static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
25434 PyObject *resultobj;
25435 wxWindow *arg1 = (wxWindow *) 0 ;
25436 wxString *arg2 = 0 ;
25437 wxWindow *result;
25438 bool temp2 = false ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 char *kwnames[] = {
25442 (char *) "self",(char *) "name", NULL
25443 };
25444
25445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
25446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25448 {
25449 arg2 = wxString_in_helper(obj1);
25450 if (arg2 == NULL) SWIG_fail;
25451 temp2 = true;
25452 }
25453 {
25454 PyThreadState* __tstate = wxPyBeginAllowThreads();
25455 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
25456
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 {
25461 resultobj = wxPyMake_wxObject(result, 0);
25462 }
25463 {
25464 if (temp2)
25465 delete arg2;
25466 }
25467 return resultobj;
25468 fail:
25469 {
25470 if (temp2)
25471 delete arg2;
25472 }
25473 return NULL;
25474 }
25475
25476
25477 static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj;
25479 wxWindow *arg1 = (wxWindow *) 0 ;
25480 wxEvtHandler *result;
25481 PyObject * obj0 = 0 ;
25482 char *kwnames[] = {
25483 (char *) "self", NULL
25484 };
25485
25486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
25487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
25492
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 {
25497 resultobj = wxPyMake_wxObject(result, 0);
25498 }
25499 return resultobj;
25500 fail:
25501 return NULL;
25502 }
25503
25504
25505 static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
25506 PyObject *resultobj;
25507 wxWindow *arg1 = (wxWindow *) 0 ;
25508 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25509 PyObject * obj0 = 0 ;
25510 PyObject * obj1 = 0 ;
25511 char *kwnames[] = {
25512 (char *) "self",(char *) "handler", NULL
25513 };
25514
25515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
25516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 (arg1)->SetEventHandler(arg2);
25523
25524 wxPyEndAllowThreads(__tstate);
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 Py_INCREF(Py_None); resultobj = Py_None;
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
25535 PyObject *resultobj;
25536 wxWindow *arg1 = (wxWindow *) 0 ;
25537 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25538 PyObject * obj0 = 0 ;
25539 PyObject * obj1 = 0 ;
25540 char *kwnames[] = {
25541 (char *) "self",(char *) "handler", NULL
25542 };
25543
25544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
25545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 (arg1)->PushEventHandler(arg2);
25552
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 Py_INCREF(Py_None); resultobj = Py_None;
25557 return resultobj;
25558 fail:
25559 return NULL;
25560 }
25561
25562
25563 static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj;
25565 wxWindow *arg1 = (wxWindow *) 0 ;
25566 bool arg2 = (bool) false ;
25567 wxEvtHandler *result;
25568 PyObject * obj0 = 0 ;
25569 PyObject * obj1 = 0 ;
25570 char *kwnames[] = {
25571 (char *) "self",(char *) "deleteHandler", NULL
25572 };
25573
25574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
25575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25577 if (obj1) {
25578 arg2 = (bool)SWIG_As_bool(obj1);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 {
25582 PyThreadState* __tstate = wxPyBeginAllowThreads();
25583 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
25584
25585 wxPyEndAllowThreads(__tstate);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 {
25589 resultobj = wxPyMake_wxObject(result, 0);
25590 }
25591 return resultobj;
25592 fail:
25593 return NULL;
25594 }
25595
25596
25597 static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
25598 PyObject *resultobj;
25599 wxWindow *arg1 = (wxWindow *) 0 ;
25600 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25601 bool result;
25602 PyObject * obj0 = 0 ;
25603 PyObject * obj1 = 0 ;
25604 char *kwnames[] = {
25605 (char *) "self",(char *) "handler", NULL
25606 };
25607
25608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
25609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 result = (bool)(arg1)->RemoveEventHandler(arg2);
25616
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 {
25621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25622 }
25623 return resultobj;
25624 fail:
25625 return NULL;
25626 }
25627
25628
25629 static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
25630 PyObject *resultobj;
25631 wxWindow *arg1 = (wxWindow *) 0 ;
25632 wxValidator *arg2 = 0 ;
25633 PyObject * obj0 = 0 ;
25634 PyObject * obj1 = 0 ;
25635 char *kwnames[] = {
25636 (char *) "self",(char *) "validator", NULL
25637 };
25638
25639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
25640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
25643 SWIG_POINTER_EXCEPTION | 0)) == -1)
25644 SWIG_fail;
25645 if (arg2 == NULL) {
25646 PyErr_SetString(PyExc_TypeError,"null reference");
25647 SWIG_fail;
25648 }
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 (arg1)->SetValidator((wxValidator const &)*arg2);
25652
25653 wxPyEndAllowThreads(__tstate);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 Py_INCREF(Py_None); resultobj = Py_None;
25657 return resultobj;
25658 fail:
25659 return NULL;
25660 }
25661
25662
25663 static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
25664 PyObject *resultobj;
25665 wxWindow *arg1 = (wxWindow *) 0 ;
25666 wxValidator *result;
25667 PyObject * obj0 = 0 ;
25668 char *kwnames[] = {
25669 (char *) "self", NULL
25670 };
25671
25672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
25673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25675 {
25676 PyThreadState* __tstate = wxPyBeginAllowThreads();
25677 result = (wxValidator *)(arg1)->GetValidator();
25678
25679 wxPyEndAllowThreads(__tstate);
25680 if (PyErr_Occurred()) SWIG_fail;
25681 }
25682 {
25683 resultobj = wxPyMake_wxObject(result, 0);
25684 }
25685 return resultobj;
25686 fail:
25687 return NULL;
25688 }
25689
25690
25691 static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
25692 PyObject *resultobj;
25693 wxWindow *arg1 = (wxWindow *) 0 ;
25694 bool result;
25695 PyObject * obj0 = 0 ;
25696 char *kwnames[] = {
25697 (char *) "self", NULL
25698 };
25699
25700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
25701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25703 {
25704 PyThreadState* __tstate = wxPyBeginAllowThreads();
25705 result = (bool)(arg1)->Validate();
25706
25707 wxPyEndAllowThreads(__tstate);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 {
25711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25712 }
25713 return resultobj;
25714 fail:
25715 return NULL;
25716 }
25717
25718
25719 static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
25720 PyObject *resultobj;
25721 wxWindow *arg1 = (wxWindow *) 0 ;
25722 bool result;
25723 PyObject * obj0 = 0 ;
25724 char *kwnames[] = {
25725 (char *) "self", NULL
25726 };
25727
25728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
25729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 result = (bool)(arg1)->TransferDataToWindow();
25734
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 {
25739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25740 }
25741 return resultobj;
25742 fail:
25743 return NULL;
25744 }
25745
25746
25747 static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
25748 PyObject *resultobj;
25749 wxWindow *arg1 = (wxWindow *) 0 ;
25750 bool result;
25751 PyObject * obj0 = 0 ;
25752 char *kwnames[] = {
25753 (char *) "self", NULL
25754 };
25755
25756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25759 {
25760 PyThreadState* __tstate = wxPyBeginAllowThreads();
25761 result = (bool)(arg1)->TransferDataFromWindow();
25762
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 {
25767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25768 }
25769 return resultobj;
25770 fail:
25771 return NULL;
25772 }
25773
25774
25775 static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj;
25777 wxWindow *arg1 = (wxWindow *) 0 ;
25778 PyObject * obj0 = 0 ;
25779 char *kwnames[] = {
25780 (char *) "self", NULL
25781 };
25782
25783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 (arg1)->InitDialog();
25789
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 Py_INCREF(Py_None); resultobj = Py_None;
25794 return resultobj;
25795 fail:
25796 return NULL;
25797 }
25798
25799
25800 static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
25801 PyObject *resultobj;
25802 wxWindow *arg1 = (wxWindow *) 0 ;
25803 wxAcceleratorTable *arg2 = 0 ;
25804 PyObject * obj0 = 0 ;
25805 PyObject * obj1 = 0 ;
25806 char *kwnames[] = {
25807 (char *) "self",(char *) "accel", NULL
25808 };
25809
25810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25814 SWIG_POINTER_EXCEPTION | 0)) == -1)
25815 SWIG_fail;
25816 if (arg2 == NULL) {
25817 PyErr_SetString(PyExc_TypeError,"null reference");
25818 SWIG_fail;
25819 }
25820 {
25821 PyThreadState* __tstate = wxPyBeginAllowThreads();
25822 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25823
25824 wxPyEndAllowThreads(__tstate);
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 Py_INCREF(Py_None); resultobj = Py_None;
25828 return resultobj;
25829 fail:
25830 return NULL;
25831 }
25832
25833
25834 static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
25835 PyObject *resultobj;
25836 wxWindow *arg1 = (wxWindow *) 0 ;
25837 wxAcceleratorTable *result;
25838 PyObject * obj0 = 0 ;
25839 char *kwnames[] = {
25840 (char *) "self", NULL
25841 };
25842
25843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25849
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25854 return resultobj;
25855 fail:
25856 return NULL;
25857 }
25858
25859
25860 static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
25861 PyObject *resultobj;
25862 wxWindow *arg1 = (wxWindow *) 0 ;
25863 int arg2 ;
25864 int arg3 ;
25865 int arg4 ;
25866 bool result;
25867 PyObject * obj0 = 0 ;
25868 PyObject * obj1 = 0 ;
25869 PyObject * obj2 = 0 ;
25870 PyObject * obj3 = 0 ;
25871 char *kwnames[] = {
25872 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25873 };
25874
25875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25878 arg2 = (int)SWIG_As_int(obj1);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 arg3 = (int)SWIG_As_int(obj2);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 arg4 = (int)SWIG_As_int(obj3);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25887
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 {
25892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25893 }
25894 return resultobj;
25895 fail:
25896 return NULL;
25897 }
25898
25899
25900 static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
25901 PyObject *resultobj;
25902 wxWindow *arg1 = (wxWindow *) 0 ;
25903 int arg2 ;
25904 bool result;
25905 PyObject * obj0 = 0 ;
25906 PyObject * obj1 = 0 ;
25907 char *kwnames[] = {
25908 (char *) "self",(char *) "hotkeyId", NULL
25909 };
25910
25911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25914 arg2 = (int)SWIG_As_int(obj1);
25915 if (PyErr_Occurred()) SWIG_fail;
25916 {
25917 PyThreadState* __tstate = wxPyBeginAllowThreads();
25918 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25919
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 {
25924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25925 }
25926 return resultobj;
25927 fail:
25928 return NULL;
25929 }
25930
25931
25932 static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
25933 PyObject *resultobj;
25934 wxWindow *arg1 = (wxWindow *) 0 ;
25935 wxPoint *arg2 = 0 ;
25936 wxPoint result;
25937 wxPoint temp2 ;
25938 PyObject * obj0 = 0 ;
25939 PyObject * obj1 = 0 ;
25940 char *kwnames[] = {
25941 (char *) "self",(char *) "pt", NULL
25942 };
25943
25944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25947 {
25948 arg2 = &temp2;
25949 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25950 }
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25954
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 {
25959 wxPoint * resultptr;
25960 resultptr = new wxPoint((wxPoint &) result);
25961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25962 }
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxWindow *arg1 = (wxWindow *) 0 ;
25972 wxSize *arg2 = 0 ;
25973 wxSize result;
25974 wxSize temp2 ;
25975 PyObject * obj0 = 0 ;
25976 PyObject * obj1 = 0 ;
25977 char *kwnames[] = {
25978 (char *) "self",(char *) "sz", NULL
25979 };
25980
25981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25984 {
25985 arg2 = &temp2;
25986 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25987 }
25988 {
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25991
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 {
25996 wxSize * resultptr;
25997 resultptr = new wxSize((wxSize &) result);
25998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25999 }
26000 return resultobj;
26001 fail:
26002 return NULL;
26003 }
26004
26005
26006 static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) {
26007 PyObject *resultobj;
26008 wxWindow *arg1 = (wxWindow *) 0 ;
26009 wxPoint *arg2 = 0 ;
26010 wxPoint result;
26011 wxPoint temp2 ;
26012 PyObject * obj0 = 0 ;
26013 PyObject * obj1 = 0 ;
26014 char *kwnames[] = {
26015 (char *) "self",(char *) "pt", NULL
26016 };
26017
26018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
26019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26021 {
26022 arg2 = &temp2;
26023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26024 }
26025 {
26026 PyThreadState* __tstate = wxPyBeginAllowThreads();
26027 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
26028
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 {
26033 wxPoint * resultptr;
26034 resultptr = new wxPoint((wxPoint &) result);
26035 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26036 }
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) {
26044 PyObject *resultobj;
26045 wxWindow *arg1 = (wxWindow *) 0 ;
26046 wxSize *arg2 = 0 ;
26047 wxSize result;
26048 wxSize temp2 ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 char *kwnames[] = {
26052 (char *) "self",(char *) "sz", NULL
26053 };
26054
26055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
26056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26058 {
26059 arg2 = &temp2;
26060 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
26061 }
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 {
26070 wxSize * resultptr;
26071 resultptr = new wxSize((wxSize &) result);
26072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26073 }
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
26081 PyObject *resultobj;
26082 wxWindow *arg1 = (wxWindow *) 0 ;
26083 wxPoint *arg2 = 0 ;
26084 wxPoint result;
26085 wxPoint temp2 ;
26086 PyObject * obj0 = 0 ;
26087 PyObject * obj1 = 0 ;
26088 char *kwnames[] = {
26089 (char *) "self",(char *) "pt", NULL
26090 };
26091
26092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
26093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26095 {
26096 arg2 = &temp2;
26097 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26098 }
26099 {
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
26102
26103 wxPyEndAllowThreads(__tstate);
26104 if (PyErr_Occurred()) SWIG_fail;
26105 }
26106 {
26107 wxPoint * resultptr;
26108 resultptr = new wxPoint((wxPoint &) result);
26109 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26110 }
26111 return resultobj;
26112 fail:
26113 return NULL;
26114 }
26115
26116
26117 static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
26118 PyObject *resultobj;
26119 wxWindow *arg1 = (wxWindow *) 0 ;
26120 wxSize *arg2 = 0 ;
26121 wxSize result;
26122 wxSize temp2 ;
26123 PyObject * obj0 = 0 ;
26124 PyObject * obj1 = 0 ;
26125 char *kwnames[] = {
26126 (char *) "self",(char *) "sz", NULL
26127 };
26128
26129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
26130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26132 {
26133 arg2 = &temp2;
26134 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
26135 }
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
26139
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 {
26144 wxSize * resultptr;
26145 resultptr = new wxSize((wxSize &) result);
26146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26147 }
26148 return resultobj;
26149 fail:
26150 return NULL;
26151 }
26152
26153
26154 static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) {
26155 PyObject *resultobj;
26156 wxWindow *arg1 = (wxWindow *) 0 ;
26157 int arg2 ;
26158 int arg3 ;
26159 PyObject * obj0 = 0 ;
26160 PyObject * obj1 = 0 ;
26161 PyObject * obj2 = 0 ;
26162 char *kwnames[] = {
26163 (char *) "self",(char *) "x",(char *) "y", NULL
26164 };
26165
26166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
26167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26169 arg2 = (int)SWIG_As_int(obj1);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 arg3 = (int)SWIG_As_int(obj2);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 {
26174 PyThreadState* __tstate = wxPyBeginAllowThreads();
26175 (arg1)->WarpPointer(arg2,arg3);
26176
26177 wxPyEndAllowThreads(__tstate);
26178 if (PyErr_Occurred()) SWIG_fail;
26179 }
26180 Py_INCREF(Py_None); resultobj = Py_None;
26181 return resultobj;
26182 fail:
26183 return NULL;
26184 }
26185
26186
26187 static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) {
26188 PyObject *resultobj;
26189 wxWindow *arg1 = (wxWindow *) 0 ;
26190 PyObject * obj0 = 0 ;
26191 char *kwnames[] = {
26192 (char *) "self", NULL
26193 };
26194
26195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
26196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 (arg1)->CaptureMouse();
26201
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 Py_INCREF(Py_None); resultobj = Py_None;
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj;
26214 wxWindow *arg1 = (wxWindow *) 0 ;
26215 PyObject * obj0 = 0 ;
26216 char *kwnames[] = {
26217 (char *) "self", NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
26221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 (arg1)->ReleaseMouse();
26226
26227 wxPyEndAllowThreads(__tstate);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 Py_INCREF(Py_None); resultobj = Py_None;
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj;
26239 wxWindow *result;
26240 char *kwnames[] = {
26241 NULL
26242 };
26243
26244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
26245 {
26246 if (!wxPyCheckForApp()) SWIG_fail;
26247 PyThreadState* __tstate = wxPyBeginAllowThreads();
26248 result = (wxWindow *)wxWindow::GetCapture();
26249
26250 wxPyEndAllowThreads(__tstate);
26251 if (PyErr_Occurred()) SWIG_fail;
26252 }
26253 {
26254 resultobj = wxPyMake_wxObject(result, 0);
26255 }
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) {
26263 PyObject *resultobj;
26264 wxWindow *arg1 = (wxWindow *) 0 ;
26265 bool result;
26266 PyObject * obj0 = 0 ;
26267 char *kwnames[] = {
26268 (char *) "self", NULL
26269 };
26270
26271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
26272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26274 {
26275 PyThreadState* __tstate = wxPyBeginAllowThreads();
26276 result = (bool)((wxWindow const *)arg1)->HasCapture();
26277
26278 wxPyEndAllowThreads(__tstate);
26279 if (PyErr_Occurred()) SWIG_fail;
26280 }
26281 {
26282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26283 }
26284 return resultobj;
26285 fail:
26286 return NULL;
26287 }
26288
26289
26290 static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj;
26292 wxWindow *arg1 = (wxWindow *) 0 ;
26293 bool arg2 = (bool) true ;
26294 wxRect *arg3 = (wxRect *) NULL ;
26295 PyObject * obj0 = 0 ;
26296 PyObject * obj1 = 0 ;
26297 PyObject * obj2 = 0 ;
26298 char *kwnames[] = {
26299 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
26300 };
26301
26302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
26303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26305 if (obj1) {
26306 arg2 = (bool)SWIG_As_bool(obj1);
26307 if (PyErr_Occurred()) SWIG_fail;
26308 }
26309 if (obj2) {
26310 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
26311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26312 }
26313 {
26314 PyThreadState* __tstate = wxPyBeginAllowThreads();
26315 (arg1)->Refresh(arg2,(wxRect const *)arg3);
26316
26317 wxPyEndAllowThreads(__tstate);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 }
26320 Py_INCREF(Py_None); resultobj = Py_None;
26321 return resultobj;
26322 fail:
26323 return NULL;
26324 }
26325
26326
26327 static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) {
26328 PyObject *resultobj;
26329 wxWindow *arg1 = (wxWindow *) 0 ;
26330 wxRect *arg2 = 0 ;
26331 wxRect temp2 ;
26332 PyObject * obj0 = 0 ;
26333 PyObject * obj1 = 0 ;
26334 char *kwnames[] = {
26335 (char *) "self",(char *) "rect", NULL
26336 };
26337
26338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
26339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26341 {
26342 arg2 = &temp2;
26343 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26344 }
26345 {
26346 PyThreadState* __tstate = wxPyBeginAllowThreads();
26347 (arg1)->RefreshRect((wxRect const &)*arg2);
26348
26349 wxPyEndAllowThreads(__tstate);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 Py_INCREF(Py_None); resultobj = Py_None;
26353 return resultobj;
26354 fail:
26355 return NULL;
26356 }
26357
26358
26359 static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) {
26360 PyObject *resultobj;
26361 wxWindow *arg1 = (wxWindow *) 0 ;
26362 PyObject * obj0 = 0 ;
26363 char *kwnames[] = {
26364 (char *) "self", NULL
26365 };
26366
26367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
26368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26370 {
26371 PyThreadState* __tstate = wxPyBeginAllowThreads();
26372 (arg1)->Update();
26373
26374 wxPyEndAllowThreads(__tstate);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 }
26377 Py_INCREF(Py_None); resultobj = Py_None;
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) {
26385 PyObject *resultobj;
26386 wxWindow *arg1 = (wxWindow *) 0 ;
26387 PyObject * obj0 = 0 ;
26388 char *kwnames[] = {
26389 (char *) "self", NULL
26390 };
26391
26392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
26393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 (arg1)->ClearBackground();
26398
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 Py_INCREF(Py_None); resultobj = Py_None;
26403 return resultobj;
26404 fail:
26405 return NULL;
26406 }
26407
26408
26409 static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj;
26411 wxWindow *arg1 = (wxWindow *) 0 ;
26412 PyObject * obj0 = 0 ;
26413 char *kwnames[] = {
26414 (char *) "self", NULL
26415 };
26416
26417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
26418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 (arg1)->Freeze();
26423
26424 wxPyEndAllowThreads(__tstate);
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
26427 Py_INCREF(Py_None); resultobj = Py_None;
26428 return resultobj;
26429 fail:
26430 return NULL;
26431 }
26432
26433
26434 static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) {
26435 PyObject *resultobj;
26436 wxWindow *arg1 = (wxWindow *) 0 ;
26437 PyObject * obj0 = 0 ;
26438 char *kwnames[] = {
26439 (char *) "self", NULL
26440 };
26441
26442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
26443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 (arg1)->Thaw();
26448
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 Py_INCREF(Py_None); resultobj = Py_None;
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj;
26461 wxWindow *arg1 = (wxWindow *) 0 ;
26462 wxDC *arg2 = 0 ;
26463 PyObject * obj0 = 0 ;
26464 PyObject * obj1 = 0 ;
26465 char *kwnames[] = {
26466 (char *) "self",(char *) "dc", NULL
26467 };
26468
26469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
26470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
26473 SWIG_POINTER_EXCEPTION | 0)) == -1)
26474 SWIG_fail;
26475 if (arg2 == NULL) {
26476 PyErr_SetString(PyExc_TypeError,"null reference");
26477 SWIG_fail;
26478 }
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 (arg1)->PrepareDC(*arg2);
26482
26483 wxPyEndAllowThreads(__tstate);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 Py_INCREF(Py_None); resultobj = Py_None;
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxWindow *arg1 = (wxWindow *) 0 ;
26496 wxRegion *result;
26497 PyObject * obj0 = 0 ;
26498 char *kwnames[] = {
26499 (char *) "self", NULL
26500 };
26501
26502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
26503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 {
26508 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
26509 result = (wxRegion *) &_result_ref;
26510 }
26511
26512 wxPyEndAllowThreads(__tstate);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 }
26515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
26516 return resultobj;
26517 fail:
26518 return NULL;
26519 }
26520
26521
26522 static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
26523 PyObject *resultobj;
26524 wxWindow *arg1 = (wxWindow *) 0 ;
26525 wxRect result;
26526 PyObject * obj0 = 0 ;
26527 char *kwnames[] = {
26528 (char *) "self", NULL
26529 };
26530
26531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
26532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26534 {
26535 PyThreadState* __tstate = wxPyBeginAllowThreads();
26536 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
26537
26538 wxPyEndAllowThreads(__tstate);
26539 if (PyErr_Occurred()) SWIG_fail;
26540 }
26541 {
26542 wxRect * resultptr;
26543 resultptr = new wxRect((wxRect &) result);
26544 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
26545 }
26546 return resultobj;
26547 fail:
26548 return NULL;
26549 }
26550
26551
26552 static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj;
26554 wxWindow *arg1 = (wxWindow *) 0 ;
26555 int arg2 ;
26556 int arg3 ;
26557 int arg4 = (int) 1 ;
26558 int arg5 = (int) 1 ;
26559 bool result;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 PyObject * obj2 = 0 ;
26563 PyObject * obj3 = 0 ;
26564 PyObject * obj4 = 0 ;
26565 char *kwnames[] = {
26566 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26567 };
26568
26569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26572 arg2 = (int)SWIG_As_int(obj1);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 arg3 = (int)SWIG_As_int(obj2);
26575 if (PyErr_Occurred()) SWIG_fail;
26576 if (obj3) {
26577 arg4 = (int)SWIG_As_int(obj3);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 }
26580 if (obj4) {
26581 arg5 = (int)SWIG_As_int(obj4);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 }
26584 {
26585 PyThreadState* __tstate = wxPyBeginAllowThreads();
26586 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
26587
26588 wxPyEndAllowThreads(__tstate);
26589 if (PyErr_Occurred()) SWIG_fail;
26590 }
26591 {
26592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26593 }
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj;
26602 wxWindow *arg1 = (wxWindow *) 0 ;
26603 wxPoint *arg2 = 0 ;
26604 bool result;
26605 wxPoint temp2 ;
26606 PyObject * obj0 = 0 ;
26607 PyObject * obj1 = 0 ;
26608 char *kwnames[] = {
26609 (char *) "self",(char *) "pt", NULL
26610 };
26611
26612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
26613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26615 {
26616 arg2 = &temp2;
26617 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26618 }
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
26622
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 {
26627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26628 }
26629 return resultobj;
26630 fail:
26631 return NULL;
26632 }
26633
26634
26635 static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) {
26636 PyObject *resultobj;
26637 wxWindow *arg1 = (wxWindow *) 0 ;
26638 wxRect *arg2 = 0 ;
26639 bool result;
26640 wxRect temp2 ;
26641 PyObject * obj0 = 0 ;
26642 PyObject * obj1 = 0 ;
26643 char *kwnames[] = {
26644 (char *) "self",(char *) "rect", NULL
26645 };
26646
26647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
26648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26650 {
26651 arg2 = &temp2;
26652 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26653 }
26654 {
26655 PyThreadState* __tstate = wxPyBeginAllowThreads();
26656 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
26657
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 {
26662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26663 }
26664 return resultobj;
26665 fail:
26666 return NULL;
26667 }
26668
26669
26670 static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
26671 PyObject *resultobj;
26672 wxWindow *arg1 = (wxWindow *) 0 ;
26673 wxVisualAttributes result;
26674 PyObject * obj0 = 0 ;
26675 char *kwnames[] = {
26676 (char *) "self", NULL
26677 };
26678
26679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
26680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26682 {
26683 PyThreadState* __tstate = wxPyBeginAllowThreads();
26684 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
26685
26686 wxPyEndAllowThreads(__tstate);
26687 if (PyErr_Occurred()) SWIG_fail;
26688 }
26689 {
26690 wxVisualAttributes * resultptr;
26691 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26692 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26693 }
26694 return resultobj;
26695 fail:
26696 return NULL;
26697 }
26698
26699
26700 static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
26701 PyObject *resultobj;
26702 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
26703 wxVisualAttributes result;
26704 PyObject * obj0 = 0 ;
26705 char *kwnames[] = {
26706 (char *) "variant", NULL
26707 };
26708
26709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
26710 if (obj0) {
26711 arg1 = (int)SWIG_As_int(obj0);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 {
26715 if (!wxPyCheckForApp()) SWIG_fail;
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
26718
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 {
26723 wxVisualAttributes * resultptr;
26724 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26726 }
26727 return resultobj;
26728 fail:
26729 return NULL;
26730 }
26731
26732
26733 static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26734 PyObject *resultobj;
26735 wxWindow *arg1 = (wxWindow *) 0 ;
26736 wxColour *arg2 = 0 ;
26737 bool result;
26738 wxColour temp2 ;
26739 PyObject * obj0 = 0 ;
26740 PyObject * obj1 = 0 ;
26741 char *kwnames[] = {
26742 (char *) "self",(char *) "colour", NULL
26743 };
26744
26745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26748 {
26749 arg2 = &temp2;
26750 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26751 }
26752 {
26753 PyThreadState* __tstate = wxPyBeginAllowThreads();
26754 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26755
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 {
26760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26761 }
26762 return resultobj;
26763 fail:
26764 return NULL;
26765 }
26766
26767
26768 static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26769 PyObject *resultobj;
26770 wxWindow *arg1 = (wxWindow *) 0 ;
26771 wxColour *arg2 = 0 ;
26772 wxColour temp2 ;
26773 PyObject * obj0 = 0 ;
26774 PyObject * obj1 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "colour", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 {
26783 arg2 = &temp2;
26784 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26785 }
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
26789
26790 wxPyEndAllowThreads(__tstate);
26791 if (PyErr_Occurred()) SWIG_fail;
26792 }
26793 Py_INCREF(Py_None); resultobj = Py_None;
26794 return resultobj;
26795 fail:
26796 return NULL;
26797 }
26798
26799
26800 static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26801 PyObject *resultobj;
26802 wxWindow *arg1 = (wxWindow *) 0 ;
26803 wxColour *arg2 = 0 ;
26804 bool result;
26805 wxColour temp2 ;
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 char *kwnames[] = {
26809 (char *) "self",(char *) "colour", NULL
26810 };
26811
26812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26815 {
26816 arg2 = &temp2;
26817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26818 }
26819 {
26820 PyThreadState* __tstate = wxPyBeginAllowThreads();
26821 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26822
26823 wxPyEndAllowThreads(__tstate);
26824 if (PyErr_Occurred()) SWIG_fail;
26825 }
26826 {
26827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26828 }
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj;
26837 wxWindow *arg1 = (wxWindow *) 0 ;
26838 wxColour *arg2 = 0 ;
26839 wxColour temp2 ;
26840 PyObject * obj0 = 0 ;
26841 PyObject * obj1 = 0 ;
26842 char *kwnames[] = {
26843 (char *) "self",(char *) "colour", NULL
26844 };
26845
26846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26849 {
26850 arg2 = &temp2;
26851 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26852 }
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
26856
26857 wxPyEndAllowThreads(__tstate);
26858 if (PyErr_Occurred()) SWIG_fail;
26859 }
26860 Py_INCREF(Py_None); resultobj = Py_None;
26861 return resultobj;
26862 fail:
26863 return NULL;
26864 }
26865
26866
26867 static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26868 PyObject *resultobj;
26869 wxWindow *arg1 = (wxWindow *) 0 ;
26870 wxColour result;
26871 PyObject * obj0 = 0 ;
26872 char *kwnames[] = {
26873 (char *) "self", NULL
26874 };
26875
26876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26879 {
26880 PyThreadState* __tstate = wxPyBeginAllowThreads();
26881 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26882
26883 wxPyEndAllowThreads(__tstate);
26884 if (PyErr_Occurred()) SWIG_fail;
26885 }
26886 {
26887 wxColour * resultptr;
26888 resultptr = new wxColour((wxColour &) result);
26889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26890 }
26891 return resultobj;
26892 fail:
26893 return NULL;
26894 }
26895
26896
26897 static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26898 PyObject *resultobj;
26899 wxWindow *arg1 = (wxWindow *) 0 ;
26900 wxColour result;
26901 PyObject * obj0 = 0 ;
26902 char *kwnames[] = {
26903 (char *) "self", NULL
26904 };
26905
26906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = ((wxWindow const *)arg1)->GetForegroundColour();
26912
26913 wxPyEndAllowThreads(__tstate);
26914 if (PyErr_Occurred()) SWIG_fail;
26915 }
26916 {
26917 wxColour * resultptr;
26918 resultptr = new wxColour((wxColour &) result);
26919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26920 }
26921 return resultobj;
26922 fail:
26923 return NULL;
26924 }
26925
26926
26927 static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
26928 PyObject *resultobj;
26929 wxWindow *arg1 = (wxWindow *) 0 ;
26930 int arg2 ;
26931 bool result;
26932 PyObject * obj0 = 0 ;
26933 PyObject * obj1 = 0 ;
26934 char *kwnames[] = {
26935 (char *) "self",(char *) "style", NULL
26936 };
26937
26938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail;
26939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26941 arg2 = (int)SWIG_As_int(obj1);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 {
26944 PyThreadState* __tstate = wxPyBeginAllowThreads();
26945 result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2);
26946
26947 wxPyEndAllowThreads(__tstate);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 {
26951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26952 }
26953 return resultobj;
26954 fail:
26955 return NULL;
26956 }
26957
26958
26959 static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
26960 PyObject *resultobj;
26961 wxWindow *arg1 = (wxWindow *) 0 ;
26962 int result;
26963 PyObject * obj0 = 0 ;
26964 char *kwnames[] = {
26965 (char *) "self", NULL
26966 };
26967
26968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail;
26969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26971 {
26972 PyThreadState* __tstate = wxPyBeginAllowThreads();
26973 result = (int)((wxWindow const *)arg1)->GetBackgroundStyle();
26974
26975 wxPyEndAllowThreads(__tstate);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 }
26978 resultobj = SWIG_From_int((int)result);
26979 return resultobj;
26980 fail:
26981 return NULL;
26982 }
26983
26984
26985 static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
26986 PyObject *resultobj;
26987 wxWindow *arg1 = (wxWindow *) 0 ;
26988 wxCursor *arg2 = 0 ;
26989 bool result;
26990 PyObject * obj0 = 0 ;
26991 PyObject * obj1 = 0 ;
26992 char *kwnames[] = {
26993 (char *) "self",(char *) "cursor", NULL
26994 };
26995
26996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
27000 SWIG_POINTER_EXCEPTION | 0)) == -1)
27001 SWIG_fail;
27002 if (arg2 == NULL) {
27003 PyErr_SetString(PyExc_TypeError,"null reference");
27004 SWIG_fail;
27005 }
27006 {
27007 PyThreadState* __tstate = wxPyBeginAllowThreads();
27008 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
27009
27010 wxPyEndAllowThreads(__tstate);
27011 if (PyErr_Occurred()) SWIG_fail;
27012 }
27013 {
27014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27015 }
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
27023 PyObject *resultobj;
27024 wxWindow *arg1 = (wxWindow *) 0 ;
27025 wxCursor result;
27026 PyObject * obj0 = 0 ;
27027 char *kwnames[] = {
27028 (char *) "self", NULL
27029 };
27030
27031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
27032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27034 {
27035 PyThreadState* __tstate = wxPyBeginAllowThreads();
27036 result = (arg1)->GetCursor();
27037
27038 wxPyEndAllowThreads(__tstate);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 {
27042 wxCursor * resultptr;
27043 resultptr = new wxCursor((wxCursor &) result);
27044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
27045 }
27046 return resultobj;
27047 fail:
27048 return NULL;
27049 }
27050
27051
27052 static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
27053 PyObject *resultobj;
27054 wxWindow *arg1 = (wxWindow *) 0 ;
27055 wxFont *arg2 = 0 ;
27056 bool result;
27057 PyObject * obj0 = 0 ;
27058 PyObject * obj1 = 0 ;
27059 char *kwnames[] = {
27060 (char *) "self",(char *) "font", NULL
27061 };
27062
27063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
27064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
27067 SWIG_POINTER_EXCEPTION | 0)) == -1)
27068 SWIG_fail;
27069 if (arg2 == NULL) {
27070 PyErr_SetString(PyExc_TypeError,"null reference");
27071 SWIG_fail;
27072 }
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 {
27081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27082 }
27083 return resultobj;
27084 fail:
27085 return NULL;
27086 }
27087
27088
27089 static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) {
27090 PyObject *resultobj;
27091 wxWindow *arg1 = (wxWindow *) 0 ;
27092 wxFont *arg2 = 0 ;
27093 PyObject * obj0 = 0 ;
27094 PyObject * obj1 = 0 ;
27095 char *kwnames[] = {
27096 (char *) "self",(char *) "font", NULL
27097 };
27098
27099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
27100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
27103 SWIG_POINTER_EXCEPTION | 0)) == -1)
27104 SWIG_fail;
27105 if (arg2 == NULL) {
27106 PyErr_SetString(PyExc_TypeError,"null reference");
27107 SWIG_fail;
27108 }
27109 {
27110 PyThreadState* __tstate = wxPyBeginAllowThreads();
27111 (arg1)->SetOwnFont((wxFont const &)*arg2);
27112
27113 wxPyEndAllowThreads(__tstate);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 Py_INCREF(Py_None); resultobj = Py_None;
27117 return resultobj;
27118 fail:
27119 return NULL;
27120 }
27121
27122
27123 static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
27124 PyObject *resultobj;
27125 wxWindow *arg1 = (wxWindow *) 0 ;
27126 wxFont result;
27127 PyObject * obj0 = 0 ;
27128 char *kwnames[] = {
27129 (char *) "self", NULL
27130 };
27131
27132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
27133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = (arg1)->GetFont();
27138
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 {
27143 wxFont * resultptr;
27144 resultptr = new wxFont((wxFont &) result);
27145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
27146 }
27147 return resultobj;
27148 fail:
27149 return NULL;
27150 }
27151
27152
27153 static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
27154 PyObject *resultobj;
27155 wxWindow *arg1 = (wxWindow *) 0 ;
27156 wxCaret *arg2 = (wxCaret *) 0 ;
27157 PyObject * obj0 = 0 ;
27158 PyObject * obj1 = 0 ;
27159 char *kwnames[] = {
27160 (char *) "self",(char *) "caret", NULL
27161 };
27162
27163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
27164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27166 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
27167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27168 {
27169 PyThreadState* __tstate = wxPyBeginAllowThreads();
27170 (arg1)->SetCaret(arg2);
27171
27172 wxPyEndAllowThreads(__tstate);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 Py_INCREF(Py_None); resultobj = Py_None;
27176 return resultobj;
27177 fail:
27178 return NULL;
27179 }
27180
27181
27182 static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
27183 PyObject *resultobj;
27184 wxWindow *arg1 = (wxWindow *) 0 ;
27185 wxCaret *result;
27186 PyObject * obj0 = 0 ;
27187 char *kwnames[] = {
27188 (char *) "self", NULL
27189 };
27190
27191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
27192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
27197
27198 wxPyEndAllowThreads(__tstate);
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
27202 return resultobj;
27203 fail:
27204 return NULL;
27205 }
27206
27207
27208 static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27209 PyObject *resultobj;
27210 wxWindow *arg1 = (wxWindow *) 0 ;
27211 int result;
27212 PyObject * obj0 = 0 ;
27213 char *kwnames[] = {
27214 (char *) "self", NULL
27215 };
27216
27217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
27218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27220 {
27221 PyThreadState* __tstate = wxPyBeginAllowThreads();
27222 result = (int)((wxWindow const *)arg1)->GetCharHeight();
27223
27224 wxPyEndAllowThreads(__tstate);
27225 if (PyErr_Occurred()) SWIG_fail;
27226 }
27227 resultobj = SWIG_From_int((int)result);
27228 return resultobj;
27229 fail:
27230 return NULL;
27231 }
27232
27233
27234 static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27235 PyObject *resultobj;
27236 wxWindow *arg1 = (wxWindow *) 0 ;
27237 int result;
27238 PyObject * obj0 = 0 ;
27239 char *kwnames[] = {
27240 (char *) "self", NULL
27241 };
27242
27243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
27244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27246 {
27247 PyThreadState* __tstate = wxPyBeginAllowThreads();
27248 result = (int)((wxWindow const *)arg1)->GetCharWidth();
27249
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 resultobj = SWIG_From_int((int)result);
27254 return resultobj;
27255 fail:
27256 return NULL;
27257 }
27258
27259
27260 static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
27261 PyObject *resultobj;
27262 wxWindow *arg1 = (wxWindow *) 0 ;
27263 wxString *arg2 = 0 ;
27264 int *arg3 = (int *) 0 ;
27265 int *arg4 = (int *) 0 ;
27266 bool temp2 = false ;
27267 int temp3 ;
27268 int res3 = 0 ;
27269 int temp4 ;
27270 int res4 = 0 ;
27271 PyObject * obj0 = 0 ;
27272 PyObject * obj1 = 0 ;
27273 char *kwnames[] = {
27274 (char *) "self",(char *) "string", NULL
27275 };
27276
27277 arg3 = &temp3; res3 = SWIG_NEWOBJ;
27278 arg4 = &temp4; res4 = SWIG_NEWOBJ;
27279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
27280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27282 {
27283 arg2 = wxString_in_helper(obj1);
27284 if (arg2 == NULL) SWIG_fail;
27285 temp2 = true;
27286 }
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
27290
27291 wxPyEndAllowThreads(__tstate);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 Py_INCREF(Py_None); resultobj = Py_None;
27295 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27296 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27297 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
27298 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
27299 {
27300 if (temp2)
27301 delete arg2;
27302 }
27303 return resultobj;
27304 fail:
27305 {
27306 if (temp2)
27307 delete arg2;
27308 }
27309 return NULL;
27310 }
27311
27312
27313 static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj;
27315 wxWindow *arg1 = (wxWindow *) 0 ;
27316 wxString *arg2 = 0 ;
27317 int *arg3 = (int *) 0 ;
27318 int *arg4 = (int *) 0 ;
27319 int *arg5 = (int *) 0 ;
27320 int *arg6 = (int *) 0 ;
27321 wxFont *arg7 = (wxFont *) NULL ;
27322 bool temp2 = false ;
27323 int temp3 ;
27324 int res3 = 0 ;
27325 int temp4 ;
27326 int res4 = 0 ;
27327 int temp5 ;
27328 int res5 = 0 ;
27329 int temp6 ;
27330 int res6 = 0 ;
27331 PyObject * obj0 = 0 ;
27332 PyObject * obj1 = 0 ;
27333 PyObject * obj2 = 0 ;
27334 char *kwnames[] = {
27335 (char *) "self",(char *) "string",(char *) "font", NULL
27336 };
27337
27338 arg3 = &temp3; res3 = SWIG_NEWOBJ;
27339 arg4 = &temp4; res4 = SWIG_NEWOBJ;
27340 arg5 = &temp5; res5 = SWIG_NEWOBJ;
27341 arg6 = &temp6; res6 = SWIG_NEWOBJ;
27342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
27343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 {
27346 arg2 = wxString_in_helper(obj1);
27347 if (arg2 == NULL) SWIG_fail;
27348 temp2 = true;
27349 }
27350 if (obj2) {
27351 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
27352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27353 }
27354 {
27355 PyThreadState* __tstate = wxPyBeginAllowThreads();
27356 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
27357
27358 wxPyEndAllowThreads(__tstate);
27359 if (PyErr_Occurred()) SWIG_fail;
27360 }
27361 Py_INCREF(Py_None); resultobj = Py_None;
27362 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27363 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27364 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
27365 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
27366 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
27367 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
27368 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
27369 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
27370 {
27371 if (temp2)
27372 delete arg2;
27373 }
27374 return resultobj;
27375 fail:
27376 {
27377 if (temp2)
27378 delete arg2;
27379 }
27380 return NULL;
27381 }
27382
27383
27384 static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) {
27385 PyObject *resultobj;
27386 wxWindow *arg1 = (wxWindow *) 0 ;
27387 int *arg2 = (int *) 0 ;
27388 int *arg3 = (int *) 0 ;
27389 int temp2 ;
27390 int res2 = 0 ;
27391 int temp3 ;
27392 int res3 = 0 ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 PyObject * obj2 = 0 ;
27396 char *kwnames[] = {
27397 (char *) "self",(char *) "x",(char *) "y", NULL
27398 };
27399
27400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
27401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27403 {
27404 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
27405 temp2 = SWIG_As_int(obj1);
27406 if (PyErr_Occurred()) SWIG_fail;
27407 arg2 = &temp2;
27408 res2 = SWIG_NEWOBJ;
27409 }
27410 }
27411 {
27412 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
27413 temp3 = SWIG_As_int(obj2);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 arg3 = &temp3;
27416 res3 = SWIG_NEWOBJ;
27417 }
27418 }
27419 {
27420 PyThreadState* __tstate = wxPyBeginAllowThreads();
27421 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
27422
27423 wxPyEndAllowThreads(__tstate);
27424 if (PyErr_Occurred()) SWIG_fail;
27425 }
27426 Py_INCREF(Py_None); resultobj = Py_None;
27427 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
27428 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
27429 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27430 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27431 return resultobj;
27432 fail:
27433 return NULL;
27434 }
27435
27436
27437 static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) {
27438 PyObject *resultobj;
27439 wxWindow *arg1 = (wxWindow *) 0 ;
27440 int *arg2 = (int *) 0 ;
27441 int *arg3 = (int *) 0 ;
27442 int temp2 ;
27443 int res2 = 0 ;
27444 int temp3 ;
27445 int res3 = 0 ;
27446 PyObject * obj0 = 0 ;
27447 PyObject * obj1 = 0 ;
27448 PyObject * obj2 = 0 ;
27449 char *kwnames[] = {
27450 (char *) "self",(char *) "x",(char *) "y", NULL
27451 };
27452
27453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
27454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27456 {
27457 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
27458 temp2 = SWIG_As_int(obj1);
27459 if (PyErr_Occurred()) SWIG_fail;
27460 arg2 = &temp2;
27461 res2 = SWIG_NEWOBJ;
27462 }
27463 }
27464 {
27465 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
27466 temp3 = SWIG_As_int(obj2);
27467 if (PyErr_Occurred()) SWIG_fail;
27468 arg3 = &temp3;
27469 res3 = SWIG_NEWOBJ;
27470 }
27471 }
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
27474 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
27475
27476 wxPyEndAllowThreads(__tstate);
27477 if (PyErr_Occurred()) SWIG_fail;
27478 }
27479 Py_INCREF(Py_None); resultobj = Py_None;
27480 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
27481 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
27482 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27483 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27484 return resultobj;
27485 fail:
27486 return NULL;
27487 }
27488
27489
27490 static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) {
27491 PyObject *resultobj;
27492 wxWindow *arg1 = (wxWindow *) 0 ;
27493 wxPoint *arg2 = 0 ;
27494 wxPoint result;
27495 wxPoint temp2 ;
27496 PyObject * obj0 = 0 ;
27497 PyObject * obj1 = 0 ;
27498 char *kwnames[] = {
27499 (char *) "self",(char *) "pt", NULL
27500 };
27501
27502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
27503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27505 {
27506 arg2 = &temp2;
27507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27508 }
27509 {
27510 PyThreadState* __tstate = wxPyBeginAllowThreads();
27511 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
27512
27513 wxPyEndAllowThreads(__tstate);
27514 if (PyErr_Occurred()) SWIG_fail;
27515 }
27516 {
27517 wxPoint * resultptr;
27518 resultptr = new wxPoint((wxPoint &) result);
27519 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
27520 }
27521 return resultobj;
27522 fail:
27523 return NULL;
27524 }
27525
27526
27527 static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) {
27528 PyObject *resultobj;
27529 wxWindow *arg1 = (wxWindow *) 0 ;
27530 wxPoint *arg2 = 0 ;
27531 wxPoint result;
27532 wxPoint temp2 ;
27533 PyObject * obj0 = 0 ;
27534 PyObject * obj1 = 0 ;
27535 char *kwnames[] = {
27536 (char *) "self",(char *) "pt", NULL
27537 };
27538
27539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
27540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27542 {
27543 arg2 = &temp2;
27544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27545 }
27546 {
27547 PyThreadState* __tstate = wxPyBeginAllowThreads();
27548 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
27549
27550 wxPyEndAllowThreads(__tstate);
27551 if (PyErr_Occurred()) SWIG_fail;
27552 }
27553 {
27554 wxPoint * resultptr;
27555 resultptr = new wxPoint((wxPoint &) result);
27556 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
27557 }
27558 return resultobj;
27559 fail:
27560 return NULL;
27561 }
27562
27563
27564 static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
27565 PyObject *resultobj;
27566 wxWindow *arg1 = (wxWindow *) 0 ;
27567 int arg2 ;
27568 int arg3 ;
27569 int result;
27570 PyObject * obj0 = 0 ;
27571 PyObject * obj1 = 0 ;
27572 PyObject * obj2 = 0 ;
27573 char *kwnames[] = {
27574 (char *) "self",(char *) "x",(char *) "y", NULL
27575 };
27576
27577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
27578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27580 arg2 = (int)SWIG_As_int(obj1);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 arg3 = (int)SWIG_As_int(obj2);
27583 if (PyErr_Occurred()) SWIG_fail;
27584 {
27585 PyThreadState* __tstate = wxPyBeginAllowThreads();
27586 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
27587
27588 wxPyEndAllowThreads(__tstate);
27589 if (PyErr_Occurred()) SWIG_fail;
27590 }
27591 resultobj = SWIG_From_int((int)result);
27592 return resultobj;
27593 fail:
27594 return NULL;
27595 }
27596
27597
27598 static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
27599 PyObject *resultobj;
27600 wxWindow *arg1 = (wxWindow *) 0 ;
27601 wxPoint *arg2 = 0 ;
27602 int result;
27603 wxPoint temp2 ;
27604 PyObject * obj0 = 0 ;
27605 PyObject * obj1 = 0 ;
27606 char *kwnames[] = {
27607 (char *) "self",(char *) "pt", NULL
27608 };
27609
27610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
27611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27613 {
27614 arg2 = &temp2;
27615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27616 }
27617 {
27618 PyThreadState* __tstate = wxPyBeginAllowThreads();
27619 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
27620
27621 wxPyEndAllowThreads(__tstate);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 resultobj = SWIG_From_int((int)result);
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) {
27632 PyObject *resultobj;
27633 wxWindow *arg1 = (wxWindow *) 0 ;
27634 long arg2 ;
27635 int result;
27636 PyObject * obj0 = 0 ;
27637 PyObject * obj1 = 0 ;
27638
27639 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
27640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27642 arg2 = (long)SWIG_As_long(obj1);
27643 if (PyErr_Occurred()) SWIG_fail;
27644 {
27645 PyThreadState* __tstate = wxPyBeginAllowThreads();
27646 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
27647
27648 wxPyEndAllowThreads(__tstate);
27649 if (PyErr_Occurred()) SWIG_fail;
27650 }
27651 resultobj = SWIG_From_int((int)result);
27652 return resultobj;
27653 fail:
27654 return NULL;
27655 }
27656
27657
27658 static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) {
27659 PyObject *resultobj;
27660 wxWindow *arg1 = (wxWindow *) 0 ;
27661 int result;
27662 PyObject * obj0 = 0 ;
27663
27664 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
27665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27667 {
27668 PyThreadState* __tstate = wxPyBeginAllowThreads();
27669 result = (int)((wxWindow const *)arg1)->GetBorder();
27670
27671 wxPyEndAllowThreads(__tstate);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 resultobj = SWIG_From_int((int)result);
27675 return resultobj;
27676 fail:
27677 return NULL;
27678 }
27679
27680
27681 static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
27682 int argc;
27683 PyObject *argv[3];
27684 int ii;
27685
27686 argc = PyObject_Length(args);
27687 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27688 argv[ii] = PyTuple_GetItem(args,ii);
27689 }
27690 if (argc == 1) {
27691 int _v;
27692 {
27693 void *ptr;
27694 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27695 _v = 0;
27696 PyErr_Clear();
27697 } else {
27698 _v = 1;
27699 }
27700 }
27701 if (_v) {
27702 return _wrap_Window_GetBorder__SWIG_1(self,args);
27703 }
27704 }
27705 if (argc == 2) {
27706 int _v;
27707 {
27708 void *ptr;
27709 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27710 _v = 0;
27711 PyErr_Clear();
27712 } else {
27713 _v = 1;
27714 }
27715 }
27716 if (_v) {
27717 _v = SWIG_Check_long(argv[1]);
27718 if (_v) {
27719 return _wrap_Window_GetBorder__SWIG_0(self,args);
27720 }
27721 }
27722 }
27723
27724 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
27725 return NULL;
27726 }
27727
27728
27729 static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) {
27730 PyObject *resultobj;
27731 wxWindow *arg1 = (wxWindow *) 0 ;
27732 long arg2 = (long) wxUPDATE_UI_NONE ;
27733 PyObject * obj0 = 0 ;
27734 PyObject * obj1 = 0 ;
27735 char *kwnames[] = {
27736 (char *) "self",(char *) "flags", NULL
27737 };
27738
27739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
27740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27742 if (obj1) {
27743 arg2 = (long)SWIG_As_long(obj1);
27744 if (PyErr_Occurred()) SWIG_fail;
27745 }
27746 {
27747 PyThreadState* __tstate = wxPyBeginAllowThreads();
27748 (arg1)->UpdateWindowUI(arg2);
27749
27750 wxPyEndAllowThreads(__tstate);
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 Py_INCREF(Py_None); resultobj = Py_None;
27754 return resultobj;
27755 fail:
27756 return NULL;
27757 }
27758
27759
27760 static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) {
27761 PyObject *resultobj;
27762 wxWindow *arg1 = (wxWindow *) 0 ;
27763 wxMenu *arg2 = (wxMenu *) 0 ;
27764 int arg3 = (int) -1 ;
27765 int arg4 = (int) -1 ;
27766 bool result;
27767 PyObject * obj0 = 0 ;
27768 PyObject * obj1 = 0 ;
27769 PyObject * obj2 = 0 ;
27770 PyObject * obj3 = 0 ;
27771 char *kwnames[] = {
27772 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
27773 };
27774
27775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27780 if (obj2) {
27781 arg3 = (int)SWIG_As_int(obj2);
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 if (obj3) {
27785 arg4 = (int)SWIG_As_int(obj3);
27786 if (PyErr_Occurred()) SWIG_fail;
27787 }
27788 {
27789 PyThreadState* __tstate = wxPyBeginAllowThreads();
27790 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
27791
27792 wxPyEndAllowThreads(__tstate);
27793 if (PyErr_Occurred()) SWIG_fail;
27794 }
27795 {
27796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27797 }
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) {
27805 PyObject *resultobj;
27806 wxWindow *arg1 = (wxWindow *) 0 ;
27807 wxMenu *arg2 = (wxMenu *) 0 ;
27808 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27809 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27810 bool result;
27811 wxPoint temp3 ;
27812 PyObject * obj0 = 0 ;
27813 PyObject * obj1 = 0 ;
27814 PyObject * obj2 = 0 ;
27815 char *kwnames[] = {
27816 (char *) "self",(char *) "menu",(char *) "pos", NULL
27817 };
27818
27819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
27820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27822 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27824 if (obj2) {
27825 {
27826 arg3 = &temp3;
27827 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27828 }
27829 }
27830 {
27831 PyThreadState* __tstate = wxPyBeginAllowThreads();
27832 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27833
27834 wxPyEndAllowThreads(__tstate);
27835 if (PyErr_Occurred()) SWIG_fail;
27836 }
27837 {
27838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27839 }
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
27847 PyObject *resultobj;
27848 wxWindow *arg1 = (wxWindow *) 0 ;
27849 long result;
27850 PyObject * obj0 = 0 ;
27851 char *kwnames[] = {
27852 (char *) "self", NULL
27853 };
27854
27855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27858 {
27859 PyThreadState* __tstate = wxPyBeginAllowThreads();
27860 result = (long)wxWindow_GetHandle(arg1);
27861
27862 wxPyEndAllowThreads(__tstate);
27863 if (PyErr_Occurred()) SWIG_fail;
27864 }
27865 resultobj = SWIG_From_long((long)result);
27866 return resultobj;
27867 fail:
27868 return NULL;
27869 }
27870
27871
27872 static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
27873 PyObject *resultobj;
27874 wxWindow *arg1 = (wxWindow *) 0 ;
27875 long arg2 ;
27876 PyObject * obj0 = 0 ;
27877 PyObject * obj1 = 0 ;
27878 char *kwnames[] = {
27879 (char *) "self",(char *) "handle", NULL
27880 };
27881
27882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail;
27883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27885 arg2 = (long)SWIG_As_long(obj1);
27886 if (PyErr_Occurred()) SWIG_fail;
27887 {
27888 PyThreadState* __tstate = wxPyBeginAllowThreads();
27889 wxWindow_AssociateHandle(arg1,arg2);
27890
27891 wxPyEndAllowThreads(__tstate);
27892 if (PyErr_Occurred()) SWIG_fail;
27893 }
27894 Py_INCREF(Py_None); resultobj = Py_None;
27895 return resultobj;
27896 fail:
27897 return NULL;
27898 }
27899
27900
27901 static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
27902 PyObject *resultobj;
27903 wxWindow *arg1 = (wxWindow *) 0 ;
27904 PyObject * obj0 = 0 ;
27905 char *kwnames[] = {
27906 (char *) "self", NULL
27907 };
27908
27909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail;
27910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27912 {
27913 PyThreadState* __tstate = wxPyBeginAllowThreads();
27914 (arg1)->DissociateHandle();
27915
27916 wxPyEndAllowThreads(__tstate);
27917 if (PyErr_Occurred()) SWIG_fail;
27918 }
27919 Py_INCREF(Py_None); resultobj = Py_None;
27920 return resultobj;
27921 fail:
27922 return NULL;
27923 }
27924
27925
27926 static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
27927 PyObject *resultobj;
27928 wxWindow *arg1 = (wxWindow *) 0 ;
27929 int arg2 ;
27930 bool result;
27931 PyObject * obj0 = 0 ;
27932 PyObject * obj1 = 0 ;
27933 char *kwnames[] = {
27934 (char *) "self",(char *) "orient", NULL
27935 };
27936
27937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27940 arg2 = (int)SWIG_As_int(obj1);
27941 if (PyErr_Occurred()) SWIG_fail;
27942 {
27943 PyThreadState* __tstate = wxPyBeginAllowThreads();
27944 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27945
27946 wxPyEndAllowThreads(__tstate);
27947 if (PyErr_Occurred()) SWIG_fail;
27948 }
27949 {
27950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27951 }
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
27959 PyObject *resultobj;
27960 wxWindow *arg1 = (wxWindow *) 0 ;
27961 int arg2 ;
27962 int arg3 ;
27963 int arg4 ;
27964 int arg5 ;
27965 bool arg6 = (bool) true ;
27966 PyObject * obj0 = 0 ;
27967 PyObject * obj1 = 0 ;
27968 PyObject * obj2 = 0 ;
27969 PyObject * obj3 = 0 ;
27970 PyObject * obj4 = 0 ;
27971 PyObject * obj5 = 0 ;
27972 char *kwnames[] = {
27973 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
27974 };
27975
27976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27979 arg2 = (int)SWIG_As_int(obj1);
27980 if (PyErr_Occurred()) SWIG_fail;
27981 arg3 = (int)SWIG_As_int(obj2);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 arg4 = (int)SWIG_As_int(obj3);
27984 if (PyErr_Occurred()) SWIG_fail;
27985 arg5 = (int)SWIG_As_int(obj4);
27986 if (PyErr_Occurred()) SWIG_fail;
27987 if (obj5) {
27988 arg6 = (bool)SWIG_As_bool(obj5);
27989 if (PyErr_Occurred()) SWIG_fail;
27990 }
27991 {
27992 PyThreadState* __tstate = wxPyBeginAllowThreads();
27993 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27994
27995 wxPyEndAllowThreads(__tstate);
27996 if (PyErr_Occurred()) SWIG_fail;
27997 }
27998 Py_INCREF(Py_None); resultobj = Py_None;
27999 return resultobj;
28000 fail:
28001 return NULL;
28002 }
28003
28004
28005 static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
28006 PyObject *resultobj;
28007 wxWindow *arg1 = (wxWindow *) 0 ;
28008 int arg2 ;
28009 int arg3 ;
28010 bool arg4 = (bool) true ;
28011 PyObject * obj0 = 0 ;
28012 PyObject * obj1 = 0 ;
28013 PyObject * obj2 = 0 ;
28014 PyObject * obj3 = 0 ;
28015 char *kwnames[] = {
28016 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
28017 };
28018
28019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28022 arg2 = (int)SWIG_As_int(obj1);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 arg3 = (int)SWIG_As_int(obj2);
28025 if (PyErr_Occurred()) SWIG_fail;
28026 if (obj3) {
28027 arg4 = (bool)SWIG_As_bool(obj3);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 {
28031 PyThreadState* __tstate = wxPyBeginAllowThreads();
28032 (arg1)->SetScrollPos(arg2,arg3,arg4);
28033
28034 wxPyEndAllowThreads(__tstate);
28035 if (PyErr_Occurred()) SWIG_fail;
28036 }
28037 Py_INCREF(Py_None); resultobj = Py_None;
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
28045 PyObject *resultobj;
28046 wxWindow *arg1 = (wxWindow *) 0 ;
28047 int arg2 ;
28048 int result;
28049 PyObject * obj0 = 0 ;
28050 PyObject * obj1 = 0 ;
28051 char *kwnames[] = {
28052 (char *) "self",(char *) "orientation", NULL
28053 };
28054
28055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
28056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28058 arg2 = (int)SWIG_As_int(obj1);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 {
28061 PyThreadState* __tstate = wxPyBeginAllowThreads();
28062 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
28063
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 resultobj = SWIG_From_int((int)result);
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) {
28075 PyObject *resultobj;
28076 wxWindow *arg1 = (wxWindow *) 0 ;
28077 int arg2 ;
28078 int result;
28079 PyObject * obj0 = 0 ;
28080 PyObject * obj1 = 0 ;
28081 char *kwnames[] = {
28082 (char *) "self",(char *) "orientation", NULL
28083 };
28084
28085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
28086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28088 arg2 = (int)SWIG_As_int(obj1);
28089 if (PyErr_Occurred()) SWIG_fail;
28090 {
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
28092 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
28093
28094 wxPyEndAllowThreads(__tstate);
28095 if (PyErr_Occurred()) SWIG_fail;
28096 }
28097 resultobj = SWIG_From_int((int)result);
28098 return resultobj;
28099 fail:
28100 return NULL;
28101 }
28102
28103
28104 static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) {
28105 PyObject *resultobj;
28106 wxWindow *arg1 = (wxWindow *) 0 ;
28107 int arg2 ;
28108 int result;
28109 PyObject * obj0 = 0 ;
28110 PyObject * obj1 = 0 ;
28111 char *kwnames[] = {
28112 (char *) "self",(char *) "orientation", NULL
28113 };
28114
28115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
28116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28118 arg2 = (int)SWIG_As_int(obj1);
28119 if (PyErr_Occurred()) SWIG_fail;
28120 {
28121 PyThreadState* __tstate = wxPyBeginAllowThreads();
28122 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
28123
28124 wxPyEndAllowThreads(__tstate);
28125 if (PyErr_Occurred()) SWIG_fail;
28126 }
28127 resultobj = SWIG_From_int((int)result);
28128 return resultobj;
28129 fail:
28130 return NULL;
28131 }
28132
28133
28134 static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28135 PyObject *resultobj;
28136 wxWindow *arg1 = (wxWindow *) 0 ;
28137 int arg2 ;
28138 int arg3 ;
28139 wxRect *arg4 = (wxRect *) NULL ;
28140 PyObject * obj0 = 0 ;
28141 PyObject * obj1 = 0 ;
28142 PyObject * obj2 = 0 ;
28143 PyObject * obj3 = 0 ;
28144 char *kwnames[] = {
28145 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
28146 };
28147
28148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28151 arg2 = (int)SWIG_As_int(obj1);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 arg3 = (int)SWIG_As_int(obj2);
28154 if (PyErr_Occurred()) SWIG_fail;
28155 if (obj3) {
28156 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
28157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28158 }
28159 {
28160 PyThreadState* __tstate = wxPyBeginAllowThreads();
28161 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
28162
28163 wxPyEndAllowThreads(__tstate);
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 Py_INCREF(Py_None); resultobj = Py_None;
28167 return resultobj;
28168 fail:
28169 return NULL;
28170 }
28171
28172
28173 static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) {
28174 PyObject *resultobj;
28175 wxWindow *arg1 = (wxWindow *) 0 ;
28176 int arg2 ;
28177 bool result;
28178 PyObject * obj0 = 0 ;
28179 PyObject * obj1 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self",(char *) "lines", NULL
28182 };
28183
28184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
28185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28187 arg2 = (int)SWIG_As_int(obj1);
28188 if (PyErr_Occurred()) SWIG_fail;
28189 {
28190 PyThreadState* __tstate = wxPyBeginAllowThreads();
28191 result = (bool)(arg1)->ScrollLines(arg2);
28192
28193 wxPyEndAllowThreads(__tstate);
28194 if (PyErr_Occurred()) SWIG_fail;
28195 }
28196 {
28197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28198 }
28199 return resultobj;
28200 fail:
28201 return NULL;
28202 }
28203
28204
28205 static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) {
28206 PyObject *resultobj;
28207 wxWindow *arg1 = (wxWindow *) 0 ;
28208 int arg2 ;
28209 bool result;
28210 PyObject * obj0 = 0 ;
28211 PyObject * obj1 = 0 ;
28212 char *kwnames[] = {
28213 (char *) "self",(char *) "pages", NULL
28214 };
28215
28216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
28217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28219 arg2 = (int)SWIG_As_int(obj1);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 {
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 result = (bool)(arg1)->ScrollPages(arg2);
28224
28225 wxPyEndAllowThreads(__tstate);
28226 if (PyErr_Occurred()) SWIG_fail;
28227 }
28228 {
28229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28230 }
28231 return resultobj;
28232 fail:
28233 return NULL;
28234 }
28235
28236
28237 static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) {
28238 PyObject *resultobj;
28239 wxWindow *arg1 = (wxWindow *) 0 ;
28240 bool result;
28241 PyObject * obj0 = 0 ;
28242 char *kwnames[] = {
28243 (char *) "self", NULL
28244 };
28245
28246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
28247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28249 {
28250 PyThreadState* __tstate = wxPyBeginAllowThreads();
28251 result = (bool)(arg1)->LineUp();
28252
28253 wxPyEndAllowThreads(__tstate);
28254 if (PyErr_Occurred()) SWIG_fail;
28255 }
28256 {
28257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28258 }
28259 return resultobj;
28260 fail:
28261 return NULL;
28262 }
28263
28264
28265 static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) {
28266 PyObject *resultobj;
28267 wxWindow *arg1 = (wxWindow *) 0 ;
28268 bool result;
28269 PyObject * obj0 = 0 ;
28270 char *kwnames[] = {
28271 (char *) "self", NULL
28272 };
28273
28274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
28275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28277 {
28278 PyThreadState* __tstate = wxPyBeginAllowThreads();
28279 result = (bool)(arg1)->LineDown();
28280
28281 wxPyEndAllowThreads(__tstate);
28282 if (PyErr_Occurred()) SWIG_fail;
28283 }
28284 {
28285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28286 }
28287 return resultobj;
28288 fail:
28289 return NULL;
28290 }
28291
28292
28293 static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) {
28294 PyObject *resultobj;
28295 wxWindow *arg1 = (wxWindow *) 0 ;
28296 bool result;
28297 PyObject * obj0 = 0 ;
28298 char *kwnames[] = {
28299 (char *) "self", NULL
28300 };
28301
28302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
28303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28305 {
28306 PyThreadState* __tstate = wxPyBeginAllowThreads();
28307 result = (bool)(arg1)->PageUp();
28308
28309 wxPyEndAllowThreads(__tstate);
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 {
28313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28314 }
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) {
28322 PyObject *resultobj;
28323 wxWindow *arg1 = (wxWindow *) 0 ;
28324 bool result;
28325 PyObject * obj0 = 0 ;
28326 char *kwnames[] = {
28327 (char *) "self", NULL
28328 };
28329
28330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
28331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28333 {
28334 PyThreadState* __tstate = wxPyBeginAllowThreads();
28335 result = (bool)(arg1)->PageDown();
28336
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 {
28341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28342 }
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj;
28351 wxWindow *arg1 = (wxWindow *) 0 ;
28352 wxString *arg2 = 0 ;
28353 bool temp2 = false ;
28354 PyObject * obj0 = 0 ;
28355 PyObject * obj1 = 0 ;
28356 char *kwnames[] = {
28357 (char *) "self",(char *) "text", NULL
28358 };
28359
28360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
28361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28363 {
28364 arg2 = wxString_in_helper(obj1);
28365 if (arg2 == NULL) SWIG_fail;
28366 temp2 = true;
28367 }
28368 {
28369 PyThreadState* __tstate = wxPyBeginAllowThreads();
28370 (arg1)->SetHelpText((wxString const &)*arg2);
28371
28372 wxPyEndAllowThreads(__tstate);
28373 if (PyErr_Occurred()) SWIG_fail;
28374 }
28375 Py_INCREF(Py_None); resultobj = Py_None;
28376 {
28377 if (temp2)
28378 delete arg2;
28379 }
28380 return resultobj;
28381 fail:
28382 {
28383 if (temp2)
28384 delete arg2;
28385 }
28386 return NULL;
28387 }
28388
28389
28390 static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) {
28391 PyObject *resultobj;
28392 wxWindow *arg1 = (wxWindow *) 0 ;
28393 wxString *arg2 = 0 ;
28394 bool temp2 = false ;
28395 PyObject * obj0 = 0 ;
28396 PyObject * obj1 = 0 ;
28397 char *kwnames[] = {
28398 (char *) "self",(char *) "text", NULL
28399 };
28400
28401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
28402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28404 {
28405 arg2 = wxString_in_helper(obj1);
28406 if (arg2 == NULL) SWIG_fail;
28407 temp2 = true;
28408 }
28409 {
28410 PyThreadState* __tstate = wxPyBeginAllowThreads();
28411 (arg1)->SetHelpTextForId((wxString const &)*arg2);
28412
28413 wxPyEndAllowThreads(__tstate);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 Py_INCREF(Py_None); resultobj = Py_None;
28417 {
28418 if (temp2)
28419 delete arg2;
28420 }
28421 return resultobj;
28422 fail:
28423 {
28424 if (temp2)
28425 delete arg2;
28426 }
28427 return NULL;
28428 }
28429
28430
28431 static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
28432 PyObject *resultobj;
28433 wxWindow *arg1 = (wxWindow *) 0 ;
28434 wxString result;
28435 PyObject * obj0 = 0 ;
28436 char *kwnames[] = {
28437 (char *) "self", NULL
28438 };
28439
28440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
28441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28443 {
28444 PyThreadState* __tstate = wxPyBeginAllowThreads();
28445 result = ((wxWindow const *)arg1)->GetHelpText();
28446
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 {
28451 #if wxUSE_UNICODE
28452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28453 #else
28454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28455 #endif
28456 }
28457 return resultobj;
28458 fail:
28459 return NULL;
28460 }
28461
28462
28463 static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) {
28464 PyObject *resultobj;
28465 wxWindow *arg1 = (wxWindow *) 0 ;
28466 wxString *arg2 = 0 ;
28467 bool temp2 = false ;
28468 PyObject * obj0 = 0 ;
28469 PyObject * obj1 = 0 ;
28470 char *kwnames[] = {
28471 (char *) "self",(char *) "tip", NULL
28472 };
28473
28474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
28475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28477 {
28478 arg2 = wxString_in_helper(obj1);
28479 if (arg2 == NULL) SWIG_fail;
28480 temp2 = true;
28481 }
28482 {
28483 PyThreadState* __tstate = wxPyBeginAllowThreads();
28484 (arg1)->SetToolTip((wxString const &)*arg2);
28485
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 Py_INCREF(Py_None); resultobj = Py_None;
28490 {
28491 if (temp2)
28492 delete arg2;
28493 }
28494 return resultobj;
28495 fail:
28496 {
28497 if (temp2)
28498 delete arg2;
28499 }
28500 return NULL;
28501 }
28502
28503
28504 static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
28505 PyObject *resultobj;
28506 wxWindow *arg1 = (wxWindow *) 0 ;
28507 wxToolTip *arg2 = (wxToolTip *) 0 ;
28508 PyObject * obj0 = 0 ;
28509 PyObject * obj1 = 0 ;
28510 char *kwnames[] = {
28511 (char *) "self",(char *) "tip", NULL
28512 };
28513
28514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
28515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
28518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 (arg1)->SetToolTip(arg2);
28522
28523 wxPyEndAllowThreads(__tstate);
28524 if (PyErr_Occurred()) SWIG_fail;
28525 }
28526 Py_INCREF(Py_None); resultobj = Py_None;
28527 return resultobj;
28528 fail:
28529 return NULL;
28530 }
28531
28532
28533 static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
28534 PyObject *resultobj;
28535 wxWindow *arg1 = (wxWindow *) 0 ;
28536 wxToolTip *result;
28537 PyObject * obj0 = 0 ;
28538 char *kwnames[] = {
28539 (char *) "self", NULL
28540 };
28541
28542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
28543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28545 {
28546 PyThreadState* __tstate = wxPyBeginAllowThreads();
28547 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
28548
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 {
28553 resultobj = wxPyMake_wxObject(result, 0);
28554 }
28555 return resultobj;
28556 fail:
28557 return NULL;
28558 }
28559
28560
28561 static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
28562 PyObject *resultobj;
28563 wxWindow *arg1 = (wxWindow *) 0 ;
28564 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
28565 PyObject * obj0 = 0 ;
28566 PyObject * obj1 = 0 ;
28567 char *kwnames[] = {
28568 (char *) "self",(char *) "dropTarget", NULL
28569 };
28570
28571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
28572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
28575 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
28576 {
28577 PyThreadState* __tstate = wxPyBeginAllowThreads();
28578 (arg1)->SetDropTarget(arg2);
28579
28580 wxPyEndAllowThreads(__tstate);
28581 if (PyErr_Occurred()) SWIG_fail;
28582 }
28583 Py_INCREF(Py_None); resultobj = Py_None;
28584 return resultobj;
28585 fail:
28586 return NULL;
28587 }
28588
28589
28590 static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
28591 PyObject *resultobj;
28592 wxWindow *arg1 = (wxWindow *) 0 ;
28593 wxPyDropTarget *result;
28594 PyObject * obj0 = 0 ;
28595 char *kwnames[] = {
28596 (char *) "self", NULL
28597 };
28598
28599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
28600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28602 {
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
28605
28606 wxPyEndAllowThreads(__tstate);
28607 if (PyErr_Occurred()) SWIG_fail;
28608 }
28609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
28610 return resultobj;
28611 fail:
28612 return NULL;
28613 }
28614
28615
28616 static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
28617 PyObject *resultobj;
28618 wxWindow *arg1 = (wxWindow *) 0 ;
28619 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
28620 PyObject * obj0 = 0 ;
28621 PyObject * obj1 = 0 ;
28622 char *kwnames[] = {
28623 (char *) "self",(char *) "constraints", NULL
28624 };
28625
28626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
28627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
28630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28631 {
28632 PyThreadState* __tstate = wxPyBeginAllowThreads();
28633 (arg1)->SetConstraints(arg2);
28634
28635 wxPyEndAllowThreads(__tstate);
28636 if (PyErr_Occurred()) SWIG_fail;
28637 }
28638 Py_INCREF(Py_None); resultobj = Py_None;
28639 return resultobj;
28640 fail:
28641 return NULL;
28642 }
28643
28644
28645 static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
28646 PyObject *resultobj;
28647 wxWindow *arg1 = (wxWindow *) 0 ;
28648 wxLayoutConstraints *result;
28649 PyObject * obj0 = 0 ;
28650 char *kwnames[] = {
28651 (char *) "self", NULL
28652 };
28653
28654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
28655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28657 {
28658 PyThreadState* __tstate = wxPyBeginAllowThreads();
28659 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
28660
28661 wxPyEndAllowThreads(__tstate);
28662 if (PyErr_Occurred()) SWIG_fail;
28663 }
28664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
28665 return resultobj;
28666 fail:
28667 return NULL;
28668 }
28669
28670
28671 static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
28672 PyObject *resultobj;
28673 wxWindow *arg1 = (wxWindow *) 0 ;
28674 bool arg2 ;
28675 PyObject * obj0 = 0 ;
28676 PyObject * obj1 = 0 ;
28677 char *kwnames[] = {
28678 (char *) "self",(char *) "autoLayout", NULL
28679 };
28680
28681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
28682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28684 arg2 = (bool)SWIG_As_bool(obj1);
28685 if (PyErr_Occurred()) SWIG_fail;
28686 {
28687 PyThreadState* __tstate = wxPyBeginAllowThreads();
28688 (arg1)->SetAutoLayout(arg2);
28689
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 Py_INCREF(Py_None); resultobj = Py_None;
28694 return resultobj;
28695 fail:
28696 return NULL;
28697 }
28698
28699
28700 static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
28701 PyObject *resultobj;
28702 wxWindow *arg1 = (wxWindow *) 0 ;
28703 bool result;
28704 PyObject * obj0 = 0 ;
28705 char *kwnames[] = {
28706 (char *) "self", NULL
28707 };
28708
28709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
28710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28712 {
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
28715
28716 wxPyEndAllowThreads(__tstate);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 {
28720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28721 }
28722 return resultobj;
28723 fail:
28724 return NULL;
28725 }
28726
28727
28728 static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
28729 PyObject *resultobj;
28730 wxWindow *arg1 = (wxWindow *) 0 ;
28731 bool result;
28732 PyObject * obj0 = 0 ;
28733 char *kwnames[] = {
28734 (char *) "self", NULL
28735 };
28736
28737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
28738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28740 {
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 result = (bool)(arg1)->Layout();
28743
28744 wxPyEndAllowThreads(__tstate);
28745 if (PyErr_Occurred()) SWIG_fail;
28746 }
28747 {
28748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28749 }
28750 return resultobj;
28751 fail:
28752 return NULL;
28753 }
28754
28755
28756 static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
28757 PyObject *resultobj;
28758 wxWindow *arg1 = (wxWindow *) 0 ;
28759 wxSizer *arg2 = (wxSizer *) 0 ;
28760 bool arg3 = (bool) true ;
28761 PyObject * obj0 = 0 ;
28762 PyObject * obj1 = 0 ;
28763 PyObject * obj2 = 0 ;
28764 char *kwnames[] = {
28765 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28766 };
28767
28768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
28769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28773 if (obj2) {
28774 arg3 = (bool)SWIG_As_bool(obj2);
28775 if (PyErr_Occurred()) SWIG_fail;
28776 }
28777 {
28778 PyThreadState* __tstate = wxPyBeginAllowThreads();
28779 (arg1)->SetSizer(arg2,arg3);
28780
28781 wxPyEndAllowThreads(__tstate);
28782 if (PyErr_Occurred()) SWIG_fail;
28783 }
28784 Py_INCREF(Py_None); resultobj = Py_None;
28785 return resultobj;
28786 fail:
28787 return NULL;
28788 }
28789
28790
28791 static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) {
28792 PyObject *resultobj;
28793 wxWindow *arg1 = (wxWindow *) 0 ;
28794 wxSizer *arg2 = (wxSizer *) 0 ;
28795 bool arg3 = (bool) true ;
28796 PyObject * obj0 = 0 ;
28797 PyObject * obj1 = 0 ;
28798 PyObject * obj2 = 0 ;
28799 char *kwnames[] = {
28800 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28801 };
28802
28803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28808 if (obj2) {
28809 arg3 = (bool)SWIG_As_bool(obj2);
28810 if (PyErr_Occurred()) SWIG_fail;
28811 }
28812 {
28813 PyThreadState* __tstate = wxPyBeginAllowThreads();
28814 (arg1)->SetSizerAndFit(arg2,arg3);
28815
28816 wxPyEndAllowThreads(__tstate);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 Py_INCREF(Py_None); resultobj = Py_None;
28820 return resultobj;
28821 fail:
28822 return NULL;
28823 }
28824
28825
28826 static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
28827 PyObject *resultobj;
28828 wxWindow *arg1 = (wxWindow *) 0 ;
28829 wxSizer *result;
28830 PyObject * obj0 = 0 ;
28831 char *kwnames[] = {
28832 (char *) "self", NULL
28833 };
28834
28835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28838 {
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28841
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 {
28846 resultobj = wxPyMake_wxSizer(result, 0);
28847 }
28848 return resultobj;
28849 fail:
28850 return NULL;
28851 }
28852
28853
28854 static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
28855 PyObject *resultobj;
28856 wxWindow *arg1 = (wxWindow *) 0 ;
28857 wxSizer *arg2 = (wxSizer *) 0 ;
28858 PyObject * obj0 = 0 ;
28859 PyObject * obj1 = 0 ;
28860 char *kwnames[] = {
28861 (char *) "self",(char *) "sizer", NULL
28862 };
28863
28864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 (arg1)->SetContainingSizer(arg2);
28872
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 Py_INCREF(Py_None); resultobj = Py_None;
28877 return resultobj;
28878 fail:
28879 return NULL;
28880 }
28881
28882
28883 static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj;
28885 wxWindow *arg1 = (wxWindow *) 0 ;
28886 wxSizer *result;
28887 PyObject * obj0 = 0 ;
28888 char *kwnames[] = {
28889 (char *) "self", NULL
28890 };
28891
28892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28895 {
28896 PyThreadState* __tstate = wxPyBeginAllowThreads();
28897 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28898
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 {
28903 resultobj = wxPyMake_wxSizer(result, 0);
28904 }
28905 return resultobj;
28906 fail:
28907 return NULL;
28908 }
28909
28910
28911 static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28912 PyObject *resultobj;
28913 wxWindow *arg1 = (wxWindow *) 0 ;
28914 PyObject * obj0 = 0 ;
28915 char *kwnames[] = {
28916 (char *) "self", NULL
28917 };
28918
28919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28922 {
28923 PyThreadState* __tstate = wxPyBeginAllowThreads();
28924 (arg1)->InheritAttributes();
28925
28926 wxPyEndAllowThreads(__tstate);
28927 if (PyErr_Occurred()) SWIG_fail;
28928 }
28929 Py_INCREF(Py_None); resultobj = Py_None;
28930 return resultobj;
28931 fail:
28932 return NULL;
28933 }
28934
28935
28936 static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
28937 PyObject *resultobj;
28938 wxWindow *arg1 = (wxWindow *) 0 ;
28939 bool result;
28940 PyObject * obj0 = 0 ;
28941 char *kwnames[] = {
28942 (char *) "self", NULL
28943 };
28944
28945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28951
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 {
28956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28957 }
28958 return resultobj;
28959 fail:
28960 return NULL;
28961 }
28962
28963
28964 static PyObject * Window_swigregister(PyObject *, PyObject *args) {
28965 PyObject *obj;
28966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28967 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28968 Py_INCREF(obj);
28969 return Py_BuildValue((char *)"");
28970 }
28971 static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
28972 PyObject *resultobj;
28973 long arg1 ;
28974 wxWindow *arg2 = (wxWindow *) NULL ;
28975 wxWindow *result;
28976 PyObject * obj0 = 0 ;
28977 PyObject * obj1 = 0 ;
28978 char *kwnames[] = {
28979 (char *) "id",(char *) "parent", NULL
28980 };
28981
28982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28983 arg1 = (long)SWIG_As_long(obj0);
28984 if (PyErr_Occurred()) SWIG_fail;
28985 if (obj1) {
28986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28988 }
28989 {
28990 if (!wxPyCheckForApp()) SWIG_fail;
28991 PyThreadState* __tstate = wxPyBeginAllowThreads();
28992 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28993
28994 wxPyEndAllowThreads(__tstate);
28995 if (PyErr_Occurred()) SWIG_fail;
28996 }
28997 {
28998 resultobj = wxPyMake_wxObject(result, 0);
28999 }
29000 return resultobj;
29001 fail:
29002 return NULL;
29003 }
29004
29005
29006 static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
29007 PyObject *resultobj;
29008 wxString *arg1 = 0 ;
29009 wxWindow *arg2 = (wxWindow *) NULL ;
29010 wxWindow *result;
29011 bool temp1 = false ;
29012 PyObject * obj0 = 0 ;
29013 PyObject * obj1 = 0 ;
29014 char *kwnames[] = {
29015 (char *) "name",(char *) "parent", NULL
29016 };
29017
29018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
29019 {
29020 arg1 = wxString_in_helper(obj0);
29021 if (arg1 == NULL) SWIG_fail;
29022 temp1 = true;
29023 }
29024 if (obj1) {
29025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29027 }
29028 {
29029 if (!wxPyCheckForApp()) SWIG_fail;
29030 PyThreadState* __tstate = wxPyBeginAllowThreads();
29031 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
29032
29033 wxPyEndAllowThreads(__tstate);
29034 if (PyErr_Occurred()) SWIG_fail;
29035 }
29036 {
29037 resultobj = wxPyMake_wxObject(result, 0);
29038 }
29039 {
29040 if (temp1)
29041 delete arg1;
29042 }
29043 return resultobj;
29044 fail:
29045 {
29046 if (temp1)
29047 delete arg1;
29048 }
29049 return NULL;
29050 }
29051
29052
29053 static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) {
29054 PyObject *resultobj;
29055 wxString *arg1 = 0 ;
29056 wxWindow *arg2 = (wxWindow *) NULL ;
29057 wxWindow *result;
29058 bool temp1 = false ;
29059 PyObject * obj0 = 0 ;
29060 PyObject * obj1 = 0 ;
29061 char *kwnames[] = {
29062 (char *) "label",(char *) "parent", NULL
29063 };
29064
29065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
29066 {
29067 arg1 = wxString_in_helper(obj0);
29068 if (arg1 == NULL) SWIG_fail;
29069 temp1 = true;
29070 }
29071 if (obj1) {
29072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29074 }
29075 {
29076 if (!wxPyCheckForApp()) SWIG_fail;
29077 PyThreadState* __tstate = wxPyBeginAllowThreads();
29078 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
29079
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 {
29084 resultobj = wxPyMake_wxObject(result, 0);
29085 }
29086 {
29087 if (temp1)
29088 delete arg1;
29089 }
29090 return resultobj;
29091 fail:
29092 {
29093 if (temp1)
29094 delete arg1;
29095 }
29096 return NULL;
29097 }
29098
29099
29100 static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) {
29101 PyObject *resultobj;
29102 wxWindow *arg1 = (wxWindow *) 0 ;
29103 unsigned long arg2 ;
29104 wxWindow *result;
29105 PyObject * obj0 = 0 ;
29106 PyObject * obj1 = 0 ;
29107 char *kwnames[] = {
29108 (char *) "parent",(char *) "_hWnd", NULL
29109 };
29110
29111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
29112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29114 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
29115 if (PyErr_Occurred()) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
29119
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = wxPyMake_wxObject(result, 0);
29125 }
29126 return resultobj;
29127 fail:
29128 return NULL;
29129 }
29130
29131
29132 static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj;
29134 wxValidator *result;
29135 char *kwnames[] = {
29136 NULL
29137 };
29138
29139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
29140 {
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 result = (wxValidator *)new wxValidator();
29143
29144 wxPyEndAllowThreads(__tstate);
29145 if (PyErr_Occurred()) SWIG_fail;
29146 }
29147 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1);
29148 return resultobj;
29149 fail:
29150 return NULL;
29151 }
29152
29153
29154 static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
29155 PyObject *resultobj;
29156 wxValidator *arg1 = (wxValidator *) 0 ;
29157 wxValidator *result;
29158 PyObject * obj0 = 0 ;
29159 char *kwnames[] = {
29160 (char *) "self", NULL
29161 };
29162
29163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
29164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29166 {
29167 PyThreadState* __tstate = wxPyBeginAllowThreads();
29168 result = (wxValidator *)(arg1)->Clone();
29169
29170 wxPyEndAllowThreads(__tstate);
29171 if (PyErr_Occurred()) SWIG_fail;
29172 }
29173 {
29174 resultobj = wxPyMake_wxObject(result, 0);
29175 }
29176 return resultobj;
29177 fail:
29178 return NULL;
29179 }
29180
29181
29182 static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29183 PyObject *resultobj;
29184 wxValidator *arg1 = (wxValidator *) 0 ;
29185 wxWindow *arg2 = (wxWindow *) 0 ;
29186 bool result;
29187 PyObject * obj0 = 0 ;
29188 PyObject * obj1 = 0 ;
29189 char *kwnames[] = {
29190 (char *) "self",(char *) "parent", NULL
29191 };
29192
29193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
29194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = (bool)(arg1)->Validate(arg2);
29201
29202 wxPyEndAllowThreads(__tstate);
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 {
29206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29207 }
29208 return resultobj;
29209 fail:
29210 return NULL;
29211 }
29212
29213
29214 static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29215 PyObject *resultobj;
29216 wxValidator *arg1 = (wxValidator *) 0 ;
29217 bool result;
29218 PyObject * obj0 = 0 ;
29219 char *kwnames[] = {
29220 (char *) "self", NULL
29221 };
29222
29223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
29224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29226 {
29227 PyThreadState* __tstate = wxPyBeginAllowThreads();
29228 result = (bool)(arg1)->TransferToWindow();
29229
29230 wxPyEndAllowThreads(__tstate);
29231 if (PyErr_Occurred()) SWIG_fail;
29232 }
29233 {
29234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29235 }
29236 return resultobj;
29237 fail:
29238 return NULL;
29239 }
29240
29241
29242 static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29243 PyObject *resultobj;
29244 wxValidator *arg1 = (wxValidator *) 0 ;
29245 bool result;
29246 PyObject * obj0 = 0 ;
29247 char *kwnames[] = {
29248 (char *) "self", NULL
29249 };
29250
29251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
29252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29254 {
29255 PyThreadState* __tstate = wxPyBeginAllowThreads();
29256 result = (bool)(arg1)->TransferFromWindow();
29257
29258 wxPyEndAllowThreads(__tstate);
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 {
29262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29263 }
29264 return resultobj;
29265 fail:
29266 return NULL;
29267 }
29268
29269
29270 static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29271 PyObject *resultobj;
29272 wxValidator *arg1 = (wxValidator *) 0 ;
29273 wxWindow *result;
29274 PyObject * obj0 = 0 ;
29275 char *kwnames[] = {
29276 (char *) "self", NULL
29277 };
29278
29279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
29280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29282 {
29283 PyThreadState* __tstate = wxPyBeginAllowThreads();
29284 result = (wxWindow *)(arg1)->GetWindow();
29285
29286 wxPyEndAllowThreads(__tstate);
29287 if (PyErr_Occurred()) SWIG_fail;
29288 }
29289 {
29290 resultobj = wxPyMake_wxObject(result, 0);
29291 }
29292 return resultobj;
29293 fail:
29294 return NULL;
29295 }
29296
29297
29298 static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29299 PyObject *resultobj;
29300 wxValidator *arg1 = (wxValidator *) 0 ;
29301 wxWindow *arg2 = (wxWindow *) 0 ;
29302 PyObject * obj0 = 0 ;
29303 PyObject * obj1 = 0 ;
29304 char *kwnames[] = {
29305 (char *) "self",(char *) "window", NULL
29306 };
29307
29308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
29309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
29310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29313 {
29314 PyThreadState* __tstate = wxPyBeginAllowThreads();
29315 (arg1)->SetWindow(arg2);
29316
29317 wxPyEndAllowThreads(__tstate);
29318 if (PyErr_Occurred()) SWIG_fail;
29319 }
29320 Py_INCREF(Py_None); resultobj = Py_None;
29321 return resultobj;
29322 fail:
29323 return NULL;
29324 }
29325
29326
29327 static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) {
29328 PyObject *resultobj;
29329 bool result;
29330 char *kwnames[] = {
29331 NULL
29332 };
29333
29334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
29335 {
29336 PyThreadState* __tstate = wxPyBeginAllowThreads();
29337 result = (bool)wxValidator::IsSilent();
29338
29339 wxPyEndAllowThreads(__tstate);
29340 if (PyErr_Occurred()) SWIG_fail;
29341 }
29342 {
29343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29344 }
29345 return resultobj;
29346 fail:
29347 return NULL;
29348 }
29349
29350
29351 static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj;
29353 int arg1 = (int) true ;
29354 PyObject * obj0 = 0 ;
29355 char *kwnames[] = {
29356 (char *) "doIt", NULL
29357 };
29358
29359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
29360 if (obj0) {
29361 arg1 = (int)SWIG_As_int(obj0);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 {
29365 PyThreadState* __tstate = wxPyBeginAllowThreads();
29366 wxValidator::SetBellOnError(arg1);
29367
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 Py_INCREF(Py_None); resultobj = Py_None;
29372 return resultobj;
29373 fail:
29374 return NULL;
29375 }
29376
29377
29378 static PyObject * Validator_swigregister(PyObject *, PyObject *args) {
29379 PyObject *obj;
29380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29381 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
29382 Py_INCREF(obj);
29383 return Py_BuildValue((char *)"");
29384 }
29385 static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) {
29386 PyObject *resultobj;
29387 wxPyValidator *result;
29388 char *kwnames[] = {
29389 NULL
29390 };
29391
29392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
29393 {
29394 PyThreadState* __tstate = wxPyBeginAllowThreads();
29395 result = (wxPyValidator *)new wxPyValidator();
29396
29397 wxPyEndAllowThreads(__tstate);
29398 if (PyErr_Occurred()) SWIG_fail;
29399 }
29400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
29401 return resultobj;
29402 fail:
29403 return NULL;
29404 }
29405
29406
29407 static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29408 PyObject *resultobj;
29409 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
29410 PyObject *arg2 = (PyObject *) 0 ;
29411 PyObject *arg3 = (PyObject *) 0 ;
29412 int arg4 = (int) true ;
29413 PyObject * obj0 = 0 ;
29414 PyObject * obj1 = 0 ;
29415 PyObject * obj2 = 0 ;
29416 PyObject * obj3 = 0 ;
29417 char *kwnames[] = {
29418 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29419 };
29420
29421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
29423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29424 arg2 = obj1;
29425 arg3 = obj2;
29426 if (obj3) {
29427 arg4 = (int)SWIG_As_int(obj3);
29428 if (PyErr_Occurred()) SWIG_fail;
29429 }
29430 {
29431 PyThreadState* __tstate = wxPyBeginAllowThreads();
29432 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29433
29434 wxPyEndAllowThreads(__tstate);
29435 if (PyErr_Occurred()) SWIG_fail;
29436 }
29437 Py_INCREF(Py_None); resultobj = Py_None;
29438 return resultobj;
29439 fail:
29440 return NULL;
29441 }
29442
29443
29444 static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) {
29445 PyObject *obj;
29446 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29447 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
29448 Py_INCREF(obj);
29449 return Py_BuildValue((char *)"");
29450 }
29451 static int _wrap_DefaultValidator_set(PyObject *) {
29452 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
29453 return 1;
29454 }
29455
29456
29457 static PyObject *_wrap_DefaultValidator_get() {
29458 PyObject *pyobj;
29459
29460 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
29461 return pyobj;
29462 }
29463
29464
29465 static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) {
29466 PyObject *resultobj;
29467 wxString const &arg1_defvalue = wxPyEmptyString ;
29468 wxString *arg1 = (wxString *) &arg1_defvalue ;
29469 long arg2 = (long) 0 ;
29470 wxMenu *result;
29471 bool temp1 = false ;
29472 PyObject * obj0 = 0 ;
29473 PyObject * obj1 = 0 ;
29474 char *kwnames[] = {
29475 (char *) "title",(char *) "style", NULL
29476 };
29477
29478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
29479 if (obj0) {
29480 {
29481 arg1 = wxString_in_helper(obj0);
29482 if (arg1 == NULL) SWIG_fail;
29483 temp1 = true;
29484 }
29485 }
29486 if (obj1) {
29487 arg2 = (long)SWIG_As_long(obj1);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 {
29491 if (!wxPyCheckForApp()) SWIG_fail;
29492 PyThreadState* __tstate = wxPyBeginAllowThreads();
29493 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
29494
29495 wxPyEndAllowThreads(__tstate);
29496 if (PyErr_Occurred()) SWIG_fail;
29497 }
29498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1);
29499 {
29500 if (temp1)
29501 delete arg1;
29502 }
29503 return resultobj;
29504 fail:
29505 {
29506 if (temp1)
29507 delete arg1;
29508 }
29509 return NULL;
29510 }
29511
29512
29513 static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) {
29514 PyObject *resultobj;
29515 wxMenu *arg1 = (wxMenu *) 0 ;
29516 int arg2 ;
29517 wxString *arg3 = 0 ;
29518 wxString const &arg4_defvalue = wxPyEmptyString ;
29519 wxString *arg4 = (wxString *) &arg4_defvalue ;
29520 int arg5 = (int) wxITEM_NORMAL ;
29521 wxMenuItem *result;
29522 bool temp3 = false ;
29523 bool temp4 = false ;
29524 PyObject * obj0 = 0 ;
29525 PyObject * obj1 = 0 ;
29526 PyObject * obj2 = 0 ;
29527 PyObject * obj3 = 0 ;
29528 PyObject * obj4 = 0 ;
29529 char *kwnames[] = {
29530 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29531 };
29532
29533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29536 arg2 = (int)SWIG_As_int(obj1);
29537 if (PyErr_Occurred()) SWIG_fail;
29538 {
29539 arg3 = wxString_in_helper(obj2);
29540 if (arg3 == NULL) SWIG_fail;
29541 temp3 = true;
29542 }
29543 if (obj3) {
29544 {
29545 arg4 = wxString_in_helper(obj3);
29546 if (arg4 == NULL) SWIG_fail;
29547 temp4 = true;
29548 }
29549 }
29550 if (obj4) {
29551 arg5 = (int)SWIG_As_int(obj4);
29552 if (PyErr_Occurred()) SWIG_fail;
29553 }
29554 {
29555 PyThreadState* __tstate = wxPyBeginAllowThreads();
29556 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29557
29558 wxPyEndAllowThreads(__tstate);
29559 if (PyErr_Occurred()) SWIG_fail;
29560 }
29561 {
29562 resultobj = wxPyMake_wxObject(result, 0);
29563 }
29564 {
29565 if (temp3)
29566 delete arg3;
29567 }
29568 {
29569 if (temp4)
29570 delete arg4;
29571 }
29572 return resultobj;
29573 fail:
29574 {
29575 if (temp3)
29576 delete arg3;
29577 }
29578 {
29579 if (temp4)
29580 delete arg4;
29581 }
29582 return NULL;
29583 }
29584
29585
29586 static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj;
29588 wxMenu *arg1 = (wxMenu *) 0 ;
29589 wxMenuItem *result;
29590 PyObject * obj0 = 0 ;
29591 char *kwnames[] = {
29592 (char *) "self", NULL
29593 };
29594
29595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
29596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29598 {
29599 PyThreadState* __tstate = wxPyBeginAllowThreads();
29600 result = (wxMenuItem *)(arg1)->AppendSeparator();
29601
29602 wxPyEndAllowThreads(__tstate);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 }
29605 {
29606 resultobj = wxPyMake_wxObject(result, 0);
29607 }
29608 return resultobj;
29609 fail:
29610 return NULL;
29611 }
29612
29613
29614 static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
29615 PyObject *resultobj;
29616 wxMenu *arg1 = (wxMenu *) 0 ;
29617 int arg2 ;
29618 wxString *arg3 = 0 ;
29619 wxString const &arg4_defvalue = wxPyEmptyString ;
29620 wxString *arg4 = (wxString *) &arg4_defvalue ;
29621 wxMenuItem *result;
29622 bool temp3 = false ;
29623 bool temp4 = false ;
29624 PyObject * obj0 = 0 ;
29625 PyObject * obj1 = 0 ;
29626 PyObject * obj2 = 0 ;
29627 PyObject * obj3 = 0 ;
29628 char *kwnames[] = {
29629 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29630 };
29631
29632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29635 arg2 = (int)SWIG_As_int(obj1);
29636 if (PyErr_Occurred()) SWIG_fail;
29637 {
29638 arg3 = wxString_in_helper(obj2);
29639 if (arg3 == NULL) SWIG_fail;
29640 temp3 = true;
29641 }
29642 if (obj3) {
29643 {
29644 arg4 = wxString_in_helper(obj3);
29645 if (arg4 == NULL) SWIG_fail;
29646 temp4 = true;
29647 }
29648 }
29649 {
29650 PyThreadState* __tstate = wxPyBeginAllowThreads();
29651 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29652
29653 wxPyEndAllowThreads(__tstate);
29654 if (PyErr_Occurred()) SWIG_fail;
29655 }
29656 {
29657 resultobj = wxPyMake_wxObject(result, 0);
29658 }
29659 {
29660 if (temp3)
29661 delete arg3;
29662 }
29663 {
29664 if (temp4)
29665 delete arg4;
29666 }
29667 return resultobj;
29668 fail:
29669 {
29670 if (temp3)
29671 delete arg3;
29672 }
29673 {
29674 if (temp4)
29675 delete arg4;
29676 }
29677 return NULL;
29678 }
29679
29680
29681 static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
29682 PyObject *resultobj;
29683 wxMenu *arg1 = (wxMenu *) 0 ;
29684 int arg2 ;
29685 wxString *arg3 = 0 ;
29686 wxString const &arg4_defvalue = wxPyEmptyString ;
29687 wxString *arg4 = (wxString *) &arg4_defvalue ;
29688 wxMenuItem *result;
29689 bool temp3 = false ;
29690 bool temp4 = false ;
29691 PyObject * obj0 = 0 ;
29692 PyObject * obj1 = 0 ;
29693 PyObject * obj2 = 0 ;
29694 PyObject * obj3 = 0 ;
29695 char *kwnames[] = {
29696 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29697 };
29698
29699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29702 arg2 = (int)SWIG_As_int(obj1);
29703 if (PyErr_Occurred()) SWIG_fail;
29704 {
29705 arg3 = wxString_in_helper(obj2);
29706 if (arg3 == NULL) SWIG_fail;
29707 temp3 = true;
29708 }
29709 if (obj3) {
29710 {
29711 arg4 = wxString_in_helper(obj3);
29712 if (arg4 == NULL) SWIG_fail;
29713 temp4 = true;
29714 }
29715 }
29716 {
29717 PyThreadState* __tstate = wxPyBeginAllowThreads();
29718 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29719
29720 wxPyEndAllowThreads(__tstate);
29721 if (PyErr_Occurred()) SWIG_fail;
29722 }
29723 {
29724 resultobj = wxPyMake_wxObject(result, 0);
29725 }
29726 {
29727 if (temp3)
29728 delete arg3;
29729 }
29730 {
29731 if (temp4)
29732 delete arg4;
29733 }
29734 return resultobj;
29735 fail:
29736 {
29737 if (temp3)
29738 delete arg3;
29739 }
29740 {
29741 if (temp4)
29742 delete arg4;
29743 }
29744 return NULL;
29745 }
29746
29747
29748 static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) {
29749 PyObject *resultobj;
29750 wxMenu *arg1 = (wxMenu *) 0 ;
29751 int arg2 ;
29752 wxString *arg3 = 0 ;
29753 wxMenu *arg4 = (wxMenu *) 0 ;
29754 wxString const &arg5_defvalue = wxPyEmptyString ;
29755 wxString *arg5 = (wxString *) &arg5_defvalue ;
29756 wxMenuItem *result;
29757 bool temp3 = false ;
29758 bool temp5 = false ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762 PyObject * obj3 = 0 ;
29763 PyObject * obj4 = 0 ;
29764 char *kwnames[] = {
29765 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29766 };
29767
29768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29771 arg2 = (int)SWIG_As_int(obj1);
29772 if (PyErr_Occurred()) SWIG_fail;
29773 {
29774 arg3 = wxString_in_helper(obj2);
29775 if (arg3 == NULL) SWIG_fail;
29776 temp3 = true;
29777 }
29778 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29780 if (obj4) {
29781 {
29782 arg5 = wxString_in_helper(obj4);
29783 if (arg5 == NULL) SWIG_fail;
29784 temp5 = true;
29785 }
29786 }
29787 {
29788 PyThreadState* __tstate = wxPyBeginAllowThreads();
29789 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29790
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 {
29795 resultobj = wxPyMake_wxObject(result, 0);
29796 }
29797 {
29798 if (temp3)
29799 delete arg3;
29800 }
29801 {
29802 if (temp5)
29803 delete arg5;
29804 }
29805 return resultobj;
29806 fail:
29807 {
29808 if (temp3)
29809 delete arg3;
29810 }
29811 {
29812 if (temp5)
29813 delete arg5;
29814 }
29815 return NULL;
29816 }
29817
29818
29819 static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
29820 PyObject *resultobj;
29821 wxMenu *arg1 = (wxMenu *) 0 ;
29822 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29823 wxMenuItem *result;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 char *kwnames[] = {
29827 (char *) "self",(char *) "item", NULL
29828 };
29829
29830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29835 {
29836 PyThreadState* __tstate = wxPyBeginAllowThreads();
29837 result = (wxMenuItem *)(arg1)->Append(arg2);
29838
29839 wxPyEndAllowThreads(__tstate);
29840 if (PyErr_Occurred()) SWIG_fail;
29841 }
29842 {
29843 resultobj = wxPyMake_wxObject(result, 0);
29844 }
29845 return resultobj;
29846 fail:
29847 return NULL;
29848 }
29849
29850
29851 static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) {
29852 PyObject *resultobj;
29853 wxMenu *arg1 = (wxMenu *) 0 ;
29854 PyObject * obj0 = 0 ;
29855 char *kwnames[] = {
29856 (char *) "self", NULL
29857 };
29858
29859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29862 {
29863 PyThreadState* __tstate = wxPyBeginAllowThreads();
29864 (arg1)->Break();
29865
29866 wxPyEndAllowThreads(__tstate);
29867 if (PyErr_Occurred()) SWIG_fail;
29868 }
29869 Py_INCREF(Py_None); resultobj = Py_None;
29870 return resultobj;
29871 fail:
29872 return NULL;
29873 }
29874
29875
29876 static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
29877 PyObject *resultobj;
29878 wxMenu *arg1 = (wxMenu *) 0 ;
29879 size_t arg2 ;
29880 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29881 wxMenuItem *result;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 char *kwnames[] = {
29886 (char *) "self",(char *) "pos",(char *) "item", NULL
29887 };
29888
29889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29892 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
29893 if (PyErr_Occurred()) SWIG_fail;
29894 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29896 {
29897 PyThreadState* __tstate = wxPyBeginAllowThreads();
29898 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29899
29900 wxPyEndAllowThreads(__tstate);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 {
29904 resultobj = wxPyMake_wxObject(result, 0);
29905 }
29906 return resultobj;
29907 fail:
29908 return NULL;
29909 }
29910
29911
29912 static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
29913 PyObject *resultobj;
29914 wxMenu *arg1 = (wxMenu *) 0 ;
29915 size_t arg2 ;
29916 int arg3 ;
29917 wxString *arg4 = 0 ;
29918 wxString const &arg5_defvalue = wxPyEmptyString ;
29919 wxString *arg5 = (wxString *) &arg5_defvalue ;
29920 int arg6 = (int) wxITEM_NORMAL ;
29921 wxMenuItem *result;
29922 bool temp4 = false ;
29923 bool temp5 = false ;
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 PyObject * obj2 = 0 ;
29927 PyObject * obj3 = 0 ;
29928 PyObject * obj4 = 0 ;
29929 PyObject * obj5 = 0 ;
29930 char *kwnames[] = {
29931 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29932 };
29933
29934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29937 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 arg3 = (int)SWIG_As_int(obj2);
29940 if (PyErr_Occurred()) SWIG_fail;
29941 {
29942 arg4 = wxString_in_helper(obj3);
29943 if (arg4 == NULL) SWIG_fail;
29944 temp4 = true;
29945 }
29946 if (obj4) {
29947 {
29948 arg5 = wxString_in_helper(obj4);
29949 if (arg5 == NULL) SWIG_fail;
29950 temp5 = true;
29951 }
29952 }
29953 if (obj5) {
29954 arg6 = (int)SWIG_As_int(obj5);
29955 if (PyErr_Occurred()) SWIG_fail;
29956 }
29957 {
29958 PyThreadState* __tstate = wxPyBeginAllowThreads();
29959 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29960
29961 wxPyEndAllowThreads(__tstate);
29962 if (PyErr_Occurred()) SWIG_fail;
29963 }
29964 {
29965 resultobj = wxPyMake_wxObject(result, 0);
29966 }
29967 {
29968 if (temp4)
29969 delete arg4;
29970 }
29971 {
29972 if (temp5)
29973 delete arg5;
29974 }
29975 return resultobj;
29976 fail:
29977 {
29978 if (temp4)
29979 delete arg4;
29980 }
29981 {
29982 if (temp5)
29983 delete arg5;
29984 }
29985 return NULL;
29986 }
29987
29988
29989 static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
29990 PyObject *resultobj;
29991 wxMenu *arg1 = (wxMenu *) 0 ;
29992 size_t arg2 ;
29993 wxMenuItem *result;
29994 PyObject * obj0 = 0 ;
29995 PyObject * obj1 = 0 ;
29996 char *kwnames[] = {
29997 (char *) "self",(char *) "pos", NULL
29998 };
29999
30000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
30001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30003 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
30004 if (PyErr_Occurred()) SWIG_fail;
30005 {
30006 PyThreadState* __tstate = wxPyBeginAllowThreads();
30007 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
30008
30009 wxPyEndAllowThreads(__tstate);
30010 if (PyErr_Occurred()) SWIG_fail;
30011 }
30012 {
30013 resultobj = wxPyMake_wxObject(result, 0);
30014 }
30015 return resultobj;
30016 fail:
30017 return NULL;
30018 }
30019
30020
30021 static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
30022 PyObject *resultobj;
30023 wxMenu *arg1 = (wxMenu *) 0 ;
30024 size_t arg2 ;
30025 int arg3 ;
30026 wxString *arg4 = 0 ;
30027 wxString const &arg5_defvalue = wxPyEmptyString ;
30028 wxString *arg5 = (wxString *) &arg5_defvalue ;
30029 wxMenuItem *result;
30030 bool temp4 = false ;
30031 bool temp5 = false ;
30032 PyObject * obj0 = 0 ;
30033 PyObject * obj1 = 0 ;
30034 PyObject * obj2 = 0 ;
30035 PyObject * obj3 = 0 ;
30036 PyObject * obj4 = 0 ;
30037 char *kwnames[] = {
30038 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
30039 };
30040
30041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30044 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
30045 if (PyErr_Occurred()) SWIG_fail;
30046 arg3 = (int)SWIG_As_int(obj2);
30047 if (PyErr_Occurred()) SWIG_fail;
30048 {
30049 arg4 = wxString_in_helper(obj3);
30050 if (arg4 == NULL) SWIG_fail;
30051 temp4 = true;
30052 }
30053 if (obj4) {
30054 {
30055 arg5 = wxString_in_helper(obj4);
30056 if (arg5 == NULL) SWIG_fail;
30057 temp5 = true;
30058 }
30059 }
30060 {
30061 PyThreadState* __tstate = wxPyBeginAllowThreads();
30062 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
30063
30064 wxPyEndAllowThreads(__tstate);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 {
30068 resultobj = wxPyMake_wxObject(result, 0);
30069 }
30070 {
30071 if (temp4)
30072 delete arg4;
30073 }
30074 {
30075 if (temp5)
30076 delete arg5;
30077 }
30078 return resultobj;
30079 fail:
30080 {
30081 if (temp4)
30082 delete arg4;
30083 }
30084 {
30085 if (temp5)
30086 delete arg5;
30087 }
30088 return NULL;
30089 }
30090
30091
30092 static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
30093 PyObject *resultobj;
30094 wxMenu *arg1 = (wxMenu *) 0 ;
30095 size_t arg2 ;
30096 int arg3 ;
30097 wxString *arg4 = 0 ;
30098 wxString const &arg5_defvalue = wxPyEmptyString ;
30099 wxString *arg5 = (wxString *) &arg5_defvalue ;
30100 wxMenuItem *result;
30101 bool temp4 = false ;
30102 bool temp5 = false ;
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 PyObject * obj2 = 0 ;
30106 PyObject * obj3 = 0 ;
30107 PyObject * obj4 = 0 ;
30108 char *kwnames[] = {
30109 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
30110 };
30111
30112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30115 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 arg3 = (int)SWIG_As_int(obj2);
30118 if (PyErr_Occurred()) SWIG_fail;
30119 {
30120 arg4 = wxString_in_helper(obj3);
30121 if (arg4 == NULL) SWIG_fail;
30122 temp4 = true;
30123 }
30124 if (obj4) {
30125 {
30126 arg5 = wxString_in_helper(obj4);
30127 if (arg5 == NULL) SWIG_fail;
30128 temp5 = true;
30129 }
30130 }
30131 {
30132 PyThreadState* __tstate = wxPyBeginAllowThreads();
30133 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
30134
30135 wxPyEndAllowThreads(__tstate);
30136 if (PyErr_Occurred()) SWIG_fail;
30137 }
30138 {
30139 resultobj = wxPyMake_wxObject(result, 0);
30140 }
30141 {
30142 if (temp4)
30143 delete arg4;
30144 }
30145 {
30146 if (temp5)
30147 delete arg5;
30148 }
30149 return resultobj;
30150 fail:
30151 {
30152 if (temp4)
30153 delete arg4;
30154 }
30155 {
30156 if (temp5)
30157 delete arg5;
30158 }
30159 return NULL;
30160 }
30161
30162
30163 static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) {
30164 PyObject *resultobj;
30165 wxMenu *arg1 = (wxMenu *) 0 ;
30166 size_t arg2 ;
30167 int arg3 ;
30168 wxString *arg4 = 0 ;
30169 wxMenu *arg5 = (wxMenu *) 0 ;
30170 wxString const &arg6_defvalue = wxPyEmptyString ;
30171 wxString *arg6 = (wxString *) &arg6_defvalue ;
30172 wxMenuItem *result;
30173 bool temp4 = false ;
30174 bool temp6 = false ;
30175 PyObject * obj0 = 0 ;
30176 PyObject * obj1 = 0 ;
30177 PyObject * obj2 = 0 ;
30178 PyObject * obj3 = 0 ;
30179 PyObject * obj4 = 0 ;
30180 PyObject * obj5 = 0 ;
30181 char *kwnames[] = {
30182 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
30183 };
30184
30185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
30186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30188 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 arg3 = (int)SWIG_As_int(obj2);
30191 if (PyErr_Occurred()) SWIG_fail;
30192 {
30193 arg4 = wxString_in_helper(obj3);
30194 if (arg4 == NULL) SWIG_fail;
30195 temp4 = true;
30196 }
30197 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
30198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30199 if (obj5) {
30200 {
30201 arg6 = wxString_in_helper(obj5);
30202 if (arg6 == NULL) SWIG_fail;
30203 temp6 = true;
30204 }
30205 }
30206 {
30207 PyThreadState* __tstate = wxPyBeginAllowThreads();
30208 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
30209
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 {
30214 resultobj = wxPyMake_wxObject(result, 0);
30215 }
30216 {
30217 if (temp4)
30218 delete arg4;
30219 }
30220 {
30221 if (temp6)
30222 delete arg6;
30223 }
30224 return resultobj;
30225 fail:
30226 {
30227 if (temp4)
30228 delete arg4;
30229 }
30230 {
30231 if (temp6)
30232 delete arg6;
30233 }
30234 return NULL;
30235 }
30236
30237
30238 static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj;
30240 wxMenu *arg1 = (wxMenu *) 0 ;
30241 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30242 wxMenuItem *result;
30243 PyObject * obj0 = 0 ;
30244 PyObject * obj1 = 0 ;
30245 char *kwnames[] = {
30246 (char *) "self",(char *) "item", NULL
30247 };
30248
30249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
30250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30252 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30254 {
30255 PyThreadState* __tstate = wxPyBeginAllowThreads();
30256 result = (wxMenuItem *)(arg1)->Prepend(arg2);
30257
30258 wxPyEndAllowThreads(__tstate);
30259 if (PyErr_Occurred()) SWIG_fail;
30260 }
30261 {
30262 resultobj = wxPyMake_wxObject(result, 0);
30263 }
30264 return resultobj;
30265 fail:
30266 return NULL;
30267 }
30268
30269
30270 static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
30271 PyObject *resultobj;
30272 wxMenu *arg1 = (wxMenu *) 0 ;
30273 int arg2 ;
30274 wxString *arg3 = 0 ;
30275 wxString const &arg4_defvalue = wxPyEmptyString ;
30276 wxString *arg4 = (wxString *) &arg4_defvalue ;
30277 int arg5 = (int) wxITEM_NORMAL ;
30278 wxMenuItem *result;
30279 bool temp3 = false ;
30280 bool temp4 = false ;
30281 PyObject * obj0 = 0 ;
30282 PyObject * obj1 = 0 ;
30283 PyObject * obj2 = 0 ;
30284 PyObject * obj3 = 0 ;
30285 PyObject * obj4 = 0 ;
30286 char *kwnames[] = {
30287 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
30288 };
30289
30290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30293 arg2 = (int)SWIG_As_int(obj1);
30294 if (PyErr_Occurred()) SWIG_fail;
30295 {
30296 arg3 = wxString_in_helper(obj2);
30297 if (arg3 == NULL) SWIG_fail;
30298 temp3 = true;
30299 }
30300 if (obj3) {
30301 {
30302 arg4 = wxString_in_helper(obj3);
30303 if (arg4 == NULL) SWIG_fail;
30304 temp4 = true;
30305 }
30306 }
30307 if (obj4) {
30308 arg5 = (int)SWIG_As_int(obj4);
30309 if (PyErr_Occurred()) SWIG_fail;
30310 }
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
30314
30315 wxPyEndAllowThreads(__tstate);
30316 if (PyErr_Occurred()) SWIG_fail;
30317 }
30318 {
30319 resultobj = wxPyMake_wxObject(result, 0);
30320 }
30321 {
30322 if (temp3)
30323 delete arg3;
30324 }
30325 {
30326 if (temp4)
30327 delete arg4;
30328 }
30329 return resultobj;
30330 fail:
30331 {
30332 if (temp3)
30333 delete arg3;
30334 }
30335 {
30336 if (temp4)
30337 delete arg4;
30338 }
30339 return NULL;
30340 }
30341
30342
30343 static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
30344 PyObject *resultobj;
30345 wxMenu *arg1 = (wxMenu *) 0 ;
30346 wxMenuItem *result;
30347 PyObject * obj0 = 0 ;
30348 char *kwnames[] = {
30349 (char *) "self", NULL
30350 };
30351
30352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
30353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30355 {
30356 PyThreadState* __tstate = wxPyBeginAllowThreads();
30357 result = (wxMenuItem *)(arg1)->PrependSeparator();
30358
30359 wxPyEndAllowThreads(__tstate);
30360 if (PyErr_Occurred()) SWIG_fail;
30361 }
30362 {
30363 resultobj = wxPyMake_wxObject(result, 0);
30364 }
30365 return resultobj;
30366 fail:
30367 return NULL;
30368 }
30369
30370
30371 static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
30372 PyObject *resultobj;
30373 wxMenu *arg1 = (wxMenu *) 0 ;
30374 int arg2 ;
30375 wxString *arg3 = 0 ;
30376 wxString const &arg4_defvalue = wxPyEmptyString ;
30377 wxString *arg4 = (wxString *) &arg4_defvalue ;
30378 wxMenuItem *result;
30379 bool temp3 = false ;
30380 bool temp4 = false ;
30381 PyObject * obj0 = 0 ;
30382 PyObject * obj1 = 0 ;
30383 PyObject * obj2 = 0 ;
30384 PyObject * obj3 = 0 ;
30385 char *kwnames[] = {
30386 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
30387 };
30388
30389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30392 arg2 = (int)SWIG_As_int(obj1);
30393 if (PyErr_Occurred()) SWIG_fail;
30394 {
30395 arg3 = wxString_in_helper(obj2);
30396 if (arg3 == NULL) SWIG_fail;
30397 temp3 = true;
30398 }
30399 if (obj3) {
30400 {
30401 arg4 = wxString_in_helper(obj3);
30402 if (arg4 == NULL) SWIG_fail;
30403 temp4 = true;
30404 }
30405 }
30406 {
30407 PyThreadState* __tstate = wxPyBeginAllowThreads();
30408 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
30409
30410 wxPyEndAllowThreads(__tstate);
30411 if (PyErr_Occurred()) SWIG_fail;
30412 }
30413 {
30414 resultobj = wxPyMake_wxObject(result, 0);
30415 }
30416 {
30417 if (temp3)
30418 delete arg3;
30419 }
30420 {
30421 if (temp4)
30422 delete arg4;
30423 }
30424 return resultobj;
30425 fail:
30426 {
30427 if (temp3)
30428 delete arg3;
30429 }
30430 {
30431 if (temp4)
30432 delete arg4;
30433 }
30434 return NULL;
30435 }
30436
30437
30438 static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
30439 PyObject *resultobj;
30440 wxMenu *arg1 = (wxMenu *) 0 ;
30441 int arg2 ;
30442 wxString *arg3 = 0 ;
30443 wxString const &arg4_defvalue = wxPyEmptyString ;
30444 wxString *arg4 = (wxString *) &arg4_defvalue ;
30445 wxMenuItem *result;
30446 bool temp3 = false ;
30447 bool temp4 = false ;
30448 PyObject * obj0 = 0 ;
30449 PyObject * obj1 = 0 ;
30450 PyObject * obj2 = 0 ;
30451 PyObject * obj3 = 0 ;
30452 char *kwnames[] = {
30453 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
30454 };
30455
30456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30459 arg2 = (int)SWIG_As_int(obj1);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 {
30462 arg3 = wxString_in_helper(obj2);
30463 if (arg3 == NULL) SWIG_fail;
30464 temp3 = true;
30465 }
30466 if (obj3) {
30467 {
30468 arg4 = wxString_in_helper(obj3);
30469 if (arg4 == NULL) SWIG_fail;
30470 temp4 = true;
30471 }
30472 }
30473 {
30474 PyThreadState* __tstate = wxPyBeginAllowThreads();
30475 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
30476
30477 wxPyEndAllowThreads(__tstate);
30478 if (PyErr_Occurred()) SWIG_fail;
30479 }
30480 {
30481 resultobj = wxPyMake_wxObject(result, 0);
30482 }
30483 {
30484 if (temp3)
30485 delete arg3;
30486 }
30487 {
30488 if (temp4)
30489 delete arg4;
30490 }
30491 return resultobj;
30492 fail:
30493 {
30494 if (temp3)
30495 delete arg3;
30496 }
30497 {
30498 if (temp4)
30499 delete arg4;
30500 }
30501 return NULL;
30502 }
30503
30504
30505 static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) {
30506 PyObject *resultobj;
30507 wxMenu *arg1 = (wxMenu *) 0 ;
30508 int arg2 ;
30509 wxString *arg3 = 0 ;
30510 wxMenu *arg4 = (wxMenu *) 0 ;
30511 wxString const &arg5_defvalue = wxPyEmptyString ;
30512 wxString *arg5 = (wxString *) &arg5_defvalue ;
30513 wxMenuItem *result;
30514 bool temp3 = false ;
30515 bool temp5 = false ;
30516 PyObject * obj0 = 0 ;
30517 PyObject * obj1 = 0 ;
30518 PyObject * obj2 = 0 ;
30519 PyObject * obj3 = 0 ;
30520 PyObject * obj4 = 0 ;
30521 char *kwnames[] = {
30522 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
30523 };
30524
30525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30528 arg2 = (int)SWIG_As_int(obj1);
30529 if (PyErr_Occurred()) SWIG_fail;
30530 {
30531 arg3 = wxString_in_helper(obj2);
30532 if (arg3 == NULL) SWIG_fail;
30533 temp3 = true;
30534 }
30535 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
30536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30537 if (obj4) {
30538 {
30539 arg5 = wxString_in_helper(obj4);
30540 if (arg5 == NULL) SWIG_fail;
30541 temp5 = true;
30542 }
30543 }
30544 {
30545 PyThreadState* __tstate = wxPyBeginAllowThreads();
30546 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
30547
30548 wxPyEndAllowThreads(__tstate);
30549 if (PyErr_Occurred()) SWIG_fail;
30550 }
30551 {
30552 resultobj = wxPyMake_wxObject(result, 0);
30553 }
30554 {
30555 if (temp3)
30556 delete arg3;
30557 }
30558 {
30559 if (temp5)
30560 delete arg5;
30561 }
30562 return resultobj;
30563 fail:
30564 {
30565 if (temp3)
30566 delete arg3;
30567 }
30568 {
30569 if (temp5)
30570 delete arg5;
30571 }
30572 return NULL;
30573 }
30574
30575
30576 static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
30577 PyObject *resultobj;
30578 wxMenu *arg1 = (wxMenu *) 0 ;
30579 int arg2 ;
30580 wxMenuItem *result;
30581 PyObject * obj0 = 0 ;
30582 PyObject * obj1 = 0 ;
30583 char *kwnames[] = {
30584 (char *) "self",(char *) "id", NULL
30585 };
30586
30587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
30588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30590 arg2 = (int)SWIG_As_int(obj1);
30591 if (PyErr_Occurred()) SWIG_fail;
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (wxMenuItem *)(arg1)->Remove(arg2);
30595
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 {
30600 resultobj = wxPyMake_wxObject(result, 0);
30601 }
30602 return resultobj;
30603 fail:
30604 return NULL;
30605 }
30606
30607
30608 static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) {
30609 PyObject *resultobj;
30610 wxMenu *arg1 = (wxMenu *) 0 ;
30611 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30612 wxMenuItem *result;
30613 PyObject * obj0 = 0 ;
30614 PyObject * obj1 = 0 ;
30615 char *kwnames[] = {
30616 (char *) "self",(char *) "item", NULL
30617 };
30618
30619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
30620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30624 {
30625 PyThreadState* __tstate = wxPyBeginAllowThreads();
30626 result = (wxMenuItem *)(arg1)->Remove(arg2);
30627
30628 wxPyEndAllowThreads(__tstate);
30629 if (PyErr_Occurred()) SWIG_fail;
30630 }
30631 {
30632 resultobj = wxPyMake_wxObject(result, 0);
30633 }
30634 return resultobj;
30635 fail:
30636 return NULL;
30637 }
30638
30639
30640 static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
30641 PyObject *resultobj;
30642 wxMenu *arg1 = (wxMenu *) 0 ;
30643 int arg2 ;
30644 bool result;
30645 PyObject * obj0 = 0 ;
30646 PyObject * obj1 = 0 ;
30647 char *kwnames[] = {
30648 (char *) "self",(char *) "id", NULL
30649 };
30650
30651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
30652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30654 arg2 = (int)SWIG_As_int(obj1);
30655 if (PyErr_Occurred()) SWIG_fail;
30656 {
30657 PyThreadState* __tstate = wxPyBeginAllowThreads();
30658 result = (bool)(arg1)->Delete(arg2);
30659
30660 wxPyEndAllowThreads(__tstate);
30661 if (PyErr_Occurred()) SWIG_fail;
30662 }
30663 {
30664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30665 }
30666 return resultobj;
30667 fail:
30668 return NULL;
30669 }
30670
30671
30672 static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
30673 PyObject *resultobj;
30674 wxMenu *arg1 = (wxMenu *) 0 ;
30675 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30676 bool result;
30677 PyObject * obj0 = 0 ;
30678 PyObject * obj1 = 0 ;
30679 char *kwnames[] = {
30680 (char *) "self",(char *) "item", NULL
30681 };
30682
30683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
30684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30688 {
30689 PyThreadState* __tstate = wxPyBeginAllowThreads();
30690 result = (bool)(arg1)->Delete(arg2);
30691
30692 wxPyEndAllowThreads(__tstate);
30693 if (PyErr_Occurred()) SWIG_fail;
30694 }
30695 {
30696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30697 }
30698 return resultobj;
30699 fail:
30700 return NULL;
30701 }
30702
30703
30704 static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj;
30706 wxMenu *arg1 = (wxMenu *) 0 ;
30707 PyObject * obj0 = 0 ;
30708 char *kwnames[] = {
30709 (char *) "self", NULL
30710 };
30711
30712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
30713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30715 {
30716 PyThreadState* __tstate = wxPyBeginAllowThreads();
30717 wxMenu_Destroy(arg1);
30718
30719 wxPyEndAllowThreads(__tstate);
30720 if (PyErr_Occurred()) SWIG_fail;
30721 }
30722 Py_INCREF(Py_None); resultobj = Py_None;
30723 return resultobj;
30724 fail:
30725 return NULL;
30726 }
30727
30728
30729 static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) {
30730 PyObject *resultobj;
30731 wxMenu *arg1 = (wxMenu *) 0 ;
30732 int arg2 ;
30733 bool result;
30734 PyObject * obj0 = 0 ;
30735 PyObject * obj1 = 0 ;
30736 char *kwnames[] = {
30737 (char *) "self",(char *) "id", NULL
30738 };
30739
30740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
30741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30743 arg2 = (int)SWIG_As_int(obj1);
30744 if (PyErr_Occurred()) SWIG_fail;
30745 {
30746 PyThreadState* __tstate = wxPyBeginAllowThreads();
30747 result = (bool)(arg1)->Destroy(arg2);
30748
30749 wxPyEndAllowThreads(__tstate);
30750 if (PyErr_Occurred()) SWIG_fail;
30751 }
30752 {
30753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30754 }
30755 return resultobj;
30756 fail:
30757 return NULL;
30758 }
30759
30760
30761 static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) {
30762 PyObject *resultobj;
30763 wxMenu *arg1 = (wxMenu *) 0 ;
30764 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30765 bool result;
30766 PyObject * obj0 = 0 ;
30767 PyObject * obj1 = 0 ;
30768 char *kwnames[] = {
30769 (char *) "self",(char *) "item", NULL
30770 };
30771
30772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
30773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30775 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30777 {
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 result = (bool)(arg1)->Destroy(arg2);
30780
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 {
30785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30786 }
30787 return resultobj;
30788 fail:
30789 return NULL;
30790 }
30791
30792
30793 static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj;
30795 wxMenu *arg1 = (wxMenu *) 0 ;
30796 size_t result;
30797 PyObject * obj0 = 0 ;
30798 char *kwnames[] = {
30799 (char *) "self", NULL
30800 };
30801
30802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30805 {
30806 PyThreadState* __tstate = wxPyBeginAllowThreads();
30807 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30808
30809 wxPyEndAllowThreads(__tstate);
30810 if (PyErr_Occurred()) SWIG_fail;
30811 }
30812 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
30813 return resultobj;
30814 fail:
30815 return NULL;
30816 }
30817
30818
30819 static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) {
30820 PyObject *resultobj;
30821 wxMenu *arg1 = (wxMenu *) 0 ;
30822 PyObject *result;
30823 PyObject * obj0 = 0 ;
30824 char *kwnames[] = {
30825 (char *) "self", NULL
30826 };
30827
30828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30834
30835 wxPyEndAllowThreads(__tstate);
30836 if (PyErr_Occurred()) SWIG_fail;
30837 }
30838 resultobj = result;
30839 return resultobj;
30840 fail:
30841 return NULL;
30842 }
30843
30844
30845 static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
30846 PyObject *resultobj;
30847 wxMenu *arg1 = (wxMenu *) 0 ;
30848 wxString *arg2 = 0 ;
30849 int result;
30850 bool temp2 = false ;
30851 PyObject * obj0 = 0 ;
30852 PyObject * obj1 = 0 ;
30853 char *kwnames[] = {
30854 (char *) "self",(char *) "item", NULL
30855 };
30856
30857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30860 {
30861 arg2 = wxString_in_helper(obj1);
30862 if (arg2 == NULL) SWIG_fail;
30863 temp2 = true;
30864 }
30865 {
30866 PyThreadState* __tstate = wxPyBeginAllowThreads();
30867 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30868
30869 wxPyEndAllowThreads(__tstate);
30870 if (PyErr_Occurred()) SWIG_fail;
30871 }
30872 resultobj = SWIG_From_int((int)result);
30873 {
30874 if (temp2)
30875 delete arg2;
30876 }
30877 return resultobj;
30878 fail:
30879 {
30880 if (temp2)
30881 delete arg2;
30882 }
30883 return NULL;
30884 }
30885
30886
30887 static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
30888 PyObject *resultobj;
30889 wxMenu *arg1 = (wxMenu *) 0 ;
30890 int arg2 ;
30891 wxMenuItem *result;
30892 PyObject * obj0 = 0 ;
30893 PyObject * obj1 = 0 ;
30894 char *kwnames[] = {
30895 (char *) "self",(char *) "id", NULL
30896 };
30897
30898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30901 arg2 = (int)SWIG_As_int(obj1);
30902 if (PyErr_Occurred()) SWIG_fail;
30903 {
30904 PyThreadState* __tstate = wxPyBeginAllowThreads();
30905 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30906
30907 wxPyEndAllowThreads(__tstate);
30908 if (PyErr_Occurred()) SWIG_fail;
30909 }
30910 {
30911 resultobj = wxPyMake_wxObject(result, 0);
30912 }
30913 return resultobj;
30914 fail:
30915 return NULL;
30916 }
30917
30918
30919 static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30920 PyObject *resultobj;
30921 wxMenu *arg1 = (wxMenu *) 0 ;
30922 size_t arg2 ;
30923 wxMenuItem *result;
30924 PyObject * obj0 = 0 ;
30925 PyObject * obj1 = 0 ;
30926 char *kwnames[] = {
30927 (char *) "self",(char *) "position", NULL
30928 };
30929
30930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30933 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
30934 if (PyErr_Occurred()) SWIG_fail;
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30938
30939 wxPyEndAllowThreads(__tstate);
30940 if (PyErr_Occurred()) SWIG_fail;
30941 }
30942 {
30943 resultobj = wxPyMake_wxObject(result, 0);
30944 }
30945 return resultobj;
30946 fail:
30947 return NULL;
30948 }
30949
30950
30951 static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
30952 PyObject *resultobj;
30953 wxMenu *arg1 = (wxMenu *) 0 ;
30954 int arg2 ;
30955 bool arg3 ;
30956 PyObject * obj0 = 0 ;
30957 PyObject * obj1 = 0 ;
30958 PyObject * obj2 = 0 ;
30959 char *kwnames[] = {
30960 (char *) "self",(char *) "id",(char *) "enable", NULL
30961 };
30962
30963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30966 arg2 = (int)SWIG_As_int(obj1);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 arg3 = (bool)SWIG_As_bool(obj2);
30969 if (PyErr_Occurred()) SWIG_fail;
30970 {
30971 PyThreadState* __tstate = wxPyBeginAllowThreads();
30972 (arg1)->Enable(arg2,arg3);
30973
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 Py_INCREF(Py_None); resultobj = Py_None;
30978 return resultobj;
30979 fail:
30980 return NULL;
30981 }
30982
30983
30984 static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
30985 PyObject *resultobj;
30986 wxMenu *arg1 = (wxMenu *) 0 ;
30987 int arg2 ;
30988 bool result;
30989 PyObject * obj0 = 0 ;
30990 PyObject * obj1 = 0 ;
30991 char *kwnames[] = {
30992 (char *) "self",(char *) "id", NULL
30993 };
30994
30995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30998 arg2 = (int)SWIG_As_int(obj1);
30999 if (PyErr_Occurred()) SWIG_fail;
31000 {
31001 PyThreadState* __tstate = wxPyBeginAllowThreads();
31002 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
31003
31004 wxPyEndAllowThreads(__tstate);
31005 if (PyErr_Occurred()) SWIG_fail;
31006 }
31007 {
31008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31009 }
31010 return resultobj;
31011 fail:
31012 return NULL;
31013 }
31014
31015
31016 static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) {
31017 PyObject *resultobj;
31018 wxMenu *arg1 = (wxMenu *) 0 ;
31019 int arg2 ;
31020 bool arg3 ;
31021 PyObject * obj0 = 0 ;
31022 PyObject * obj1 = 0 ;
31023 PyObject * obj2 = 0 ;
31024 char *kwnames[] = {
31025 (char *) "self",(char *) "id",(char *) "check", NULL
31026 };
31027
31028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31031 arg2 = (int)SWIG_As_int(obj1);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 arg3 = (bool)SWIG_As_bool(obj2);
31034 if (PyErr_Occurred()) SWIG_fail;
31035 {
31036 PyThreadState* __tstate = wxPyBeginAllowThreads();
31037 (arg1)->Check(arg2,arg3);
31038
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 Py_INCREF(Py_None); resultobj = Py_None;
31043 return resultobj;
31044 fail:
31045 return NULL;
31046 }
31047
31048
31049 static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
31050 PyObject *resultobj;
31051 wxMenu *arg1 = (wxMenu *) 0 ;
31052 int arg2 ;
31053 bool result;
31054 PyObject * obj0 = 0 ;
31055 PyObject * obj1 = 0 ;
31056 char *kwnames[] = {
31057 (char *) "self",(char *) "id", NULL
31058 };
31059
31060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31063 arg2 = (int)SWIG_As_int(obj1);
31064 if (PyErr_Occurred()) SWIG_fail;
31065 {
31066 PyThreadState* __tstate = wxPyBeginAllowThreads();
31067 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
31068
31069 wxPyEndAllowThreads(__tstate);
31070 if (PyErr_Occurred()) SWIG_fail;
31071 }
31072 {
31073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31074 }
31075 return resultobj;
31076 fail:
31077 return NULL;
31078 }
31079
31080
31081 static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj;
31083 wxMenu *arg1 = (wxMenu *) 0 ;
31084 int arg2 ;
31085 wxString *arg3 = 0 ;
31086 bool temp3 = false ;
31087 PyObject * obj0 = 0 ;
31088 PyObject * obj1 = 0 ;
31089 PyObject * obj2 = 0 ;
31090 char *kwnames[] = {
31091 (char *) "self",(char *) "id",(char *) "label", NULL
31092 };
31093
31094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31097 arg2 = (int)SWIG_As_int(obj1);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 {
31100 arg3 = wxString_in_helper(obj2);
31101 if (arg3 == NULL) SWIG_fail;
31102 temp3 = true;
31103 }
31104 {
31105 PyThreadState* __tstate = wxPyBeginAllowThreads();
31106 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31107
31108 wxPyEndAllowThreads(__tstate);
31109 if (PyErr_Occurred()) SWIG_fail;
31110 }
31111 Py_INCREF(Py_None); resultobj = Py_None;
31112 {
31113 if (temp3)
31114 delete arg3;
31115 }
31116 return resultobj;
31117 fail:
31118 {
31119 if (temp3)
31120 delete arg3;
31121 }
31122 return NULL;
31123 }
31124
31125
31126 static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
31127 PyObject *resultobj;
31128 wxMenu *arg1 = (wxMenu *) 0 ;
31129 int arg2 ;
31130 wxString result;
31131 PyObject * obj0 = 0 ;
31132 PyObject * obj1 = 0 ;
31133 char *kwnames[] = {
31134 (char *) "self",(char *) "id", NULL
31135 };
31136
31137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31140 arg2 = (int)SWIG_As_int(obj1);
31141 if (PyErr_Occurred()) SWIG_fail;
31142 {
31143 PyThreadState* __tstate = wxPyBeginAllowThreads();
31144 result = ((wxMenu const *)arg1)->GetLabel(arg2);
31145
31146 wxPyEndAllowThreads(__tstate);
31147 if (PyErr_Occurred()) SWIG_fail;
31148 }
31149 {
31150 #if wxUSE_UNICODE
31151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31152 #else
31153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31154 #endif
31155 }
31156 return resultobj;
31157 fail:
31158 return NULL;
31159 }
31160
31161
31162 static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
31163 PyObject *resultobj;
31164 wxMenu *arg1 = (wxMenu *) 0 ;
31165 int arg2 ;
31166 wxString *arg3 = 0 ;
31167 bool temp3 = false ;
31168 PyObject * obj0 = 0 ;
31169 PyObject * obj1 = 0 ;
31170 PyObject * obj2 = 0 ;
31171 char *kwnames[] = {
31172 (char *) "self",(char *) "id",(char *) "helpString", NULL
31173 };
31174
31175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31178 arg2 = (int)SWIG_As_int(obj1);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 {
31181 arg3 = wxString_in_helper(obj2);
31182 if (arg3 == NULL) SWIG_fail;
31183 temp3 = true;
31184 }
31185 {
31186 PyThreadState* __tstate = wxPyBeginAllowThreads();
31187 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31188
31189 wxPyEndAllowThreads(__tstate);
31190 if (PyErr_Occurred()) SWIG_fail;
31191 }
31192 Py_INCREF(Py_None); resultobj = Py_None;
31193 {
31194 if (temp3)
31195 delete arg3;
31196 }
31197 return resultobj;
31198 fail:
31199 {
31200 if (temp3)
31201 delete arg3;
31202 }
31203 return NULL;
31204 }
31205
31206
31207 static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
31208 PyObject *resultobj;
31209 wxMenu *arg1 = (wxMenu *) 0 ;
31210 int arg2 ;
31211 wxString result;
31212 PyObject * obj0 = 0 ;
31213 PyObject * obj1 = 0 ;
31214 char *kwnames[] = {
31215 (char *) "self",(char *) "id", NULL
31216 };
31217
31218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31221 arg2 = (int)SWIG_As_int(obj1);
31222 if (PyErr_Occurred()) SWIG_fail;
31223 {
31224 PyThreadState* __tstate = wxPyBeginAllowThreads();
31225 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
31226
31227 wxPyEndAllowThreads(__tstate);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 {
31231 #if wxUSE_UNICODE
31232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31233 #else
31234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31235 #endif
31236 }
31237 return resultobj;
31238 fail:
31239 return NULL;
31240 }
31241
31242
31243 static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
31244 PyObject *resultobj;
31245 wxMenu *arg1 = (wxMenu *) 0 ;
31246 wxString *arg2 = 0 ;
31247 bool temp2 = false ;
31248 PyObject * obj0 = 0 ;
31249 PyObject * obj1 = 0 ;
31250 char *kwnames[] = {
31251 (char *) "self",(char *) "title", NULL
31252 };
31253
31254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
31255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31257 {
31258 arg2 = wxString_in_helper(obj1);
31259 if (arg2 == NULL) SWIG_fail;
31260 temp2 = true;
31261 }
31262 {
31263 PyThreadState* __tstate = wxPyBeginAllowThreads();
31264 (arg1)->SetTitle((wxString const &)*arg2);
31265
31266 wxPyEndAllowThreads(__tstate);
31267 if (PyErr_Occurred()) SWIG_fail;
31268 }
31269 Py_INCREF(Py_None); resultobj = Py_None;
31270 {
31271 if (temp2)
31272 delete arg2;
31273 }
31274 return resultobj;
31275 fail:
31276 {
31277 if (temp2)
31278 delete arg2;
31279 }
31280 return NULL;
31281 }
31282
31283
31284 static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj;
31286 wxMenu *arg1 = (wxMenu *) 0 ;
31287 wxString result;
31288 PyObject * obj0 = 0 ;
31289 char *kwnames[] = {
31290 (char *) "self", NULL
31291 };
31292
31293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
31294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31296 {
31297 PyThreadState* __tstate = wxPyBeginAllowThreads();
31298 result = ((wxMenu const *)arg1)->GetTitle();
31299
31300 wxPyEndAllowThreads(__tstate);
31301 if (PyErr_Occurred()) SWIG_fail;
31302 }
31303 {
31304 #if wxUSE_UNICODE
31305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31306 #else
31307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31308 #endif
31309 }
31310 return resultobj;
31311 fail:
31312 return NULL;
31313 }
31314
31315
31316 static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
31317 PyObject *resultobj;
31318 wxMenu *arg1 = (wxMenu *) 0 ;
31319 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 char *kwnames[] = {
31323 (char *) "self",(char *) "handler", NULL
31324 };
31325
31326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
31327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
31330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31331 {
31332 PyThreadState* __tstate = wxPyBeginAllowThreads();
31333 (arg1)->SetEventHandler(arg2);
31334
31335 wxPyEndAllowThreads(__tstate);
31336 if (PyErr_Occurred()) SWIG_fail;
31337 }
31338 Py_INCREF(Py_None); resultobj = Py_None;
31339 return resultobj;
31340 fail:
31341 return NULL;
31342 }
31343
31344
31345 static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
31346 PyObject *resultobj;
31347 wxMenu *arg1 = (wxMenu *) 0 ;
31348 wxEvtHandler *result;
31349 PyObject * obj0 = 0 ;
31350 char *kwnames[] = {
31351 (char *) "self", NULL
31352 };
31353
31354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
31355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31357 {
31358 PyThreadState* __tstate = wxPyBeginAllowThreads();
31359 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
31360
31361 wxPyEndAllowThreads(__tstate);
31362 if (PyErr_Occurred()) SWIG_fail;
31363 }
31364 {
31365 resultobj = wxPyMake_wxObject(result, 0);
31366 }
31367 return resultobj;
31368 fail:
31369 return NULL;
31370 }
31371
31372
31373 static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31374 PyObject *resultobj;
31375 wxMenu *arg1 = (wxMenu *) 0 ;
31376 wxWindow *arg2 = (wxWindow *) 0 ;
31377 PyObject * obj0 = 0 ;
31378 PyObject * obj1 = 0 ;
31379 char *kwnames[] = {
31380 (char *) "self",(char *) "win", NULL
31381 };
31382
31383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
31384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31388 {
31389 PyThreadState* __tstate = wxPyBeginAllowThreads();
31390 (arg1)->SetInvokingWindow(arg2);
31391
31392 wxPyEndAllowThreads(__tstate);
31393 if (PyErr_Occurred()) SWIG_fail;
31394 }
31395 Py_INCREF(Py_None); resultobj = Py_None;
31396 return resultobj;
31397 fail:
31398 return NULL;
31399 }
31400
31401
31402 static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31403 PyObject *resultobj;
31404 wxMenu *arg1 = (wxMenu *) 0 ;
31405 wxWindow *result;
31406 PyObject * obj0 = 0 ;
31407 char *kwnames[] = {
31408 (char *) "self", NULL
31409 };
31410
31411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
31412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31414 {
31415 PyThreadState* __tstate = wxPyBeginAllowThreads();
31416 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
31417
31418 wxPyEndAllowThreads(__tstate);
31419 if (PyErr_Occurred()) SWIG_fail;
31420 }
31421 {
31422 resultobj = wxPyMake_wxObject(result, 0);
31423 }
31424 return resultobj;
31425 fail:
31426 return NULL;
31427 }
31428
31429
31430 static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
31431 PyObject *resultobj;
31432 wxMenu *arg1 = (wxMenu *) 0 ;
31433 long result;
31434 PyObject * obj0 = 0 ;
31435 char *kwnames[] = {
31436 (char *) "self", NULL
31437 };
31438
31439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
31440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31442 {
31443 PyThreadState* __tstate = wxPyBeginAllowThreads();
31444 result = (long)((wxMenu const *)arg1)->GetStyle();
31445
31446 wxPyEndAllowThreads(__tstate);
31447 if (PyErr_Occurred()) SWIG_fail;
31448 }
31449 resultobj = SWIG_From_long((long)result);
31450 return resultobj;
31451 fail:
31452 return NULL;
31453 }
31454
31455
31456 static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) {
31457 PyObject *resultobj;
31458 wxMenu *arg1 = (wxMenu *) 0 ;
31459 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
31460 PyObject * obj0 = 0 ;
31461 PyObject * obj1 = 0 ;
31462 char *kwnames[] = {
31463 (char *) "self",(char *) "source", NULL
31464 };
31465
31466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
31467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31469 if (obj1) {
31470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
31471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31472 }
31473 {
31474 PyThreadState* __tstate = wxPyBeginAllowThreads();
31475 (arg1)->UpdateUI(arg2);
31476
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 Py_INCREF(Py_None); resultobj = Py_None;
31481 return resultobj;
31482 fail:
31483 return NULL;
31484 }
31485
31486
31487 static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
31488 PyObject *resultobj;
31489 wxMenu *arg1 = (wxMenu *) 0 ;
31490 wxMenuBar *result;
31491 PyObject * obj0 = 0 ;
31492 char *kwnames[] = {
31493 (char *) "self", NULL
31494 };
31495
31496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
31497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31499 {
31500 PyThreadState* __tstate = wxPyBeginAllowThreads();
31501 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
31502
31503 wxPyEndAllowThreads(__tstate);
31504 if (PyErr_Occurred()) SWIG_fail;
31505 }
31506 {
31507 resultobj = wxPyMake_wxObject(result, 0);
31508 }
31509 return resultobj;
31510 fail:
31511 return NULL;
31512 }
31513
31514
31515 static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
31516 PyObject *resultobj;
31517 wxMenu *arg1 = (wxMenu *) 0 ;
31518 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
31519 PyObject * obj0 = 0 ;
31520 PyObject * obj1 = 0 ;
31521 char *kwnames[] = {
31522 (char *) "self",(char *) "menubar", NULL
31523 };
31524
31525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
31526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
31529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31530 {
31531 PyThreadState* __tstate = wxPyBeginAllowThreads();
31532 (arg1)->Attach(arg2);
31533
31534 wxPyEndAllowThreads(__tstate);
31535 if (PyErr_Occurred()) SWIG_fail;
31536 }
31537 Py_INCREF(Py_None); resultobj = Py_None;
31538 return resultobj;
31539 fail:
31540 return NULL;
31541 }
31542
31543
31544 static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
31545 PyObject *resultobj;
31546 wxMenu *arg1 = (wxMenu *) 0 ;
31547 PyObject * obj0 = 0 ;
31548 char *kwnames[] = {
31549 (char *) "self", NULL
31550 };
31551
31552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
31553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31555 {
31556 PyThreadState* __tstate = wxPyBeginAllowThreads();
31557 (arg1)->Detach();
31558
31559 wxPyEndAllowThreads(__tstate);
31560 if (PyErr_Occurred()) SWIG_fail;
31561 }
31562 Py_INCREF(Py_None); resultobj = Py_None;
31563 return resultobj;
31564 fail:
31565 return NULL;
31566 }
31567
31568
31569 static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
31570 PyObject *resultobj;
31571 wxMenu *arg1 = (wxMenu *) 0 ;
31572 bool result;
31573 PyObject * obj0 = 0 ;
31574 char *kwnames[] = {
31575 (char *) "self", NULL
31576 };
31577
31578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
31579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31581 {
31582 PyThreadState* __tstate = wxPyBeginAllowThreads();
31583 result = (bool)((wxMenu const *)arg1)->IsAttached();
31584
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 {
31589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31590 }
31591 return resultobj;
31592 fail:
31593 return NULL;
31594 }
31595
31596
31597 static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) {
31598 PyObject *resultobj;
31599 wxMenu *arg1 = (wxMenu *) 0 ;
31600 wxMenu *arg2 = (wxMenu *) 0 ;
31601 PyObject * obj0 = 0 ;
31602 PyObject * obj1 = 0 ;
31603 char *kwnames[] = {
31604 (char *) "self",(char *) "parent", NULL
31605 };
31606
31607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
31608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 (arg1)->SetParent(arg2);
31615
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 Py_INCREF(Py_None); resultobj = Py_None;
31620 return resultobj;
31621 fail:
31622 return NULL;
31623 }
31624
31625
31626 static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
31627 PyObject *resultobj;
31628 wxMenu *arg1 = (wxMenu *) 0 ;
31629 wxMenu *result;
31630 PyObject * obj0 = 0 ;
31631 char *kwnames[] = {
31632 (char *) "self", NULL
31633 };
31634
31635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
31636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31638 {
31639 PyThreadState* __tstate = wxPyBeginAllowThreads();
31640 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
31641
31642 wxPyEndAllowThreads(__tstate);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 }
31645 {
31646 resultobj = wxPyMake_wxObject(result, 0);
31647 }
31648 return resultobj;
31649 fail:
31650 return NULL;
31651 }
31652
31653
31654 static PyObject * Menu_swigregister(PyObject *, PyObject *args) {
31655 PyObject *obj;
31656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31657 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
31658 Py_INCREF(obj);
31659 return Py_BuildValue((char *)"");
31660 }
31661 static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
31662 PyObject *resultobj;
31663 long arg1 = (long) 0 ;
31664 wxMenuBar *result;
31665 PyObject * obj0 = 0 ;
31666 char *kwnames[] = {
31667 (char *) "style", NULL
31668 };
31669
31670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
31671 if (obj0) {
31672 arg1 = (long)SWIG_As_long(obj0);
31673 if (PyErr_Occurred()) SWIG_fail;
31674 }
31675 {
31676 if (!wxPyCheckForApp()) SWIG_fail;
31677 PyThreadState* __tstate = wxPyBeginAllowThreads();
31678 result = (wxMenuBar *)new wxMenuBar(arg1);
31679
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1);
31684 return resultobj;
31685 fail:
31686 return NULL;
31687 }
31688
31689
31690 static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) {
31691 PyObject *resultobj;
31692 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31693 wxMenu *arg2 = (wxMenu *) 0 ;
31694 wxString *arg3 = 0 ;
31695 bool result;
31696 bool temp3 = false ;
31697 PyObject * obj0 = 0 ;
31698 PyObject * obj1 = 0 ;
31699 PyObject * obj2 = 0 ;
31700 char *kwnames[] = {
31701 (char *) "self",(char *) "menu",(char *) "title", NULL
31702 };
31703
31704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31709 {
31710 arg3 = wxString_in_helper(obj2);
31711 if (arg3 == NULL) SWIG_fail;
31712 temp3 = true;
31713 }
31714 {
31715 PyThreadState* __tstate = wxPyBeginAllowThreads();
31716 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
31717
31718 wxPyEndAllowThreads(__tstate);
31719 if (PyErr_Occurred()) SWIG_fail;
31720 }
31721 {
31722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31723 }
31724 {
31725 if (temp3)
31726 delete arg3;
31727 }
31728 return resultobj;
31729 fail:
31730 {
31731 if (temp3)
31732 delete arg3;
31733 }
31734 return NULL;
31735 }
31736
31737
31738 static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
31739 PyObject *resultobj;
31740 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31741 size_t arg2 ;
31742 wxMenu *arg3 = (wxMenu *) 0 ;
31743 wxString *arg4 = 0 ;
31744 bool result;
31745 bool temp4 = false ;
31746 PyObject * obj0 = 0 ;
31747 PyObject * obj1 = 0 ;
31748 PyObject * obj2 = 0 ;
31749 PyObject * obj3 = 0 ;
31750 char *kwnames[] = {
31751 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31752 };
31753
31754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31757 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31758 if (PyErr_Occurred()) SWIG_fail;
31759 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31761 {
31762 arg4 = wxString_in_helper(obj3);
31763 if (arg4 == NULL) SWIG_fail;
31764 temp4 = true;
31765 }
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
31769
31770 wxPyEndAllowThreads(__tstate);
31771 if (PyErr_Occurred()) SWIG_fail;
31772 }
31773 {
31774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31775 }
31776 {
31777 if (temp4)
31778 delete arg4;
31779 }
31780 return resultobj;
31781 fail:
31782 {
31783 if (temp4)
31784 delete arg4;
31785 }
31786 return NULL;
31787 }
31788
31789
31790 static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) {
31791 PyObject *resultobj;
31792 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31793 size_t result;
31794 PyObject * obj0 = 0 ;
31795 char *kwnames[] = {
31796 (char *) "self", NULL
31797 };
31798
31799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31802 {
31803 PyThreadState* __tstate = wxPyBeginAllowThreads();
31804 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31805
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
31810 return resultobj;
31811 fail:
31812 return NULL;
31813 }
31814
31815
31816 static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
31817 PyObject *resultobj;
31818 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31819 size_t arg2 ;
31820 wxMenu *result;
31821 PyObject * obj0 = 0 ;
31822 PyObject * obj1 = 0 ;
31823 char *kwnames[] = {
31824 (char *) "self",(char *) "pos", NULL
31825 };
31826
31827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31830 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31831 if (PyErr_Occurred()) SWIG_fail;
31832 {
31833 PyThreadState* __tstate = wxPyBeginAllowThreads();
31834 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31835
31836 wxPyEndAllowThreads(__tstate);
31837 if (PyErr_Occurred()) SWIG_fail;
31838 }
31839 {
31840 resultobj = wxPyMake_wxObject(result, 0);
31841 }
31842 return resultobj;
31843 fail:
31844 return NULL;
31845 }
31846
31847
31848 static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
31849 PyObject *resultobj;
31850 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31851 size_t arg2 ;
31852 wxMenu *arg3 = (wxMenu *) 0 ;
31853 wxString *arg4 = 0 ;
31854 wxMenu *result;
31855 bool temp4 = false ;
31856 PyObject * obj0 = 0 ;
31857 PyObject * obj1 = 0 ;
31858 PyObject * obj2 = 0 ;
31859 PyObject * obj3 = 0 ;
31860 char *kwnames[] = {
31861 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31862 };
31863
31864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31867 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31868 if (PyErr_Occurred()) SWIG_fail;
31869 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31871 {
31872 arg4 = wxString_in_helper(obj3);
31873 if (arg4 == NULL) SWIG_fail;
31874 temp4 = true;
31875 }
31876 {
31877 PyThreadState* __tstate = wxPyBeginAllowThreads();
31878 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31879
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 {
31884 resultobj = wxPyMake_wxObject(result, 0);
31885 }
31886 {
31887 if (temp4)
31888 delete arg4;
31889 }
31890 return resultobj;
31891 fail:
31892 {
31893 if (temp4)
31894 delete arg4;
31895 }
31896 return NULL;
31897 }
31898
31899
31900 static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
31901 PyObject *resultobj;
31902 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31903 size_t arg2 ;
31904 wxMenu *result;
31905 PyObject * obj0 = 0 ;
31906 PyObject * obj1 = 0 ;
31907 char *kwnames[] = {
31908 (char *) "self",(char *) "pos", NULL
31909 };
31910
31911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31914 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31915 if (PyErr_Occurred()) SWIG_fail;
31916 {
31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
31918 result = (wxMenu *)(arg1)->Remove(arg2);
31919
31920 wxPyEndAllowThreads(__tstate);
31921 if (PyErr_Occurred()) SWIG_fail;
31922 }
31923 {
31924 resultobj = wxPyMake_wxObject(result, 0);
31925 }
31926 return resultobj;
31927 fail:
31928 return NULL;
31929 }
31930
31931
31932 static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) {
31933 PyObject *resultobj;
31934 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31935 size_t arg2 ;
31936 bool arg3 ;
31937 PyObject * obj0 = 0 ;
31938 PyObject * obj1 = 0 ;
31939 PyObject * obj2 = 0 ;
31940 char *kwnames[] = {
31941 (char *) "self",(char *) "pos",(char *) "enable", NULL
31942 };
31943
31944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31947 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31948 if (PyErr_Occurred()) SWIG_fail;
31949 arg3 = (bool)SWIG_As_bool(obj2);
31950 if (PyErr_Occurred()) SWIG_fail;
31951 {
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
31953 (arg1)->EnableTop(arg2,arg3);
31954
31955 wxPyEndAllowThreads(__tstate);
31956 if (PyErr_Occurred()) SWIG_fail;
31957 }
31958 Py_INCREF(Py_None); resultobj = Py_None;
31959 return resultobj;
31960 fail:
31961 return NULL;
31962 }
31963
31964
31965 static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) {
31966 PyObject *resultobj;
31967 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31968 size_t arg2 ;
31969 bool result;
31970 PyObject * obj0 = 0 ;
31971 PyObject * obj1 = 0 ;
31972 char *kwnames[] = {
31973 (char *) "self",(char *) "pos", NULL
31974 };
31975
31976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31979 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
31980 if (PyErr_Occurred()) SWIG_fail;
31981 {
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31984
31985 wxPyEndAllowThreads(__tstate);
31986 if (PyErr_Occurred()) SWIG_fail;
31987 }
31988 {
31989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31990 }
31991 return resultobj;
31992 fail:
31993 return NULL;
31994 }
31995
31996
31997 static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
31998 PyObject *resultobj;
31999 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32000 size_t arg2 ;
32001 wxString *arg3 = 0 ;
32002 bool temp3 = false ;
32003 PyObject * obj0 = 0 ;
32004 PyObject * obj1 = 0 ;
32005 PyObject * obj2 = 0 ;
32006 char *kwnames[] = {
32007 (char *) "self",(char *) "pos",(char *) "label", NULL
32008 };
32009
32010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
32011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32013 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 {
32016 arg3 = wxString_in_helper(obj2);
32017 if (arg3 == NULL) SWIG_fail;
32018 temp3 = true;
32019 }
32020 {
32021 PyThreadState* __tstate = wxPyBeginAllowThreads();
32022 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
32023
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 Py_INCREF(Py_None); resultobj = Py_None;
32028 {
32029 if (temp3)
32030 delete arg3;
32031 }
32032 return resultobj;
32033 fail:
32034 {
32035 if (temp3)
32036 delete arg3;
32037 }
32038 return NULL;
32039 }
32040
32041
32042 static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
32043 PyObject *resultobj;
32044 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32045 size_t arg2 ;
32046 wxString result;
32047 PyObject * obj0 = 0 ;
32048 PyObject * obj1 = 0 ;
32049 char *kwnames[] = {
32050 (char *) "self",(char *) "pos", NULL
32051 };
32052
32053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
32054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32056 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
32057 if (PyErr_Occurred()) SWIG_fail;
32058 {
32059 PyThreadState* __tstate = wxPyBeginAllowThreads();
32060 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
32061
32062 wxPyEndAllowThreads(__tstate);
32063 if (PyErr_Occurred()) SWIG_fail;
32064 }
32065 {
32066 #if wxUSE_UNICODE
32067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32068 #else
32069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32070 #endif
32071 }
32072 return resultobj;
32073 fail:
32074 return NULL;
32075 }
32076
32077
32078 static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
32079 PyObject *resultobj;
32080 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32081 wxString *arg2 = 0 ;
32082 wxString *arg3 = 0 ;
32083 int result;
32084 bool temp2 = false ;
32085 bool temp3 = false ;
32086 PyObject * obj0 = 0 ;
32087 PyObject * obj1 = 0 ;
32088 PyObject * obj2 = 0 ;
32089 char *kwnames[] = {
32090 (char *) "self",(char *) "menu",(char *) "item", NULL
32091 };
32092
32093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
32094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32096 {
32097 arg2 = wxString_in_helper(obj1);
32098 if (arg2 == NULL) SWIG_fail;
32099 temp2 = true;
32100 }
32101 {
32102 arg3 = wxString_in_helper(obj2);
32103 if (arg3 == NULL) SWIG_fail;
32104 temp3 = true;
32105 }
32106 {
32107 PyThreadState* __tstate = wxPyBeginAllowThreads();
32108 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
32109
32110 wxPyEndAllowThreads(__tstate);
32111 if (PyErr_Occurred()) SWIG_fail;
32112 }
32113 resultobj = SWIG_From_int((int)result);
32114 {
32115 if (temp2)
32116 delete arg2;
32117 }
32118 {
32119 if (temp3)
32120 delete arg3;
32121 }
32122 return resultobj;
32123 fail:
32124 {
32125 if (temp2)
32126 delete arg2;
32127 }
32128 {
32129 if (temp3)
32130 delete arg3;
32131 }
32132 return NULL;
32133 }
32134
32135
32136 static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
32137 PyObject *resultobj;
32138 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32139 int arg2 ;
32140 wxMenuItem *result;
32141 PyObject * obj0 = 0 ;
32142 PyObject * obj1 = 0 ;
32143 char *kwnames[] = {
32144 (char *) "self",(char *) "id", NULL
32145 };
32146
32147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
32148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32150 arg2 = (int)SWIG_As_int(obj1);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 {
32153 PyThreadState* __tstate = wxPyBeginAllowThreads();
32154 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
32155
32156 wxPyEndAllowThreads(__tstate);
32157 if (PyErr_Occurred()) SWIG_fail;
32158 }
32159 {
32160 resultobj = wxPyMake_wxObject(result, 0);
32161 }
32162 return resultobj;
32163 fail:
32164 return NULL;
32165 }
32166
32167
32168 static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) {
32169 PyObject *resultobj;
32170 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32171 wxString *arg2 = 0 ;
32172 int result;
32173 bool temp2 = false ;
32174 PyObject * obj0 = 0 ;
32175 PyObject * obj1 = 0 ;
32176 char *kwnames[] = {
32177 (char *) "self",(char *) "title", NULL
32178 };
32179
32180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
32181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32183 {
32184 arg2 = wxString_in_helper(obj1);
32185 if (arg2 == NULL) SWIG_fail;
32186 temp2 = true;
32187 }
32188 {
32189 PyThreadState* __tstate = wxPyBeginAllowThreads();
32190 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
32191
32192 wxPyEndAllowThreads(__tstate);
32193 if (PyErr_Occurred()) SWIG_fail;
32194 }
32195 resultobj = SWIG_From_int((int)result);
32196 {
32197 if (temp2)
32198 delete arg2;
32199 }
32200 return resultobj;
32201 fail:
32202 {
32203 if (temp2)
32204 delete arg2;
32205 }
32206 return NULL;
32207 }
32208
32209
32210 static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
32211 PyObject *resultobj;
32212 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32213 int arg2 ;
32214 bool arg3 ;
32215 PyObject * obj0 = 0 ;
32216 PyObject * obj1 = 0 ;
32217 PyObject * obj2 = 0 ;
32218 char *kwnames[] = {
32219 (char *) "self",(char *) "id",(char *) "enable", NULL
32220 };
32221
32222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
32223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32225 arg2 = (int)SWIG_As_int(obj1);
32226 if (PyErr_Occurred()) SWIG_fail;
32227 arg3 = (bool)SWIG_As_bool(obj2);
32228 if (PyErr_Occurred()) SWIG_fail;
32229 {
32230 PyThreadState* __tstate = wxPyBeginAllowThreads();
32231 (arg1)->Enable(arg2,arg3);
32232
32233 wxPyEndAllowThreads(__tstate);
32234 if (PyErr_Occurred()) SWIG_fail;
32235 }
32236 Py_INCREF(Py_None); resultobj = Py_None;
32237 return resultobj;
32238 fail:
32239 return NULL;
32240 }
32241
32242
32243 static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) {
32244 PyObject *resultobj;
32245 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32246 int arg2 ;
32247 bool arg3 ;
32248 PyObject * obj0 = 0 ;
32249 PyObject * obj1 = 0 ;
32250 PyObject * obj2 = 0 ;
32251 char *kwnames[] = {
32252 (char *) "self",(char *) "id",(char *) "check", NULL
32253 };
32254
32255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
32256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32258 arg2 = (int)SWIG_As_int(obj1);
32259 if (PyErr_Occurred()) SWIG_fail;
32260 arg3 = (bool)SWIG_As_bool(obj2);
32261 if (PyErr_Occurred()) SWIG_fail;
32262 {
32263 PyThreadState* __tstate = wxPyBeginAllowThreads();
32264 (arg1)->Check(arg2,arg3);
32265
32266 wxPyEndAllowThreads(__tstate);
32267 if (PyErr_Occurred()) SWIG_fail;
32268 }
32269 Py_INCREF(Py_None); resultobj = Py_None;
32270 return resultobj;
32271 fail:
32272 return NULL;
32273 }
32274
32275
32276 static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
32277 PyObject *resultobj;
32278 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32279 int arg2 ;
32280 bool result;
32281 PyObject * obj0 = 0 ;
32282 PyObject * obj1 = 0 ;
32283 char *kwnames[] = {
32284 (char *) "self",(char *) "id", NULL
32285 };
32286
32287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
32288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32290 arg2 = (int)SWIG_As_int(obj1);
32291 if (PyErr_Occurred()) SWIG_fail;
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
32295
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 {
32300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32301 }
32302 return resultobj;
32303 fail:
32304 return NULL;
32305 }
32306
32307
32308 static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
32309 PyObject *resultobj;
32310 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32311 int arg2 ;
32312 bool result;
32313 PyObject * obj0 = 0 ;
32314 PyObject * obj1 = 0 ;
32315 char *kwnames[] = {
32316 (char *) "self",(char *) "id", NULL
32317 };
32318
32319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
32320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32322 arg2 = (int)SWIG_As_int(obj1);
32323 if (PyErr_Occurred()) SWIG_fail;
32324 {
32325 PyThreadState* __tstate = wxPyBeginAllowThreads();
32326 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
32327
32328 wxPyEndAllowThreads(__tstate);
32329 if (PyErr_Occurred()) SWIG_fail;
32330 }
32331 {
32332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32333 }
32334 return resultobj;
32335 fail:
32336 return NULL;
32337 }
32338
32339
32340 static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
32341 PyObject *resultobj;
32342 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32343 int arg2 ;
32344 wxString *arg3 = 0 ;
32345 bool temp3 = false ;
32346 PyObject * obj0 = 0 ;
32347 PyObject * obj1 = 0 ;
32348 PyObject * obj2 = 0 ;
32349 char *kwnames[] = {
32350 (char *) "self",(char *) "id",(char *) "label", NULL
32351 };
32352
32353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
32354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32356 arg2 = (int)SWIG_As_int(obj1);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 {
32359 arg3 = wxString_in_helper(obj2);
32360 if (arg3 == NULL) SWIG_fail;
32361 temp3 = true;
32362 }
32363 {
32364 PyThreadState* __tstate = wxPyBeginAllowThreads();
32365 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
32366
32367 wxPyEndAllowThreads(__tstate);
32368 if (PyErr_Occurred()) SWIG_fail;
32369 }
32370 Py_INCREF(Py_None); resultobj = Py_None;
32371 {
32372 if (temp3)
32373 delete arg3;
32374 }
32375 return resultobj;
32376 fail:
32377 {
32378 if (temp3)
32379 delete arg3;
32380 }
32381 return NULL;
32382 }
32383
32384
32385 static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
32386 PyObject *resultobj;
32387 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32388 int arg2 ;
32389 wxString result;
32390 PyObject * obj0 = 0 ;
32391 PyObject * obj1 = 0 ;
32392 char *kwnames[] = {
32393 (char *) "self",(char *) "id", NULL
32394 };
32395
32396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
32397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32399 arg2 = (int)SWIG_As_int(obj1);
32400 if (PyErr_Occurred()) SWIG_fail;
32401 {
32402 PyThreadState* __tstate = wxPyBeginAllowThreads();
32403 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
32404
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 {
32409 #if wxUSE_UNICODE
32410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32411 #else
32412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32413 #endif
32414 }
32415 return resultobj;
32416 fail:
32417 return NULL;
32418 }
32419
32420
32421 static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
32422 PyObject *resultobj;
32423 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32424 int arg2 ;
32425 wxString *arg3 = 0 ;
32426 bool temp3 = false ;
32427 PyObject * obj0 = 0 ;
32428 PyObject * obj1 = 0 ;
32429 PyObject * obj2 = 0 ;
32430 char *kwnames[] = {
32431 (char *) "self",(char *) "id",(char *) "helpString", NULL
32432 };
32433
32434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
32435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32437 arg2 = (int)SWIG_As_int(obj1);
32438 if (PyErr_Occurred()) SWIG_fail;
32439 {
32440 arg3 = wxString_in_helper(obj2);
32441 if (arg3 == NULL) SWIG_fail;
32442 temp3 = true;
32443 }
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
32447
32448 wxPyEndAllowThreads(__tstate);
32449 if (PyErr_Occurred()) SWIG_fail;
32450 }
32451 Py_INCREF(Py_None); resultobj = Py_None;
32452 {
32453 if (temp3)
32454 delete arg3;
32455 }
32456 return resultobj;
32457 fail:
32458 {
32459 if (temp3)
32460 delete arg3;
32461 }
32462 return NULL;
32463 }
32464
32465
32466 static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
32467 PyObject *resultobj;
32468 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32469 int arg2 ;
32470 wxString result;
32471 PyObject * obj0 = 0 ;
32472 PyObject * obj1 = 0 ;
32473 char *kwnames[] = {
32474 (char *) "self",(char *) "id", NULL
32475 };
32476
32477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
32478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32480 arg2 = (int)SWIG_As_int(obj1);
32481 if (PyErr_Occurred()) SWIG_fail;
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
32484 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
32485
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 {
32490 #if wxUSE_UNICODE
32491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32492 #else
32493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32494 #endif
32495 }
32496 return resultobj;
32497 fail:
32498 return NULL;
32499 }
32500
32501
32502 static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj;
32504 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32505 wxFrame *result;
32506 PyObject * obj0 = 0 ;
32507 char *kwnames[] = {
32508 (char *) "self", NULL
32509 };
32510
32511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
32512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32514 {
32515 PyThreadState* __tstate = wxPyBeginAllowThreads();
32516 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
32517
32518 wxPyEndAllowThreads(__tstate);
32519 if (PyErr_Occurred()) SWIG_fail;
32520 }
32521 {
32522 resultobj = wxPyMake_wxObject(result, 0);
32523 }
32524 return resultobj;
32525 fail:
32526 return NULL;
32527 }
32528
32529
32530 static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
32531 PyObject *resultobj;
32532 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32533 bool result;
32534 PyObject * obj0 = 0 ;
32535 char *kwnames[] = {
32536 (char *) "self", NULL
32537 };
32538
32539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
32540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32542 {
32543 PyThreadState* __tstate = wxPyBeginAllowThreads();
32544 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
32545
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 {
32550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32551 }
32552 return resultobj;
32553 fail:
32554 return NULL;
32555 }
32556
32557
32558 static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
32559 PyObject *resultobj;
32560 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32561 wxFrame *arg2 = (wxFrame *) 0 ;
32562 PyObject * obj0 = 0 ;
32563 PyObject * obj1 = 0 ;
32564 char *kwnames[] = {
32565 (char *) "self",(char *) "frame", NULL
32566 };
32567
32568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
32569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
32572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32573 {
32574 PyThreadState* __tstate = wxPyBeginAllowThreads();
32575 (arg1)->Attach(arg2);
32576
32577 wxPyEndAllowThreads(__tstate);
32578 if (PyErr_Occurred()) SWIG_fail;
32579 }
32580 Py_INCREF(Py_None); resultobj = Py_None;
32581 return resultobj;
32582 fail:
32583 return NULL;
32584 }
32585
32586
32587 static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
32588 PyObject *resultobj;
32589 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32590 PyObject * obj0 = 0 ;
32591 char *kwnames[] = {
32592 (char *) "self", NULL
32593 };
32594
32595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
32596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32598 {
32599 PyThreadState* __tstate = wxPyBeginAllowThreads();
32600 (arg1)->Detach();
32601
32602 wxPyEndAllowThreads(__tstate);
32603 if (PyErr_Occurred()) SWIG_fail;
32604 }
32605 Py_INCREF(Py_None); resultobj = Py_None;
32606 return resultobj;
32607 fail:
32608 return NULL;
32609 }
32610
32611
32612 static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) {
32613 PyObject *obj;
32614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32615 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
32616 Py_INCREF(obj);
32617 return Py_BuildValue((char *)"");
32618 }
32619 static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
32620 PyObject *resultobj;
32621 wxMenu *arg1 = (wxMenu *) NULL ;
32622 int arg2 = (int) wxID_ANY ;
32623 wxString const &arg3_defvalue = wxPyEmptyString ;
32624 wxString *arg3 = (wxString *) &arg3_defvalue ;
32625 wxString const &arg4_defvalue = wxPyEmptyString ;
32626 wxString *arg4 = (wxString *) &arg4_defvalue ;
32627 int arg5 = (int) wxITEM_NORMAL ;
32628 wxMenu *arg6 = (wxMenu *) NULL ;
32629 wxMenuItem *result;
32630 bool temp3 = false ;
32631 bool temp4 = false ;
32632 PyObject * obj0 = 0 ;
32633 PyObject * obj1 = 0 ;
32634 PyObject * obj2 = 0 ;
32635 PyObject * obj3 = 0 ;
32636 PyObject * obj4 = 0 ;
32637 PyObject * obj5 = 0 ;
32638 char *kwnames[] = {
32639 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
32640 };
32641
32642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32643 if (obj0) {
32644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
32645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32646 }
32647 if (obj1) {
32648 arg2 = (int)SWIG_As_int(obj1);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 if (obj2) {
32652 {
32653 arg3 = wxString_in_helper(obj2);
32654 if (arg3 == NULL) SWIG_fail;
32655 temp3 = true;
32656 }
32657 }
32658 if (obj3) {
32659 {
32660 arg4 = wxString_in_helper(obj3);
32661 if (arg4 == NULL) SWIG_fail;
32662 temp4 = true;
32663 }
32664 }
32665 if (obj4) {
32666 arg5 = (int)SWIG_As_int(obj4);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 if (obj5) {
32670 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
32671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32672 }
32673 {
32674 PyThreadState* __tstate = wxPyBeginAllowThreads();
32675 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
32676
32677 wxPyEndAllowThreads(__tstate);
32678 if (PyErr_Occurred()) SWIG_fail;
32679 }
32680 {
32681 resultobj = wxPyMake_wxObject(result, 1);
32682 }
32683 {
32684 if (temp3)
32685 delete arg3;
32686 }
32687 {
32688 if (temp4)
32689 delete arg4;
32690 }
32691 return resultobj;
32692 fail:
32693 {
32694 if (temp3)
32695 delete arg3;
32696 }
32697 {
32698 if (temp4)
32699 delete arg4;
32700 }
32701 return NULL;
32702 }
32703
32704
32705 static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
32706 PyObject *resultobj;
32707 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32708 wxMenu *result;
32709 PyObject * obj0 = 0 ;
32710 char *kwnames[] = {
32711 (char *) "self", NULL
32712 };
32713
32714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
32715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32717 {
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
32720
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 {
32725 resultobj = wxPyMake_wxObject(result, 0);
32726 }
32727 return resultobj;
32728 fail:
32729 return NULL;
32730 }
32731
32732
32733 static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
32734 PyObject *resultobj;
32735 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32736 wxMenu *arg2 = (wxMenu *) 0 ;
32737 PyObject * obj0 = 0 ;
32738 PyObject * obj1 = 0 ;
32739 char *kwnames[] = {
32740 (char *) "self",(char *) "menu", NULL
32741 };
32742
32743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
32744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32748 {
32749 PyThreadState* __tstate = wxPyBeginAllowThreads();
32750 (arg1)->SetMenu(arg2);
32751
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 Py_INCREF(Py_None); resultobj = Py_None;
32756 return resultobj;
32757 fail:
32758 return NULL;
32759 }
32760
32761
32762 static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
32763 PyObject *resultobj;
32764 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32765 int arg2 ;
32766 PyObject * obj0 = 0 ;
32767 PyObject * obj1 = 0 ;
32768 char *kwnames[] = {
32769 (char *) "self",(char *) "id", NULL
32770 };
32771
32772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
32773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32775 arg2 = (int)SWIG_As_int(obj1);
32776 if (PyErr_Occurred()) SWIG_fail;
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 (arg1)->SetId(arg2);
32780
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 Py_INCREF(Py_None); resultobj = Py_None;
32785 return resultobj;
32786 fail:
32787 return NULL;
32788 }
32789
32790
32791 static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
32792 PyObject *resultobj;
32793 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32794 int result;
32795 PyObject * obj0 = 0 ;
32796 char *kwnames[] = {
32797 (char *) "self", NULL
32798 };
32799
32800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32803 {
32804 PyThreadState* __tstate = wxPyBeginAllowThreads();
32805 result = (int)((wxMenuItem const *)arg1)->GetId();
32806
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_From_int((int)result);
32811 return resultobj;
32812 fail:
32813 return NULL;
32814 }
32815
32816
32817 static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
32818 PyObject *resultobj;
32819 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32820 bool result;
32821 PyObject * obj0 = 0 ;
32822 char *kwnames[] = {
32823 (char *) "self", NULL
32824 };
32825
32826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32829 {
32830 PyThreadState* __tstate = wxPyBeginAllowThreads();
32831 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32832
32833 wxPyEndAllowThreads(__tstate);
32834 if (PyErr_Occurred()) SWIG_fail;
32835 }
32836 {
32837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32838 }
32839 return resultobj;
32840 fail:
32841 return NULL;
32842 }
32843
32844
32845 static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
32846 PyObject *resultobj;
32847 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32848 wxString *arg2 = 0 ;
32849 bool temp2 = false ;
32850 PyObject * obj0 = 0 ;
32851 PyObject * obj1 = 0 ;
32852 char *kwnames[] = {
32853 (char *) "self",(char *) "str", NULL
32854 };
32855
32856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32859 {
32860 arg2 = wxString_in_helper(obj1);
32861 if (arg2 == NULL) SWIG_fail;
32862 temp2 = true;
32863 }
32864 {
32865 PyThreadState* __tstate = wxPyBeginAllowThreads();
32866 (arg1)->SetText((wxString const &)*arg2);
32867
32868 wxPyEndAllowThreads(__tstate);
32869 if (PyErr_Occurred()) SWIG_fail;
32870 }
32871 Py_INCREF(Py_None); resultobj = Py_None;
32872 {
32873 if (temp2)
32874 delete arg2;
32875 }
32876 return resultobj;
32877 fail:
32878 {
32879 if (temp2)
32880 delete arg2;
32881 }
32882 return NULL;
32883 }
32884
32885
32886 static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
32887 PyObject *resultobj;
32888 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32889 wxString result;
32890 PyObject * obj0 = 0 ;
32891 char *kwnames[] = {
32892 (char *) "self", NULL
32893 };
32894
32895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32898 {
32899 PyThreadState* __tstate = wxPyBeginAllowThreads();
32900 result = ((wxMenuItem const *)arg1)->GetLabel();
32901
32902 wxPyEndAllowThreads(__tstate);
32903 if (PyErr_Occurred()) SWIG_fail;
32904 }
32905 {
32906 #if wxUSE_UNICODE
32907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32908 #else
32909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32910 #endif
32911 }
32912 return resultobj;
32913 fail:
32914 return NULL;
32915 }
32916
32917
32918 static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
32919 PyObject *resultobj;
32920 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32921 wxString *result;
32922 PyObject * obj0 = 0 ;
32923 char *kwnames[] = {
32924 (char *) "self", NULL
32925 };
32926
32927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32930 {
32931 PyThreadState* __tstate = wxPyBeginAllowThreads();
32932 {
32933 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32934 result = (wxString *) &_result_ref;
32935 }
32936
32937 wxPyEndAllowThreads(__tstate);
32938 if (PyErr_Occurred()) SWIG_fail;
32939 }
32940 {
32941 #if wxUSE_UNICODE
32942 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32943 #else
32944 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32945 #endif
32946 }
32947 return resultobj;
32948 fail:
32949 return NULL;
32950 }
32951
32952
32953 static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) {
32954 PyObject *resultobj;
32955 wxString *arg1 = 0 ;
32956 wxString result;
32957 bool temp1 = false ;
32958 PyObject * obj0 = 0 ;
32959 char *kwnames[] = {
32960 (char *) "text", NULL
32961 };
32962
32963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32964 {
32965 arg1 = wxString_in_helper(obj0);
32966 if (arg1 == NULL) SWIG_fail;
32967 temp1 = true;
32968 }
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32972
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 {
32977 #if wxUSE_UNICODE
32978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32979 #else
32980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32981 #endif
32982 }
32983 {
32984 if (temp1)
32985 delete arg1;
32986 }
32987 return resultobj;
32988 fail:
32989 {
32990 if (temp1)
32991 delete arg1;
32992 }
32993 return NULL;
32994 }
32995
32996
32997 static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
32998 PyObject *resultobj;
32999 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33000 int result;
33001 PyObject * obj0 = 0 ;
33002 char *kwnames[] = {
33003 (char *) "self", NULL
33004 };
33005
33006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
33007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33009 {
33010 PyThreadState* __tstate = wxPyBeginAllowThreads();
33011 result = (int)((wxMenuItem const *)arg1)->GetKind();
33012
33013 wxPyEndAllowThreads(__tstate);
33014 if (PyErr_Occurred()) SWIG_fail;
33015 }
33016 resultobj = SWIG_From_int((int)result);
33017 return resultobj;
33018 fail:
33019 return NULL;
33020 }
33021
33022
33023 static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) {
33024 PyObject *resultobj;
33025 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33026 int arg2 ;
33027 PyObject * obj0 = 0 ;
33028 PyObject * obj1 = 0 ;
33029 char *kwnames[] = {
33030 (char *) "self",(char *) "kind", NULL
33031 };
33032
33033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
33034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33036 arg2 = (int)SWIG_As_int(obj1);
33037 if (PyErr_Occurred()) SWIG_fail;
33038 {
33039 PyThreadState* __tstate = wxPyBeginAllowThreads();
33040 (arg1)->SetKind((wxItemKind )arg2);
33041
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 Py_INCREF(Py_None); resultobj = Py_None;
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
33053 PyObject *resultobj;
33054 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33055 bool arg2 ;
33056 PyObject * obj0 = 0 ;
33057 PyObject * obj1 = 0 ;
33058 char *kwnames[] = {
33059 (char *) "self",(char *) "checkable", NULL
33060 };
33061
33062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
33063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33065 arg2 = (bool)SWIG_As_bool(obj1);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 {
33068 PyThreadState* __tstate = wxPyBeginAllowThreads();
33069 (arg1)->SetCheckable(arg2);
33070
33071 wxPyEndAllowThreads(__tstate);
33072 if (PyErr_Occurred()) SWIG_fail;
33073 }
33074 Py_INCREF(Py_None); resultobj = Py_None;
33075 return resultobj;
33076 fail:
33077 return NULL;
33078 }
33079
33080
33081 static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
33082 PyObject *resultobj;
33083 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33084 bool result;
33085 PyObject * obj0 = 0 ;
33086 char *kwnames[] = {
33087 (char *) "self", NULL
33088 };
33089
33090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
33091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33093 {
33094 PyThreadState* __tstate = wxPyBeginAllowThreads();
33095 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
33096
33097 wxPyEndAllowThreads(__tstate);
33098 if (PyErr_Occurred()) SWIG_fail;
33099 }
33100 {
33101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33102 }
33103 return resultobj;
33104 fail:
33105 return NULL;
33106 }
33107
33108
33109 static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj;
33111 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33112 bool result;
33113 PyObject * obj0 = 0 ;
33114 char *kwnames[] = {
33115 (char *) "self", NULL
33116 };
33117
33118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
33119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
33124
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 {
33129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33130 }
33131 return resultobj;
33132 fail:
33133 return NULL;
33134 }
33135
33136
33137 static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
33138 PyObject *resultobj;
33139 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33140 wxMenu *arg2 = (wxMenu *) 0 ;
33141 PyObject * obj0 = 0 ;
33142 PyObject * obj1 = 0 ;
33143 char *kwnames[] = {
33144 (char *) "self",(char *) "menu", NULL
33145 };
33146
33147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
33148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33150 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
33151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33152 {
33153 PyThreadState* __tstate = wxPyBeginAllowThreads();
33154 (arg1)->SetSubMenu(arg2);
33155
33156 wxPyEndAllowThreads(__tstate);
33157 if (PyErr_Occurred()) SWIG_fail;
33158 }
33159 Py_INCREF(Py_None); resultobj = Py_None;
33160 return resultobj;
33161 fail:
33162 return NULL;
33163 }
33164
33165
33166 static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
33167 PyObject *resultobj;
33168 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33169 wxMenu *result;
33170 PyObject * obj0 = 0 ;
33171 char *kwnames[] = {
33172 (char *) "self", NULL
33173 };
33174
33175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
33176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33178 {
33179 PyThreadState* __tstate = wxPyBeginAllowThreads();
33180 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
33181
33182 wxPyEndAllowThreads(__tstate);
33183 if (PyErr_Occurred()) SWIG_fail;
33184 }
33185 {
33186 resultobj = wxPyMake_wxObject(result, 0);
33187 }
33188 return resultobj;
33189 fail:
33190 return NULL;
33191 }
33192
33193
33194 static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
33195 PyObject *resultobj;
33196 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33197 bool arg2 = (bool) true ;
33198 PyObject * obj0 = 0 ;
33199 PyObject * obj1 = 0 ;
33200 char *kwnames[] = {
33201 (char *) "self",(char *) "enable", NULL
33202 };
33203
33204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
33205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33207 if (obj1) {
33208 arg2 = (bool)SWIG_As_bool(obj1);
33209 if (PyErr_Occurred()) SWIG_fail;
33210 }
33211 {
33212 PyThreadState* __tstate = wxPyBeginAllowThreads();
33213 (arg1)->Enable(arg2);
33214
33215 wxPyEndAllowThreads(__tstate);
33216 if (PyErr_Occurred()) SWIG_fail;
33217 }
33218 Py_INCREF(Py_None); resultobj = Py_None;
33219 return resultobj;
33220 fail:
33221 return NULL;
33222 }
33223
33224
33225 static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
33226 PyObject *resultobj;
33227 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33228 bool result;
33229 PyObject * obj0 = 0 ;
33230 char *kwnames[] = {
33231 (char *) "self", NULL
33232 };
33233
33234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
33235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33237 {
33238 PyThreadState* __tstate = wxPyBeginAllowThreads();
33239 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
33240
33241 wxPyEndAllowThreads(__tstate);
33242 if (PyErr_Occurred()) SWIG_fail;
33243 }
33244 {
33245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33246 }
33247 return resultobj;
33248 fail:
33249 return NULL;
33250 }
33251
33252
33253 static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) {
33254 PyObject *resultobj;
33255 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33256 bool arg2 = (bool) true ;
33257 PyObject * obj0 = 0 ;
33258 PyObject * obj1 = 0 ;
33259 char *kwnames[] = {
33260 (char *) "self",(char *) "check", NULL
33261 };
33262
33263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
33264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33266 if (obj1) {
33267 arg2 = (bool)SWIG_As_bool(obj1);
33268 if (PyErr_Occurred()) SWIG_fail;
33269 }
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 (arg1)->Check(arg2);
33273
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 Py_INCREF(Py_None); resultobj = Py_None;
33278 return resultobj;
33279 fail:
33280 return NULL;
33281 }
33282
33283
33284 static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
33285 PyObject *resultobj;
33286 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33287 bool result;
33288 PyObject * obj0 = 0 ;
33289 char *kwnames[] = {
33290 (char *) "self", NULL
33291 };
33292
33293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
33294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33296 {
33297 PyThreadState* __tstate = wxPyBeginAllowThreads();
33298 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
33299
33300 wxPyEndAllowThreads(__tstate);
33301 if (PyErr_Occurred()) SWIG_fail;
33302 }
33303 {
33304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33305 }
33306 return resultobj;
33307 fail:
33308 return NULL;
33309 }
33310
33311
33312 static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
33313 PyObject *resultobj;
33314 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33315 PyObject * obj0 = 0 ;
33316 char *kwnames[] = {
33317 (char *) "self", NULL
33318 };
33319
33320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
33321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33323 {
33324 PyThreadState* __tstate = wxPyBeginAllowThreads();
33325 (arg1)->Toggle();
33326
33327 wxPyEndAllowThreads(__tstate);
33328 if (PyErr_Occurred()) SWIG_fail;
33329 }
33330 Py_INCREF(Py_None); resultobj = Py_None;
33331 return resultobj;
33332 fail:
33333 return NULL;
33334 }
33335
33336
33337 static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
33338 PyObject *resultobj;
33339 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33340 wxString *arg2 = 0 ;
33341 bool temp2 = false ;
33342 PyObject * obj0 = 0 ;
33343 PyObject * obj1 = 0 ;
33344 char *kwnames[] = {
33345 (char *) "self",(char *) "str", NULL
33346 };
33347
33348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
33349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33351 {
33352 arg2 = wxString_in_helper(obj1);
33353 if (arg2 == NULL) SWIG_fail;
33354 temp2 = true;
33355 }
33356 {
33357 PyThreadState* __tstate = wxPyBeginAllowThreads();
33358 (arg1)->SetHelp((wxString const &)*arg2);
33359
33360 wxPyEndAllowThreads(__tstate);
33361 if (PyErr_Occurred()) SWIG_fail;
33362 }
33363 Py_INCREF(Py_None); resultobj = Py_None;
33364 {
33365 if (temp2)
33366 delete arg2;
33367 }
33368 return resultobj;
33369 fail:
33370 {
33371 if (temp2)
33372 delete arg2;
33373 }
33374 return NULL;
33375 }
33376
33377
33378 static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
33379 PyObject *resultobj;
33380 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33381 wxString *result;
33382 PyObject * obj0 = 0 ;
33383 char *kwnames[] = {
33384 (char *) "self", NULL
33385 };
33386
33387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
33388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33390 {
33391 PyThreadState* __tstate = wxPyBeginAllowThreads();
33392 {
33393 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
33394 result = (wxString *) &_result_ref;
33395 }
33396
33397 wxPyEndAllowThreads(__tstate);
33398 if (PyErr_Occurred()) SWIG_fail;
33399 }
33400 {
33401 #if wxUSE_UNICODE
33402 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33403 #else
33404 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33405 #endif
33406 }
33407 return resultobj;
33408 fail:
33409 return NULL;
33410 }
33411
33412
33413 static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
33414 PyObject *resultobj;
33415 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33416 wxAcceleratorEntry *result;
33417 PyObject * obj0 = 0 ;
33418 char *kwnames[] = {
33419 (char *) "self", NULL
33420 };
33421
33422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
33423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33425 {
33426 PyThreadState* __tstate = wxPyBeginAllowThreads();
33427 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
33428
33429 wxPyEndAllowThreads(__tstate);
33430 if (PyErr_Occurred()) SWIG_fail;
33431 }
33432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
33433 return resultobj;
33434 fail:
33435 return NULL;
33436 }
33437
33438
33439 static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
33440 PyObject *resultobj;
33441 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33442 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
33443 PyObject * obj0 = 0 ;
33444 PyObject * obj1 = 0 ;
33445 char *kwnames[] = {
33446 (char *) "self",(char *) "accel", NULL
33447 };
33448
33449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
33450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
33453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33454 {
33455 PyThreadState* __tstate = wxPyBeginAllowThreads();
33456 (arg1)->SetAccel(arg2);
33457
33458 wxPyEndAllowThreads(__tstate);
33459 if (PyErr_Occurred()) SWIG_fail;
33460 }
33461 Py_INCREF(Py_None); resultobj = Py_None;
33462 return resultobj;
33463 fail:
33464 return NULL;
33465 }
33466
33467
33468 static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
33469 PyObject *resultobj;
33470 int result;
33471 char *kwnames[] = {
33472 NULL
33473 };
33474
33475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
33476 {
33477 PyThreadState* __tstate = wxPyBeginAllowThreads();
33478 result = (int)MenuItem_GetDefaultMarginWidth();
33479
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 resultobj = SWIG_From_int((int)result);
33484 return resultobj;
33485 fail:
33486 return NULL;
33487 }
33488
33489
33490 static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj;
33492 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33493 wxBitmap *arg2 = 0 ;
33494 PyObject * obj0 = 0 ;
33495 PyObject * obj1 = 0 ;
33496 char *kwnames[] = {
33497 (char *) "self",(char *) "bitmap", NULL
33498 };
33499
33500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
33501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33504 SWIG_POINTER_EXCEPTION | 0)) == -1)
33505 SWIG_fail;
33506 if (arg2 == NULL) {
33507 PyErr_SetString(PyExc_TypeError,"null reference");
33508 SWIG_fail;
33509 }
33510 {
33511 PyThreadState* __tstate = wxPyBeginAllowThreads();
33512 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33513
33514 wxPyEndAllowThreads(__tstate);
33515 if (PyErr_Occurred()) SWIG_fail;
33516 }
33517 Py_INCREF(Py_None); resultobj = Py_None;
33518 return resultobj;
33519 fail:
33520 return NULL;
33521 }
33522
33523
33524 static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
33525 PyObject *resultobj;
33526 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33527 wxBitmap *result;
33528 PyObject * obj0 = 0 ;
33529 char *kwnames[] = {
33530 (char *) "self", NULL
33531 };
33532
33533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
33534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33536 {
33537 PyThreadState* __tstate = wxPyBeginAllowThreads();
33538 {
33539 wxBitmap const &_result_ref = (arg1)->GetBitmap();
33540 result = (wxBitmap *) &_result_ref;
33541 }
33542
33543 wxPyEndAllowThreads(__tstate);
33544 if (PyErr_Occurred()) SWIG_fail;
33545 }
33546 {
33547 wxBitmap* resultptr = new wxBitmap(*result);
33548 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33549 }
33550 return resultobj;
33551 fail:
33552 return NULL;
33553 }
33554
33555
33556 static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) {
33557 PyObject *obj;
33558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33559 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
33560 Py_INCREF(obj);
33561 return Py_BuildValue((char *)"");
33562 }
33563 static int _wrap_ControlNameStr_set(PyObject *) {
33564 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
33565 return 1;
33566 }
33567
33568
33569 static PyObject *_wrap_ControlNameStr_get() {
33570 PyObject *pyobj;
33571
33572 {
33573 #if wxUSE_UNICODE
33574 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33575 #else
33576 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33577 #endif
33578 }
33579 return pyobj;
33580 }
33581
33582
33583 static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) {
33584 PyObject *resultobj;
33585 wxWindow *arg1 = (wxWindow *) 0 ;
33586 int arg2 = (int) -1 ;
33587 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33588 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33589 wxSize const &arg4_defvalue = wxDefaultSize ;
33590 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33591 long arg5 = (long) 0 ;
33592 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33593 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33594 wxString const &arg7_defvalue = wxPyControlNameStr ;
33595 wxString *arg7 = (wxString *) &arg7_defvalue ;
33596 wxControl *result;
33597 wxPoint temp3 ;
33598 wxSize temp4 ;
33599 bool temp7 = false ;
33600 PyObject * obj0 = 0 ;
33601 PyObject * obj1 = 0 ;
33602 PyObject * obj2 = 0 ;
33603 PyObject * obj3 = 0 ;
33604 PyObject * obj4 = 0 ;
33605 PyObject * obj5 = 0 ;
33606 PyObject * obj6 = 0 ;
33607 char *kwnames[] = {
33608 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33609 };
33610
33611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
33612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33614 if (obj1) {
33615 arg2 = (int)SWIG_As_int(obj1);
33616 if (PyErr_Occurred()) SWIG_fail;
33617 }
33618 if (obj2) {
33619 {
33620 arg3 = &temp3;
33621 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33622 }
33623 }
33624 if (obj3) {
33625 {
33626 arg4 = &temp4;
33627 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33628 }
33629 }
33630 if (obj4) {
33631 arg5 = (long)SWIG_As_long(obj4);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 }
33634 if (obj5) {
33635 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
33636 SWIG_POINTER_EXCEPTION | 0)) == -1)
33637 SWIG_fail;
33638 if (arg6 == NULL) {
33639 PyErr_SetString(PyExc_TypeError,"null reference");
33640 SWIG_fail;
33641 }
33642 }
33643 if (obj6) {
33644 {
33645 arg7 = wxString_in_helper(obj6);
33646 if (arg7 == NULL) SWIG_fail;
33647 temp7 = true;
33648 }
33649 }
33650 {
33651 if (!wxPyCheckForApp()) SWIG_fail;
33652 PyThreadState* __tstate = wxPyBeginAllowThreads();
33653 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33654
33655 wxPyEndAllowThreads(__tstate);
33656 if (PyErr_Occurred()) SWIG_fail;
33657 }
33658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
33659 {
33660 if (temp7)
33661 delete arg7;
33662 }
33663 return resultobj;
33664 fail:
33665 {
33666 if (temp7)
33667 delete arg7;
33668 }
33669 return NULL;
33670 }
33671
33672
33673 static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) {
33674 PyObject *resultobj;
33675 wxControl *result;
33676 char *kwnames[] = {
33677 NULL
33678 };
33679
33680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33681 {
33682 if (!wxPyCheckForApp()) SWIG_fail;
33683 PyThreadState* __tstate = wxPyBeginAllowThreads();
33684 result = (wxControl *)new wxControl();
33685
33686 wxPyEndAllowThreads(__tstate);
33687 if (PyErr_Occurred()) SWIG_fail;
33688 }
33689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
33690 return resultobj;
33691 fail:
33692 return NULL;
33693 }
33694
33695
33696 static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) {
33697 PyObject *resultobj;
33698 wxControl *arg1 = (wxControl *) 0 ;
33699 wxWindow *arg2 = (wxWindow *) 0 ;
33700 int arg3 = (int) -1 ;
33701 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33702 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33703 wxSize const &arg5_defvalue = wxDefaultSize ;
33704 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33705 long arg6 = (long) 0 ;
33706 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33707 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33708 wxString const &arg8_defvalue = wxPyControlNameStr ;
33709 wxString *arg8 = (wxString *) &arg8_defvalue ;
33710 bool result;
33711 wxPoint temp4 ;
33712 wxSize temp5 ;
33713 bool temp8 = false ;
33714 PyObject * obj0 = 0 ;
33715 PyObject * obj1 = 0 ;
33716 PyObject * obj2 = 0 ;
33717 PyObject * obj3 = 0 ;
33718 PyObject * obj4 = 0 ;
33719 PyObject * obj5 = 0 ;
33720 PyObject * obj6 = 0 ;
33721 PyObject * obj7 = 0 ;
33722 char *kwnames[] = {
33723 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33724 };
33725
33726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
33727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33731 if (obj2) {
33732 arg3 = (int)SWIG_As_int(obj2);
33733 if (PyErr_Occurred()) SWIG_fail;
33734 }
33735 if (obj3) {
33736 {
33737 arg4 = &temp4;
33738 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33739 }
33740 }
33741 if (obj4) {
33742 {
33743 arg5 = &temp5;
33744 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33745 }
33746 }
33747 if (obj5) {
33748 arg6 = (long)SWIG_As_long(obj5);
33749 if (PyErr_Occurred()) SWIG_fail;
33750 }
33751 if (obj6) {
33752 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33753 SWIG_POINTER_EXCEPTION | 0)) == -1)
33754 SWIG_fail;
33755 if (arg7 == NULL) {
33756 PyErr_SetString(PyExc_TypeError,"null reference");
33757 SWIG_fail;
33758 }
33759 }
33760 if (obj7) {
33761 {
33762 arg8 = wxString_in_helper(obj7);
33763 if (arg8 == NULL) SWIG_fail;
33764 temp8 = true;
33765 }
33766 }
33767 {
33768 PyThreadState* __tstate = wxPyBeginAllowThreads();
33769 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33770
33771 wxPyEndAllowThreads(__tstate);
33772 if (PyErr_Occurred()) SWIG_fail;
33773 }
33774 {
33775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33776 }
33777 {
33778 if (temp8)
33779 delete arg8;
33780 }
33781 return resultobj;
33782 fail:
33783 {
33784 if (temp8)
33785 delete arg8;
33786 }
33787 return NULL;
33788 }
33789
33790
33791 static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) {
33792 PyObject *resultobj;
33793 wxControl *arg1 = (wxControl *) 0 ;
33794 wxCommandEvent *arg2 = 0 ;
33795 PyObject * obj0 = 0 ;
33796 PyObject * obj1 = 0 ;
33797 char *kwnames[] = {
33798 (char *) "self",(char *) "event", NULL
33799 };
33800
33801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33805 SWIG_POINTER_EXCEPTION | 0)) == -1)
33806 SWIG_fail;
33807 if (arg2 == NULL) {
33808 PyErr_SetString(PyExc_TypeError,"null reference");
33809 SWIG_fail;
33810 }
33811 {
33812 PyThreadState* __tstate = wxPyBeginAllowThreads();
33813 (arg1)->Command(*arg2);
33814
33815 wxPyEndAllowThreads(__tstate);
33816 if (PyErr_Occurred()) SWIG_fail;
33817 }
33818 Py_INCREF(Py_None); resultobj = Py_None;
33819 return resultobj;
33820 fail:
33821 return NULL;
33822 }
33823
33824
33825 static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
33826 PyObject *resultobj;
33827 wxControl *arg1 = (wxControl *) 0 ;
33828 wxString result;
33829 PyObject * obj0 = 0 ;
33830 char *kwnames[] = {
33831 (char *) "self", NULL
33832 };
33833
33834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33837 {
33838 PyThreadState* __tstate = wxPyBeginAllowThreads();
33839 result = (arg1)->GetLabel();
33840
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 {
33845 #if wxUSE_UNICODE
33846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33847 #else
33848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33849 #endif
33850 }
33851 return resultobj;
33852 fail:
33853 return NULL;
33854 }
33855
33856
33857 static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
33858 PyObject *resultobj;
33859 wxControl *arg1 = (wxControl *) 0 ;
33860 wxString *arg2 = 0 ;
33861 bool temp2 = false ;
33862 PyObject * obj0 = 0 ;
33863 PyObject * obj1 = 0 ;
33864 char *kwnames[] = {
33865 (char *) "self",(char *) "label", NULL
33866 };
33867
33868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33871 {
33872 arg2 = wxString_in_helper(obj1);
33873 if (arg2 == NULL) SWIG_fail;
33874 temp2 = true;
33875 }
33876 {
33877 PyThreadState* __tstate = wxPyBeginAllowThreads();
33878 (arg1)->SetLabel((wxString const &)*arg2);
33879
33880 wxPyEndAllowThreads(__tstate);
33881 if (PyErr_Occurred()) SWIG_fail;
33882 }
33883 Py_INCREF(Py_None); resultobj = Py_None;
33884 {
33885 if (temp2)
33886 delete arg2;
33887 }
33888 return resultobj;
33889 fail:
33890 {
33891 if (temp2)
33892 delete arg2;
33893 }
33894 return NULL;
33895 }
33896
33897
33898 static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
33899 PyObject *resultobj;
33900 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33901 wxVisualAttributes result;
33902 PyObject * obj0 = 0 ;
33903 char *kwnames[] = {
33904 (char *) "variant", NULL
33905 };
33906
33907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33908 if (obj0) {
33909 arg1 = (int)SWIG_As_int(obj0);
33910 if (PyErr_Occurred()) SWIG_fail;
33911 }
33912 {
33913 if (!wxPyCheckForApp()) SWIG_fail;
33914 PyThreadState* __tstate = wxPyBeginAllowThreads();
33915 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
33916
33917 wxPyEndAllowThreads(__tstate);
33918 if (PyErr_Occurred()) SWIG_fail;
33919 }
33920 {
33921 wxVisualAttributes * resultptr;
33922 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
33923 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
33924 }
33925 return resultobj;
33926 fail:
33927 return NULL;
33928 }
33929
33930
33931 static PyObject * Control_swigregister(PyObject *, PyObject *args) {
33932 PyObject *obj;
33933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33934 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
33935 Py_INCREF(obj);
33936 return Py_BuildValue((char *)"");
33937 }
33938 static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) {
33939 PyObject *resultobj;
33940 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33941 wxString *arg2 = 0 ;
33942 PyObject *arg3 = (PyObject *) NULL ;
33943 int result;
33944 bool temp2 = false ;
33945 PyObject * obj0 = 0 ;
33946 PyObject * obj1 = 0 ;
33947 PyObject * obj2 = 0 ;
33948 char *kwnames[] = {
33949 (char *) "self",(char *) "item",(char *) "clientData", NULL
33950 };
33951
33952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
33953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33955 {
33956 arg2 = wxString_in_helper(obj1);
33957 if (arg2 == NULL) SWIG_fail;
33958 temp2 = true;
33959 }
33960 if (obj2) {
33961 arg3 = obj2;
33962 }
33963 {
33964 PyThreadState* __tstate = wxPyBeginAllowThreads();
33965 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
33966
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 resultobj = SWIG_From_int((int)result);
33971 {
33972 if (temp2)
33973 delete arg2;
33974 }
33975 return resultobj;
33976 fail:
33977 {
33978 if (temp2)
33979 delete arg2;
33980 }
33981 return NULL;
33982 }
33983
33984
33985 static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) {
33986 PyObject *resultobj;
33987 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33988 wxArrayString *arg2 = 0 ;
33989 bool temp2 = false ;
33990 PyObject * obj0 = 0 ;
33991 PyObject * obj1 = 0 ;
33992 char *kwnames[] = {
33993 (char *) "self",(char *) "strings", NULL
33994 };
33995
33996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
33997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33999 {
34000 if (! PySequence_Check(obj1)) {
34001 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
34002 SWIG_fail;
34003 }
34004 arg2 = new wxArrayString;
34005 temp2 = true;
34006 int i, len=PySequence_Length(obj1);
34007 for (i=0; i<len; i++) {
34008 PyObject* item = PySequence_GetItem(obj1, i);
34009 #if wxUSE_UNICODE
34010 PyObject* str = PyObject_Unicode(item);
34011 #else
34012 PyObject* str = PyObject_Str(item);
34013 #endif
34014 if (PyErr_Occurred()) SWIG_fail;
34015 arg2->Add(Py2wxString(str));
34016 Py_DECREF(item);
34017 Py_DECREF(str);
34018 }
34019 }
34020 {
34021 PyThreadState* __tstate = wxPyBeginAllowThreads();
34022 (arg1)->Append((wxArrayString const &)*arg2);
34023
34024 wxPyEndAllowThreads(__tstate);
34025 if (PyErr_Occurred()) SWIG_fail;
34026 }
34027 Py_INCREF(Py_None); resultobj = Py_None;
34028 {
34029 if (temp2) delete arg2;
34030 }
34031 return resultobj;
34032 fail:
34033 {
34034 if (temp2) delete arg2;
34035 }
34036 return NULL;
34037 }
34038
34039
34040 static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
34041 PyObject *resultobj;
34042 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34043 wxString *arg2 = 0 ;
34044 int arg3 ;
34045 PyObject *arg4 = (PyObject *) NULL ;
34046 int result;
34047 bool temp2 = false ;
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 PyObject * obj2 = 0 ;
34051 PyObject * obj3 = 0 ;
34052 char *kwnames[] = {
34053 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
34054 };
34055
34056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34059 {
34060 arg2 = wxString_in_helper(obj1);
34061 if (arg2 == NULL) SWIG_fail;
34062 temp2 = true;
34063 }
34064 arg3 = (int)SWIG_As_int(obj2);
34065 if (PyErr_Occurred()) SWIG_fail;
34066 if (obj3) {
34067 arg4 = obj3;
34068 }
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
34072
34073 wxPyEndAllowThreads(__tstate);
34074 if (PyErr_Occurred()) SWIG_fail;
34075 }
34076 resultobj = SWIG_From_int((int)result);
34077 {
34078 if (temp2)
34079 delete arg2;
34080 }
34081 return resultobj;
34082 fail:
34083 {
34084 if (temp2)
34085 delete arg2;
34086 }
34087 return NULL;
34088 }
34089
34090
34091 static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
34092 PyObject *resultobj;
34093 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34094 PyObject * obj0 = 0 ;
34095 char *kwnames[] = {
34096 (char *) "self", NULL
34097 };
34098
34099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
34100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 (arg1)->Clear();
34105
34106 wxPyEndAllowThreads(__tstate);
34107 if (PyErr_Occurred()) SWIG_fail;
34108 }
34109 Py_INCREF(Py_None); resultobj = Py_None;
34110 return resultobj;
34111 fail:
34112 return NULL;
34113 }
34114
34115
34116 static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj;
34118 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34119 int arg2 ;
34120 PyObject * obj0 = 0 ;
34121 PyObject * obj1 = 0 ;
34122 char *kwnames[] = {
34123 (char *) "self",(char *) "n", NULL
34124 };
34125
34126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
34127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34129 arg2 = (int)SWIG_As_int(obj1);
34130 if (PyErr_Occurred()) SWIG_fail;
34131 {
34132 PyThreadState* __tstate = wxPyBeginAllowThreads();
34133 (arg1)->Delete(arg2);
34134
34135 wxPyEndAllowThreads(__tstate);
34136 if (PyErr_Occurred()) SWIG_fail;
34137 }
34138 Py_INCREF(Py_None); resultobj = Py_None;
34139 return resultobj;
34140 fail:
34141 return NULL;
34142 }
34143
34144
34145 static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
34146 PyObject *resultobj;
34147 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34148 int result;
34149 PyObject * obj0 = 0 ;
34150 char *kwnames[] = {
34151 (char *) "self", NULL
34152 };
34153
34154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
34155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34157 {
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 result = (int)((wxItemContainer const *)arg1)->GetCount();
34160
34161 wxPyEndAllowThreads(__tstate);
34162 if (PyErr_Occurred()) SWIG_fail;
34163 }
34164 resultobj = SWIG_From_int((int)result);
34165 return resultobj;
34166 fail:
34167 return NULL;
34168 }
34169
34170
34171 static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
34172 PyObject *resultobj;
34173 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34174 bool result;
34175 PyObject * obj0 = 0 ;
34176 char *kwnames[] = {
34177 (char *) "self", NULL
34178 };
34179
34180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
34181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34183 {
34184 PyThreadState* __tstate = wxPyBeginAllowThreads();
34185 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
34186
34187 wxPyEndAllowThreads(__tstate);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 {
34191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34192 }
34193 return resultobj;
34194 fail:
34195 return NULL;
34196 }
34197
34198
34199 static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
34200 PyObject *resultobj;
34201 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34202 int arg2 ;
34203 wxString result;
34204 PyObject * obj0 = 0 ;
34205 PyObject * obj1 = 0 ;
34206 char *kwnames[] = {
34207 (char *) "self",(char *) "n", NULL
34208 };
34209
34210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
34211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34213 arg2 = (int)SWIG_As_int(obj1);
34214 if (PyErr_Occurred()) SWIG_fail;
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 result = ((wxItemContainer const *)arg1)->GetString(arg2);
34218
34219 wxPyEndAllowThreads(__tstate);
34220 if (PyErr_Occurred()) SWIG_fail;
34221 }
34222 {
34223 #if wxUSE_UNICODE
34224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34225 #else
34226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34227 #endif
34228 }
34229 return resultobj;
34230 fail:
34231 return NULL;
34232 }
34233
34234
34235 static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) {
34236 PyObject *resultobj;
34237 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34238 wxArrayString result;
34239 PyObject * obj0 = 0 ;
34240 char *kwnames[] = {
34241 (char *) "self", NULL
34242 };
34243
34244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
34245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34247 {
34248 PyThreadState* __tstate = wxPyBeginAllowThreads();
34249 result = ((wxItemContainer const *)arg1)->GetStrings();
34250
34251 wxPyEndAllowThreads(__tstate);
34252 if (PyErr_Occurred()) SWIG_fail;
34253 }
34254 {
34255 resultobj = wxArrayString2PyList_helper(result);
34256 }
34257 return resultobj;
34258 fail:
34259 return NULL;
34260 }
34261
34262
34263 static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
34264 PyObject *resultobj;
34265 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34266 int arg2 ;
34267 wxString *arg3 = 0 ;
34268 bool temp3 = false ;
34269 PyObject * obj0 = 0 ;
34270 PyObject * obj1 = 0 ;
34271 PyObject * obj2 = 0 ;
34272 char *kwnames[] = {
34273 (char *) "self",(char *) "n",(char *) "s", NULL
34274 };
34275
34276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
34277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34279 arg2 = (int)SWIG_As_int(obj1);
34280 if (PyErr_Occurred()) SWIG_fail;
34281 {
34282 arg3 = wxString_in_helper(obj2);
34283 if (arg3 == NULL) SWIG_fail;
34284 temp3 = true;
34285 }
34286 {
34287 PyThreadState* __tstate = wxPyBeginAllowThreads();
34288 (arg1)->SetString(arg2,(wxString const &)*arg3);
34289
34290 wxPyEndAllowThreads(__tstate);
34291 if (PyErr_Occurred()) SWIG_fail;
34292 }
34293 Py_INCREF(Py_None); resultobj = Py_None;
34294 {
34295 if (temp3)
34296 delete arg3;
34297 }
34298 return resultobj;
34299 fail:
34300 {
34301 if (temp3)
34302 delete arg3;
34303 }
34304 return NULL;
34305 }
34306
34307
34308 static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
34309 PyObject *resultobj;
34310 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34311 wxString *arg2 = 0 ;
34312 int result;
34313 bool temp2 = false ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 char *kwnames[] = {
34317 (char *) "self",(char *) "s", NULL
34318 };
34319
34320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
34321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34323 {
34324 arg2 = wxString_in_helper(obj1);
34325 if (arg2 == NULL) SWIG_fail;
34326 temp2 = true;
34327 }
34328 {
34329 PyThreadState* __tstate = wxPyBeginAllowThreads();
34330 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
34331
34332 wxPyEndAllowThreads(__tstate);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
34335 resultobj = SWIG_From_int((int)result);
34336 {
34337 if (temp2)
34338 delete arg2;
34339 }
34340 return resultobj;
34341 fail:
34342 {
34343 if (temp2)
34344 delete arg2;
34345 }
34346 return NULL;
34347 }
34348
34349
34350 static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) {
34351 PyObject *resultobj;
34352 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34353 int arg2 ;
34354 PyObject * obj0 = 0 ;
34355 PyObject * obj1 = 0 ;
34356 char *kwnames[] = {
34357 (char *) "self",(char *) "n", NULL
34358 };
34359
34360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
34361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34363 arg2 = (int)SWIG_As_int(obj1);
34364 if (PyErr_Occurred()) SWIG_fail;
34365 {
34366 PyThreadState* __tstate = wxPyBeginAllowThreads();
34367 (arg1)->Select(arg2);
34368
34369 wxPyEndAllowThreads(__tstate);
34370 if (PyErr_Occurred()) SWIG_fail;
34371 }
34372 Py_INCREF(Py_None); resultobj = Py_None;
34373 return resultobj;
34374 fail:
34375 return NULL;
34376 }
34377
34378
34379 static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
34380 PyObject *resultobj;
34381 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34382 int result;
34383 PyObject * obj0 = 0 ;
34384 char *kwnames[] = {
34385 (char *) "self", NULL
34386 };
34387
34388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
34389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34391 {
34392 PyThreadState* __tstate = wxPyBeginAllowThreads();
34393 result = (int)((wxItemContainer const *)arg1)->GetSelection();
34394
34395 wxPyEndAllowThreads(__tstate);
34396 if (PyErr_Occurred()) SWIG_fail;
34397 }
34398 resultobj = SWIG_From_int((int)result);
34399 return resultobj;
34400 fail:
34401 return NULL;
34402 }
34403
34404
34405 static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
34406 PyObject *resultobj;
34407 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34408 wxString result;
34409 PyObject * obj0 = 0 ;
34410 char *kwnames[] = {
34411 (char *) "self", NULL
34412 };
34413
34414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
34415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34417 {
34418 PyThreadState* __tstate = wxPyBeginAllowThreads();
34419 result = ((wxItemContainer const *)arg1)->GetStringSelection();
34420
34421 wxPyEndAllowThreads(__tstate);
34422 if (PyErr_Occurred()) SWIG_fail;
34423 }
34424 {
34425 #if wxUSE_UNICODE
34426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34427 #else
34428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34429 #endif
34430 }
34431 return resultobj;
34432 fail:
34433 return NULL;
34434 }
34435
34436
34437 static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
34438 PyObject *resultobj;
34439 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34440 int arg2 ;
34441 PyObject *result;
34442 PyObject * obj0 = 0 ;
34443 PyObject * obj1 = 0 ;
34444 char *kwnames[] = {
34445 (char *) "self",(char *) "n", NULL
34446 };
34447
34448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
34449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34451 arg2 = (int)SWIG_As_int(obj1);
34452 if (PyErr_Occurred()) SWIG_fail;
34453 {
34454 PyThreadState* __tstate = wxPyBeginAllowThreads();
34455 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
34456
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 resultobj = result;
34461 return resultobj;
34462 fail:
34463 return NULL;
34464 }
34465
34466
34467 static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
34468 PyObject *resultobj;
34469 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34470 int arg2 ;
34471 PyObject *arg3 = (PyObject *) 0 ;
34472 PyObject * obj0 = 0 ;
34473 PyObject * obj1 = 0 ;
34474 PyObject * obj2 = 0 ;
34475 char *kwnames[] = {
34476 (char *) "self",(char *) "n",(char *) "clientData", NULL
34477 };
34478
34479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
34480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34482 arg2 = (int)SWIG_As_int(obj1);
34483 if (PyErr_Occurred()) SWIG_fail;
34484 arg3 = obj2;
34485 {
34486 PyThreadState* __tstate = wxPyBeginAllowThreads();
34487 wxItemContainer_SetClientData(arg1,arg2,arg3);
34488
34489 wxPyEndAllowThreads(__tstate);
34490 if (PyErr_Occurred()) SWIG_fail;
34491 }
34492 Py_INCREF(Py_None); resultobj = Py_None;
34493 return resultobj;
34494 fail:
34495 return NULL;
34496 }
34497
34498
34499 static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) {
34500 PyObject *obj;
34501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34502 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
34503 Py_INCREF(obj);
34504 return Py_BuildValue((char *)"");
34505 }
34506 static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) {
34507 PyObject *obj;
34508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34509 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
34510 Py_INCREF(obj);
34511 return Py_BuildValue((char *)"");
34512 }
34513 static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
34514 PyObject *resultobj;
34515 wxSizerItem *result;
34516 char *kwnames[] = {
34517 NULL
34518 };
34519
34520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
34521 {
34522 PyThreadState* __tstate = wxPyBeginAllowThreads();
34523 result = (wxSizerItem *)new wxSizerItem();
34524
34525 wxPyEndAllowThreads(__tstate);
34526 if (PyErr_Occurred()) SWIG_fail;
34527 }
34528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34529 return resultobj;
34530 fail:
34531 return NULL;
34532 }
34533
34534
34535 static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
34536 PyObject *resultobj;
34537 wxWindow *arg1 = (wxWindow *) 0 ;
34538 int arg2 ;
34539 int arg3 ;
34540 int arg4 ;
34541 PyObject *arg5 = (PyObject *) NULL ;
34542 wxSizerItem *result;
34543 PyObject * obj0 = 0 ;
34544 PyObject * obj1 = 0 ;
34545 PyObject * obj2 = 0 ;
34546 PyObject * obj3 = 0 ;
34547 PyObject * obj4 = 0 ;
34548 char *kwnames[] = {
34549 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34550 };
34551
34552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
34554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34555 arg2 = (int)SWIG_As_int(obj1);
34556 if (PyErr_Occurred()) SWIG_fail;
34557 arg3 = (int)SWIG_As_int(obj2);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 arg4 = (int)SWIG_As_int(obj3);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 if (obj4) {
34562 arg5 = obj4;
34563 }
34564 {
34565 PyThreadState* __tstate = wxPyBeginAllowThreads();
34566 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
34567
34568 wxPyEndAllowThreads(__tstate);
34569 if (PyErr_Occurred()) SWIG_fail;
34570 }
34571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34572 return resultobj;
34573 fail:
34574 return NULL;
34575 }
34576
34577
34578 static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
34579 PyObject *resultobj;
34580 int arg1 ;
34581 int arg2 ;
34582 int arg3 ;
34583 int arg4 ;
34584 int arg5 ;
34585 PyObject *arg6 = (PyObject *) NULL ;
34586 wxSizerItem *result;
34587 PyObject * obj0 = 0 ;
34588 PyObject * obj1 = 0 ;
34589 PyObject * obj2 = 0 ;
34590 PyObject * obj3 = 0 ;
34591 PyObject * obj4 = 0 ;
34592 PyObject * obj5 = 0 ;
34593 char *kwnames[] = {
34594 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34595 };
34596
34597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34598 arg1 = (int)SWIG_As_int(obj0);
34599 if (PyErr_Occurred()) SWIG_fail;
34600 arg2 = (int)SWIG_As_int(obj1);
34601 if (PyErr_Occurred()) SWIG_fail;
34602 arg3 = (int)SWIG_As_int(obj2);
34603 if (PyErr_Occurred()) SWIG_fail;
34604 arg4 = (int)SWIG_As_int(obj3);
34605 if (PyErr_Occurred()) SWIG_fail;
34606 arg5 = (int)SWIG_As_int(obj4);
34607 if (PyErr_Occurred()) SWIG_fail;
34608 if (obj5) {
34609 arg6 = obj5;
34610 }
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
34614
34615 wxPyEndAllowThreads(__tstate);
34616 if (PyErr_Occurred()) SWIG_fail;
34617 }
34618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34619 return resultobj;
34620 fail:
34621 return NULL;
34622 }
34623
34624
34625 static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
34626 PyObject *resultobj;
34627 wxSizer *arg1 = (wxSizer *) 0 ;
34628 int arg2 ;
34629 int arg3 ;
34630 int arg4 ;
34631 PyObject *arg5 = (PyObject *) NULL ;
34632 wxSizerItem *result;
34633 PyObject * obj0 = 0 ;
34634 PyObject * obj1 = 0 ;
34635 PyObject * obj2 = 0 ;
34636 PyObject * obj3 = 0 ;
34637 PyObject * obj4 = 0 ;
34638 char *kwnames[] = {
34639 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34640 };
34641
34642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34645 arg2 = (int)SWIG_As_int(obj1);
34646 if (PyErr_Occurred()) SWIG_fail;
34647 arg3 = (int)SWIG_As_int(obj2);
34648 if (PyErr_Occurred()) SWIG_fail;
34649 arg4 = (int)SWIG_As_int(obj3);
34650 if (PyErr_Occurred()) SWIG_fail;
34651 if (obj4) {
34652 arg5 = obj4;
34653 }
34654 {
34655 PyThreadState* __tstate = wxPyBeginAllowThreads();
34656 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
34657
34658 wxPyEndAllowThreads(__tstate);
34659 if (PyErr_Occurred()) SWIG_fail;
34660 }
34661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34662 return resultobj;
34663 fail:
34664 return NULL;
34665 }
34666
34667
34668 static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
34669 PyObject *resultobj;
34670 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34671 PyObject * obj0 = 0 ;
34672 char *kwnames[] = {
34673 (char *) "self", NULL
34674 };
34675
34676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 (arg1)->DeleteWindows();
34682
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 Py_INCREF(Py_None); resultobj = Py_None;
34687 return resultobj;
34688 fail:
34689 return NULL;
34690 }
34691
34692
34693 static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) {
34694 PyObject *resultobj;
34695 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34696 PyObject * obj0 = 0 ;
34697 char *kwnames[] = {
34698 (char *) "self", NULL
34699 };
34700
34701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 (arg1)->DetachSizer();
34707
34708 wxPyEndAllowThreads(__tstate);
34709 if (PyErr_Occurred()) SWIG_fail;
34710 }
34711 Py_INCREF(Py_None); resultobj = Py_None;
34712 return resultobj;
34713 fail:
34714 return NULL;
34715 }
34716
34717
34718 static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
34719 PyObject *resultobj;
34720 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34721 wxSize result;
34722 PyObject * obj0 = 0 ;
34723 char *kwnames[] = {
34724 (char *) "self", NULL
34725 };
34726
34727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34730 {
34731 PyThreadState* __tstate = wxPyBeginAllowThreads();
34732 result = (arg1)->GetSize();
34733
34734 wxPyEndAllowThreads(__tstate);
34735 if (PyErr_Occurred()) SWIG_fail;
34736 }
34737 {
34738 wxSize * resultptr;
34739 resultptr = new wxSize((wxSize &) result);
34740 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34741 }
34742 return resultobj;
34743 fail:
34744 return NULL;
34745 }
34746
34747
34748 static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
34749 PyObject *resultobj;
34750 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34751 wxSize result;
34752 PyObject * obj0 = 0 ;
34753 char *kwnames[] = {
34754 (char *) "self", NULL
34755 };
34756
34757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 result = (arg1)->CalcMin();
34763
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 {
34768 wxSize * resultptr;
34769 resultptr = new wxSize((wxSize &) result);
34770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34771 }
34772 return resultobj;
34773 fail:
34774 return NULL;
34775 }
34776
34777
34778 static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
34779 PyObject *resultobj;
34780 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34781 wxPoint arg2 ;
34782 wxSize arg3 ;
34783 wxPoint *argp2 ;
34784 wxSize *argp3 ;
34785 PyObject * obj0 = 0 ;
34786 PyObject * obj1 = 0 ;
34787 PyObject * obj2 = 0 ;
34788 char *kwnames[] = {
34789 (char *) "self",(char *) "pos",(char *) "size", NULL
34790 };
34791
34792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34795 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34796 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34797 arg2 = *argp2;
34798 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34799 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34800 arg3 = *argp3;
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 (arg1)->SetDimension(arg2,arg3);
34804
34805 wxPyEndAllowThreads(__tstate);
34806 if (PyErr_Occurred()) SWIG_fail;
34807 }
34808 Py_INCREF(Py_None); resultobj = Py_None;
34809 return resultobj;
34810 fail:
34811 return NULL;
34812 }
34813
34814
34815 static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
34816 PyObject *resultobj;
34817 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34818 wxSize result;
34819 PyObject * obj0 = 0 ;
34820 char *kwnames[] = {
34821 (char *) "self", NULL
34822 };
34823
34824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34827 {
34828 PyThreadState* __tstate = wxPyBeginAllowThreads();
34829 result = (arg1)->GetMinSize();
34830
34831 wxPyEndAllowThreads(__tstate);
34832 if (PyErr_Occurred()) SWIG_fail;
34833 }
34834 {
34835 wxSize * resultptr;
34836 resultptr = new wxSize((wxSize &) result);
34837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34838 }
34839 return resultobj;
34840 fail:
34841 return NULL;
34842 }
34843
34844
34845 static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) {
34846 PyObject *resultobj;
34847 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34848 wxSize result;
34849 PyObject * obj0 = 0 ;
34850 char *kwnames[] = {
34851 (char *) "self", NULL
34852 };
34853
34854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
34855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34857 {
34858 PyThreadState* __tstate = wxPyBeginAllowThreads();
34859 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
34860
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 {
34865 wxSize * resultptr;
34866 resultptr = new wxSize((wxSize &) result);
34867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34868 }
34869 return resultobj;
34870 fail:
34871 return NULL;
34872 }
34873
34874
34875 static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) {
34876 PyObject *resultobj;
34877 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34878 int arg2 ;
34879 int arg3 ;
34880 PyObject * obj0 = 0 ;
34881 PyObject * obj1 = 0 ;
34882 PyObject * obj2 = 0 ;
34883 char *kwnames[] = {
34884 (char *) "self",(char *) "x",(char *) "y", NULL
34885 };
34886
34887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34890 arg2 = (int)SWIG_As_int(obj1);
34891 if (PyErr_Occurred()) SWIG_fail;
34892 arg3 = (int)SWIG_As_int(obj2);
34893 if (PyErr_Occurred()) SWIG_fail;
34894 {
34895 PyThreadState* __tstate = wxPyBeginAllowThreads();
34896 (arg1)->SetInitSize(arg2,arg3);
34897
34898 wxPyEndAllowThreads(__tstate);
34899 if (PyErr_Occurred()) SWIG_fail;
34900 }
34901 Py_INCREF(Py_None); resultobj = Py_None;
34902 return resultobj;
34903 fail:
34904 return NULL;
34905 }
34906
34907
34908 static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) {
34909 PyObject *resultobj;
34910 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34911 int arg2 ;
34912 int arg3 ;
34913 PyObject * obj0 = 0 ;
34914 PyObject * obj1 = 0 ;
34915 PyObject * obj2 = 0 ;
34916 char *kwnames[] = {
34917 (char *) "self",(char *) "width",(char *) "height", NULL
34918 };
34919
34920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
34921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34923 arg2 = (int)SWIG_As_int(obj1);
34924 if (PyErr_Occurred()) SWIG_fail;
34925 arg3 = (int)SWIG_As_int(obj2);
34926 if (PyErr_Occurred()) SWIG_fail;
34927 {
34928 PyThreadState* __tstate = wxPyBeginAllowThreads();
34929 (arg1)->SetRatio(arg2,arg3);
34930
34931 wxPyEndAllowThreads(__tstate);
34932 if (PyErr_Occurred()) SWIG_fail;
34933 }
34934 Py_INCREF(Py_None); resultobj = Py_None;
34935 return resultobj;
34936 fail:
34937 return NULL;
34938 }
34939
34940
34941 static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj;
34943 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34944 wxSize arg2 ;
34945 wxSize *argp2 ;
34946 PyObject * obj0 = 0 ;
34947 PyObject * obj1 = 0 ;
34948 char *kwnames[] = {
34949 (char *) "self",(char *) "size", NULL
34950 };
34951
34952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
34953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34955 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
34956 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34957 arg2 = *argp2;
34958 {
34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
34960 (arg1)->SetRatio(arg2);
34961
34962 wxPyEndAllowThreads(__tstate);
34963 if (PyErr_Occurred()) SWIG_fail;
34964 }
34965 Py_INCREF(Py_None); resultobj = Py_None;
34966 return resultobj;
34967 fail:
34968 return NULL;
34969 }
34970
34971
34972 static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
34973 PyObject *resultobj;
34974 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34975 float arg2 ;
34976 PyObject * obj0 = 0 ;
34977 PyObject * obj1 = 0 ;
34978 char *kwnames[] = {
34979 (char *) "self",(char *) "ratio", NULL
34980 };
34981
34982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
34983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34985 arg2 = (float)SWIG_As_float(obj1);
34986 if (PyErr_Occurred()) SWIG_fail;
34987 {
34988 PyThreadState* __tstate = wxPyBeginAllowThreads();
34989 (arg1)->SetRatio(arg2);
34990
34991 wxPyEndAllowThreads(__tstate);
34992 if (PyErr_Occurred()) SWIG_fail;
34993 }
34994 Py_INCREF(Py_None); resultobj = Py_None;
34995 return resultobj;
34996 fail:
34997 return NULL;
34998 }
34999
35000
35001 static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
35002 PyObject *resultobj;
35003 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35004 float result;
35005 PyObject * obj0 = 0 ;
35006 char *kwnames[] = {
35007 (char *) "self", NULL
35008 };
35009
35010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
35011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 result = (float)(arg1)->GetRatio();
35016
35017 wxPyEndAllowThreads(__tstate);
35018 if (PyErr_Occurred()) SWIG_fail;
35019 }
35020 resultobj = SWIG_From_float((float)result);
35021 return resultobj;
35022 fail:
35023 return NULL;
35024 }
35025
35026
35027 static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
35028 PyObject *resultobj;
35029 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35030 wxRect result;
35031 PyObject * obj0 = 0 ;
35032 char *kwnames[] = {
35033 (char *) "self", NULL
35034 };
35035
35036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail;
35037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35039 {
35040 PyThreadState* __tstate = wxPyBeginAllowThreads();
35041 result = (arg1)->GetRect();
35042
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 {
35047 wxRect * resultptr;
35048 resultptr = new wxRect((wxRect &) result);
35049 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
35050 }
35051 return resultobj;
35052 fail:
35053 return NULL;
35054 }
35055
35056
35057 static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) {
35058 PyObject *resultobj;
35059 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35060 bool result;
35061 PyObject * obj0 = 0 ;
35062 char *kwnames[] = {
35063 (char *) "self", NULL
35064 };
35065
35066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
35067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35069 {
35070 PyThreadState* __tstate = wxPyBeginAllowThreads();
35071 result = (bool)(arg1)->IsWindow();
35072
35073 wxPyEndAllowThreads(__tstate);
35074 if (PyErr_Occurred()) SWIG_fail;
35075 }
35076 {
35077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35078 }
35079 return resultobj;
35080 fail:
35081 return NULL;
35082 }
35083
35084
35085 static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj;
35087 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35088 bool result;
35089 PyObject * obj0 = 0 ;
35090 char *kwnames[] = {
35091 (char *) "self", NULL
35092 };
35093
35094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
35095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35097 {
35098 PyThreadState* __tstate = wxPyBeginAllowThreads();
35099 result = (bool)(arg1)->IsSizer();
35100
35101 wxPyEndAllowThreads(__tstate);
35102 if (PyErr_Occurred()) SWIG_fail;
35103 }
35104 {
35105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35106 }
35107 return resultobj;
35108 fail:
35109 return NULL;
35110 }
35111
35112
35113 static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
35114 PyObject *resultobj;
35115 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35116 bool result;
35117 PyObject * obj0 = 0 ;
35118 char *kwnames[] = {
35119 (char *) "self", NULL
35120 };
35121
35122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
35123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35125 {
35126 PyThreadState* __tstate = wxPyBeginAllowThreads();
35127 result = (bool)(arg1)->IsSpacer();
35128
35129 wxPyEndAllowThreads(__tstate);
35130 if (PyErr_Occurred()) SWIG_fail;
35131 }
35132 {
35133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35134 }
35135 return resultobj;
35136 fail:
35137 return NULL;
35138 }
35139
35140
35141 static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
35142 PyObject *resultobj;
35143 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35144 int arg2 ;
35145 PyObject * obj0 = 0 ;
35146 PyObject * obj1 = 0 ;
35147 char *kwnames[] = {
35148 (char *) "self",(char *) "proportion", NULL
35149 };
35150
35151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
35152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35154 arg2 = (int)SWIG_As_int(obj1);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 {
35157 PyThreadState* __tstate = wxPyBeginAllowThreads();
35158 (arg1)->SetProportion(arg2);
35159
35160 wxPyEndAllowThreads(__tstate);
35161 if (PyErr_Occurred()) SWIG_fail;
35162 }
35163 Py_INCREF(Py_None); resultobj = Py_None;
35164 return resultobj;
35165 fail:
35166 return NULL;
35167 }
35168
35169
35170 static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
35171 PyObject *resultobj;
35172 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35173 int result;
35174 PyObject * obj0 = 0 ;
35175 char *kwnames[] = {
35176 (char *) "self", NULL
35177 };
35178
35179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
35180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35182 {
35183 PyThreadState* __tstate = wxPyBeginAllowThreads();
35184 result = (int)(arg1)->GetProportion();
35185
35186 wxPyEndAllowThreads(__tstate);
35187 if (PyErr_Occurred()) SWIG_fail;
35188 }
35189 resultobj = SWIG_From_int((int)result);
35190 return resultobj;
35191 fail:
35192 return NULL;
35193 }
35194
35195
35196 static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
35197 PyObject *resultobj;
35198 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35199 int arg2 ;
35200 PyObject * obj0 = 0 ;
35201 PyObject * obj1 = 0 ;
35202 char *kwnames[] = {
35203 (char *) "self",(char *) "flag", NULL
35204 };
35205
35206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
35207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35209 arg2 = (int)SWIG_As_int(obj1);
35210 if (PyErr_Occurred()) SWIG_fail;
35211 {
35212 PyThreadState* __tstate = wxPyBeginAllowThreads();
35213 (arg1)->SetFlag(arg2);
35214
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 Py_INCREF(Py_None); resultobj = Py_None;
35219 return resultobj;
35220 fail:
35221 return NULL;
35222 }
35223
35224
35225 static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
35226 PyObject *resultobj;
35227 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35228 int result;
35229 PyObject * obj0 = 0 ;
35230 char *kwnames[] = {
35231 (char *) "self", NULL
35232 };
35233
35234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
35235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35237 {
35238 PyThreadState* __tstate = wxPyBeginAllowThreads();
35239 result = (int)(arg1)->GetFlag();
35240
35241 wxPyEndAllowThreads(__tstate);
35242 if (PyErr_Occurred()) SWIG_fail;
35243 }
35244 resultobj = SWIG_From_int((int)result);
35245 return resultobj;
35246 fail:
35247 return NULL;
35248 }
35249
35250
35251 static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
35252 PyObject *resultobj;
35253 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35254 int arg2 ;
35255 PyObject * obj0 = 0 ;
35256 PyObject * obj1 = 0 ;
35257 char *kwnames[] = {
35258 (char *) "self",(char *) "border", NULL
35259 };
35260
35261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
35262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35264 arg2 = (int)SWIG_As_int(obj1);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 {
35267 PyThreadState* __tstate = wxPyBeginAllowThreads();
35268 (arg1)->SetBorder(arg2);
35269
35270 wxPyEndAllowThreads(__tstate);
35271 if (PyErr_Occurred()) SWIG_fail;
35272 }
35273 Py_INCREF(Py_None); resultobj = Py_None;
35274 return resultobj;
35275 fail:
35276 return NULL;
35277 }
35278
35279
35280 static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
35281 PyObject *resultobj;
35282 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35283 int result;
35284 PyObject * obj0 = 0 ;
35285 char *kwnames[] = {
35286 (char *) "self", NULL
35287 };
35288
35289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
35290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35292 {
35293 PyThreadState* __tstate = wxPyBeginAllowThreads();
35294 result = (int)(arg1)->GetBorder();
35295
35296 wxPyEndAllowThreads(__tstate);
35297 if (PyErr_Occurred()) SWIG_fail;
35298 }
35299 resultobj = SWIG_From_int((int)result);
35300 return resultobj;
35301 fail:
35302 return NULL;
35303 }
35304
35305
35306 static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
35307 PyObject *resultobj;
35308 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35309 wxWindow *result;
35310 PyObject * obj0 = 0 ;
35311 char *kwnames[] = {
35312 (char *) "self", NULL
35313 };
35314
35315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
35316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 result = (wxWindow *)(arg1)->GetWindow();
35321
35322 wxPyEndAllowThreads(__tstate);
35323 if (PyErr_Occurred()) SWIG_fail;
35324 }
35325 {
35326 resultobj = wxPyMake_wxObject(result, 0);
35327 }
35328 return resultobj;
35329 fail:
35330 return NULL;
35331 }
35332
35333
35334 static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
35335 PyObject *resultobj;
35336 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35337 wxWindow *arg2 = (wxWindow *) 0 ;
35338 PyObject * obj0 = 0 ;
35339 PyObject * obj1 = 0 ;
35340 char *kwnames[] = {
35341 (char *) "self",(char *) "window", NULL
35342 };
35343
35344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
35345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35349 {
35350 PyThreadState* __tstate = wxPyBeginAllowThreads();
35351 (arg1)->SetWindow(arg2);
35352
35353 wxPyEndAllowThreads(__tstate);
35354 if (PyErr_Occurred()) SWIG_fail;
35355 }
35356 Py_INCREF(Py_None); resultobj = Py_None;
35357 return resultobj;
35358 fail:
35359 return NULL;
35360 }
35361
35362
35363 static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
35364 PyObject *resultobj;
35365 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35366 wxSizer *result;
35367 PyObject * obj0 = 0 ;
35368 char *kwnames[] = {
35369 (char *) "self", NULL
35370 };
35371
35372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
35373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35375 {
35376 PyThreadState* __tstate = wxPyBeginAllowThreads();
35377 result = (wxSizer *)(arg1)->GetSizer();
35378
35379 wxPyEndAllowThreads(__tstate);
35380 if (PyErr_Occurred()) SWIG_fail;
35381 }
35382 {
35383 resultobj = wxPyMake_wxSizer(result, 0);
35384 }
35385 return resultobj;
35386 fail:
35387 return NULL;
35388 }
35389
35390
35391 static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
35392 PyObject *resultobj;
35393 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35394 wxSizer *arg2 = (wxSizer *) 0 ;
35395 PyObject * obj0 = 0 ;
35396 PyObject * obj1 = 0 ;
35397 char *kwnames[] = {
35398 (char *) "self",(char *) "sizer", NULL
35399 };
35400
35401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
35402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
35405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35406 {
35407 PyThreadState* __tstate = wxPyBeginAllowThreads();
35408 (arg1)->SetSizer(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_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
35421 PyObject *resultobj;
35422 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35423 wxSize *result;
35424 PyObject * obj0 = 0 ;
35425 char *kwnames[] = {
35426 (char *) "self", NULL
35427 };
35428
35429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
35430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35432 {
35433 PyThreadState* __tstate = wxPyBeginAllowThreads();
35434 {
35435 wxSize const &_result_ref = (arg1)->GetSpacer();
35436 result = (wxSize *) &_result_ref;
35437 }
35438
35439 wxPyEndAllowThreads(__tstate);
35440 if (PyErr_Occurred()) SWIG_fail;
35441 }
35442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
35443 return resultobj;
35444 fail:
35445 return NULL;
35446 }
35447
35448
35449 static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
35450 PyObject *resultobj;
35451 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35452 wxSize *arg2 = 0 ;
35453 wxSize temp2 ;
35454 PyObject * obj0 = 0 ;
35455 PyObject * obj1 = 0 ;
35456 char *kwnames[] = {
35457 (char *) "self",(char *) "size", NULL
35458 };
35459
35460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
35461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35463 {
35464 arg2 = &temp2;
35465 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35466 }
35467 {
35468 PyThreadState* __tstate = wxPyBeginAllowThreads();
35469 (arg1)->SetSpacer((wxSize const &)*arg2);
35470
35471 wxPyEndAllowThreads(__tstate);
35472 if (PyErr_Occurred()) SWIG_fail;
35473 }
35474 Py_INCREF(Py_None); resultobj = Py_None;
35475 return resultobj;
35476 fail:
35477 return NULL;
35478 }
35479
35480
35481 static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) {
35482 PyObject *resultobj;
35483 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35484 bool arg2 ;
35485 PyObject * obj0 = 0 ;
35486 PyObject * obj1 = 0 ;
35487 char *kwnames[] = {
35488 (char *) "self",(char *) "show", NULL
35489 };
35490
35491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
35492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35494 arg2 = (bool)SWIG_As_bool(obj1);
35495 if (PyErr_Occurred()) SWIG_fail;
35496 {
35497 PyThreadState* __tstate = wxPyBeginAllowThreads();
35498 (arg1)->Show(arg2);
35499
35500 wxPyEndAllowThreads(__tstate);
35501 if (PyErr_Occurred()) SWIG_fail;
35502 }
35503 Py_INCREF(Py_None); resultobj = Py_None;
35504 return resultobj;
35505 fail:
35506 return NULL;
35507 }
35508
35509
35510 static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
35511 PyObject *resultobj;
35512 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35513 bool result;
35514 PyObject * obj0 = 0 ;
35515 char *kwnames[] = {
35516 (char *) "self", NULL
35517 };
35518
35519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
35520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35522 {
35523 PyThreadState* __tstate = wxPyBeginAllowThreads();
35524 result = (bool)(arg1)->IsShown();
35525
35526 wxPyEndAllowThreads(__tstate);
35527 if (PyErr_Occurred()) SWIG_fail;
35528 }
35529 {
35530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35531 }
35532 return resultobj;
35533 fail:
35534 return NULL;
35535 }
35536
35537
35538 static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
35539 PyObject *resultobj;
35540 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35541 wxPoint result;
35542 PyObject * obj0 = 0 ;
35543 char *kwnames[] = {
35544 (char *) "self", NULL
35545 };
35546
35547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
35548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35550 {
35551 PyThreadState* __tstate = wxPyBeginAllowThreads();
35552 result = (arg1)->GetPosition();
35553
35554 wxPyEndAllowThreads(__tstate);
35555 if (PyErr_Occurred()) SWIG_fail;
35556 }
35557 {
35558 wxPoint * resultptr;
35559 resultptr = new wxPoint((wxPoint &) result);
35560 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35561 }
35562 return resultobj;
35563 fail:
35564 return NULL;
35565 }
35566
35567
35568 static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) {
35569 PyObject *resultobj;
35570 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35571 PyObject *result;
35572 PyObject * obj0 = 0 ;
35573 char *kwnames[] = {
35574 (char *) "self", NULL
35575 };
35576
35577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
35578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 result = (PyObject *)wxSizerItem_GetUserData(arg1);
35583
35584 wxPyEndAllowThreads(__tstate);
35585 if (PyErr_Occurred()) SWIG_fail;
35586 }
35587 resultobj = result;
35588 return resultobj;
35589 fail:
35590 return NULL;
35591 }
35592
35593
35594 static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) {
35595 PyObject *obj;
35596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35597 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
35598 Py_INCREF(obj);
35599 return Py_BuildValue((char *)"");
35600 }
35601 static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
35602 PyObject *resultobj;
35603 wxSizer *arg1 = (wxSizer *) 0 ;
35604 PyObject *arg2 = (PyObject *) 0 ;
35605 PyObject * obj0 = 0 ;
35606 PyObject * obj1 = 0 ;
35607 char *kwnames[] = {
35608 (char *) "self",(char *) "_self", NULL
35609 };
35610
35611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
35612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35614 arg2 = obj1;
35615 {
35616 PyThreadState* __tstate = wxPyBeginAllowThreads();
35617 wxSizer__setOORInfo(arg1,arg2);
35618
35619 wxPyEndAllowThreads(__tstate);
35620 if (PyErr_Occurred()) SWIG_fail;
35621 }
35622 Py_INCREF(Py_None); resultobj = Py_None;
35623 return resultobj;
35624 fail:
35625 return NULL;
35626 }
35627
35628
35629 static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
35630 PyObject *resultobj;
35631 wxSizer *arg1 = (wxSizer *) 0 ;
35632 PyObject *arg2 = (PyObject *) 0 ;
35633 int arg3 = (int) 0 ;
35634 int arg4 = (int) 0 ;
35635 int arg5 = (int) 0 ;
35636 PyObject *arg6 = (PyObject *) NULL ;
35637 wxSizerItem *result;
35638 PyObject * obj0 = 0 ;
35639 PyObject * obj1 = 0 ;
35640 PyObject * obj2 = 0 ;
35641 PyObject * obj3 = 0 ;
35642 PyObject * obj4 = 0 ;
35643 PyObject * obj5 = 0 ;
35644 char *kwnames[] = {
35645 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35646 };
35647
35648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35651 arg2 = obj1;
35652 if (obj2) {
35653 arg3 = (int)SWIG_As_int(obj2);
35654 if (PyErr_Occurred()) SWIG_fail;
35655 }
35656 if (obj3) {
35657 arg4 = (int)SWIG_As_int(obj3);
35658 if (PyErr_Occurred()) SWIG_fail;
35659 }
35660 if (obj4) {
35661 arg5 = (int)SWIG_As_int(obj4);
35662 if (PyErr_Occurred()) SWIG_fail;
35663 }
35664 if (obj5) {
35665 arg6 = obj5;
35666 }
35667 {
35668 PyThreadState* __tstate = wxPyBeginAllowThreads();
35669 result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
35670
35671 wxPyEndAllowThreads(__tstate);
35672 if (PyErr_Occurred()) SWIG_fail;
35673 }
35674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35675 return resultobj;
35676 fail:
35677 return NULL;
35678 }
35679
35680
35681 static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
35682 PyObject *resultobj;
35683 wxSizer *arg1 = (wxSizer *) 0 ;
35684 int arg2 ;
35685 PyObject *arg3 = (PyObject *) 0 ;
35686 int arg4 = (int) 0 ;
35687 int arg5 = (int) 0 ;
35688 int arg6 = (int) 0 ;
35689 PyObject *arg7 = (PyObject *) NULL ;
35690 wxSizerItem *result;
35691 PyObject * obj0 = 0 ;
35692 PyObject * obj1 = 0 ;
35693 PyObject * obj2 = 0 ;
35694 PyObject * obj3 = 0 ;
35695 PyObject * obj4 = 0 ;
35696 PyObject * obj5 = 0 ;
35697 PyObject * obj6 = 0 ;
35698 char *kwnames[] = {
35699 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35700 };
35701
35702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35705 arg2 = (int)SWIG_As_int(obj1);
35706 if (PyErr_Occurred()) SWIG_fail;
35707 arg3 = obj2;
35708 if (obj3) {
35709 arg4 = (int)SWIG_As_int(obj3);
35710 if (PyErr_Occurred()) SWIG_fail;
35711 }
35712 if (obj4) {
35713 arg5 = (int)SWIG_As_int(obj4);
35714 if (PyErr_Occurred()) SWIG_fail;
35715 }
35716 if (obj5) {
35717 arg6 = (int)SWIG_As_int(obj5);
35718 if (PyErr_Occurred()) SWIG_fail;
35719 }
35720 if (obj6) {
35721 arg7 = obj6;
35722 }
35723 {
35724 PyThreadState* __tstate = wxPyBeginAllowThreads();
35725 result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35726
35727 wxPyEndAllowThreads(__tstate);
35728 if (PyErr_Occurred()) SWIG_fail;
35729 }
35730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35731 return resultobj;
35732 fail:
35733 return NULL;
35734 }
35735
35736
35737 static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
35738 PyObject *resultobj;
35739 wxSizer *arg1 = (wxSizer *) 0 ;
35740 PyObject *arg2 = (PyObject *) 0 ;
35741 int arg3 = (int) 0 ;
35742 int arg4 = (int) 0 ;
35743 int arg5 = (int) 0 ;
35744 PyObject *arg6 = (PyObject *) NULL ;
35745 wxSizerItem *result;
35746 PyObject * obj0 = 0 ;
35747 PyObject * obj1 = 0 ;
35748 PyObject * obj2 = 0 ;
35749 PyObject * obj3 = 0 ;
35750 PyObject * obj4 = 0 ;
35751 PyObject * obj5 = 0 ;
35752 char *kwnames[] = {
35753 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35754 };
35755
35756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35759 arg2 = obj1;
35760 if (obj2) {
35761 arg3 = (int)SWIG_As_int(obj2);
35762 if (PyErr_Occurred()) SWIG_fail;
35763 }
35764 if (obj3) {
35765 arg4 = (int)SWIG_As_int(obj3);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 if (obj4) {
35769 arg5 = (int)SWIG_As_int(obj4);
35770 if (PyErr_Occurred()) SWIG_fail;
35771 }
35772 if (obj5) {
35773 arg6 = obj5;
35774 }
35775 {
35776 PyThreadState* __tstate = wxPyBeginAllowThreads();
35777 result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35778
35779 wxPyEndAllowThreads(__tstate);
35780 if (PyErr_Occurred()) SWIG_fail;
35781 }
35782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35783 return resultobj;
35784 fail:
35785 return NULL;
35786 }
35787
35788
35789 static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
35790 PyObject *resultobj;
35791 wxSizer *arg1 = (wxSizer *) 0 ;
35792 PyObject *arg2 = (PyObject *) 0 ;
35793 bool result;
35794 PyObject * obj0 = 0 ;
35795 PyObject * obj1 = 0 ;
35796 char *kwnames[] = {
35797 (char *) "self",(char *) "item", NULL
35798 };
35799
35800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35803 arg2 = obj1;
35804 {
35805 PyThreadState* __tstate = wxPyBeginAllowThreads();
35806 result = (bool)wxSizer_Remove(arg1,arg2);
35807
35808 wxPyEndAllowThreads(__tstate);
35809 if (PyErr_Occurred()) SWIG_fail;
35810 }
35811 {
35812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35813 }
35814 return resultobj;
35815 fail:
35816 return NULL;
35817 }
35818
35819
35820 static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
35821 PyObject *resultobj;
35822 wxSizer *arg1 = (wxSizer *) 0 ;
35823 PyObject *arg2 = (PyObject *) 0 ;
35824 bool result;
35825 PyObject * obj0 = 0 ;
35826 PyObject * obj1 = 0 ;
35827 char *kwnames[] = {
35828 (char *) "self",(char *) "item", NULL
35829 };
35830
35831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35834 arg2 = obj1;
35835 {
35836 PyThreadState* __tstate = wxPyBeginAllowThreads();
35837 result = (bool)wxSizer_Detach(arg1,arg2);
35838
35839 wxPyEndAllowThreads(__tstate);
35840 if (PyErr_Occurred()) SWIG_fail;
35841 }
35842 {
35843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35844 }
35845 return resultobj;
35846 fail:
35847 return NULL;
35848 }
35849
35850
35851 static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
35852 PyObject *resultobj;
35853 wxSizer *arg1 = (wxSizer *) 0 ;
35854 PyObject *arg2 = (PyObject *) 0 ;
35855 wxSizerItem *result;
35856 PyObject * obj0 = 0 ;
35857 PyObject * obj1 = 0 ;
35858 char *kwnames[] = {
35859 (char *) "self",(char *) "item", NULL
35860 };
35861
35862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail;
35863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35865 arg2 = obj1;
35866 {
35867 PyThreadState* __tstate = wxPyBeginAllowThreads();
35868 result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2);
35869
35870 wxPyEndAllowThreads(__tstate);
35871 if (PyErr_Occurred()) SWIG_fail;
35872 }
35873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35874 return resultobj;
35875 fail:
35876 return NULL;
35877 }
35878
35879
35880 static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
35881 PyObject *resultobj;
35882 wxSizer *arg1 = (wxSizer *) 0 ;
35883 PyObject *arg2 = (PyObject *) 0 ;
35884 wxSize *arg3 = 0 ;
35885 wxSize temp3 ;
35886 PyObject * obj0 = 0 ;
35887 PyObject * obj1 = 0 ;
35888 PyObject * obj2 = 0 ;
35889 char *kwnames[] = {
35890 (char *) "self",(char *) "item",(char *) "size", NULL
35891 };
35892
35893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35896 arg2 = obj1;
35897 {
35898 arg3 = &temp3;
35899 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35900 }
35901 {
35902 PyThreadState* __tstate = wxPyBeginAllowThreads();
35903 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35904
35905 wxPyEndAllowThreads(__tstate);
35906 if (PyErr_Occurred()) SWIG_fail;
35907 }
35908 Py_INCREF(Py_None); resultobj = Py_None;
35909 return resultobj;
35910 fail:
35911 return NULL;
35912 }
35913
35914
35915 static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
35916 PyObject *resultobj;
35917 wxSizer *arg1 = (wxSizer *) 0 ;
35918 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35919 wxSizerItem *result;
35920 PyObject * obj0 = 0 ;
35921 PyObject * obj1 = 0 ;
35922 char *kwnames[] = {
35923 (char *) "self",(char *) "item", NULL
35924 };
35925
35926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35931 {
35932 PyThreadState* __tstate = wxPyBeginAllowThreads();
35933 result = (wxSizerItem *)(arg1)->Add(arg2);
35934
35935 wxPyEndAllowThreads(__tstate);
35936 if (PyErr_Occurred()) SWIG_fail;
35937 }
35938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35939 return resultobj;
35940 fail:
35941 return NULL;
35942 }
35943
35944
35945 static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
35946 PyObject *resultobj;
35947 wxSizer *arg1 = (wxSizer *) 0 ;
35948 size_t arg2 ;
35949 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35950 wxSizerItem *result;
35951 PyObject * obj0 = 0 ;
35952 PyObject * obj1 = 0 ;
35953 PyObject * obj2 = 0 ;
35954 char *kwnames[] = {
35955 (char *) "self",(char *) "index",(char *) "item", NULL
35956 };
35957
35958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35961 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
35962 if (PyErr_Occurred()) SWIG_fail;
35963 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
35968
35969 wxPyEndAllowThreads(__tstate);
35970 if (PyErr_Occurred()) SWIG_fail;
35971 }
35972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
35973 return resultobj;
35974 fail:
35975 return NULL;
35976 }
35977
35978
35979 static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
35980 PyObject *resultobj;
35981 wxSizer *arg1 = (wxSizer *) 0 ;
35982 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35983 wxSizerItem *result;
35984 PyObject * obj0 = 0 ;
35985 PyObject * obj1 = 0 ;
35986 char *kwnames[] = {
35987 (char *) "self",(char *) "item", NULL
35988 };
35989
35990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
35991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35995 {
35996 PyThreadState* __tstate = wxPyBeginAllowThreads();
35997 result = (wxSizerItem *)(arg1)->Prepend(arg2);
35998
35999 wxPyEndAllowThreads(__tstate);
36000 if (PyErr_Occurred()) SWIG_fail;
36001 }
36002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
36003 return resultobj;
36004 fail:
36005 return NULL;
36006 }
36007
36008
36009 static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
36010 PyObject *resultobj;
36011 wxSizer *arg1 = (wxSizer *) 0 ;
36012 int arg2 ;
36013 int arg3 ;
36014 int arg4 ;
36015 int arg5 ;
36016 PyObject * obj0 = 0 ;
36017 PyObject * obj1 = 0 ;
36018 PyObject * obj2 = 0 ;
36019 PyObject * obj3 = 0 ;
36020 PyObject * obj4 = 0 ;
36021 char *kwnames[] = {
36022 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36023 };
36024
36025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
36026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36028 arg2 = (int)SWIG_As_int(obj1);
36029 if (PyErr_Occurred()) SWIG_fail;
36030 arg3 = (int)SWIG_As_int(obj2);
36031 if (PyErr_Occurred()) SWIG_fail;
36032 arg4 = (int)SWIG_As_int(obj3);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 arg5 = (int)SWIG_As_int(obj4);
36035 if (PyErr_Occurred()) SWIG_fail;
36036 {
36037 PyThreadState* __tstate = wxPyBeginAllowThreads();
36038 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
36039
36040 wxPyEndAllowThreads(__tstate);
36041 if (PyErr_Occurred()) SWIG_fail;
36042 }
36043 Py_INCREF(Py_None); resultobj = Py_None;
36044 return resultobj;
36045 fail:
36046 return NULL;
36047 }
36048
36049
36050 static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
36051 PyObject *resultobj;
36052 wxSizer *arg1 = (wxSizer *) 0 ;
36053 wxSize *arg2 = 0 ;
36054 wxSize temp2 ;
36055 PyObject * obj0 = 0 ;
36056 PyObject * obj1 = 0 ;
36057 char *kwnames[] = {
36058 (char *) "self",(char *) "size", NULL
36059 };
36060
36061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
36062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36064 {
36065 arg2 = &temp2;
36066 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
36067 }
36068 {
36069 PyThreadState* __tstate = wxPyBeginAllowThreads();
36070 (arg1)->SetMinSize((wxSize const &)*arg2);
36071
36072 wxPyEndAllowThreads(__tstate);
36073 if (PyErr_Occurred()) SWIG_fail;
36074 }
36075 Py_INCREF(Py_None); resultobj = Py_None;
36076 return resultobj;
36077 fail:
36078 return NULL;
36079 }
36080
36081
36082 static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
36083 PyObject *resultobj;
36084 wxSizer *arg1 = (wxSizer *) 0 ;
36085 wxSize result;
36086 PyObject * obj0 = 0 ;
36087 char *kwnames[] = {
36088 (char *) "self", NULL
36089 };
36090
36091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
36092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36094 {
36095 PyThreadState* __tstate = wxPyBeginAllowThreads();
36096 result = (arg1)->GetSize();
36097
36098 wxPyEndAllowThreads(__tstate);
36099 if (PyErr_Occurred()) SWIG_fail;
36100 }
36101 {
36102 wxSize * resultptr;
36103 resultptr = new wxSize((wxSize &) result);
36104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36105 }
36106 return resultobj;
36107 fail:
36108 return NULL;
36109 }
36110
36111
36112 static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
36113 PyObject *resultobj;
36114 wxSizer *arg1 = (wxSizer *) 0 ;
36115 wxPoint result;
36116 PyObject * obj0 = 0 ;
36117 char *kwnames[] = {
36118 (char *) "self", NULL
36119 };
36120
36121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
36122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36124 {
36125 PyThreadState* __tstate = wxPyBeginAllowThreads();
36126 result = (arg1)->GetPosition();
36127
36128 wxPyEndAllowThreads(__tstate);
36129 if (PyErr_Occurred()) SWIG_fail;
36130 }
36131 {
36132 wxPoint * resultptr;
36133 resultptr = new wxPoint((wxPoint &) result);
36134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
36135 }
36136 return resultobj;
36137 fail:
36138 return NULL;
36139 }
36140
36141
36142 static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
36143 PyObject *resultobj;
36144 wxSizer *arg1 = (wxSizer *) 0 ;
36145 wxSize result;
36146 PyObject * obj0 = 0 ;
36147 char *kwnames[] = {
36148 (char *) "self", NULL
36149 };
36150
36151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
36152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36154 {
36155 PyThreadState* __tstate = wxPyBeginAllowThreads();
36156 result = (arg1)->GetMinSize();
36157
36158 wxPyEndAllowThreads(__tstate);
36159 if (PyErr_Occurred()) SWIG_fail;
36160 }
36161 {
36162 wxSize * resultptr;
36163 resultptr = new wxSize((wxSize &) result);
36164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36165 }
36166 return resultobj;
36167 fail:
36168 return NULL;
36169 }
36170
36171
36172 static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
36173 PyObject *resultobj;
36174 wxSizer *arg1 = (wxSizer *) 0 ;
36175 PyObject * obj0 = 0 ;
36176 char *kwnames[] = {
36177 (char *) "self", NULL
36178 };
36179
36180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
36181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36183 {
36184 PyThreadState* __tstate = wxPyBeginAllowThreads();
36185 (arg1)->RecalcSizes();
36186
36187 wxPyEndAllowThreads(__tstate);
36188 if (PyErr_Occurred()) SWIG_fail;
36189 }
36190 Py_INCREF(Py_None); resultobj = Py_None;
36191 return resultobj;
36192 fail:
36193 return NULL;
36194 }
36195
36196
36197 static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
36198 PyObject *resultobj;
36199 wxSizer *arg1 = (wxSizer *) 0 ;
36200 wxSize result;
36201 PyObject * obj0 = 0 ;
36202 char *kwnames[] = {
36203 (char *) "self", NULL
36204 };
36205
36206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
36207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36209 {
36210 PyThreadState* __tstate = wxPyBeginAllowThreads();
36211 result = (arg1)->CalcMin();
36212
36213 wxPyEndAllowThreads(__tstate);
36214 if (PyErr_Occurred()) SWIG_fail;
36215 }
36216 {
36217 wxSize * resultptr;
36218 resultptr = new wxSize((wxSize &) result);
36219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36220 }
36221 return resultobj;
36222 fail:
36223 return NULL;
36224 }
36225
36226
36227 static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
36228 PyObject *resultobj;
36229 wxSizer *arg1 = (wxSizer *) 0 ;
36230 PyObject * obj0 = 0 ;
36231 char *kwnames[] = {
36232 (char *) "self", NULL
36233 };
36234
36235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
36236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->Layout();
36241
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 Py_INCREF(Py_None); resultobj = Py_None;
36246 return resultobj;
36247 fail:
36248 return NULL;
36249 }
36250
36251
36252 static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
36253 PyObject *resultobj;
36254 wxSizer *arg1 = (wxSizer *) 0 ;
36255 wxWindow *arg2 = (wxWindow *) 0 ;
36256 wxSize result;
36257 PyObject * obj0 = 0 ;
36258 PyObject * obj1 = 0 ;
36259 char *kwnames[] = {
36260 (char *) "self",(char *) "window", NULL
36261 };
36262
36263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
36264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36266 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36268 {
36269 PyThreadState* __tstate = wxPyBeginAllowThreads();
36270 result = (arg1)->Fit(arg2);
36271
36272 wxPyEndAllowThreads(__tstate);
36273 if (PyErr_Occurred()) SWIG_fail;
36274 }
36275 {
36276 wxSize * resultptr;
36277 resultptr = new wxSize((wxSize &) result);
36278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36279 }
36280 return resultobj;
36281 fail:
36282 return NULL;
36283 }
36284
36285
36286 static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
36287 PyObject *resultobj;
36288 wxSizer *arg1 = (wxSizer *) 0 ;
36289 wxWindow *arg2 = (wxWindow *) 0 ;
36290 PyObject * obj0 = 0 ;
36291 PyObject * obj1 = 0 ;
36292 char *kwnames[] = {
36293 (char *) "self",(char *) "window", NULL
36294 };
36295
36296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
36297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36299 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36301 {
36302 PyThreadState* __tstate = wxPyBeginAllowThreads();
36303 (arg1)->FitInside(arg2);
36304
36305 wxPyEndAllowThreads(__tstate);
36306 if (PyErr_Occurred()) SWIG_fail;
36307 }
36308 Py_INCREF(Py_None); resultobj = Py_None;
36309 return resultobj;
36310 fail:
36311 return NULL;
36312 }
36313
36314
36315 static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
36316 PyObject *resultobj;
36317 wxSizer *arg1 = (wxSizer *) 0 ;
36318 wxWindow *arg2 = (wxWindow *) 0 ;
36319 PyObject * obj0 = 0 ;
36320 PyObject * obj1 = 0 ;
36321 char *kwnames[] = {
36322 (char *) "self",(char *) "window", NULL
36323 };
36324
36325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
36326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36330 {
36331 PyThreadState* __tstate = wxPyBeginAllowThreads();
36332 (arg1)->SetSizeHints(arg2);
36333
36334 wxPyEndAllowThreads(__tstate);
36335 if (PyErr_Occurred()) SWIG_fail;
36336 }
36337 Py_INCREF(Py_None); resultobj = Py_None;
36338 return resultobj;
36339 fail:
36340 return NULL;
36341 }
36342
36343
36344 static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
36345 PyObject *resultobj;
36346 wxSizer *arg1 = (wxSizer *) 0 ;
36347 wxWindow *arg2 = (wxWindow *) 0 ;
36348 PyObject * obj0 = 0 ;
36349 PyObject * obj1 = 0 ;
36350 char *kwnames[] = {
36351 (char *) "self",(char *) "window", NULL
36352 };
36353
36354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
36355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36359 {
36360 PyThreadState* __tstate = wxPyBeginAllowThreads();
36361 (arg1)->SetVirtualSizeHints(arg2);
36362
36363 wxPyEndAllowThreads(__tstate);
36364 if (PyErr_Occurred()) SWIG_fail;
36365 }
36366 Py_INCREF(Py_None); resultobj = Py_None;
36367 return resultobj;
36368 fail:
36369 return NULL;
36370 }
36371
36372
36373 static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
36374 PyObject *resultobj;
36375 wxSizer *arg1 = (wxSizer *) 0 ;
36376 bool arg2 = (bool) false ;
36377 PyObject * obj0 = 0 ;
36378 PyObject * obj1 = 0 ;
36379 char *kwnames[] = {
36380 (char *) "self",(char *) "deleteWindows", NULL
36381 };
36382
36383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
36384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36386 if (obj1) {
36387 arg2 = (bool)SWIG_As_bool(obj1);
36388 if (PyErr_Occurred()) SWIG_fail;
36389 }
36390 {
36391 PyThreadState* __tstate = wxPyBeginAllowThreads();
36392 (arg1)->Clear(arg2);
36393
36394 wxPyEndAllowThreads(__tstate);
36395 if (PyErr_Occurred()) SWIG_fail;
36396 }
36397 Py_INCREF(Py_None); resultobj = Py_None;
36398 return resultobj;
36399 fail:
36400 return NULL;
36401 }
36402
36403
36404 static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
36405 PyObject *resultobj;
36406 wxSizer *arg1 = (wxSizer *) 0 ;
36407 PyObject * obj0 = 0 ;
36408 char *kwnames[] = {
36409 (char *) "self", NULL
36410 };
36411
36412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
36413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36415 {
36416 PyThreadState* __tstate = wxPyBeginAllowThreads();
36417 (arg1)->DeleteWindows();
36418
36419 wxPyEndAllowThreads(__tstate);
36420 if (PyErr_Occurred()) SWIG_fail;
36421 }
36422 Py_INCREF(Py_None); resultobj = Py_None;
36423 return resultobj;
36424 fail:
36425 return NULL;
36426 }
36427
36428
36429 static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
36430 PyObject *resultobj;
36431 wxSizer *arg1 = (wxSizer *) 0 ;
36432 PyObject *result;
36433 PyObject * obj0 = 0 ;
36434 char *kwnames[] = {
36435 (char *) "self", NULL
36436 };
36437
36438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
36439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36441 {
36442 PyThreadState* __tstate = wxPyBeginAllowThreads();
36443 result = (PyObject *)wxSizer_GetChildren(arg1);
36444
36445 wxPyEndAllowThreads(__tstate);
36446 if (PyErr_Occurred()) SWIG_fail;
36447 }
36448 resultobj = result;
36449 return resultobj;
36450 fail:
36451 return NULL;
36452 }
36453
36454
36455 static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) {
36456 PyObject *resultobj;
36457 wxSizer *arg1 = (wxSizer *) 0 ;
36458 PyObject *arg2 = (PyObject *) 0 ;
36459 bool arg3 = (bool) true ;
36460 bool arg4 = (bool) false ;
36461 bool result;
36462 PyObject * obj0 = 0 ;
36463 PyObject * obj1 = 0 ;
36464 PyObject * obj2 = 0 ;
36465 PyObject * obj3 = 0 ;
36466 char *kwnames[] = {
36467 (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
36468 };
36469
36470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36473 arg2 = obj1;
36474 if (obj2) {
36475 arg3 = (bool)SWIG_As_bool(obj2);
36476 if (PyErr_Occurred()) SWIG_fail;
36477 }
36478 if (obj3) {
36479 arg4 = (bool)SWIG_As_bool(obj3);
36480 if (PyErr_Occurred()) SWIG_fail;
36481 }
36482 {
36483 PyThreadState* __tstate = wxPyBeginAllowThreads();
36484 result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
36485
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 {
36490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36491 }
36492 return resultobj;
36493 fail:
36494 return NULL;
36495 }
36496
36497
36498 static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
36499 PyObject *resultobj;
36500 wxSizer *arg1 = (wxSizer *) 0 ;
36501 PyObject *arg2 = (PyObject *) 0 ;
36502 bool result;
36503 PyObject * obj0 = 0 ;
36504 PyObject * obj1 = 0 ;
36505 char *kwnames[] = {
36506 (char *) "self",(char *) "item", NULL
36507 };
36508
36509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
36510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36512 arg2 = obj1;
36513 {
36514 PyThreadState* __tstate = wxPyBeginAllowThreads();
36515 result = (bool)wxSizer_IsShown(arg1,arg2);
36516
36517 wxPyEndAllowThreads(__tstate);
36518 if (PyErr_Occurred()) SWIG_fail;
36519 }
36520 {
36521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36522 }
36523 return resultobj;
36524 fail:
36525 return NULL;
36526 }
36527
36528
36529 static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) {
36530 PyObject *resultobj;
36531 wxSizer *arg1 = (wxSizer *) 0 ;
36532 bool arg2 ;
36533 PyObject * obj0 = 0 ;
36534 PyObject * obj1 = 0 ;
36535 char *kwnames[] = {
36536 (char *) "self",(char *) "show", NULL
36537 };
36538
36539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
36540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36542 arg2 = (bool)SWIG_As_bool(obj1);
36543 if (PyErr_Occurred()) SWIG_fail;
36544 {
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 (arg1)->ShowItems(arg2);
36547
36548 wxPyEndAllowThreads(__tstate);
36549 if (PyErr_Occurred()) SWIG_fail;
36550 }
36551 Py_INCREF(Py_None); resultobj = Py_None;
36552 return resultobj;
36553 fail:
36554 return NULL;
36555 }
36556
36557
36558 static PyObject * Sizer_swigregister(PyObject *, PyObject *args) {
36559 PyObject *obj;
36560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36561 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
36562 Py_INCREF(obj);
36563 return Py_BuildValue((char *)"");
36564 }
36565 static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) {
36566 PyObject *resultobj;
36567 wxPySizer *result;
36568 char *kwnames[] = {
36569 NULL
36570 };
36571
36572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
36573 {
36574 PyThreadState* __tstate = wxPyBeginAllowThreads();
36575 result = (wxPySizer *)new wxPySizer();
36576
36577 wxPyEndAllowThreads(__tstate);
36578 if (PyErr_Occurred()) SWIG_fail;
36579 }
36580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
36581 return resultobj;
36582 fail:
36583 return NULL;
36584 }
36585
36586
36587 static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
36588 PyObject *resultobj;
36589 wxPySizer *arg1 = (wxPySizer *) 0 ;
36590 PyObject *arg2 = (PyObject *) 0 ;
36591 PyObject *arg3 = (PyObject *) 0 ;
36592 PyObject * obj0 = 0 ;
36593 PyObject * obj1 = 0 ;
36594 PyObject * obj2 = 0 ;
36595 char *kwnames[] = {
36596 (char *) "self",(char *) "self",(char *) "_class", NULL
36597 };
36598
36599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
36600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
36601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36602 arg2 = obj1;
36603 arg3 = obj2;
36604 {
36605 PyThreadState* __tstate = wxPyBeginAllowThreads();
36606 (arg1)->_setCallbackInfo(arg2,arg3);
36607
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 Py_INCREF(Py_None); resultobj = Py_None;
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 static PyObject * PySizer_swigregister(PyObject *, PyObject *args) {
36619 PyObject *obj;
36620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36621 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
36622 Py_INCREF(obj);
36623 return Py_BuildValue((char *)"");
36624 }
36625 static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
36626 PyObject *resultobj;
36627 int arg1 = (int) wxHORIZONTAL ;
36628 wxBoxSizer *result;
36629 PyObject * obj0 = 0 ;
36630 char *kwnames[] = {
36631 (char *) "orient", NULL
36632 };
36633
36634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
36635 if (obj0) {
36636 arg1 = (int)SWIG_As_int(obj0);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 {
36640 PyThreadState* __tstate = wxPyBeginAllowThreads();
36641 result = (wxBoxSizer *)new wxBoxSizer(arg1);
36642
36643 wxPyEndAllowThreads(__tstate);
36644 if (PyErr_Occurred()) SWIG_fail;
36645 }
36646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
36647 return resultobj;
36648 fail:
36649 return NULL;
36650 }
36651
36652
36653 static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
36654 PyObject *resultobj;
36655 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36656 int result;
36657 PyObject * obj0 = 0 ;
36658 char *kwnames[] = {
36659 (char *) "self", NULL
36660 };
36661
36662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
36663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36665 {
36666 PyThreadState* __tstate = wxPyBeginAllowThreads();
36667 result = (int)(arg1)->GetOrientation();
36668
36669 wxPyEndAllowThreads(__tstate);
36670 if (PyErr_Occurred()) SWIG_fail;
36671 }
36672 resultobj = SWIG_From_int((int)result);
36673 return resultobj;
36674 fail:
36675 return NULL;
36676 }
36677
36678
36679 static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
36680 PyObject *resultobj;
36681 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36682 int arg2 ;
36683 PyObject * obj0 = 0 ;
36684 PyObject * obj1 = 0 ;
36685 char *kwnames[] = {
36686 (char *) "self",(char *) "orient", NULL
36687 };
36688
36689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
36690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36692 arg2 = (int)SWIG_As_int(obj1);
36693 if (PyErr_Occurred()) SWIG_fail;
36694 {
36695 PyThreadState* __tstate = wxPyBeginAllowThreads();
36696 (arg1)->SetOrientation(arg2);
36697
36698 wxPyEndAllowThreads(__tstate);
36699 if (PyErr_Occurred()) SWIG_fail;
36700 }
36701 Py_INCREF(Py_None); resultobj = Py_None;
36702 return resultobj;
36703 fail:
36704 return NULL;
36705 }
36706
36707
36708 static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) {
36709 PyObject *obj;
36710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36711 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
36712 Py_INCREF(obj);
36713 return Py_BuildValue((char *)"");
36714 }
36715 static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
36716 PyObject *resultobj;
36717 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
36718 int arg2 = (int) wxHORIZONTAL ;
36719 wxStaticBoxSizer *result;
36720 PyObject * obj0 = 0 ;
36721 PyObject * obj1 = 0 ;
36722 char *kwnames[] = {
36723 (char *) "box",(char *) "orient", NULL
36724 };
36725
36726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36729 if (obj1) {
36730 arg2 = (int)SWIG_As_int(obj1);
36731 if (PyErr_Occurred()) SWIG_fail;
36732 }
36733 {
36734 PyThreadState* __tstate = wxPyBeginAllowThreads();
36735 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36736
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36741 return resultobj;
36742 fail:
36743 return NULL;
36744 }
36745
36746
36747 static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj;
36749 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36750 wxStaticBox *result;
36751 PyObject * obj0 = 0 ;
36752 char *kwnames[] = {
36753 (char *) "self", NULL
36754 };
36755
36756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36759 {
36760 PyThreadState* __tstate = wxPyBeginAllowThreads();
36761 result = (wxStaticBox *)(arg1)->GetStaticBox();
36762
36763 wxPyEndAllowThreads(__tstate);
36764 if (PyErr_Occurred()) SWIG_fail;
36765 }
36766 {
36767 resultobj = wxPyMake_wxObject(result, 0);
36768 }
36769 return resultobj;
36770 fail:
36771 return NULL;
36772 }
36773
36774
36775 static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) {
36776 PyObject *obj;
36777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36778 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36779 Py_INCREF(obj);
36780 return Py_BuildValue((char *)"");
36781 }
36782 static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
36783 PyObject *resultobj;
36784 int arg1 = (int) 1 ;
36785 int arg2 = (int) 0 ;
36786 int arg3 = (int) 0 ;
36787 int arg4 = (int) 0 ;
36788 wxGridSizer *result;
36789 PyObject * obj0 = 0 ;
36790 PyObject * obj1 = 0 ;
36791 PyObject * obj2 = 0 ;
36792 PyObject * obj3 = 0 ;
36793 char *kwnames[] = {
36794 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36795 };
36796
36797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36798 if (obj0) {
36799 arg1 = (int)SWIG_As_int(obj0);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 if (obj1) {
36803 arg2 = (int)SWIG_As_int(obj1);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 if (obj2) {
36807 arg3 = (int)SWIG_As_int(obj2);
36808 if (PyErr_Occurred()) SWIG_fail;
36809 }
36810 if (obj3) {
36811 arg4 = (int)SWIG_As_int(obj3);
36812 if (PyErr_Occurred()) SWIG_fail;
36813 }
36814 {
36815 PyThreadState* __tstate = wxPyBeginAllowThreads();
36816 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36817
36818 wxPyEndAllowThreads(__tstate);
36819 if (PyErr_Occurred()) SWIG_fail;
36820 }
36821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36822 return resultobj;
36823 fail:
36824 return NULL;
36825 }
36826
36827
36828 static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) {
36829 PyObject *resultobj;
36830 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36831 int arg2 ;
36832 PyObject * obj0 = 0 ;
36833 PyObject * obj1 = 0 ;
36834 char *kwnames[] = {
36835 (char *) "self",(char *) "cols", NULL
36836 };
36837
36838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36841 arg2 = (int)SWIG_As_int(obj1);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 (arg1)->SetCols(arg2);
36846
36847 wxPyEndAllowThreads(__tstate);
36848 if (PyErr_Occurred()) SWIG_fail;
36849 }
36850 Py_INCREF(Py_None); resultobj = Py_None;
36851 return resultobj;
36852 fail:
36853 return NULL;
36854 }
36855
36856
36857 static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
36858 PyObject *resultobj;
36859 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36860 int arg2 ;
36861 PyObject * obj0 = 0 ;
36862 PyObject * obj1 = 0 ;
36863 char *kwnames[] = {
36864 (char *) "self",(char *) "rows", NULL
36865 };
36866
36867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36870 arg2 = (int)SWIG_As_int(obj1);
36871 if (PyErr_Occurred()) SWIG_fail;
36872 {
36873 PyThreadState* __tstate = wxPyBeginAllowThreads();
36874 (arg1)->SetRows(arg2);
36875
36876 wxPyEndAllowThreads(__tstate);
36877 if (PyErr_Occurred()) SWIG_fail;
36878 }
36879 Py_INCREF(Py_None); resultobj = Py_None;
36880 return resultobj;
36881 fail:
36882 return NULL;
36883 }
36884
36885
36886 static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
36887 PyObject *resultobj;
36888 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36889 int arg2 ;
36890 PyObject * obj0 = 0 ;
36891 PyObject * obj1 = 0 ;
36892 char *kwnames[] = {
36893 (char *) "self",(char *) "gap", NULL
36894 };
36895
36896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36899 arg2 = (int)SWIG_As_int(obj1);
36900 if (PyErr_Occurred()) SWIG_fail;
36901 {
36902 PyThreadState* __tstate = wxPyBeginAllowThreads();
36903 (arg1)->SetVGap(arg2);
36904
36905 wxPyEndAllowThreads(__tstate);
36906 if (PyErr_Occurred()) SWIG_fail;
36907 }
36908 Py_INCREF(Py_None); resultobj = Py_None;
36909 return resultobj;
36910 fail:
36911 return NULL;
36912 }
36913
36914
36915 static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
36916 PyObject *resultobj;
36917 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36918 int arg2 ;
36919 PyObject * obj0 = 0 ;
36920 PyObject * obj1 = 0 ;
36921 char *kwnames[] = {
36922 (char *) "self",(char *) "gap", NULL
36923 };
36924
36925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36928 arg2 = (int)SWIG_As_int(obj1);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 {
36931 PyThreadState* __tstate = wxPyBeginAllowThreads();
36932 (arg1)->SetHGap(arg2);
36933
36934 wxPyEndAllowThreads(__tstate);
36935 if (PyErr_Occurred()) SWIG_fail;
36936 }
36937 Py_INCREF(Py_None); resultobj = Py_None;
36938 return resultobj;
36939 fail:
36940 return NULL;
36941 }
36942
36943
36944 static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) {
36945 PyObject *resultobj;
36946 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36947 int result;
36948 PyObject * obj0 = 0 ;
36949 char *kwnames[] = {
36950 (char *) "self", NULL
36951 };
36952
36953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36956 {
36957 PyThreadState* __tstate = wxPyBeginAllowThreads();
36958 result = (int)(arg1)->GetCols();
36959
36960 wxPyEndAllowThreads(__tstate);
36961 if (PyErr_Occurred()) SWIG_fail;
36962 }
36963 resultobj = SWIG_From_int((int)result);
36964 return resultobj;
36965 fail:
36966 return NULL;
36967 }
36968
36969
36970 static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) {
36971 PyObject *resultobj;
36972 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36973 int result;
36974 PyObject * obj0 = 0 ;
36975 char *kwnames[] = {
36976 (char *) "self", NULL
36977 };
36978
36979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
36980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36982 {
36983 PyThreadState* __tstate = wxPyBeginAllowThreads();
36984 result = (int)(arg1)->GetRows();
36985
36986 wxPyEndAllowThreads(__tstate);
36987 if (PyErr_Occurred()) SWIG_fail;
36988 }
36989 resultobj = SWIG_From_int((int)result);
36990 return resultobj;
36991 fail:
36992 return NULL;
36993 }
36994
36995
36996 static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
36997 PyObject *resultobj;
36998 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36999 int result;
37000 PyObject * obj0 = 0 ;
37001 char *kwnames[] = {
37002 (char *) "self", NULL
37003 };
37004
37005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
37006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
37007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37008 {
37009 PyThreadState* __tstate = wxPyBeginAllowThreads();
37010 result = (int)(arg1)->GetVGap();
37011
37012 wxPyEndAllowThreads(__tstate);
37013 if (PyErr_Occurred()) SWIG_fail;
37014 }
37015 resultobj = SWIG_From_int((int)result);
37016 return resultobj;
37017 fail:
37018 return NULL;
37019 }
37020
37021
37022 static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
37023 PyObject *resultobj;
37024 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
37025 int result;
37026 PyObject * obj0 = 0 ;
37027 char *kwnames[] = {
37028 (char *) "self", NULL
37029 };
37030
37031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
37032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
37033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37034 {
37035 PyThreadState* __tstate = wxPyBeginAllowThreads();
37036 result = (int)(arg1)->GetHGap();
37037
37038 wxPyEndAllowThreads(__tstate);
37039 if (PyErr_Occurred()) SWIG_fail;
37040 }
37041 resultobj = SWIG_From_int((int)result);
37042 return resultobj;
37043 fail:
37044 return NULL;
37045 }
37046
37047
37048 static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) {
37049 PyObject *obj;
37050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37051 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
37052 Py_INCREF(obj);
37053 return Py_BuildValue((char *)"");
37054 }
37055 static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
37056 PyObject *resultobj;
37057 int arg1 = (int) 1 ;
37058 int arg2 = (int) 0 ;
37059 int arg3 = (int) 0 ;
37060 int arg4 = (int) 0 ;
37061 wxFlexGridSizer *result;
37062 PyObject * obj0 = 0 ;
37063 PyObject * obj1 = 0 ;
37064 PyObject * obj2 = 0 ;
37065 PyObject * obj3 = 0 ;
37066 char *kwnames[] = {
37067 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
37068 };
37069
37070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
37071 if (obj0) {
37072 arg1 = (int)SWIG_As_int(obj0);
37073 if (PyErr_Occurred()) SWIG_fail;
37074 }
37075 if (obj1) {
37076 arg2 = (int)SWIG_As_int(obj1);
37077 if (PyErr_Occurred()) SWIG_fail;
37078 }
37079 if (obj2) {
37080 arg3 = (int)SWIG_As_int(obj2);
37081 if (PyErr_Occurred()) SWIG_fail;
37082 }
37083 if (obj3) {
37084 arg4 = (int)SWIG_As_int(obj3);
37085 if (PyErr_Occurred()) SWIG_fail;
37086 }
37087 {
37088 PyThreadState* __tstate = wxPyBeginAllowThreads();
37089 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
37090
37091 wxPyEndAllowThreads(__tstate);
37092 if (PyErr_Occurred()) SWIG_fail;
37093 }
37094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
37095 return resultobj;
37096 fail:
37097 return NULL;
37098 }
37099
37100
37101 static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
37102 PyObject *resultobj;
37103 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37104 size_t arg2 ;
37105 int arg3 = (int) 0 ;
37106 PyObject * obj0 = 0 ;
37107 PyObject * obj1 = 0 ;
37108 PyObject * obj2 = 0 ;
37109 char *kwnames[] = {
37110 (char *) "self",(char *) "idx",(char *) "proportion", NULL
37111 };
37112
37113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
37114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37116 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 if (obj2) {
37119 arg3 = (int)SWIG_As_int(obj2);
37120 if (PyErr_Occurred()) SWIG_fail;
37121 }
37122 {
37123 PyThreadState* __tstate = wxPyBeginAllowThreads();
37124 (arg1)->AddGrowableRow(arg2,arg3);
37125
37126 wxPyEndAllowThreads(__tstate);
37127 if (PyErr_Occurred()) SWIG_fail;
37128 }
37129 Py_INCREF(Py_None); resultobj = Py_None;
37130 return resultobj;
37131 fail:
37132 return NULL;
37133 }
37134
37135
37136 static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
37137 PyObject *resultobj;
37138 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37139 size_t arg2 ;
37140 PyObject * obj0 = 0 ;
37141 PyObject * obj1 = 0 ;
37142 char *kwnames[] = {
37143 (char *) "self",(char *) "idx", NULL
37144 };
37145
37146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
37147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37149 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->RemoveGrowableRow(arg2);
37154
37155 wxPyEndAllowThreads(__tstate);
37156 if (PyErr_Occurred()) SWIG_fail;
37157 }
37158 Py_INCREF(Py_None); resultobj = Py_None;
37159 return resultobj;
37160 fail:
37161 return NULL;
37162 }
37163
37164
37165 static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
37166 PyObject *resultobj;
37167 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37168 size_t arg2 ;
37169 int arg3 = (int) 0 ;
37170 PyObject * obj0 = 0 ;
37171 PyObject * obj1 = 0 ;
37172 PyObject * obj2 = 0 ;
37173 char *kwnames[] = {
37174 (char *) "self",(char *) "idx",(char *) "proportion", NULL
37175 };
37176
37177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
37178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37180 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
37181 if (PyErr_Occurred()) SWIG_fail;
37182 if (obj2) {
37183 arg3 = (int)SWIG_As_int(obj2);
37184 if (PyErr_Occurred()) SWIG_fail;
37185 }
37186 {
37187 PyThreadState* __tstate = wxPyBeginAllowThreads();
37188 (arg1)->AddGrowableCol(arg2,arg3);
37189
37190 wxPyEndAllowThreads(__tstate);
37191 if (PyErr_Occurred()) SWIG_fail;
37192 }
37193 Py_INCREF(Py_None); resultobj = Py_None;
37194 return resultobj;
37195 fail:
37196 return NULL;
37197 }
37198
37199
37200 static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
37201 PyObject *resultobj;
37202 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37203 size_t arg2 ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 char *kwnames[] = {
37207 (char *) "self",(char *) "idx", NULL
37208 };
37209
37210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
37211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37213 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
37214 if (PyErr_Occurred()) SWIG_fail;
37215 {
37216 PyThreadState* __tstate = wxPyBeginAllowThreads();
37217 (arg1)->RemoveGrowableCol(arg2);
37218
37219 wxPyEndAllowThreads(__tstate);
37220 if (PyErr_Occurred()) SWIG_fail;
37221 }
37222 Py_INCREF(Py_None); resultobj = Py_None;
37223 return resultobj;
37224 fail:
37225 return NULL;
37226 }
37227
37228
37229 static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
37230 PyObject *resultobj;
37231 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37232 int arg2 ;
37233 PyObject * obj0 = 0 ;
37234 PyObject * obj1 = 0 ;
37235 char *kwnames[] = {
37236 (char *) "self",(char *) "direction", NULL
37237 };
37238
37239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
37240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37242 arg2 = (int)SWIG_As_int(obj1);
37243 if (PyErr_Occurred()) SWIG_fail;
37244 {
37245 PyThreadState* __tstate = wxPyBeginAllowThreads();
37246 (arg1)->SetFlexibleDirection(arg2);
37247
37248 wxPyEndAllowThreads(__tstate);
37249 if (PyErr_Occurred()) SWIG_fail;
37250 }
37251 Py_INCREF(Py_None); resultobj = Py_None;
37252 return resultobj;
37253 fail:
37254 return NULL;
37255 }
37256
37257
37258 static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
37259 PyObject *resultobj;
37260 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37261 int result;
37262 PyObject * obj0 = 0 ;
37263 char *kwnames[] = {
37264 (char *) "self", NULL
37265 };
37266
37267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
37268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37270 {
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 result = (int)(arg1)->GetFlexibleDirection();
37273
37274 wxPyEndAllowThreads(__tstate);
37275 if (PyErr_Occurred()) SWIG_fail;
37276 }
37277 resultobj = SWIG_From_int((int)result);
37278 return resultobj;
37279 fail:
37280 return NULL;
37281 }
37282
37283
37284 static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
37285 PyObject *resultobj;
37286 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37287 int arg2 ;
37288 PyObject * obj0 = 0 ;
37289 PyObject * obj1 = 0 ;
37290 char *kwnames[] = {
37291 (char *) "self",(char *) "mode", NULL
37292 };
37293
37294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
37295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37297 arg2 = (int)SWIG_As_int(obj1);
37298 if (PyErr_Occurred()) SWIG_fail;
37299 {
37300 PyThreadState* __tstate = wxPyBeginAllowThreads();
37301 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
37302
37303 wxPyEndAllowThreads(__tstate);
37304 if (PyErr_Occurred()) SWIG_fail;
37305 }
37306 Py_INCREF(Py_None); resultobj = Py_None;
37307 return resultobj;
37308 fail:
37309 return NULL;
37310 }
37311
37312
37313 static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
37314 PyObject *resultobj;
37315 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37316 int result;
37317 PyObject * obj0 = 0 ;
37318 char *kwnames[] = {
37319 (char *) "self", NULL
37320 };
37321
37322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
37323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37325 {
37326 PyThreadState* __tstate = wxPyBeginAllowThreads();
37327 result = (int)(arg1)->GetNonFlexibleGrowMode();
37328
37329 wxPyEndAllowThreads(__tstate);
37330 if (PyErr_Occurred()) SWIG_fail;
37331 }
37332 resultobj = SWIG_From_int((int)result);
37333 return resultobj;
37334 fail:
37335 return NULL;
37336 }
37337
37338
37339 static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) {
37340 PyObject *resultobj;
37341 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37342 wxArrayInt *result;
37343 PyObject * obj0 = 0 ;
37344 char *kwnames[] = {
37345 (char *) "self", NULL
37346 };
37347
37348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
37349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37351 {
37352 PyThreadState* __tstate = wxPyBeginAllowThreads();
37353 {
37354 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
37355 result = (wxArrayInt *) &_result_ref;
37356 }
37357
37358 wxPyEndAllowThreads(__tstate);
37359 if (PyErr_Occurred()) SWIG_fail;
37360 }
37361 {
37362 resultobj = PyList_New(0);
37363 size_t idx;
37364 for (idx = 0; idx < result->GetCount(); idx += 1) {
37365 PyObject* val = PyInt_FromLong( result->Item(idx) );
37366 PyList_Append(resultobj, val);
37367 Py_DECREF(val);
37368 }
37369 }
37370 return resultobj;
37371 fail:
37372 return NULL;
37373 }
37374
37375
37376 static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) {
37377 PyObject *resultobj;
37378 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37379 wxArrayInt *result;
37380 PyObject * obj0 = 0 ;
37381 char *kwnames[] = {
37382 (char *) "self", NULL
37383 };
37384
37385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
37386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37388 {
37389 PyThreadState* __tstate = wxPyBeginAllowThreads();
37390 {
37391 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
37392 result = (wxArrayInt *) &_result_ref;
37393 }
37394
37395 wxPyEndAllowThreads(__tstate);
37396 if (PyErr_Occurred()) SWIG_fail;
37397 }
37398 {
37399 resultobj = PyList_New(0);
37400 size_t idx;
37401 for (idx = 0; idx < result->GetCount(); idx += 1) {
37402 PyObject* val = PyInt_FromLong( result->Item(idx) );
37403 PyList_Append(resultobj, val);
37404 Py_DECREF(val);
37405 }
37406 }
37407 return resultobj;
37408 fail:
37409 return NULL;
37410 }
37411
37412
37413 static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) {
37414 PyObject *obj;
37415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37416 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
37417 Py_INCREF(obj);
37418 return Py_BuildValue((char *)"");
37419 }
37420 static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) {
37421 PyObject *resultobj;
37422 int arg1 = (int) 0 ;
37423 int arg2 = (int) 0 ;
37424 wxGBPosition *result;
37425 PyObject * obj0 = 0 ;
37426 PyObject * obj1 = 0 ;
37427 char *kwnames[] = {
37428 (char *) "row",(char *) "col", NULL
37429 };
37430
37431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
37432 if (obj0) {
37433 arg1 = (int)SWIG_As_int(obj0);
37434 if (PyErr_Occurred()) SWIG_fail;
37435 }
37436 if (obj1) {
37437 arg2 = (int)SWIG_As_int(obj1);
37438 if (PyErr_Occurred()) SWIG_fail;
37439 }
37440 {
37441 PyThreadState* __tstate = wxPyBeginAllowThreads();
37442 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
37443
37444 wxPyEndAllowThreads(__tstate);
37445 if (PyErr_Occurred()) SWIG_fail;
37446 }
37447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
37448 return resultobj;
37449 fail:
37450 return NULL;
37451 }
37452
37453
37454 static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) {
37455 PyObject *resultobj;
37456 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37457 int result;
37458 PyObject * obj0 = 0 ;
37459 char *kwnames[] = {
37460 (char *) "self", NULL
37461 };
37462
37463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
37464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37466 {
37467 PyThreadState* __tstate = wxPyBeginAllowThreads();
37468 result = (int)((wxGBPosition const *)arg1)->GetRow();
37469
37470 wxPyEndAllowThreads(__tstate);
37471 if (PyErr_Occurred()) SWIG_fail;
37472 }
37473 resultobj = SWIG_From_int((int)result);
37474 return resultobj;
37475 fail:
37476 return NULL;
37477 }
37478
37479
37480 static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) {
37481 PyObject *resultobj;
37482 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37483 int result;
37484 PyObject * obj0 = 0 ;
37485 char *kwnames[] = {
37486 (char *) "self", NULL
37487 };
37488
37489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
37490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37492 {
37493 PyThreadState* __tstate = wxPyBeginAllowThreads();
37494 result = (int)((wxGBPosition const *)arg1)->GetCol();
37495
37496 wxPyEndAllowThreads(__tstate);
37497 if (PyErr_Occurred()) SWIG_fail;
37498 }
37499 resultobj = SWIG_From_int((int)result);
37500 return resultobj;
37501 fail:
37502 return NULL;
37503 }
37504
37505
37506 static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) {
37507 PyObject *resultobj;
37508 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37509 int arg2 ;
37510 PyObject * obj0 = 0 ;
37511 PyObject * obj1 = 0 ;
37512 char *kwnames[] = {
37513 (char *) "self",(char *) "row", NULL
37514 };
37515
37516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
37517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37519 arg2 = (int)SWIG_As_int(obj1);
37520 if (PyErr_Occurred()) SWIG_fail;
37521 {
37522 PyThreadState* __tstate = wxPyBeginAllowThreads();
37523 (arg1)->SetRow(arg2);
37524
37525 wxPyEndAllowThreads(__tstate);
37526 if (PyErr_Occurred()) SWIG_fail;
37527 }
37528 Py_INCREF(Py_None); resultobj = Py_None;
37529 return resultobj;
37530 fail:
37531 return NULL;
37532 }
37533
37534
37535 static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) {
37536 PyObject *resultobj;
37537 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37538 int arg2 ;
37539 PyObject * obj0 = 0 ;
37540 PyObject * obj1 = 0 ;
37541 char *kwnames[] = {
37542 (char *) "self",(char *) "col", NULL
37543 };
37544
37545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
37546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37548 arg2 = (int)SWIG_As_int(obj1);
37549 if (PyErr_Occurred()) SWIG_fail;
37550 {
37551 PyThreadState* __tstate = wxPyBeginAllowThreads();
37552 (arg1)->SetCol(arg2);
37553
37554 wxPyEndAllowThreads(__tstate);
37555 if (PyErr_Occurred()) SWIG_fail;
37556 }
37557 Py_INCREF(Py_None); resultobj = Py_None;
37558 return resultobj;
37559 fail:
37560 return NULL;
37561 }
37562
37563
37564 static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
37565 PyObject *resultobj;
37566 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37567 wxGBPosition *arg2 = 0 ;
37568 bool result;
37569 wxGBPosition temp2 ;
37570 PyObject * obj0 = 0 ;
37571 PyObject * obj1 = 0 ;
37572 char *kwnames[] = {
37573 (char *) "self",(char *) "other", NULL
37574 };
37575
37576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
37577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37579 {
37580 arg2 = &temp2;
37581 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37582 }
37583 {
37584 PyThreadState* __tstate = wxPyBeginAllowThreads();
37585 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
37586
37587 wxPyEndAllowThreads(__tstate);
37588 if (PyErr_Occurred()) SWIG_fail;
37589 }
37590 {
37591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37592 }
37593 return resultobj;
37594 fail:
37595 return NULL;
37596 }
37597
37598
37599 static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
37600 PyObject *resultobj;
37601 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37602 wxGBPosition *arg2 = 0 ;
37603 bool result;
37604 wxGBPosition temp2 ;
37605 PyObject * obj0 = 0 ;
37606 PyObject * obj1 = 0 ;
37607 char *kwnames[] = {
37608 (char *) "self",(char *) "other", NULL
37609 };
37610
37611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
37612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37614 {
37615 arg2 = &temp2;
37616 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37617 }
37618 {
37619 PyThreadState* __tstate = wxPyBeginAllowThreads();
37620 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
37621
37622 wxPyEndAllowThreads(__tstate);
37623 if (PyErr_Occurred()) SWIG_fail;
37624 }
37625 {
37626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37627 }
37628 return resultobj;
37629 fail:
37630 return NULL;
37631 }
37632
37633
37634 static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) {
37635 PyObject *resultobj;
37636 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37637 int arg2 = (int) 0 ;
37638 int arg3 = (int) 0 ;
37639 PyObject * obj0 = 0 ;
37640 PyObject * obj1 = 0 ;
37641 PyObject * obj2 = 0 ;
37642 char *kwnames[] = {
37643 (char *) "self",(char *) "row",(char *) "col", NULL
37644 };
37645
37646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37649 if (obj1) {
37650 arg2 = (int)SWIG_As_int(obj1);
37651 if (PyErr_Occurred()) SWIG_fail;
37652 }
37653 if (obj2) {
37654 arg3 = (int)SWIG_As_int(obj2);
37655 if (PyErr_Occurred()) SWIG_fail;
37656 }
37657 {
37658 PyThreadState* __tstate = wxPyBeginAllowThreads();
37659 wxGBPosition_Set(arg1,arg2,arg3);
37660
37661 wxPyEndAllowThreads(__tstate);
37662 if (PyErr_Occurred()) SWIG_fail;
37663 }
37664 Py_INCREF(Py_None); resultobj = Py_None;
37665 return resultobj;
37666 fail:
37667 return NULL;
37668 }
37669
37670
37671 static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) {
37672 PyObject *resultobj;
37673 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37674 PyObject *result;
37675 PyObject * obj0 = 0 ;
37676 char *kwnames[] = {
37677 (char *) "self", NULL
37678 };
37679
37680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
37681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37683 {
37684 PyThreadState* __tstate = wxPyBeginAllowThreads();
37685 result = (PyObject *)wxGBPosition_Get(arg1);
37686
37687 wxPyEndAllowThreads(__tstate);
37688 if (PyErr_Occurred()) SWIG_fail;
37689 }
37690 resultobj = result;
37691 return resultobj;
37692 fail:
37693 return NULL;
37694 }
37695
37696
37697 static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) {
37698 PyObject *obj;
37699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37700 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
37701 Py_INCREF(obj);
37702 return Py_BuildValue((char *)"");
37703 }
37704 static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) {
37705 PyObject *resultobj;
37706 int arg1 = (int) 1 ;
37707 int arg2 = (int) 1 ;
37708 wxGBSpan *result;
37709 PyObject * obj0 = 0 ;
37710 PyObject * obj1 = 0 ;
37711 char *kwnames[] = {
37712 (char *) "rowspan",(char *) "colspan", NULL
37713 };
37714
37715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
37716 if (obj0) {
37717 arg1 = (int)SWIG_As_int(obj0);
37718 if (PyErr_Occurred()) SWIG_fail;
37719 }
37720 if (obj1) {
37721 arg2 = (int)SWIG_As_int(obj1);
37722 if (PyErr_Occurred()) SWIG_fail;
37723 }
37724 {
37725 PyThreadState* __tstate = wxPyBeginAllowThreads();
37726 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37727
37728 wxPyEndAllowThreads(__tstate);
37729 if (PyErr_Occurred()) SWIG_fail;
37730 }
37731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37732 return resultobj;
37733 fail:
37734 return NULL;
37735 }
37736
37737
37738 static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
37739 PyObject *resultobj;
37740 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37741 int result;
37742 PyObject * obj0 = 0 ;
37743 char *kwnames[] = {
37744 (char *) "self", NULL
37745 };
37746
37747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37750 {
37751 PyThreadState* __tstate = wxPyBeginAllowThreads();
37752 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37753
37754 wxPyEndAllowThreads(__tstate);
37755 if (PyErr_Occurred()) SWIG_fail;
37756 }
37757 resultobj = SWIG_From_int((int)result);
37758 return resultobj;
37759 fail:
37760 return NULL;
37761 }
37762
37763
37764 static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
37765 PyObject *resultobj;
37766 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37767 int result;
37768 PyObject * obj0 = 0 ;
37769 char *kwnames[] = {
37770 (char *) "self", NULL
37771 };
37772
37773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37776 {
37777 PyThreadState* __tstate = wxPyBeginAllowThreads();
37778 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37779
37780 wxPyEndAllowThreads(__tstate);
37781 if (PyErr_Occurred()) SWIG_fail;
37782 }
37783 resultobj = SWIG_From_int((int)result);
37784 return resultobj;
37785 fail:
37786 return NULL;
37787 }
37788
37789
37790 static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
37791 PyObject *resultobj;
37792 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37793 int arg2 ;
37794 PyObject * obj0 = 0 ;
37795 PyObject * obj1 = 0 ;
37796 char *kwnames[] = {
37797 (char *) "self",(char *) "rowspan", NULL
37798 };
37799
37800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37803 arg2 = (int)SWIG_As_int(obj1);
37804 if (PyErr_Occurred()) SWIG_fail;
37805 {
37806 PyThreadState* __tstate = wxPyBeginAllowThreads();
37807 (arg1)->SetRowspan(arg2);
37808
37809 wxPyEndAllowThreads(__tstate);
37810 if (PyErr_Occurred()) SWIG_fail;
37811 }
37812 Py_INCREF(Py_None); resultobj = Py_None;
37813 return resultobj;
37814 fail:
37815 return NULL;
37816 }
37817
37818
37819 static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
37820 PyObject *resultobj;
37821 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37822 int arg2 ;
37823 PyObject * obj0 = 0 ;
37824 PyObject * obj1 = 0 ;
37825 char *kwnames[] = {
37826 (char *) "self",(char *) "colspan", NULL
37827 };
37828
37829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37832 arg2 = (int)SWIG_As_int(obj1);
37833 if (PyErr_Occurred()) SWIG_fail;
37834 {
37835 PyThreadState* __tstate = wxPyBeginAllowThreads();
37836 (arg1)->SetColspan(arg2);
37837
37838 wxPyEndAllowThreads(__tstate);
37839 if (PyErr_Occurred()) SWIG_fail;
37840 }
37841 Py_INCREF(Py_None); resultobj = Py_None;
37842 return resultobj;
37843 fail:
37844 return NULL;
37845 }
37846
37847
37848 static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
37849 PyObject *resultobj;
37850 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37851 wxGBSpan *arg2 = 0 ;
37852 bool result;
37853 wxGBSpan temp2 ;
37854 PyObject * obj0 = 0 ;
37855 PyObject * obj1 = 0 ;
37856 char *kwnames[] = {
37857 (char *) "self",(char *) "other", NULL
37858 };
37859
37860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37863 {
37864 arg2 = &temp2;
37865 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37866 }
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37870
37871 wxPyEndAllowThreads(__tstate);
37872 if (PyErr_Occurred()) SWIG_fail;
37873 }
37874 {
37875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37876 }
37877 return resultobj;
37878 fail:
37879 return NULL;
37880 }
37881
37882
37883 static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
37884 PyObject *resultobj;
37885 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37886 wxGBSpan *arg2 = 0 ;
37887 bool result;
37888 wxGBSpan temp2 ;
37889 PyObject * obj0 = 0 ;
37890 PyObject * obj1 = 0 ;
37891 char *kwnames[] = {
37892 (char *) "self",(char *) "other", NULL
37893 };
37894
37895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37898 {
37899 arg2 = &temp2;
37900 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37901 }
37902 {
37903 PyThreadState* __tstate = wxPyBeginAllowThreads();
37904 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37905
37906 wxPyEndAllowThreads(__tstate);
37907 if (PyErr_Occurred()) SWIG_fail;
37908 }
37909 {
37910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37911 }
37912 return resultobj;
37913 fail:
37914 return NULL;
37915 }
37916
37917
37918 static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) {
37919 PyObject *resultobj;
37920 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37921 int arg2 = (int) 1 ;
37922 int arg3 = (int) 1 ;
37923 PyObject * obj0 = 0 ;
37924 PyObject * obj1 = 0 ;
37925 PyObject * obj2 = 0 ;
37926 char *kwnames[] = {
37927 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37928 };
37929
37930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37933 if (obj1) {
37934 arg2 = (int)SWIG_As_int(obj1);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 if (obj2) {
37938 arg3 = (int)SWIG_As_int(obj2);
37939 if (PyErr_Occurred()) SWIG_fail;
37940 }
37941 {
37942 PyThreadState* __tstate = wxPyBeginAllowThreads();
37943 wxGBSpan_Set(arg1,arg2,arg3);
37944
37945 wxPyEndAllowThreads(__tstate);
37946 if (PyErr_Occurred()) SWIG_fail;
37947 }
37948 Py_INCREF(Py_None); resultobj = Py_None;
37949 return resultobj;
37950 fail:
37951 return NULL;
37952 }
37953
37954
37955 static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) {
37956 PyObject *resultobj;
37957 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37958 PyObject *result;
37959 PyObject * obj0 = 0 ;
37960 char *kwnames[] = {
37961 (char *) "self", NULL
37962 };
37963
37964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37967 {
37968 PyThreadState* __tstate = wxPyBeginAllowThreads();
37969 result = (PyObject *)wxGBSpan_Get(arg1);
37970
37971 wxPyEndAllowThreads(__tstate);
37972 if (PyErr_Occurred()) SWIG_fail;
37973 }
37974 resultobj = result;
37975 return resultobj;
37976 fail:
37977 return NULL;
37978 }
37979
37980
37981 static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) {
37982 PyObject *obj;
37983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37984 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37985 Py_INCREF(obj);
37986 return Py_BuildValue((char *)"");
37987 }
37988 static int _wrap_DefaultSpan_set(PyObject *) {
37989 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37990 return 1;
37991 }
37992
37993
37994 static PyObject *_wrap_DefaultSpan_get() {
37995 PyObject *pyobj;
37996
37997 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37998 return pyobj;
37999 }
38000
38001
38002 static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
38003 PyObject *resultobj;
38004 wxGBSizerItem *result;
38005 char *kwnames[] = {
38006 NULL
38007 };
38008
38009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
38010 {
38011 PyThreadState* __tstate = wxPyBeginAllowThreads();
38012 result = (wxGBSizerItem *)new wxGBSizerItem();
38013
38014 wxPyEndAllowThreads(__tstate);
38015 if (PyErr_Occurred()) SWIG_fail;
38016 }
38017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38018 return resultobj;
38019 fail:
38020 return NULL;
38021 }
38022
38023
38024 static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
38025 PyObject *resultobj;
38026 wxWindow *arg1 = (wxWindow *) 0 ;
38027 wxGBPosition *arg2 = 0 ;
38028 wxGBSpan *arg3 = 0 ;
38029 int arg4 ;
38030 int arg5 ;
38031 PyObject *arg6 = (PyObject *) NULL ;
38032 wxGBSizerItem *result;
38033 wxGBPosition temp2 ;
38034 wxGBSpan temp3 ;
38035 PyObject * obj0 = 0 ;
38036 PyObject * obj1 = 0 ;
38037 PyObject * obj2 = 0 ;
38038 PyObject * obj3 = 0 ;
38039 PyObject * obj4 = 0 ;
38040 PyObject * obj5 = 0 ;
38041 char *kwnames[] = {
38042 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38043 };
38044
38045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
38046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
38047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38048 {
38049 arg2 = &temp2;
38050 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38051 }
38052 {
38053 arg3 = &temp3;
38054 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38055 }
38056 arg4 = (int)SWIG_As_int(obj3);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 arg5 = (int)SWIG_As_int(obj4);
38059 if (PyErr_Occurred()) SWIG_fail;
38060 if (obj5) {
38061 arg6 = obj5;
38062 }
38063 {
38064 PyThreadState* __tstate = wxPyBeginAllowThreads();
38065 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
38066
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38071 return resultobj;
38072 fail:
38073 return NULL;
38074 }
38075
38076
38077 static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj;
38079 wxSizer *arg1 = (wxSizer *) 0 ;
38080 wxGBPosition *arg2 = 0 ;
38081 wxGBSpan *arg3 = 0 ;
38082 int arg4 ;
38083 int arg5 ;
38084 PyObject *arg6 = (PyObject *) NULL ;
38085 wxGBSizerItem *result;
38086 wxGBPosition temp2 ;
38087 wxGBSpan temp3 ;
38088 PyObject * obj0 = 0 ;
38089 PyObject * obj1 = 0 ;
38090 PyObject * obj2 = 0 ;
38091 PyObject * obj3 = 0 ;
38092 PyObject * obj4 = 0 ;
38093 PyObject * obj5 = 0 ;
38094 char *kwnames[] = {
38095 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38096 };
38097
38098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
38099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
38100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38101 {
38102 arg2 = &temp2;
38103 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38104 }
38105 {
38106 arg3 = &temp3;
38107 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38108 }
38109 arg4 = (int)SWIG_As_int(obj3);
38110 if (PyErr_Occurred()) SWIG_fail;
38111 arg5 = (int)SWIG_As_int(obj4);
38112 if (PyErr_Occurred()) SWIG_fail;
38113 if (obj5) {
38114 arg6 = obj5;
38115 }
38116 {
38117 PyThreadState* __tstate = wxPyBeginAllowThreads();
38118 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
38119
38120 wxPyEndAllowThreads(__tstate);
38121 if (PyErr_Occurred()) SWIG_fail;
38122 }
38123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38124 return resultobj;
38125 fail:
38126 return NULL;
38127 }
38128
38129
38130 static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
38131 PyObject *resultobj;
38132 int arg1 ;
38133 int arg2 ;
38134 wxGBPosition *arg3 = 0 ;
38135 wxGBSpan *arg4 = 0 ;
38136 int arg5 ;
38137 int arg6 ;
38138 PyObject *arg7 = (PyObject *) NULL ;
38139 wxGBSizerItem *result;
38140 wxGBPosition temp3 ;
38141 wxGBSpan temp4 ;
38142 PyObject * obj0 = 0 ;
38143 PyObject * obj1 = 0 ;
38144 PyObject * obj2 = 0 ;
38145 PyObject * obj3 = 0 ;
38146 PyObject * obj4 = 0 ;
38147 PyObject * obj5 = 0 ;
38148 PyObject * obj6 = 0 ;
38149 char *kwnames[] = {
38150 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38151 };
38152
38153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38154 arg1 = (int)SWIG_As_int(obj0);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 arg2 = (int)SWIG_As_int(obj1);
38157 if (PyErr_Occurred()) SWIG_fail;
38158 {
38159 arg3 = &temp3;
38160 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38161 }
38162 {
38163 arg4 = &temp4;
38164 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38165 }
38166 arg5 = (int)SWIG_As_int(obj4);
38167 if (PyErr_Occurred()) SWIG_fail;
38168 arg6 = (int)SWIG_As_int(obj5);
38169 if (PyErr_Occurred()) SWIG_fail;
38170 if (obj6) {
38171 arg7 = obj6;
38172 }
38173 {
38174 PyThreadState* __tstate = wxPyBeginAllowThreads();
38175 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38176
38177 wxPyEndAllowThreads(__tstate);
38178 if (PyErr_Occurred()) SWIG_fail;
38179 }
38180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38181 return resultobj;
38182 fail:
38183 return NULL;
38184 }
38185
38186
38187 static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) {
38188 PyObject *resultobj;
38189 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38190 wxGBPosition result;
38191 PyObject * obj0 = 0 ;
38192 char *kwnames[] = {
38193 (char *) "self", NULL
38194 };
38195
38196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
38197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 result = ((wxGBSizerItem const *)arg1)->GetPos();
38202
38203 wxPyEndAllowThreads(__tstate);
38204 if (PyErr_Occurred()) SWIG_fail;
38205 }
38206 {
38207 wxGBPosition * resultptr;
38208 resultptr = new wxGBPosition((wxGBPosition &) result);
38209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38210 }
38211 return resultobj;
38212 fail:
38213 return NULL;
38214 }
38215
38216
38217 static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
38218 PyObject *resultobj;
38219 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38220 wxGBSpan result;
38221 PyObject * obj0 = 0 ;
38222 char *kwnames[] = {
38223 (char *) "self", NULL
38224 };
38225
38226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
38227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38229 {
38230 PyThreadState* __tstate = wxPyBeginAllowThreads();
38231 result = ((wxGBSizerItem const *)arg1)->GetSpan();
38232
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 {
38237 wxGBSpan * resultptr;
38238 resultptr = new wxGBSpan((wxGBSpan &) result);
38239 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38240 }
38241 return resultobj;
38242 fail:
38243 return NULL;
38244 }
38245
38246
38247 static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) {
38248 PyObject *resultobj;
38249 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38250 wxGBPosition *arg2 = 0 ;
38251 bool result;
38252 wxGBPosition temp2 ;
38253 PyObject * obj0 = 0 ;
38254 PyObject * obj1 = 0 ;
38255 char *kwnames[] = {
38256 (char *) "self",(char *) "pos", NULL
38257 };
38258
38259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
38260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38262 {
38263 arg2 = &temp2;
38264 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38265 }
38266 {
38267 PyThreadState* __tstate = wxPyBeginAllowThreads();
38268 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
38269
38270 wxPyEndAllowThreads(__tstate);
38271 if (PyErr_Occurred()) SWIG_fail;
38272 }
38273 {
38274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38275 }
38276 return resultobj;
38277 fail:
38278 return NULL;
38279 }
38280
38281
38282 static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
38283 PyObject *resultobj;
38284 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38285 wxGBSpan *arg2 = 0 ;
38286 bool result;
38287 wxGBSpan temp2 ;
38288 PyObject * obj0 = 0 ;
38289 PyObject * obj1 = 0 ;
38290 char *kwnames[] = {
38291 (char *) "self",(char *) "span", NULL
38292 };
38293
38294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
38295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38297 {
38298 arg2 = &temp2;
38299 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
38300 }
38301 {
38302 PyThreadState* __tstate = wxPyBeginAllowThreads();
38303 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
38304
38305 wxPyEndAllowThreads(__tstate);
38306 if (PyErr_Occurred()) SWIG_fail;
38307 }
38308 {
38309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38310 }
38311 return resultobj;
38312 fail:
38313 return NULL;
38314 }
38315
38316
38317 static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
38318 PyObject *resultobj;
38319 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38320 wxGBSizerItem *arg2 = 0 ;
38321 bool result;
38322 PyObject * obj0 = 0 ;
38323 PyObject * obj1 = 0 ;
38324 char *kwnames[] = {
38325 (char *) "self",(char *) "other", NULL
38326 };
38327
38328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
38329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38331 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38332 SWIG_POINTER_EXCEPTION | 0)) == -1)
38333 SWIG_fail;
38334 if (arg2 == NULL) {
38335 PyErr_SetString(PyExc_TypeError,"null reference");
38336 SWIG_fail;
38337 }
38338 {
38339 PyThreadState* __tstate = wxPyBeginAllowThreads();
38340 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
38341
38342 wxPyEndAllowThreads(__tstate);
38343 if (PyErr_Occurred()) SWIG_fail;
38344 }
38345 {
38346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38347 }
38348 return resultobj;
38349 fail:
38350 return NULL;
38351 }
38352
38353
38354 static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) {
38355 PyObject *resultobj;
38356 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38357 wxGBPosition *arg2 = 0 ;
38358 wxGBSpan *arg3 = 0 ;
38359 bool result;
38360 wxGBPosition temp2 ;
38361 wxGBSpan temp3 ;
38362 PyObject * obj0 = 0 ;
38363 PyObject * obj1 = 0 ;
38364 PyObject * obj2 = 0 ;
38365 char *kwnames[] = {
38366 (char *) "self",(char *) "pos",(char *) "span", NULL
38367 };
38368
38369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
38370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38372 {
38373 arg2 = &temp2;
38374 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38375 }
38376 {
38377 arg3 = &temp3;
38378 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38379 }
38380 {
38381 PyThreadState* __tstate = wxPyBeginAllowThreads();
38382 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
38383
38384 wxPyEndAllowThreads(__tstate);
38385 if (PyErr_Occurred()) SWIG_fail;
38386 }
38387 {
38388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38389 }
38390 return resultobj;
38391 fail:
38392 return NULL;
38393 }
38394
38395
38396 static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) {
38397 PyObject *resultobj;
38398 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38399 wxGBPosition result;
38400 PyObject * obj0 = 0 ;
38401 char *kwnames[] = {
38402 (char *) "self", NULL
38403 };
38404
38405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
38406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38408 {
38409 PyThreadState* __tstate = wxPyBeginAllowThreads();
38410 result = wxGBSizerItem_GetEndPos(arg1);
38411
38412 wxPyEndAllowThreads(__tstate);
38413 if (PyErr_Occurred()) SWIG_fail;
38414 }
38415 {
38416 wxGBPosition * resultptr;
38417 resultptr = new wxGBPosition((wxGBPosition &) result);
38418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38419 }
38420 return resultobj;
38421 fail:
38422 return NULL;
38423 }
38424
38425
38426 static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38427 PyObject *resultobj;
38428 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38429 wxGridBagSizer *result;
38430 PyObject * obj0 = 0 ;
38431 char *kwnames[] = {
38432 (char *) "self", NULL
38433 };
38434
38435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
38436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38438 {
38439 PyThreadState* __tstate = wxPyBeginAllowThreads();
38440 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
38441
38442 wxPyEndAllowThreads(__tstate);
38443 if (PyErr_Occurred()) SWIG_fail;
38444 }
38445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
38446 return resultobj;
38447 fail:
38448 return NULL;
38449 }
38450
38451
38452 static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38453 PyObject *resultobj;
38454 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38455 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
38456 PyObject * obj0 = 0 ;
38457 PyObject * obj1 = 0 ;
38458 char *kwnames[] = {
38459 (char *) "self",(char *) "sizer", NULL
38460 };
38461
38462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
38463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
38466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38467 {
38468 PyThreadState* __tstate = wxPyBeginAllowThreads();
38469 (arg1)->SetGBSizer(arg2);
38470
38471 wxPyEndAllowThreads(__tstate);
38472 if (PyErr_Occurred()) SWIG_fail;
38473 }
38474 Py_INCREF(Py_None); resultobj = Py_None;
38475 return resultobj;
38476 fail:
38477 return NULL;
38478 }
38479
38480
38481 static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) {
38482 PyObject *obj;
38483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38484 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
38485 Py_INCREF(obj);
38486 return Py_BuildValue((char *)"");
38487 }
38488 static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38489 PyObject *resultobj;
38490 int arg1 = (int) 0 ;
38491 int arg2 = (int) 0 ;
38492 wxGridBagSizer *result;
38493 PyObject * obj0 = 0 ;
38494 PyObject * obj1 = 0 ;
38495 char *kwnames[] = {
38496 (char *) "vgap",(char *) "hgap", NULL
38497 };
38498
38499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
38500 if (obj0) {
38501 arg1 = (int)SWIG_As_int(obj0);
38502 if (PyErr_Occurred()) SWIG_fail;
38503 }
38504 if (obj1) {
38505 arg2 = (int)SWIG_As_int(obj1);
38506 if (PyErr_Occurred()) SWIG_fail;
38507 }
38508 {
38509 PyThreadState* __tstate = wxPyBeginAllowThreads();
38510 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
38511
38512 wxPyEndAllowThreads(__tstate);
38513 if (PyErr_Occurred()) SWIG_fail;
38514 }
38515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
38516 return resultobj;
38517 fail:
38518 return NULL;
38519 }
38520
38521
38522 static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
38523 PyObject *resultobj;
38524 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38525 PyObject *arg2 = (PyObject *) 0 ;
38526 wxGBPosition *arg3 = 0 ;
38527 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
38528 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
38529 int arg5 = (int) 0 ;
38530 int arg6 = (int) 0 ;
38531 PyObject *arg7 = (PyObject *) NULL ;
38532 wxGBSizerItem *result;
38533 wxGBPosition temp3 ;
38534 wxGBSpan temp4 ;
38535 PyObject * obj0 = 0 ;
38536 PyObject * obj1 = 0 ;
38537 PyObject * obj2 = 0 ;
38538 PyObject * obj3 = 0 ;
38539 PyObject * obj4 = 0 ;
38540 PyObject * obj5 = 0 ;
38541 PyObject * obj6 = 0 ;
38542 char *kwnames[] = {
38543 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38544 };
38545
38546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38549 arg2 = obj1;
38550 {
38551 arg3 = &temp3;
38552 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38553 }
38554 if (obj3) {
38555 {
38556 arg4 = &temp4;
38557 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38558 }
38559 }
38560 if (obj4) {
38561 arg5 = (int)SWIG_As_int(obj4);
38562 if (PyErr_Occurred()) SWIG_fail;
38563 }
38564 if (obj5) {
38565 arg6 = (int)SWIG_As_int(obj5);
38566 if (PyErr_Occurred()) SWIG_fail;
38567 }
38568 if (obj6) {
38569 arg7 = obj6;
38570 }
38571 {
38572 PyThreadState* __tstate = wxPyBeginAllowThreads();
38573 result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38574
38575 wxPyEndAllowThreads(__tstate);
38576 if (PyErr_Occurred()) SWIG_fail;
38577 }
38578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38579 return resultobj;
38580 fail:
38581 return NULL;
38582 }
38583
38584
38585 static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
38586 PyObject *resultobj;
38587 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38588 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38589 wxGBSizerItem *result;
38590 PyObject * obj0 = 0 ;
38591 PyObject * obj1 = 0 ;
38592 char *kwnames[] = {
38593 (char *) "self",(char *) "item", NULL
38594 };
38595
38596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
38597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38601 {
38602 PyThreadState* __tstate = wxPyBeginAllowThreads();
38603 result = (wxGBSizerItem *)(arg1)->Add(arg2);
38604
38605 wxPyEndAllowThreads(__tstate);
38606 if (PyErr_Occurred()) SWIG_fail;
38607 }
38608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38609 return resultobj;
38610 fail:
38611 return NULL;
38612 }
38613
38614
38615 static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
38616 PyObject *resultobj;
38617 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38618 int arg2 ;
38619 int arg3 ;
38620 wxSize result;
38621 PyObject * obj0 = 0 ;
38622 PyObject * obj1 = 0 ;
38623 PyObject * obj2 = 0 ;
38624 char *kwnames[] = {
38625 (char *) "self",(char *) "row",(char *) "col", NULL
38626 };
38627
38628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
38629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38631 arg2 = (int)SWIG_As_int(obj1);
38632 if (PyErr_Occurred()) SWIG_fail;
38633 arg3 = (int)SWIG_As_int(obj2);
38634 if (PyErr_Occurred()) SWIG_fail;
38635 {
38636 PyThreadState* __tstate = wxPyBeginAllowThreads();
38637 result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
38638
38639 wxPyEndAllowThreads(__tstate);
38640 if (PyErr_Occurred()) SWIG_fail;
38641 }
38642 {
38643 wxSize * resultptr;
38644 resultptr = new wxSize((wxSize &) result);
38645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38646 }
38647 return resultobj;
38648 fail:
38649 return NULL;
38650 }
38651
38652
38653 static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
38654 PyObject *resultobj;
38655 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38656 wxSize result;
38657 PyObject * obj0 = 0 ;
38658 char *kwnames[] = {
38659 (char *) "self", NULL
38660 };
38661
38662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
38663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38665 {
38666 PyThreadState* __tstate = wxPyBeginAllowThreads();
38667 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
38668
38669 wxPyEndAllowThreads(__tstate);
38670 if (PyErr_Occurred()) SWIG_fail;
38671 }
38672 {
38673 wxSize * resultptr;
38674 resultptr = new wxSize((wxSize &) result);
38675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38676 }
38677 return resultobj;
38678 fail:
38679 return NULL;
38680 }
38681
38682
38683 static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
38684 PyObject *resultobj;
38685 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38686 wxSize *arg2 = 0 ;
38687 wxSize temp2 ;
38688 PyObject * obj0 = 0 ;
38689 PyObject * obj1 = 0 ;
38690 char *kwnames[] = {
38691 (char *) "self",(char *) "sz", NULL
38692 };
38693
38694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
38695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38697 {
38698 arg2 = &temp2;
38699 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38700 }
38701 {
38702 PyThreadState* __tstate = wxPyBeginAllowThreads();
38703 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
38704
38705 wxPyEndAllowThreads(__tstate);
38706 if (PyErr_Occurred()) SWIG_fail;
38707 }
38708 Py_INCREF(Py_None); resultobj = Py_None;
38709 return resultobj;
38710 fail:
38711 return NULL;
38712 }
38713
38714
38715 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) {
38716 PyObject *resultobj;
38717 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38718 wxWindow *arg2 = (wxWindow *) 0 ;
38719 wxGBPosition result;
38720 PyObject * obj0 = 0 ;
38721 PyObject * obj1 = 0 ;
38722
38723 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38728 {
38729 PyThreadState* __tstate = wxPyBeginAllowThreads();
38730 result = (arg1)->GetItemPosition(arg2);
38731
38732 wxPyEndAllowThreads(__tstate);
38733 if (PyErr_Occurred()) SWIG_fail;
38734 }
38735 {
38736 wxGBPosition * resultptr;
38737 resultptr = new wxGBPosition((wxGBPosition &) result);
38738 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38739 }
38740 return resultobj;
38741 fail:
38742 return NULL;
38743 }
38744
38745
38746 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) {
38747 PyObject *resultobj;
38748 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38749 wxSizer *arg2 = (wxSizer *) 0 ;
38750 wxGBPosition result;
38751 PyObject * obj0 = 0 ;
38752 PyObject * obj1 = 0 ;
38753
38754 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38759 {
38760 PyThreadState* __tstate = wxPyBeginAllowThreads();
38761 result = (arg1)->GetItemPosition(arg2);
38762
38763 wxPyEndAllowThreads(__tstate);
38764 if (PyErr_Occurred()) SWIG_fail;
38765 }
38766 {
38767 wxGBPosition * resultptr;
38768 resultptr = new wxGBPosition((wxGBPosition &) result);
38769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38770 }
38771 return resultobj;
38772 fail:
38773 return NULL;
38774 }
38775
38776
38777 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) {
38778 PyObject *resultobj;
38779 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38780 size_t arg2 ;
38781 wxGBPosition result;
38782 PyObject * obj0 = 0 ;
38783 PyObject * obj1 = 0 ;
38784
38785 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38788 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
38789 if (PyErr_Occurred()) SWIG_fail;
38790 {
38791 PyThreadState* __tstate = wxPyBeginAllowThreads();
38792 result = (arg1)->GetItemPosition(arg2);
38793
38794 wxPyEndAllowThreads(__tstate);
38795 if (PyErr_Occurred()) SWIG_fail;
38796 }
38797 {
38798 wxGBPosition * resultptr;
38799 resultptr = new wxGBPosition((wxGBPosition &) result);
38800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38801 }
38802 return resultobj;
38803 fail:
38804 return NULL;
38805 }
38806
38807
38808 static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38809 int argc;
38810 PyObject *argv[3];
38811 int ii;
38812
38813 argc = PyObject_Length(args);
38814 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38815 argv[ii] = PyTuple_GetItem(args,ii);
38816 }
38817 if (argc == 2) {
38818 int _v;
38819 {
38820 void *ptr;
38821 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38822 _v = 0;
38823 PyErr_Clear();
38824 } else {
38825 _v = 1;
38826 }
38827 }
38828 if (_v) {
38829 {
38830 void *ptr;
38831 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38832 _v = 0;
38833 PyErr_Clear();
38834 } else {
38835 _v = 1;
38836 }
38837 }
38838 if (_v) {
38839 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38840 }
38841 }
38842 }
38843 if (argc == 2) {
38844 int _v;
38845 {
38846 void *ptr;
38847 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38848 _v = 0;
38849 PyErr_Clear();
38850 } else {
38851 _v = 1;
38852 }
38853 }
38854 if (_v) {
38855 {
38856 void *ptr;
38857 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38858 _v = 0;
38859 PyErr_Clear();
38860 } else {
38861 _v = 1;
38862 }
38863 }
38864 if (_v) {
38865 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38866 }
38867 }
38868 }
38869 if (argc == 2) {
38870 int _v;
38871 {
38872 void *ptr;
38873 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38874 _v = 0;
38875 PyErr_Clear();
38876 } else {
38877 _v = 1;
38878 }
38879 }
38880 if (_v) {
38881 _v = SWIG_Check_unsigned_SS_long(argv[1]);
38882 if (_v) {
38883 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38884 }
38885 }
38886 }
38887
38888 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38889 return NULL;
38890 }
38891
38892
38893 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) {
38894 PyObject *resultobj;
38895 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38896 wxWindow *arg2 = (wxWindow *) 0 ;
38897 wxGBPosition *arg3 = 0 ;
38898 bool result;
38899 wxGBPosition temp3 ;
38900 PyObject * obj0 = 0 ;
38901 PyObject * obj1 = 0 ;
38902 PyObject * obj2 = 0 ;
38903
38904 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38909 {
38910 arg3 = &temp3;
38911 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38912 }
38913 {
38914 PyThreadState* __tstate = wxPyBeginAllowThreads();
38915 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38916
38917 wxPyEndAllowThreads(__tstate);
38918 if (PyErr_Occurred()) SWIG_fail;
38919 }
38920 {
38921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38922 }
38923 return resultobj;
38924 fail:
38925 return NULL;
38926 }
38927
38928
38929 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) {
38930 PyObject *resultobj;
38931 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38932 wxSizer *arg2 = (wxSizer *) 0 ;
38933 wxGBPosition *arg3 = 0 ;
38934 bool result;
38935 wxGBPosition temp3 ;
38936 PyObject * obj0 = 0 ;
38937 PyObject * obj1 = 0 ;
38938 PyObject * obj2 = 0 ;
38939
38940 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38945 {
38946 arg3 = &temp3;
38947 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38948 }
38949 {
38950 PyThreadState* __tstate = wxPyBeginAllowThreads();
38951 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38952
38953 wxPyEndAllowThreads(__tstate);
38954 if (PyErr_Occurred()) SWIG_fail;
38955 }
38956 {
38957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38958 }
38959 return resultobj;
38960 fail:
38961 return NULL;
38962 }
38963
38964
38965 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) {
38966 PyObject *resultobj;
38967 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38968 size_t arg2 ;
38969 wxGBPosition *arg3 = 0 ;
38970 bool result;
38971 wxGBPosition temp3 ;
38972 PyObject * obj0 = 0 ;
38973 PyObject * obj1 = 0 ;
38974 PyObject * obj2 = 0 ;
38975
38976 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38979 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
38980 if (PyErr_Occurred()) SWIG_fail;
38981 {
38982 arg3 = &temp3;
38983 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38984 }
38985 {
38986 PyThreadState* __tstate = wxPyBeginAllowThreads();
38987 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38988
38989 wxPyEndAllowThreads(__tstate);
38990 if (PyErr_Occurred()) SWIG_fail;
38991 }
38992 {
38993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38994 }
38995 return resultobj;
38996 fail:
38997 return NULL;
38998 }
38999
39000
39001 static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
39002 int argc;
39003 PyObject *argv[4];
39004 int ii;
39005
39006 argc = PyObject_Length(args);
39007 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
39008 argv[ii] = PyTuple_GetItem(args,ii);
39009 }
39010 if (argc == 3) {
39011 int _v;
39012 {
39013 void *ptr;
39014 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39015 _v = 0;
39016 PyErr_Clear();
39017 } else {
39018 _v = 1;
39019 }
39020 }
39021 if (_v) {
39022 {
39023 void *ptr;
39024 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39025 _v = 0;
39026 PyErr_Clear();
39027 } else {
39028 _v = 1;
39029 }
39030 }
39031 if (_v) {
39032 {
39033 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39034 }
39035 if (_v) {
39036 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
39037 }
39038 }
39039 }
39040 }
39041 if (argc == 3) {
39042 int _v;
39043 {
39044 void *ptr;
39045 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39046 _v = 0;
39047 PyErr_Clear();
39048 } else {
39049 _v = 1;
39050 }
39051 }
39052 if (_v) {
39053 {
39054 void *ptr;
39055 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39056 _v = 0;
39057 PyErr_Clear();
39058 } else {
39059 _v = 1;
39060 }
39061 }
39062 if (_v) {
39063 {
39064 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39065 }
39066 if (_v) {
39067 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
39068 }
39069 }
39070 }
39071 }
39072 if (argc == 3) {
39073 int _v;
39074 {
39075 void *ptr;
39076 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39077 _v = 0;
39078 PyErr_Clear();
39079 } else {
39080 _v = 1;
39081 }
39082 }
39083 if (_v) {
39084 _v = SWIG_Check_unsigned_SS_long(argv[1]);
39085 if (_v) {
39086 {
39087 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39088 }
39089 if (_v) {
39090 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
39091 }
39092 }
39093 }
39094 }
39095
39096 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
39097 return NULL;
39098 }
39099
39100
39101 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) {
39102 PyObject *resultobj;
39103 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39104 wxWindow *arg2 = (wxWindow *) 0 ;
39105 wxGBSpan result;
39106 PyObject * obj0 = 0 ;
39107 PyObject * obj1 = 0 ;
39108
39109 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39112 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39114 {
39115 PyThreadState* __tstate = wxPyBeginAllowThreads();
39116 result = (arg1)->GetItemSpan(arg2);
39117
39118 wxPyEndAllowThreads(__tstate);
39119 if (PyErr_Occurred()) SWIG_fail;
39120 }
39121 {
39122 wxGBSpan * resultptr;
39123 resultptr = new wxGBSpan((wxGBSpan &) result);
39124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39125 }
39126 return resultobj;
39127 fail:
39128 return NULL;
39129 }
39130
39131
39132 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) {
39133 PyObject *resultobj;
39134 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39135 wxSizer *arg2 = (wxSizer *) 0 ;
39136 wxGBSpan result;
39137 PyObject * obj0 = 0 ;
39138 PyObject * obj1 = 0 ;
39139
39140 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39145 {
39146 PyThreadState* __tstate = wxPyBeginAllowThreads();
39147 result = (arg1)->GetItemSpan(arg2);
39148
39149 wxPyEndAllowThreads(__tstate);
39150 if (PyErr_Occurred()) SWIG_fail;
39151 }
39152 {
39153 wxGBSpan * resultptr;
39154 resultptr = new wxGBSpan((wxGBSpan &) result);
39155 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39156 }
39157 return resultobj;
39158 fail:
39159 return NULL;
39160 }
39161
39162
39163 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) {
39164 PyObject *resultobj;
39165 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39166 size_t arg2 ;
39167 wxGBSpan result;
39168 PyObject * obj0 = 0 ;
39169 PyObject * obj1 = 0 ;
39170
39171 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39174 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
39175 if (PyErr_Occurred()) SWIG_fail;
39176 {
39177 PyThreadState* __tstate = wxPyBeginAllowThreads();
39178 result = (arg1)->GetItemSpan(arg2);
39179
39180 wxPyEndAllowThreads(__tstate);
39181 if (PyErr_Occurred()) SWIG_fail;
39182 }
39183 {
39184 wxGBSpan * resultptr;
39185 resultptr = new wxGBSpan((wxGBSpan &) result);
39186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39187 }
39188 return resultobj;
39189 fail:
39190 return NULL;
39191 }
39192
39193
39194 static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
39195 int argc;
39196 PyObject *argv[3];
39197 int ii;
39198
39199 argc = PyObject_Length(args);
39200 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39201 argv[ii] = PyTuple_GetItem(args,ii);
39202 }
39203 if (argc == 2) {
39204 int _v;
39205 {
39206 void *ptr;
39207 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39208 _v = 0;
39209 PyErr_Clear();
39210 } else {
39211 _v = 1;
39212 }
39213 }
39214 if (_v) {
39215 {
39216 void *ptr;
39217 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39218 _v = 0;
39219 PyErr_Clear();
39220 } else {
39221 _v = 1;
39222 }
39223 }
39224 if (_v) {
39225 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
39226 }
39227 }
39228 }
39229 if (argc == 2) {
39230 int _v;
39231 {
39232 void *ptr;
39233 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39234 _v = 0;
39235 PyErr_Clear();
39236 } else {
39237 _v = 1;
39238 }
39239 }
39240 if (_v) {
39241 {
39242 void *ptr;
39243 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39244 _v = 0;
39245 PyErr_Clear();
39246 } else {
39247 _v = 1;
39248 }
39249 }
39250 if (_v) {
39251 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
39252 }
39253 }
39254 }
39255 if (argc == 2) {
39256 int _v;
39257 {
39258 void *ptr;
39259 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39260 _v = 0;
39261 PyErr_Clear();
39262 } else {
39263 _v = 1;
39264 }
39265 }
39266 if (_v) {
39267 _v = SWIG_Check_unsigned_SS_long(argv[1]);
39268 if (_v) {
39269 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
39270 }
39271 }
39272 }
39273
39274 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
39275 return NULL;
39276 }
39277
39278
39279 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) {
39280 PyObject *resultobj;
39281 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39282 wxWindow *arg2 = (wxWindow *) 0 ;
39283 wxGBSpan *arg3 = 0 ;
39284 bool result;
39285 wxGBSpan temp3 ;
39286 PyObject * obj0 = 0 ;
39287 PyObject * obj1 = 0 ;
39288 PyObject * obj2 = 0 ;
39289
39290 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39293 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39295 {
39296 arg3 = &temp3;
39297 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39298 }
39299 {
39300 PyThreadState* __tstate = wxPyBeginAllowThreads();
39301 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39302
39303 wxPyEndAllowThreads(__tstate);
39304 if (PyErr_Occurred()) SWIG_fail;
39305 }
39306 {
39307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39308 }
39309 return resultobj;
39310 fail:
39311 return NULL;
39312 }
39313
39314
39315 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) {
39316 PyObject *resultobj;
39317 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39318 wxSizer *arg2 = (wxSizer *) 0 ;
39319 wxGBSpan *arg3 = 0 ;
39320 bool result;
39321 wxGBSpan temp3 ;
39322 PyObject * obj0 = 0 ;
39323 PyObject * obj1 = 0 ;
39324 PyObject * obj2 = 0 ;
39325
39326 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39331 {
39332 arg3 = &temp3;
39333 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39334 }
39335 {
39336 PyThreadState* __tstate = wxPyBeginAllowThreads();
39337 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39338
39339 wxPyEndAllowThreads(__tstate);
39340 if (PyErr_Occurred()) SWIG_fail;
39341 }
39342 {
39343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39344 }
39345 return resultobj;
39346 fail:
39347 return NULL;
39348 }
39349
39350
39351 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) {
39352 PyObject *resultobj;
39353 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39354 size_t arg2 ;
39355 wxGBSpan *arg3 = 0 ;
39356 bool result;
39357 wxGBSpan temp3 ;
39358 PyObject * obj0 = 0 ;
39359 PyObject * obj1 = 0 ;
39360 PyObject * obj2 = 0 ;
39361
39362 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39365 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
39366 if (PyErr_Occurred()) SWIG_fail;
39367 {
39368 arg3 = &temp3;
39369 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39370 }
39371 {
39372 PyThreadState* __tstate = wxPyBeginAllowThreads();
39373 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39374
39375 wxPyEndAllowThreads(__tstate);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 {
39379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39380 }
39381 return resultobj;
39382 fail:
39383 return NULL;
39384 }
39385
39386
39387 static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
39388 int argc;
39389 PyObject *argv[4];
39390 int ii;
39391
39392 argc = PyObject_Length(args);
39393 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
39394 argv[ii] = PyTuple_GetItem(args,ii);
39395 }
39396 if (argc == 3) {
39397 int _v;
39398 {
39399 void *ptr;
39400 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39401 _v = 0;
39402 PyErr_Clear();
39403 } else {
39404 _v = 1;
39405 }
39406 }
39407 if (_v) {
39408 {
39409 void *ptr;
39410 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39411 _v = 0;
39412 PyErr_Clear();
39413 } else {
39414 _v = 1;
39415 }
39416 }
39417 if (_v) {
39418 {
39419 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39420 }
39421 if (_v) {
39422 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
39423 }
39424 }
39425 }
39426 }
39427 if (argc == 3) {
39428 int _v;
39429 {
39430 void *ptr;
39431 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39432 _v = 0;
39433 PyErr_Clear();
39434 } else {
39435 _v = 1;
39436 }
39437 }
39438 if (_v) {
39439 {
39440 void *ptr;
39441 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39442 _v = 0;
39443 PyErr_Clear();
39444 } else {
39445 _v = 1;
39446 }
39447 }
39448 if (_v) {
39449 {
39450 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39451 }
39452 if (_v) {
39453 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
39454 }
39455 }
39456 }
39457 }
39458 if (argc == 3) {
39459 int _v;
39460 {
39461 void *ptr;
39462 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39463 _v = 0;
39464 PyErr_Clear();
39465 } else {
39466 _v = 1;
39467 }
39468 }
39469 if (_v) {
39470 _v = SWIG_Check_unsigned_SS_long(argv[1]);
39471 if (_v) {
39472 {
39473 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39474 }
39475 if (_v) {
39476 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
39477 }
39478 }
39479 }
39480 }
39481
39482 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
39483 return NULL;
39484 }
39485
39486
39487 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) {
39488 PyObject *resultobj;
39489 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39490 wxWindow *arg2 = (wxWindow *) 0 ;
39491 wxGBSizerItem *result;
39492 PyObject * obj0 = 0 ;
39493 PyObject * obj1 = 0 ;
39494
39495 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39500 {
39501 PyThreadState* __tstate = wxPyBeginAllowThreads();
39502 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39503
39504 wxPyEndAllowThreads(__tstate);
39505 if (PyErr_Occurred()) SWIG_fail;
39506 }
39507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39508 return resultobj;
39509 fail:
39510 return NULL;
39511 }
39512
39513
39514 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) {
39515 PyObject *resultobj;
39516 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39517 wxSizer *arg2 = (wxSizer *) 0 ;
39518 wxGBSizerItem *result;
39519 PyObject * obj0 = 0 ;
39520 PyObject * obj1 = 0 ;
39521
39522 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39527 {
39528 PyThreadState* __tstate = wxPyBeginAllowThreads();
39529 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39530
39531 wxPyEndAllowThreads(__tstate);
39532 if (PyErr_Occurred()) SWIG_fail;
39533 }
39534 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39535 return resultobj;
39536 fail:
39537 return NULL;
39538 }
39539
39540
39541 static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
39542 int argc;
39543 PyObject *argv[3];
39544 int ii;
39545
39546 argc = PyObject_Length(args);
39547 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39548 argv[ii] = PyTuple_GetItem(args,ii);
39549 }
39550 if (argc == 2) {
39551 int _v;
39552 {
39553 void *ptr;
39554 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39555 _v = 0;
39556 PyErr_Clear();
39557 } else {
39558 _v = 1;
39559 }
39560 }
39561 if (_v) {
39562 {
39563 void *ptr;
39564 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39565 _v = 0;
39566 PyErr_Clear();
39567 } else {
39568 _v = 1;
39569 }
39570 }
39571 if (_v) {
39572 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
39573 }
39574 }
39575 }
39576 if (argc == 2) {
39577 int _v;
39578 {
39579 void *ptr;
39580 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39581 _v = 0;
39582 PyErr_Clear();
39583 } else {
39584 _v = 1;
39585 }
39586 }
39587 if (_v) {
39588 {
39589 void *ptr;
39590 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39591 _v = 0;
39592 PyErr_Clear();
39593 } else {
39594 _v = 1;
39595 }
39596 }
39597 if (_v) {
39598 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
39599 }
39600 }
39601 }
39602
39603 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
39604 return NULL;
39605 }
39606
39607
39608 static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) {
39609 PyObject *resultobj;
39610 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39611 wxGBPosition *arg2 = 0 ;
39612 wxGBSizerItem *result;
39613 wxGBPosition temp2 ;
39614 PyObject * obj0 = 0 ;
39615 PyObject * obj1 = 0 ;
39616 char *kwnames[] = {
39617 (char *) "self",(char *) "pos", NULL
39618 };
39619
39620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
39621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39623 {
39624 arg2 = &temp2;
39625 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39626 }
39627 {
39628 PyThreadState* __tstate = wxPyBeginAllowThreads();
39629 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
39630
39631 wxPyEndAllowThreads(__tstate);
39632 if (PyErr_Occurred()) SWIG_fail;
39633 }
39634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39635 return resultobj;
39636 fail:
39637 return NULL;
39638 }
39639
39640
39641 static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
39642 PyObject *resultobj;
39643 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39644 wxPoint *arg2 = 0 ;
39645 wxGBSizerItem *result;
39646 wxPoint temp2 ;
39647 PyObject * obj0 = 0 ;
39648 PyObject * obj1 = 0 ;
39649 char *kwnames[] = {
39650 (char *) "self",(char *) "pt", NULL
39651 };
39652
39653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
39654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39656 {
39657 arg2 = &temp2;
39658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39659 }
39660 {
39661 PyThreadState* __tstate = wxPyBeginAllowThreads();
39662 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
39663
39664 wxPyEndAllowThreads(__tstate);
39665 if (PyErr_Occurred()) SWIG_fail;
39666 }
39667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39668 return resultobj;
39669 fail:
39670 return NULL;
39671 }
39672
39673
39674 static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) {
39675 PyObject *resultobj;
39676 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39677 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
39678 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
39679 bool result;
39680 PyObject * obj0 = 0 ;
39681 PyObject * obj1 = 0 ;
39682 PyObject * obj2 = 0 ;
39683 char *kwnames[] = {
39684 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
39685 };
39686
39687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
39688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
39691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39692 if (obj2) {
39693 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
39694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39695 }
39696 {
39697 PyThreadState* __tstate = wxPyBeginAllowThreads();
39698 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
39699
39700 wxPyEndAllowThreads(__tstate);
39701 if (PyErr_Occurred()) SWIG_fail;
39702 }
39703 {
39704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39705 }
39706 return resultobj;
39707 fail:
39708 return NULL;
39709 }
39710
39711
39712 static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) {
39713 PyObject *resultobj;
39714 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39715 wxGBPosition *arg2 = 0 ;
39716 wxGBSpan *arg3 = 0 ;
39717 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
39718 bool result;
39719 wxGBPosition temp2 ;
39720 wxGBSpan temp3 ;
39721 PyObject * obj0 = 0 ;
39722 PyObject * obj1 = 0 ;
39723 PyObject * obj2 = 0 ;
39724 PyObject * obj3 = 0 ;
39725 char *kwnames[] = {
39726 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
39727 };
39728
39729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39732 {
39733 arg2 = &temp2;
39734 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39735 }
39736 {
39737 arg3 = &temp3;
39738 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39739 }
39740 if (obj3) {
39741 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
39742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39743 }
39744 {
39745 PyThreadState* __tstate = wxPyBeginAllowThreads();
39746 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
39747
39748 wxPyEndAllowThreads(__tstate);
39749 if (PyErr_Occurred()) SWIG_fail;
39750 }
39751 {
39752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39753 }
39754 return resultobj;
39755 fail:
39756 return NULL;
39757 }
39758
39759
39760 static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) {
39761 PyObject *obj;
39762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39763 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39764 Py_INCREF(obj);
39765 return Py_BuildValue((char *)"");
39766 }
39767 static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
39768 PyObject *resultobj;
39769 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39770 int arg2 ;
39771 wxWindow *arg3 = (wxWindow *) 0 ;
39772 int arg4 ;
39773 int arg5 = (int) 0 ;
39774 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39775 PyObject * obj0 = 0 ;
39776 PyObject * obj1 = 0 ;
39777 PyObject * obj2 = 0 ;
39778 PyObject * obj3 = 0 ;
39779 PyObject * obj4 = 0 ;
39780 PyObject * obj5 = 0 ;
39781 char *kwnames[] = {
39782 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39783 };
39784
39785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39788 arg2 = (int)SWIG_As_int(obj1);
39789 if (PyErr_Occurred()) SWIG_fail;
39790 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39792 arg4 = (int)SWIG_As_int(obj3);
39793 if (PyErr_Occurred()) SWIG_fail;
39794 if (obj4) {
39795 arg5 = (int)SWIG_As_int(obj4);
39796 if (PyErr_Occurred()) SWIG_fail;
39797 }
39798 if (obj5) {
39799 arg6 = (int)SWIG_As_int(obj5);
39800 if (PyErr_Occurred()) SWIG_fail;
39801 }
39802 {
39803 PyThreadState* __tstate = wxPyBeginAllowThreads();
39804 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39805
39806 wxPyEndAllowThreads(__tstate);
39807 if (PyErr_Occurred()) SWIG_fail;
39808 }
39809 Py_INCREF(Py_None); resultobj = Py_None;
39810 return resultobj;
39811 fail:
39812 return NULL;
39813 }
39814
39815
39816 static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) {
39817 PyObject *resultobj;
39818 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39819 wxWindow *arg2 = (wxWindow *) 0 ;
39820 int arg3 = (int) 0 ;
39821 PyObject * obj0 = 0 ;
39822 PyObject * obj1 = 0 ;
39823 PyObject * obj2 = 0 ;
39824 char *kwnames[] = {
39825 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39826 };
39827
39828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39833 if (obj2) {
39834 arg3 = (int)SWIG_As_int(obj2);
39835 if (PyErr_Occurred()) SWIG_fail;
39836 }
39837 {
39838 PyThreadState* __tstate = wxPyBeginAllowThreads();
39839 (arg1)->LeftOf(arg2,arg3);
39840
39841 wxPyEndAllowThreads(__tstate);
39842 if (PyErr_Occurred()) SWIG_fail;
39843 }
39844 Py_INCREF(Py_None); resultobj = Py_None;
39845 return resultobj;
39846 fail:
39847 return NULL;
39848 }
39849
39850
39851 static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) {
39852 PyObject *resultobj;
39853 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39854 wxWindow *arg2 = (wxWindow *) 0 ;
39855 int arg3 = (int) 0 ;
39856 PyObject * obj0 = 0 ;
39857 PyObject * obj1 = 0 ;
39858 PyObject * obj2 = 0 ;
39859 char *kwnames[] = {
39860 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39861 };
39862
39863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39868 if (obj2) {
39869 arg3 = (int)SWIG_As_int(obj2);
39870 if (PyErr_Occurred()) SWIG_fail;
39871 }
39872 {
39873 PyThreadState* __tstate = wxPyBeginAllowThreads();
39874 (arg1)->RightOf(arg2,arg3);
39875
39876 wxPyEndAllowThreads(__tstate);
39877 if (PyErr_Occurred()) SWIG_fail;
39878 }
39879 Py_INCREF(Py_None); resultobj = Py_None;
39880 return resultobj;
39881 fail:
39882 return NULL;
39883 }
39884
39885
39886 static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) {
39887 PyObject *resultobj;
39888 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39889 wxWindow *arg2 = (wxWindow *) 0 ;
39890 int arg3 = (int) 0 ;
39891 PyObject * obj0 = 0 ;
39892 PyObject * obj1 = 0 ;
39893 PyObject * obj2 = 0 ;
39894 char *kwnames[] = {
39895 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39896 };
39897
39898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39903 if (obj2) {
39904 arg3 = (int)SWIG_As_int(obj2);
39905 if (PyErr_Occurred()) SWIG_fail;
39906 }
39907 {
39908 PyThreadState* __tstate = wxPyBeginAllowThreads();
39909 (arg1)->Above(arg2,arg3);
39910
39911 wxPyEndAllowThreads(__tstate);
39912 if (PyErr_Occurred()) SWIG_fail;
39913 }
39914 Py_INCREF(Py_None); resultobj = Py_None;
39915 return resultobj;
39916 fail:
39917 return NULL;
39918 }
39919
39920
39921 static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) {
39922 PyObject *resultobj;
39923 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39924 wxWindow *arg2 = (wxWindow *) 0 ;
39925 int arg3 = (int) 0 ;
39926 PyObject * obj0 = 0 ;
39927 PyObject * obj1 = 0 ;
39928 PyObject * obj2 = 0 ;
39929 char *kwnames[] = {
39930 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39931 };
39932
39933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39936 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39938 if (obj2) {
39939 arg3 = (int)SWIG_As_int(obj2);
39940 if (PyErr_Occurred()) SWIG_fail;
39941 }
39942 {
39943 PyThreadState* __tstate = wxPyBeginAllowThreads();
39944 (arg1)->Below(arg2,arg3);
39945
39946 wxPyEndAllowThreads(__tstate);
39947 if (PyErr_Occurred()) SWIG_fail;
39948 }
39949 Py_INCREF(Py_None); resultobj = Py_None;
39950 return resultobj;
39951 fail:
39952 return NULL;
39953 }
39954
39955
39956 static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) {
39957 PyObject *resultobj;
39958 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39959 wxWindow *arg2 = (wxWindow *) 0 ;
39960 int arg3 ;
39961 int arg4 = (int) 0 ;
39962 PyObject * obj0 = 0 ;
39963 PyObject * obj1 = 0 ;
39964 PyObject * obj2 = 0 ;
39965 PyObject * obj3 = 0 ;
39966 char *kwnames[] = {
39967 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39968 };
39969
39970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39973 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39975 arg3 = (int)SWIG_As_int(obj2);
39976 if (PyErr_Occurred()) SWIG_fail;
39977 if (obj3) {
39978 arg4 = (int)SWIG_As_int(obj3);
39979 if (PyErr_Occurred()) SWIG_fail;
39980 }
39981 {
39982 PyThreadState* __tstate = wxPyBeginAllowThreads();
39983 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39984
39985 wxPyEndAllowThreads(__tstate);
39986 if (PyErr_Occurred()) SWIG_fail;
39987 }
39988 Py_INCREF(Py_None); resultobj = Py_None;
39989 return resultobj;
39990 fail:
39991 return NULL;
39992 }
39993
39994
39995 static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) {
39996 PyObject *resultobj;
39997 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39998 wxWindow *arg2 = (wxWindow *) 0 ;
39999 int arg3 ;
40000 int arg4 ;
40001 PyObject * obj0 = 0 ;
40002 PyObject * obj1 = 0 ;
40003 PyObject * obj2 = 0 ;
40004 PyObject * obj3 = 0 ;
40005 char *kwnames[] = {
40006 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
40007 };
40008
40009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40012 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40014 arg3 = (int)SWIG_As_int(obj2);
40015 if (PyErr_Occurred()) SWIG_fail;
40016 arg4 = (int)SWIG_As_int(obj3);
40017 if (PyErr_Occurred()) SWIG_fail;
40018 {
40019 PyThreadState* __tstate = wxPyBeginAllowThreads();
40020 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
40021
40022 wxPyEndAllowThreads(__tstate);
40023 if (PyErr_Occurred()) SWIG_fail;
40024 }
40025 Py_INCREF(Py_None); resultobj = Py_None;
40026 return resultobj;
40027 fail:
40028 return NULL;
40029 }
40030
40031
40032 static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) {
40033 PyObject *resultobj;
40034 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40035 int arg2 ;
40036 PyObject * obj0 = 0 ;
40037 PyObject * obj1 = 0 ;
40038 char *kwnames[] = {
40039 (char *) "self",(char *) "val", NULL
40040 };
40041
40042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
40043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40045 arg2 = (int)SWIG_As_int(obj1);
40046 if (PyErr_Occurred()) SWIG_fail;
40047 {
40048 PyThreadState* __tstate = wxPyBeginAllowThreads();
40049 (arg1)->Absolute(arg2);
40050
40051 wxPyEndAllowThreads(__tstate);
40052 if (PyErr_Occurred()) SWIG_fail;
40053 }
40054 Py_INCREF(Py_None); resultobj = Py_None;
40055 return resultobj;
40056 fail:
40057 return NULL;
40058 }
40059
40060
40061 static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) {
40062 PyObject *resultobj;
40063 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40064 PyObject * obj0 = 0 ;
40065 char *kwnames[] = {
40066 (char *) "self", NULL
40067 };
40068
40069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
40070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40072 {
40073 PyThreadState* __tstate = wxPyBeginAllowThreads();
40074 (arg1)->Unconstrained();
40075
40076 wxPyEndAllowThreads(__tstate);
40077 if (PyErr_Occurred()) SWIG_fail;
40078 }
40079 Py_INCREF(Py_None); resultobj = Py_None;
40080 return resultobj;
40081 fail:
40082 return NULL;
40083 }
40084
40085
40086 static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) {
40087 PyObject *resultobj;
40088 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40089 PyObject * obj0 = 0 ;
40090 char *kwnames[] = {
40091 (char *) "self", NULL
40092 };
40093
40094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
40095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40097 {
40098 PyThreadState* __tstate = wxPyBeginAllowThreads();
40099 (arg1)->AsIs();
40100
40101 wxPyEndAllowThreads(__tstate);
40102 if (PyErr_Occurred()) SWIG_fail;
40103 }
40104 Py_INCREF(Py_None); resultobj = Py_None;
40105 return resultobj;
40106 fail:
40107 return NULL;
40108 }
40109
40110
40111 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) {
40112 PyObject *resultobj;
40113 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40114 wxWindow *result;
40115 PyObject * obj0 = 0 ;
40116 char *kwnames[] = {
40117 (char *) "self", NULL
40118 };
40119
40120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
40121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40123 {
40124 PyThreadState* __tstate = wxPyBeginAllowThreads();
40125 result = (wxWindow *)(arg1)->GetOtherWindow();
40126
40127 wxPyEndAllowThreads(__tstate);
40128 if (PyErr_Occurred()) SWIG_fail;
40129 }
40130 {
40131 resultobj = wxPyMake_wxObject(result, 0);
40132 }
40133 return resultobj;
40134 fail:
40135 return NULL;
40136 }
40137
40138
40139 static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) {
40140 PyObject *resultobj;
40141 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40142 int result;
40143 PyObject * obj0 = 0 ;
40144 char *kwnames[] = {
40145 (char *) "self", NULL
40146 };
40147
40148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
40149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40151 {
40152 PyThreadState* __tstate = wxPyBeginAllowThreads();
40153 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
40154
40155 wxPyEndAllowThreads(__tstate);
40156 if (PyErr_Occurred()) SWIG_fail;
40157 }
40158 resultobj = SWIG_From_int((int)result);
40159 return resultobj;
40160 fail:
40161 return NULL;
40162 }
40163
40164
40165 static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
40166 PyObject *resultobj;
40167 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40168 int arg2 ;
40169 PyObject * obj0 = 0 ;
40170 PyObject * obj1 = 0 ;
40171 char *kwnames[] = {
40172 (char *) "self",(char *) "which", NULL
40173 };
40174
40175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
40176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40178 arg2 = (int)SWIG_As_int(obj1);
40179 if (PyErr_Occurred()) SWIG_fail;
40180 {
40181 PyThreadState* __tstate = wxPyBeginAllowThreads();
40182 (arg1)->SetEdge((wxEdge )arg2);
40183
40184 wxPyEndAllowThreads(__tstate);
40185 if (PyErr_Occurred()) SWIG_fail;
40186 }
40187 Py_INCREF(Py_None); resultobj = Py_None;
40188 return resultobj;
40189 fail:
40190 return NULL;
40191 }
40192
40193
40194 static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
40195 PyObject *resultobj;
40196 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40197 int arg2 ;
40198 PyObject * obj0 = 0 ;
40199 PyObject * obj1 = 0 ;
40200 char *kwnames[] = {
40201 (char *) "self",(char *) "v", NULL
40202 };
40203
40204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
40205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40207 arg2 = (int)SWIG_As_int(obj1);
40208 if (PyErr_Occurred()) SWIG_fail;
40209 {
40210 PyThreadState* __tstate = wxPyBeginAllowThreads();
40211 (arg1)->SetValue(arg2);
40212
40213 wxPyEndAllowThreads(__tstate);
40214 if (PyErr_Occurred()) SWIG_fail;
40215 }
40216 Py_INCREF(Py_None); resultobj = Py_None;
40217 return resultobj;
40218 fail:
40219 return NULL;
40220 }
40221
40222
40223 static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
40224 PyObject *resultobj;
40225 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40226 int result;
40227 PyObject * obj0 = 0 ;
40228 char *kwnames[] = {
40229 (char *) "self", NULL
40230 };
40231
40232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
40233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40235 {
40236 PyThreadState* __tstate = wxPyBeginAllowThreads();
40237 result = (int)(arg1)->GetMargin();
40238
40239 wxPyEndAllowThreads(__tstate);
40240 if (PyErr_Occurred()) SWIG_fail;
40241 }
40242 resultobj = SWIG_From_int((int)result);
40243 return resultobj;
40244 fail:
40245 return NULL;
40246 }
40247
40248
40249 static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
40250 PyObject *resultobj;
40251 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40252 int arg2 ;
40253 PyObject * obj0 = 0 ;
40254 PyObject * obj1 = 0 ;
40255 char *kwnames[] = {
40256 (char *) "self",(char *) "m", NULL
40257 };
40258
40259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
40260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40262 arg2 = (int)SWIG_As_int(obj1);
40263 if (PyErr_Occurred()) SWIG_fail;
40264 {
40265 PyThreadState* __tstate = wxPyBeginAllowThreads();
40266 (arg1)->SetMargin(arg2);
40267
40268 wxPyEndAllowThreads(__tstate);
40269 if (PyErr_Occurred()) SWIG_fail;
40270 }
40271 Py_INCREF(Py_None); resultobj = Py_None;
40272 return resultobj;
40273 fail:
40274 return NULL;
40275 }
40276
40277
40278 static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
40279 PyObject *resultobj;
40280 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40281 int result;
40282 PyObject * obj0 = 0 ;
40283 char *kwnames[] = {
40284 (char *) "self", NULL
40285 };
40286
40287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
40288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40290 {
40291 PyThreadState* __tstate = wxPyBeginAllowThreads();
40292 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
40293
40294 wxPyEndAllowThreads(__tstate);
40295 if (PyErr_Occurred()) SWIG_fail;
40296 }
40297 resultobj = SWIG_From_int((int)result);
40298 return resultobj;
40299 fail:
40300 return NULL;
40301 }
40302
40303
40304 static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) {
40305 PyObject *resultobj;
40306 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40307 int result;
40308 PyObject * obj0 = 0 ;
40309 char *kwnames[] = {
40310 (char *) "self", NULL
40311 };
40312
40313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
40314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40316 {
40317 PyThreadState* __tstate = wxPyBeginAllowThreads();
40318 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
40319
40320 wxPyEndAllowThreads(__tstate);
40321 if (PyErr_Occurred()) SWIG_fail;
40322 }
40323 resultobj = SWIG_From_int((int)result);
40324 return resultobj;
40325 fail:
40326 return NULL;
40327 }
40328
40329
40330 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) {
40331 PyObject *resultobj;
40332 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40333 int result;
40334 PyObject * obj0 = 0 ;
40335 char *kwnames[] = {
40336 (char *) "self", NULL
40337 };
40338
40339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
40340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40342 {
40343 PyThreadState* __tstate = wxPyBeginAllowThreads();
40344 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
40345
40346 wxPyEndAllowThreads(__tstate);
40347 if (PyErr_Occurred()) SWIG_fail;
40348 }
40349 resultobj = SWIG_From_int((int)result);
40350 return resultobj;
40351 fail:
40352 return NULL;
40353 }
40354
40355
40356 static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) {
40357 PyObject *resultobj;
40358 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40359 bool result;
40360 PyObject * obj0 = 0 ;
40361 char *kwnames[] = {
40362 (char *) "self", NULL
40363 };
40364
40365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
40366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40368 {
40369 PyThreadState* __tstate = wxPyBeginAllowThreads();
40370 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
40371
40372 wxPyEndAllowThreads(__tstate);
40373 if (PyErr_Occurred()) SWIG_fail;
40374 }
40375 {
40376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40377 }
40378 return resultobj;
40379 fail:
40380 return NULL;
40381 }
40382
40383
40384 static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) {
40385 PyObject *resultobj;
40386 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40387 bool arg2 ;
40388 PyObject * obj0 = 0 ;
40389 PyObject * obj1 = 0 ;
40390 char *kwnames[] = {
40391 (char *) "self",(char *) "d", NULL
40392 };
40393
40394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
40395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40397 arg2 = (bool)SWIG_As_bool(obj1);
40398 if (PyErr_Occurred()) SWIG_fail;
40399 {
40400 PyThreadState* __tstate = wxPyBeginAllowThreads();
40401 (arg1)->SetDone(arg2);
40402
40403 wxPyEndAllowThreads(__tstate);
40404 if (PyErr_Occurred()) SWIG_fail;
40405 }
40406 Py_INCREF(Py_None); resultobj = Py_None;
40407 return resultobj;
40408 fail:
40409 return NULL;
40410 }
40411
40412
40413 static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
40414 PyObject *resultobj;
40415 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40416 int result;
40417 PyObject * obj0 = 0 ;
40418 char *kwnames[] = {
40419 (char *) "self", NULL
40420 };
40421
40422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
40423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40425 {
40426 PyThreadState* __tstate = wxPyBeginAllowThreads();
40427 result = (int)(arg1)->GetRelationship();
40428
40429 wxPyEndAllowThreads(__tstate);
40430 if (PyErr_Occurred()) SWIG_fail;
40431 }
40432 resultobj = SWIG_From_int((int)result);
40433 return resultobj;
40434 fail:
40435 return NULL;
40436 }
40437
40438
40439 static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
40440 PyObject *resultobj;
40441 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40442 int arg2 ;
40443 PyObject * obj0 = 0 ;
40444 PyObject * obj1 = 0 ;
40445 char *kwnames[] = {
40446 (char *) "self",(char *) "r", NULL
40447 };
40448
40449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
40450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40452 arg2 = (int)SWIG_As_int(obj1);
40453 if (PyErr_Occurred()) SWIG_fail;
40454 {
40455 PyThreadState* __tstate = wxPyBeginAllowThreads();
40456 (arg1)->SetRelationship((wxRelationship )arg2);
40457
40458 wxPyEndAllowThreads(__tstate);
40459 if (PyErr_Occurred()) SWIG_fail;
40460 }
40461 Py_INCREF(Py_None); resultobj = Py_None;
40462 return resultobj;
40463 fail:
40464 return NULL;
40465 }
40466
40467
40468 static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) {
40469 PyObject *resultobj;
40470 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40471 wxWindow *arg2 = (wxWindow *) 0 ;
40472 bool result;
40473 PyObject * obj0 = 0 ;
40474 PyObject * obj1 = 0 ;
40475 char *kwnames[] = {
40476 (char *) "self",(char *) "otherW", NULL
40477 };
40478
40479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
40480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40484 {
40485 PyThreadState* __tstate = wxPyBeginAllowThreads();
40486 result = (bool)(arg1)->ResetIfWin(arg2);
40487
40488 wxPyEndAllowThreads(__tstate);
40489 if (PyErr_Occurred()) SWIG_fail;
40490 }
40491 {
40492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40493 }
40494 return resultobj;
40495 fail:
40496 return NULL;
40497 }
40498
40499
40500 static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) {
40501 PyObject *resultobj;
40502 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40503 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40504 wxWindow *arg3 = (wxWindow *) 0 ;
40505 bool result;
40506 PyObject * obj0 = 0 ;
40507 PyObject * obj1 = 0 ;
40508 PyObject * obj2 = 0 ;
40509 char *kwnames[] = {
40510 (char *) "self",(char *) "constraints",(char *) "win", NULL
40511 };
40512
40513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
40514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
40517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40518 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40520 {
40521 PyThreadState* __tstate = wxPyBeginAllowThreads();
40522 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
40523
40524 wxPyEndAllowThreads(__tstate);
40525 if (PyErr_Occurred()) SWIG_fail;
40526 }
40527 {
40528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40529 }
40530 return resultobj;
40531 fail:
40532 return NULL;
40533 }
40534
40535
40536 static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
40537 PyObject *resultobj;
40538 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40539 int arg2 ;
40540 wxWindow *arg3 = (wxWindow *) 0 ;
40541 wxWindow *arg4 = (wxWindow *) 0 ;
40542 int result;
40543 PyObject * obj0 = 0 ;
40544 PyObject * obj1 = 0 ;
40545 PyObject * obj2 = 0 ;
40546 PyObject * obj3 = 0 ;
40547 char *kwnames[] = {
40548 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
40549 };
40550
40551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40554 arg2 = (int)SWIG_As_int(obj1);
40555 if (PyErr_Occurred()) SWIG_fail;
40556 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40558 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
40559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40560 {
40561 PyThreadState* __tstate = wxPyBeginAllowThreads();
40562 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
40563
40564 wxPyEndAllowThreads(__tstate);
40565 if (PyErr_Occurred()) SWIG_fail;
40566 }
40567 resultobj = SWIG_From_int((int)result);
40568 return resultobj;
40569 fail:
40570 return NULL;
40571 }
40572
40573
40574 static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) {
40575 PyObject *obj;
40576 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40577 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
40578 Py_INCREF(obj);
40579 return Py_BuildValue((char *)"");
40580 }
40581 static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) {
40582 PyObject *resultobj;
40583 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40584 wxIndividualLayoutConstraint *result;
40585 PyObject * obj0 = 0 ;
40586 char *kwnames[] = {
40587 (char *) "self", NULL
40588 };
40589
40590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
40591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40593 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
40594
40595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40596 return resultobj;
40597 fail:
40598 return NULL;
40599 }
40600
40601
40602 static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) {
40603 PyObject *resultobj;
40604 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40605 wxIndividualLayoutConstraint *result;
40606 PyObject * obj0 = 0 ;
40607 char *kwnames[] = {
40608 (char *) "self", NULL
40609 };
40610
40611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
40612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40614 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
40615
40616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40617 return resultobj;
40618 fail:
40619 return NULL;
40620 }
40621
40622
40623 static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) {
40624 PyObject *resultobj;
40625 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40626 wxIndividualLayoutConstraint *result;
40627 PyObject * obj0 = 0 ;
40628 char *kwnames[] = {
40629 (char *) "self", NULL
40630 };
40631
40632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
40633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40635 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
40636
40637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40638 return resultobj;
40639 fail:
40640 return NULL;
40641 }
40642
40643
40644 static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) {
40645 PyObject *resultobj;
40646 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40647 wxIndividualLayoutConstraint *result;
40648 PyObject * obj0 = 0 ;
40649 char *kwnames[] = {
40650 (char *) "self", NULL
40651 };
40652
40653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
40654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40656 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
40657
40658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40659 return resultobj;
40660 fail:
40661 return NULL;
40662 }
40663
40664
40665 static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
40666 PyObject *resultobj;
40667 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40668 wxIndividualLayoutConstraint *result;
40669 PyObject * obj0 = 0 ;
40670 char *kwnames[] = {
40671 (char *) "self", NULL
40672 };
40673
40674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
40675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40677 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
40678
40679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40680 return resultobj;
40681 fail:
40682 return NULL;
40683 }
40684
40685
40686 static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
40687 PyObject *resultobj;
40688 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40689 wxIndividualLayoutConstraint *result;
40690 PyObject * obj0 = 0 ;
40691 char *kwnames[] = {
40692 (char *) "self", NULL
40693 };
40694
40695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
40696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40698 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
40699
40700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40701 return resultobj;
40702 fail:
40703 return NULL;
40704 }
40705
40706
40707 static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) {
40708 PyObject *resultobj;
40709 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40710 wxIndividualLayoutConstraint *result;
40711 PyObject * obj0 = 0 ;
40712 char *kwnames[] = {
40713 (char *) "self", NULL
40714 };
40715
40716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40719 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40720
40721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40722 return resultobj;
40723 fail:
40724 return NULL;
40725 }
40726
40727
40728 static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) {
40729 PyObject *resultobj;
40730 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40731 wxIndividualLayoutConstraint *result;
40732 PyObject * obj0 = 0 ;
40733 char *kwnames[] = {
40734 (char *) "self", NULL
40735 };
40736
40737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40740 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40741
40742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40743 return resultobj;
40744 fail:
40745 return NULL;
40746 }
40747
40748
40749 static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
40750 PyObject *resultobj;
40751 wxLayoutConstraints *result;
40752 char *kwnames[] = {
40753 NULL
40754 };
40755
40756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40757 {
40758 PyThreadState* __tstate = wxPyBeginAllowThreads();
40759 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40760
40761 wxPyEndAllowThreads(__tstate);
40762 if (PyErr_Occurred()) SWIG_fail;
40763 }
40764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40765 return resultobj;
40766 fail:
40767 return NULL;
40768 }
40769
40770
40771 static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
40772 PyObject *resultobj;
40773 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40774 wxWindow *arg2 = (wxWindow *) 0 ;
40775 int *arg3 = (int *) 0 ;
40776 bool result;
40777 int temp3 ;
40778 int res3 = 0 ;
40779 PyObject * obj0 = 0 ;
40780 PyObject * obj1 = 0 ;
40781 char *kwnames[] = {
40782 (char *) "self",(char *) "win", NULL
40783 };
40784
40785 arg3 = &temp3; res3 = SWIG_NEWOBJ;
40786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40791 {
40792 PyThreadState* __tstate = wxPyBeginAllowThreads();
40793 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40794
40795 wxPyEndAllowThreads(__tstate);
40796 if (PyErr_Occurred()) SWIG_fail;
40797 }
40798 {
40799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40800 }
40801 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
40802 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
40803 return resultobj;
40804 fail:
40805 return NULL;
40806 }
40807
40808
40809 static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) {
40810 PyObject *resultobj;
40811 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40812 bool result;
40813 PyObject * obj0 = 0 ;
40814 char *kwnames[] = {
40815 (char *) "self", NULL
40816 };
40817
40818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40821 {
40822 PyThreadState* __tstate = wxPyBeginAllowThreads();
40823 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40824
40825 wxPyEndAllowThreads(__tstate);
40826 if (PyErr_Occurred()) SWIG_fail;
40827 }
40828 {
40829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40830 }
40831 return resultobj;
40832 fail:
40833 return NULL;
40834 }
40835
40836
40837 static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) {
40838 PyObject *obj;
40839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40840 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40841 Py_INCREF(obj);
40842 return Py_BuildValue((char *)"");
40843 }
40844 static PyMethodDef SwigMethods[] = {
40845 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL },
40846 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL },
40847 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
40848 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
40849 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL },
40850 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
40851 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
40852 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL },
40853 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
40854 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL },
40855 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL },
40856 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40857 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40858 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40859 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40860 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL },
40861 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL },
40862 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40863 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40864 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40865 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40866 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40867 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL },
40868 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
40869 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40870 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL },
40871 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40872 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40873 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40874 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40875 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40876 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40877 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40878 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40879 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40880 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40881 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40882 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40883 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL },
40884 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40885 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40886 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40887 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40888 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL },
40889 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL },
40890 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40891 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40892 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40893 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40894 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40895 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
40896 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40897 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40898 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL },
40899 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
40900 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL },
40901 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL },
40902 { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL },
40903 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
40904 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
40905 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL },
40906 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
40907 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL },
40908 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40909 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40910 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40911 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40912 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
40913 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
40914 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
40915 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
40916 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40917 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40918 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL },
40919 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL },
40920 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40921 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL },
40922 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL },
40923 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL },
40924 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40925 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL },
40926 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL },
40927 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL },
40928 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL },
40929 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL },
40930 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL },
40931 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
40932 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
40933 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40934 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40935 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40936 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40937 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL },
40938 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL },
40939 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL },
40940 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40941 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40942 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40943 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40944 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
40945 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
40946 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL },
40947 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
40948 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40949 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40950 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL },
40951 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
40952 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL },
40953 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL },
40954 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40955 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL },
40956 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL },
40957 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL },
40958 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL },
40959 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL },
40960 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL },
40961 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL },
40962 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL },
40963 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL },
40964 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL },
40965 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
40966 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40967 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
40968 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
40969 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL },
40970 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40971 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40972 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40973 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40974 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40975 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40976 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40977 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40978 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL },
40979 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL },
40980 { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL },
40981 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL },
40982 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL },
40983 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL },
40984 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL },
40985 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL },
40986 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL },
40987 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL },
40988 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL },
40989 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL },
40990 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL },
40991 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL },
40992 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
40993 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL },
40994 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL },
40995 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL },
40996 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL },
40997 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL },
40998 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL },
40999 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL },
41000 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL },
41001 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL },
41002 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL },
41003 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
41004 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL },
41005 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL },
41006 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL },
41007 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL },
41008 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL },
41009 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41010 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41011 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41012 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41013 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41014 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41015 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL },
41016 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL },
41017 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL },
41018 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL },
41019 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL },
41020 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL },
41021 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL },
41022 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL },
41023 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL },
41024 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
41025 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41026 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41027 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41028 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41029 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL },
41030 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL },
41031 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL },
41032 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL },
41033 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41034 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41035 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41036 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL },
41037 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41038 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41039 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41040 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41041 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41042 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL },
41043 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL },
41044 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41045 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL },
41046 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41047 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL },
41048 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41049 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41050 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41051 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41052 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL },
41053 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
41054 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL },
41055 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
41056 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
41057 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
41058 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL },
41059 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL },
41060 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
41061 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
41062 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL },
41063 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL },
41064 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL },
41065 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL },
41066 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL },
41067 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL },
41068 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL },
41069 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL },
41070 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL },
41071 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL },
41072 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL },
41073 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41074 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL },
41075 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41076 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41077 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL },
41078 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL },
41079 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL },
41080 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
41081 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL },
41082 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL },
41083 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL },
41084 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41085 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41086 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41087 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL },
41088 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL },
41089 { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41090 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
41091 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
41092 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
41093 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
41094 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL },
41095 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
41096 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL },
41097 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL },
41098 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL },
41099 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL },
41100 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
41101 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41102 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41103 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41104 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL },
41105 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
41106 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
41107 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
41108 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
41109 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41110 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41111 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL },
41112 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL },
41113 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41114 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41115 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
41116 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL },
41117 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL },
41118 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL },
41119 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
41120 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL },
41121 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL },
41122 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL },
41123 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL },
41124 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
41125 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL },
41126 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
41127 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
41128 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
41129 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
41130 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
41131 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL },
41132 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL },
41133 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41134 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41135 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41136 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL },
41137 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41138 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41139 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL },
41140 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41141 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL },
41142 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41143 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL },
41144 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41145 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL },
41146 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41147 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL },
41148 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41149 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL },
41150 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41151 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL },
41152 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41153 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL },
41154 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41155 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL },
41156 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41157 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL },
41158 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41159 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL },
41160 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41161 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL },
41162 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL },
41163 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL },
41164 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41165 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41166 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41167 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41168 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41169 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41170 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41171 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41172 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41173 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41174 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL },
41175 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL },
41176 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41177 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL },
41178 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41179 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL },
41180 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41181 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41182 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL },
41183 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL },
41184 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
41185 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
41186 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41187 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41188 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41189 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL },
41190 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL },
41191 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL },
41192 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL },
41193 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL },
41194 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41195 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL },
41196 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
41197 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
41198 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL },
41199 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL },
41200 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL },
41201 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL },
41202 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41203 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41204 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
41205 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
41206 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41207 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41208 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL },
41209 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL },
41210 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL },
41211 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL },
41212 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41213 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL },
41214 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41215 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL },
41216 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL },
41217 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL },
41218 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL },
41219 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41220 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41221 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41222 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41223 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41224 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL },
41225 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41226 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41227 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41228 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41229 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41230 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL },
41231 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41232 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
41233 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
41234 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41235 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
41236 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL },
41237 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41238 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL },
41239 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL },
41240 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL },
41241 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL },
41242 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41243 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL },
41244 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41245 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL },
41246 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL },
41247 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL },
41248 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL },
41249 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL },
41250 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41251 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41252 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41253 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41254 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41255 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41256 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL },
41257 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL },
41258 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL },
41259 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL },
41260 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41261 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41262 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41263 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41264 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41265 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL },
41266 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL },
41267 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL },
41268 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL },
41269 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
41270 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
41271 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
41272 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
41273 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41274 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41275 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41276 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41277 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41278 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41279 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41280 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41281 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41282 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41283 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41284 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41285 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41286 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41287 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL },
41288 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL },
41289 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL },
41290 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL },
41291 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL },
41292 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL },
41293 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL },
41294 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41295 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41296 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41297 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41298 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41299 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41300 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL },
41301 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41302 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL },
41303 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL },
41304 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL },
41305 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41306 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL },
41307 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL },
41308 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41309 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL },
41310 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41311 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41312 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41313 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41314 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41315 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41316 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
41317 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
41318 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
41319 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
41320 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41321 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41322 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41323 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41324 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41325 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41326 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41327 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41328 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41329 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41330 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41331 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41332 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41333 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41334 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL },
41335 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL },
41336 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL },
41337 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41338 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41339 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41340 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41341 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41342 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL },
41343 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL },
41344 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL },
41345 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL },
41346 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL },
41347 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41348 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41349 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41350 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41351 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41352 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
41353 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
41354 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL },
41355 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL },
41356 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL },
41357 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41358 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL },
41359 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41360 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL },
41361 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41362 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL },
41363 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL },
41364 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41365 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41366 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41367 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL },
41368 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41369 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41370 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL },
41371 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41372 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL },
41373 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL },
41374 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41375 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL },
41376 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41377 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL },
41378 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL },
41379 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41380 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL },
41381 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41382 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL },
41383 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL },
41384 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL },
41385 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41386 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41387 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41388 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL },
41389 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41390 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL },
41391 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL },
41392 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL },
41393 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41394 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL },
41395 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL },
41396 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41397 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL },
41398 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41399 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL },
41400 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL },
41401 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL },
41402 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41403 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41404 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41405 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
41406 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL },
41407 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41408 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41409 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41410 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41411 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
41412 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL },
41413 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL },
41414 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL },
41415 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL },
41416 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41417 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41418 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL },
41419 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41420 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL },
41421 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41422 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41423 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL },
41424 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41425 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL },
41426 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41427 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41428 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41429 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL },
41430 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41431 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL },
41432 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL },
41433 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL },
41434 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41435 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL },
41436 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL },
41437 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL },
41438 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL },
41439 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41440 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41441 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41442 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL },
41443 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41444 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41445 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL },
41446 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41447 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41448 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL },
41449 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41450 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41451 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41452 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL },
41453 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41454 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL },
41455 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL },
41456 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41457 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41458 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL },
41459 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL },
41460 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41461 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41462 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41463 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41464 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL },
41465 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41466 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41467 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41468 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41469 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL },
41470 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL },
41471 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL },
41472 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41473 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
41474 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
41475 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
41476 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
41477 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
41478 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
41479 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL },
41480 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41481 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL },
41482 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41483 { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL },
41484 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41485 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
41486 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41487 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL },
41488 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL },
41489 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41490 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41491 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL },
41492 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41493 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41494 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL },
41495 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL },
41496 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL },
41497 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL },
41498 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL },
41499 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL },
41500 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL },
41501 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL },
41502 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL },
41503 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41504 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41505 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41506 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL },
41507 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL },
41508 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41509 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41510 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41511 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL },
41512 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL },
41513 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL },
41514 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL },
41515 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
41516 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL },
41517 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL },
41518 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL },
41519 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41520 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41521 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL },
41522 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL },
41523 { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41524 { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41525 { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL },
41526 { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
41527 { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL },
41528 { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL },
41529 { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
41530 { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL },
41531 { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL },
41532 { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL },
41533 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
41534 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
41535 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL },
41536 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41537 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41538 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
41539 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL },
41540 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41541 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41542 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
41543 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL },
41544 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL },
41545 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41546 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41547 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL },
41548 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL },
41549 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL },
41550 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL },
41551 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL },
41552 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL },
41553 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL },
41554 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL },
41555 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41556 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41557 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL },
41558 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41559 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41560 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL },
41561 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41562 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41563 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41564 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41565 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL },
41566 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
41567 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL },
41568 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL },
41569 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41570 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41571 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41572 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41573 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41574 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41575 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL },
41576 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41577 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41578 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL },
41579 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
41580 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL },
41581 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL },
41582 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL },
41583 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
41584 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41585 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41586 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41587 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41588 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41589 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41590 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41591 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
41592 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41593 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
41594 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41595 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41596 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41597 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41598 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL },
41599 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41600 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL },
41601 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL },
41602 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL },
41603 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL },
41604 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL },
41605 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41606 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL },
41607 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41608 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL },
41609 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
41610 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41611 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41612 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
41613 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41614 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41615 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41616 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41617 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41618 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41619 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41620 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41621 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41622 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41623 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
41624 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41625 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL },
41626 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41627 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41628 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41629 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41630 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41631 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL },
41632 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41633 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41634 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL },
41635 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41636 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41637 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41638 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL },
41639 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41640 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41641 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
41642 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41643 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41644 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41645 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL },
41646 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL },
41647 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL },
41648 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41649 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41650 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL },
41651 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL },
41652 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL },
41653 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
41654 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
41655 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL },
41656 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL },
41657 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41658 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41659 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41660 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41661 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41662 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41663 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41664 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
41665 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41666 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41667 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41668 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41669 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41670 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL },
41671 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL },
41672 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL },
41673 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL },
41674 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL },
41675 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL },
41676 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41677 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41678 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL },
41679 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL },
41680 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL },
41681 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
41682 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL },
41683 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL },
41684 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL },
41685 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL },
41686 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL },
41687 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL },
41688 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL },
41689 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL },
41690 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL },
41691 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41692 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL },
41693 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL },
41694 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL },
41695 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41696 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41697 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41698 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41699 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41700 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41701 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41702 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41703 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41704 { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41705 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41706 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41707 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41708 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL },
41709 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41710 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL },
41711 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL },
41712 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41713 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41714 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
41715 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
41716 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL },
41717 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL },
41718 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL },
41719 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL },
41720 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
41721 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
41722 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL },
41723 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL },
41724 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL },
41725 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41726 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
41727 { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
41728 { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
41729 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
41730 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
41731 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL },
41732 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL },
41733 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL },
41734 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL },
41735 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41736 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL },
41737 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL },
41738 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL },
41739 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL },
41740 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL },
41741 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL },
41742 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL },
41743 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL },
41744 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL },
41745 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL },
41746 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
41747 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
41748 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
41749 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
41750 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
41751 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
41752 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL },
41753 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL },
41754 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL },
41755 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41756 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL },
41757 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41758 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41759 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41760 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41761 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
41762 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL },
41763 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL },
41764 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL },
41765 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41766 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL },
41767 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL },
41768 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41769 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
41770 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41771 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41772 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41773 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41774 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL },
41775 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL },
41776 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL },
41777 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41778 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41779 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL },
41780 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL },
41781 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41782 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41783 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41784 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41785 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41786 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
41787 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL },
41788 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
41789 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41790 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41791 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41792 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41793 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41794 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
41795 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL },
41796 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41797 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41798 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41799 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41800 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41801 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL },
41802 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
41803 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
41804 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41805 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL },
41806 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL },
41807 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
41808 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL },
41809 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
41810 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL },
41811 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41812 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41813 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41814 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41815 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41816 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41817 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41818 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41819 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41820 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41821 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41822 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41823 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41824 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41825 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41826 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41827 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL },
41828 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL },
41829 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
41830 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41831 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL },
41832 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41833 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41834 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL },
41835 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL },
41836 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41837 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41838 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL },
41839 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41840 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
41841 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41842 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL },
41843 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL },
41844 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL },
41845 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL },
41846 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL },
41847 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL },
41848 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41849 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41850 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41851 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41852 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41853 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41854 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41855 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41856 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41857 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
41858 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL },
41859 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
41860 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41861 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL },
41862 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL },
41863 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41864 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41865 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41866 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41867 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41868 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
41869 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41870 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
41871 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL },
41872 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
41873 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL },
41874 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL },
41875 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL },
41876 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41877 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41878 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41879 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41880 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41881 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41882 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41883 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
41884 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
41885 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
41886 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL },
41887 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL },
41888 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41889 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41890 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41891 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL },
41892 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL },
41893 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL },
41894 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41895 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL },
41896 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41897 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41898 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41899 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL },
41900 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41901 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL },
41902 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41903 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
41904 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
41905 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
41906 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
41907 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
41908 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL },
41909 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
41910 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
41911 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL },
41912 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41913 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41914 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
41915 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
41916 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL },
41917 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL },
41918 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL },
41919 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41920 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41921 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41922 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL },
41923 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41924 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41925 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
41926 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL },
41927 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41928 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41929 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL },
41930 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL },
41931 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL },
41932 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
41933 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
41934 { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41935 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41936 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41937 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41938 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL },
41939 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL },
41940 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41941 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41942 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41943 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41944 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41945 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41946 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41947 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41948 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41949 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41950 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41951 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41952 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41953 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL },
41954 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL },
41955 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41956 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL },
41957 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41958 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL },
41959 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41960 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41961 { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
41962 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41963 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
41964 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
41965 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
41966 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL },
41967 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41968 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41969 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41970 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41971 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
41972 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
41973 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL },
41974 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL },
41975 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL },
41976 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41977 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41978 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
41979 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL },
41980 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41981 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41982 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41983 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL },
41984 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL },
41985 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL },
41986 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41987 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL },
41988 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41989 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41990 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41991 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL },
41992 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41993 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
41994 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL },
41995 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41996 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL },
41997 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
41998 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL },
41999 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL },
42000 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL },
42001 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL },
42002 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL },
42003 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL },
42004 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL },
42005 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42006 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL },
42007 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL },
42008 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL },
42009 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL },
42010 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL },
42011 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL },
42012 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL },
42013 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL },
42014 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL },
42015 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL },
42016 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL },
42017 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL },
42018 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL },
42019 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL },
42020 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL },
42021 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL },
42022 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
42023 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
42024 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42025 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL },
42026 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL },
42027 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42028 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL },
42029 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL },
42030 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL },
42031 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL },
42032 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
42033 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
42034 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42035 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL },
42036 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL },
42037 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL },
42038 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL },
42039 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42040 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
42041 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL },
42042 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42043 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL },
42044 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42045 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL },
42046 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL },
42047 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL },
42048 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42049 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42050 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL },
42051 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42052 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL },
42053 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
42054 { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
42055 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
42056 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
42057 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL },
42058 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL },
42059 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL },
42060 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL },
42061 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL },
42062 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL },
42063 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
42064 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL },
42065 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL },
42066 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL },
42067 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42068 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL },
42069 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL },
42070 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL },
42071 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL },
42072 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL },
42073 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL },
42074 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL },
42075 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL },
42076 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL },
42077 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL },
42078 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42079 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42080 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
42081 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL },
42082 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL },
42083 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
42084 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL },
42085 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42086 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL },
42087 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL },
42088 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL },
42089 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL },
42090 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL },
42091 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL },
42092 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42093 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL },
42094 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL },
42095 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL },
42096 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL },
42097 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL },
42098 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
42099 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
42100 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL },
42101 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL },
42102 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
42103 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
42104 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL },
42105 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL },
42106 { NULL, NULL, 0, NULL }
42107 };
42108
42109
42110 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42111
42112 static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
42113 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
42114 }
42115 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
42116 return (void *)((wxSizer *) ((wxBoxSizer *) x));
42117 }
42118 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
42119 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
42120 }
42121 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
42122 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42123 }
42124 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
42125 return (void *)((wxSizer *) ((wxGridSizer *) x));
42126 }
42127 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
42128 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
42129 }
42130 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
42131 return (void *)((wxSizer *) ((wxPySizer *) x));
42132 }
42133 static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
42134 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
42135 }
42136 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42137 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42138 }
42139 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42140 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42141 }
42142 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42143 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42144 }
42145 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42146 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42147 }
42148 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42149 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42150 }
42151 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42152 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42153 }
42154 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42155 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42156 }
42157 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42158 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42159 }
42160 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42161 return (void *)((wxEvent *) ((wxPyEvent *) x));
42162 }
42163 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42164 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42165 }
42166 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42167 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42168 }
42169 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42170 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42171 }
42172 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42173 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42174 }
42175 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42176 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42177 }
42178 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42179 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42180 }
42181 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42182 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42183 }
42184 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42185 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42186 }
42187 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42188 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42189 }
42190 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42191 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42192 }
42193 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42194 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42195 }
42196 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42197 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42198 }
42199 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42200 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42201 }
42202 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42203 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42204 }
42205 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42206 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42207 }
42208 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42209 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42210 }
42211 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42212 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42213 }
42214 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42215 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42216 }
42217 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42218 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42219 }
42220 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42221 return (void *)((wxEvent *) ((wxShowEvent *) x));
42222 }
42223 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42224 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42225 }
42226 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42227 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42228 }
42229 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42230 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42231 }
42232 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42233 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42234 }
42235 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42236 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42237 }
42238 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42239 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42240 }
42241 static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
42242 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
42243 }
42244 static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
42245 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
42246 }
42247 static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
42248 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
42249 }
42250 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42251 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42252 }
42253 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42254 return (void *)((wxControl *) ((wxControlWithItems *) x));
42255 }
42256 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42257 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42258 }
42259 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42260 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42261 }
42262 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42263 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42264 }
42265 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42266 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42267 }
42268 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42269 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42270 }
42271 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42272 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42273 }
42274 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42275 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42276 }
42277 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42278 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42279 }
42280 static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
42281 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
42282 }
42283 static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
42284 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
42285 }
42286 static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
42287 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
42288 }
42289 static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
42290 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
42291 }
42292 static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
42293 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
42294 }
42295 static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
42296 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42297 }
42298 static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
42299 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
42300 }
42301 static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
42302 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
42303 }
42304 static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
42305 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42306 }
42307 static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
42308 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42309 }
42310 static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
42311 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
42312 }
42313 static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
42314 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
42315 }
42316 static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
42317 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
42318 }
42319 static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
42320 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
42321 }
42322 static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
42323 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
42324 }
42325 static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
42326 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
42327 }
42328 static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
42329 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
42330 }
42331 static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
42332 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
42333 }
42334 static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
42335 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
42336 }
42337 static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
42338 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
42339 }
42340 static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
42341 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
42342 }
42343 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42344 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42345 }
42346 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42347 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42348 }
42349 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42350 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42351 }
42352 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42353 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42354 }
42355 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42356 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42357 }
42358 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42359 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42360 }
42361 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42362 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42363 }
42364 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42365 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42366 }
42367 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42368 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42369 }
42370 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42371 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42372 }
42373 static void *_p_wxSizerTo_p_wxObject(void *x) {
42374 return (void *)((wxObject *) ((wxSizer *) x));
42375 }
42376 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42377 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42378 }
42379 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42380 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42381 }
42382 static void *_p_wxMenuTo_p_wxObject(void *x) {
42383 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42384 }
42385 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42386 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42387 }
42388 static void *_p_wxImageTo_p_wxObject(void *x) {
42389 return (void *)((wxObject *) ((wxImage *) x));
42390 }
42391 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42393 }
42394 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42395 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42396 }
42397 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42398 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42399 }
42400 static void *_p_wxWindowTo_p_wxObject(void *x) {
42401 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42402 }
42403 static void *_p_wxControlTo_p_wxObject(void *x) {
42404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42405 }
42406 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42407 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42408 }
42409 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42410 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42411 }
42412 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42413 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42414 }
42415 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42416 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42417 }
42418 static void *_p_wxEventTo_p_wxObject(void *x) {
42419 return (void *)((wxObject *) ((wxEvent *) x));
42420 }
42421 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42422 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42423 }
42424 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42425 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42426 }
42427 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42428 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42429 }
42430 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42431 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42432 }
42433 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42434 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42435 }
42436 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42437 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42438 }
42439 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42441 }
42442 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42443 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42444 }
42445 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42446 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42447 }
42448 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42449 return (void *)((wxObject *) ((wxEvtHandler *) x));
42450 }
42451 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42452 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42453 }
42454 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42455 return (void *)((wxObject *) ((wxImageHandler *) x));
42456 }
42457 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42458 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42459 }
42460 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42462 }
42463 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42465 }
42466 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42467 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42468 }
42469 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42470 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42471 }
42472 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42473 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42474 }
42475 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42476 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42477 }
42478 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42479 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42480 }
42481 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42482 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42483 }
42484 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42485 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42486 }
42487 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42488 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42489 }
42490 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42491 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42492 }
42493 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42494 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42495 }
42496 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42497 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42498 }
42499 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42500 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42501 }
42502 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42503 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42504 }
42505 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42506 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42507 }
42508 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42509 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42510 }
42511 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42512 return (void *)((wxObject *) ((wxFileSystem *) x));
42513 }
42514 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42515 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42516 }
42517 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42518 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42519 }
42520 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42521 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42522 }
42523 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42524 return (void *)((wxObject *) ((wxSizerItem *) x));
42525 }
42526 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42527 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42528 }
42529 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42530 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42531 }
42532 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42533 return (void *)((wxObject *) ((wxFSFile *) x));
42534 }
42535 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42536 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42537 }
42538 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42539 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42540 }
42541 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42542 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42543 }
42544 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42545 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42546 }
42547 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42549 }
42550 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42551 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42552 }
42553 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42554 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42555 }
42556 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42557 return (void *)((wxObject *) ((wxMenuItem *) x));
42558 }
42559 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42560 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42561 }
42562 static void *_p_wxControlTo_p_wxWindow(void *x) {
42563 return (void *)((wxWindow *) ((wxControl *) x));
42564 }
42565 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42566 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42567 }
42568 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42569 return (void *)((wxWindow *) ((wxMenuBar *) x));
42570 }
42571 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42572 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42573 }
42574 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42575 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42576 }
42577 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42578 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42579 }
42580 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42581 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42582 }
42583 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42584 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42585 }
42586 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42587 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42588 }
42589 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42590 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42591 }
42592 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42593 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42594 }
42595 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42596 return (void *)((wxValidator *) ((wxPyValidator *) x));
42597 }
42598 static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42599 static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42600 static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42601 static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42602 static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42603 static swig_type_info _swigt__p_wxEventLoop[] = {{"_p_wxEventLoop", 0, "wxEventLoop *", 0, 0, 0, 0},{"_p_wxEventLoop", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42604 static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42605 static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42606 static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42607 static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42608 static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42609 static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42610 static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42611 static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42612 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42613 static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42614 static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42615 static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42616 static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42617 static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42618 static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42619 static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42620 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42621 static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42622 static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42623 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42624 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42625 static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42626 static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42627 static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42628 static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42629 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42630 static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42631 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42632 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42633 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42634 static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42635 static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42636 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42637 static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42638 static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42639 static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42640 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42641 static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42642 static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42643 static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42644 static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42645 static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42646 static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42647 static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42648 static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42649 static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42650 static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42651 static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42652 static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42653 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42654 static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42655 static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42656 static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42657 static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42658 static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42659 static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42660 static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42661 static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42662 static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42663 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42664 static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42665 static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42666 static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42667 static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42668 static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42669 static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42670 static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42671 static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42672 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42673 static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42674 static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42675 static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42676 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42677 static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42678 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42679 static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42680 static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42681 static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42682 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42683 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42684 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42685 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42686 static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42687 static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42688 static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42689 static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42690 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42691 static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42692 static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42693 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42694 static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42695 static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42696 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42697 static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42698 static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42699 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42700 static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42701 static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42702 static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42703 static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42704 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42705 static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42706 static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42707 static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42708 static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42709 static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42710 static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42711 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42712 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42713 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42714 static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42715
42716 static swig_type_info *swig_types_initial[] = {
42717 _swigt__p_wxLayoutConstraints,
42718 _swigt__p_wxRealPoint,
42719 _swigt__p_wxSizerItem,
42720 _swigt__p_wxGBSizerItem,
42721 _swigt__p_wxScrollEvent,
42722 _swigt__p_wxEventLoop,
42723 _swigt__p_wxIndividualLayoutConstraint,
42724 _swigt__p_wxSizer,
42725 _swigt__p_wxBoxSizer,
42726 _swigt__p_wxStaticBoxSizer,
42727 _swigt__p_wxGridBagSizer,
42728 _swigt__p_wxAcceleratorEntry,
42729 _swigt__p_wxUpdateUIEvent,
42730 _swigt__p_wxMenu,
42731 _swigt__p_wxEvent,
42732 _swigt__p_wxGridSizer,
42733 _swigt__p_wxFlexGridSizer,
42734 _swigt__p_wxInitDialogEvent,
42735 _swigt__p_wxItemContainer,
42736 _swigt__p_wxNcPaintEvent,
42737 _swigt__p_wxPaintEvent,
42738 _swigt__p_wxSysColourChangedEvent,
42739 _swigt__p_wxMouseCaptureChangedEvent,
42740 _swigt__p_wxDisplayChangedEvent,
42741 _swigt__p_wxPaletteChangedEvent,
42742 _swigt__p_wxControl,
42743 _swigt__p_wxFont,
42744 _swigt__p_wxMenuBarBase,
42745 _swigt__p_wxSetCursorEvent,
42746 _swigt__p_wxFSFile,
42747 _swigt__p_wxCaret,
42748 _swigt__p_wxRegion,
42749 _swigt__p_wxPoint2D,
42750 _swigt__p_int,
42751 _swigt__p_wxSize,
42752 _swigt__p_wxDC,
42753 _swigt__p_wxPySizer,
42754 _swigt__p_wxVisualAttributes,
42755 _swigt__p_wxNotifyEvent,
42756 _swigt__p_wxPyEvent,
42757 _swigt__p_wxPropagationDisabler,
42758 _swigt__p_wxAppTraits,
42759 _swigt__p_wxArrayString,
42760 _swigt__p_wxShowEvent,
42761 _swigt__p_wxToolTip,
42762 _swigt__p_wxIconizeEvent,
42763 _swigt__p_wxActivateEvent,
42764 _swigt__p_wxMoveEvent,
42765 _swigt__p_wxSizeEvent,
42766 _swigt__p_wxMaximizeEvent,
42767 _swigt__p_wxQueryNewPaletteEvent,
42768 _swigt__p_wxWindowCreateEvent,
42769 _swigt__p_wxIdleEvent,
42770 _swigt__p_wxMenuItem,
42771 _swigt__p_wxStaticBox,
42772 _swigt__p_long,
42773 _swigt__p_wxTIFFHandler,
42774 _swigt__p_wxXPMHandler,
42775 _swigt__p_wxPNMHandler,
42776 _swigt__p_wxJPEGHandler,
42777 _swigt__p_wxPCXHandler,
42778 _swigt__p_wxGIFHandler,
42779 _swigt__p_wxPNGHandler,
42780 _swigt__p_wxANIHandler,
42781 _swigt__p_wxMemoryFSHandler,
42782 _swigt__p_wxEvtHandler,
42783 _swigt__p_wxCURHandler,
42784 _swigt__p_wxICOHandler,
42785 _swigt__p_wxBMPHandler,
42786 _swigt__p_wxImageHandler,
42787 _swigt__p_wxFileSystemHandler,
42788 _swigt__p_wxPyFileSystemHandler,
42789 _swigt__p_wxInternetFSHandler,
42790 _swigt__p_wxZipFSHandler,
42791 _swigt__p_wxRect,
42792 _swigt__p_wxGBSpan,
42793 _swigt__p_wxPropagateOnce,
42794 _swigt__p_wxAcceleratorTable,
42795 _swigt__p_char,
42796 _swigt__p_wxGBPosition,
42797 _swigt__p_wxImage,
42798 _swigt__p_wxFrame,
42799 _swigt__p_wxScrollWinEvent,
42800 _swigt__p_wxImageHistogram,
42801 _swigt__p_byte,
42802 _swigt__p_wxPoint,
42803 _swigt__p_wxCursor,
42804 _swigt__p_wxObject,
42805 _swigt__p_wxPyInputStream,
42806 _swigt__p_wxOutputStream,
42807 _swigt__p_wxInputStream,
42808 _swigt__p_wxDateTime,
42809 _swigt__p_wxKeyEvent,
42810 _swigt__p_wxNavigationKeyEvent,
42811 _swigt__p_wxWindowDestroyEvent,
42812 _swigt__p_wxWindow,
42813 _swigt__p_wxMenuBar,
42814 _swigt__p_wxFileSystem,
42815 _swigt__p_wxBitmap,
42816 _swigt__p_wxMenuEvent,
42817 _swigt__p_wxContextMenuEvent,
42818 _swigt__p_unsigned_char,
42819 _swigt__p_wxCloseEvent,
42820 _swigt__p_wxEraseEvent,
42821 _swigt__p_wxMouseEvent,
42822 _swigt__p_wxPyApp,
42823 _swigt__p_wxCommandEvent,
42824 _swigt__p_wxPyCommandEvent,
42825 _swigt__p_wxPyDropTarget,
42826 _swigt__p_wxQuantize,
42827 _swigt__p_wxChildFocusEvent,
42828 _swigt__p_wxFocusEvent,
42829 _swigt__p_wxDropFilesEvent,
42830 _swigt__p_wxControlWithItems,
42831 _swigt__p_wxColour,
42832 _swigt__p_wxValidator,
42833 _swigt__p_wxPyValidator,
42834 0
42835 };
42836
42837
42838 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42839
42840 static swig_const_info swig_const_table[] = {
42841 {0, 0, 0, 0.0, 0, 0}};
42842
42843 #ifdef __cplusplus
42844 }
42845 #endif
42846
42847 #ifdef __cplusplus
42848 extern "C"
42849 #endif
42850 SWIGEXPORT(void) SWIG_init(void) {
42851 static PyObject *SWIG_globals = 0;
42852 static int typeinit = 0;
42853 PyObject *m, *d;
42854 int i;
42855 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42856 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42857 d = PyModule_GetDict(m);
42858
42859 if (!typeinit) {
42860 for (i = 0; swig_types_initial[i]; i++) {
42861 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42862 }
42863 typeinit = 1;
42864 }
42865 SWIG_InstallConstants(d,swig_const_table);
42866
42867
42868 #ifndef wxPyUSE_EXPORT
42869 // Make our API structure a CObject so other modules can import it
42870 // from this module.
42871 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42872 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42873 Py_XDECREF(cobj);
42874 #endif
42875
42876 PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND));
42877 PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL));
42878 PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL));
42879 PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION));
42880 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER));
42881 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER));
42882 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER));
42883 PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER));
42884 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER));
42885 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER));
42886 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW));
42887 PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER));
42888 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL));
42889 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS));
42890 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW));
42891 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME));
42892 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN));
42893 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN));
42894 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN));
42895 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM));
42896 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT));
42897 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE));
42898 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE));
42899 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN));
42900 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS));
42901 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB));
42902 PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED));
42903 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE));
42904 PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED));
42905 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH));
42906 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB));
42907 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB));
42908 PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT));
42909 PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE));
42910 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE));
42911 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED));
42912 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW));
42913 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL));
42914 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER));
42915 PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD));
42916 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE));
42917 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN));
42918 PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT));
42919 PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY));
42920 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL));
42921 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL));
42922 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS));
42923 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS));
42924 PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP));
42925 PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE));
42926 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL));
42927 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL));
42928 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS));
42929 PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS));
42930 PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT));
42931 PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP));
42932 PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT));
42933 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM));
42934 PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH));
42935 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE));
42936 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL));
42937 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL));
42938 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP));
42939 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE));
42940 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE));
42941 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER));
42942 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE));
42943 PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE));
42944 PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP));
42945 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM));
42946 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT));
42947 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT));
42948 PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK));
42949 PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO));
42950 PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL));
42951 PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES));
42952 PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO));
42953 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT));
42954 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT));
42955 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION));
42956 PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND));
42957 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION));
42958 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION));
42959 PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP));
42960 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK));
42961 PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK));
42962 PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING));
42963 PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR));
42964 PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD));
42965 PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD));
42966 PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET));
42967 PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP));
42968 PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE));
42969 PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP));
42970 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH));
42971 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT));
42972 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO));
42973 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING));
42974 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE));
42975 PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT));
42976 PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE));
42977 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH));
42978 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM));
42979 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW));
42980 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT));
42981 PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY));
42982 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR));
42983 PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST));
42984 PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN));
42985 PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE));
42986 PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW));
42987 PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE));
42988 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS));
42989 PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT));
42990 PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT));
42991 PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO));
42992 PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO));
42993 PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP));
42994 PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT));
42995 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP));
42996 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW));
42997 PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT));
42998 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS));
42999 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS));
43000 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES));
43001 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT));
43002 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL));
43003 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES));
43004 PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT));
43005 PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY));
43006 PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE));
43007 PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR));
43008 PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND));
43009 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE));
43010 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL));
43011 PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE));
43012 PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE));
43013 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL));
43014 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES));
43015 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS));
43016 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS));
43017 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS));
43018 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST));
43019 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE));
43020 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME));
43021 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE));
43022 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE));
43023 PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1));
43024 PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2));
43025 PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3));
43026 PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4));
43027 PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5));
43028 PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6));
43029 PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7));
43030 PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8));
43031 PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9));
43032 PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK));
43033 PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL));
43034 PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY));
43035 PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES));
43036 PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO));
43037 PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC));
43038 PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD));
43039 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD));
43040 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT));
43041 PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE));
43042 PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP));
43043 PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET));
43044 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP));
43045 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL));
43046 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL));
43047 PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT));
43048 PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY));
43049 PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE));
43050 PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD));
43051 PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE));
43052 PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP));
43053 PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN));
43054 PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME));
43055 PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH));
43056 PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP));
43057 PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX));
43058 PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD));
43059 PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC));
43060 PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER));
43061 PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL));
43062 PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT));
43063 PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT));
43064 PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE));
43065 PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT));
43066 PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT));
43067 PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100));
43068 PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT));
43069 PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN));
43070 PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT));
43071 PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE));
43072 PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED));
43073 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST));
43074 PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN));
43075 PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE));
43076 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY));
43077 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT));
43078 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST));
43079 PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE));
43080 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR));
43081 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT));
43082 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL));
43083 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT));
43084 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL));
43085 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE));
43086 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL));
43087 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT));
43088 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME));
43089 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME));
43090 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME));
43091 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON));
43092 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE));
43093 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF));
43094 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE));
43095 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE));
43096 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE));
43097 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL));
43098 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL));
43099 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY));
43100 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS));
43101 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT));
43102 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND));
43103 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE));
43104 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES));
43105 PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT));
43106 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC));
43107 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC));
43108 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH));
43109 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH));
43110 PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS));
43111 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC));
43112 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC));
43113 PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS));
43114 PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC));
43115 PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE));
43116 PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER));
43117 PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL));
43118 PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL));
43119 PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH));
43120 PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT));
43121 PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT));
43122 PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP));
43123 PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN));
43124 PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP));
43125 PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM));
43126 PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH));
43127 PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH));
43128 PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST));
43129 PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST));
43130 PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL));
43131 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT));
43132 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL));
43133 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL));
43134 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT));
43135 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP));
43136 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT));
43137 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM));
43138 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL));
43139 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL));
43140 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER));
43141 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE));
43142 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK));
43143 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT));
43144 PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK));
43145 PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW));
43146 PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND));
43147 PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED));
43148 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE));
43149 PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE));
43150 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE));
43151 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT));
43152 PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE));
43153 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC));
43154 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE));
43155 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED));
43156 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN));
43157 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE));
43158 PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK));
43159 PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM));
43160 PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR));
43161 PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM));
43162 PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT));
43163 PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE));
43164 PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN));
43165 PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT));
43166 PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS));
43167 PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN));
43168 PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE));
43169 PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE));
43170 PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED));
43171 PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL));
43172 PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT));
43173 PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD));
43174 PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC));
43175 PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT));
43176 PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID));
43177 PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT));
43178 PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH));
43179 PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH));
43180 PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH));
43181 PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH));
43182 PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT));
43183 PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE));
43184 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH));
43185 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH));
43186 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH));
43187 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH));
43188 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH));
43189 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH));
43190 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL));
43191 PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER));
43192 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND));
43193 PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND));
43194 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING));
43195 PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT));
43196 PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR));
43197 PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR));
43198 PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT));
43199 PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE));
43200 PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE));
43201 PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY));
43202 PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND));
43203 PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT));
43204 PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP));
43205 PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR));
43206 PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV));
43207 PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT));
43208 PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT));
43209 PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND));
43210 PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR));
43211 PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET));
43212 PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK));
43213 PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB));
43214 PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN));
43215 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE));
43216 PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE));
43217 PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE));
43218 PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START));
43219 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON));
43220 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON));
43221 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL));
43222 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON));
43223 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR));
43224 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT));
43225 PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT));
43226 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL));
43227 PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU));
43228 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE));
43229 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL));
43230 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR));
43231 PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT));
43232 PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END));
43233 PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME));
43234 PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT));
43235 PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP));
43236 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT));
43237 PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN));
43238 PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT));
43239 PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT));
43240 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE));
43241 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT));
43242 PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT));
43243 PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP));
43244 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0));
43245 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1));
43246 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2));
43247 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3));
43248 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4));
43249 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5));
43250 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6));
43251 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7));
43252 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8));
43253 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9));
43254 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY));
43255 PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD));
43256 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR));
43257 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT));
43258 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL));
43259 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE));
43260 PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1));
43261 PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2));
43262 PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3));
43263 PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4));
43264 PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5));
43265 PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6));
43266 PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7));
43267 PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8));
43268 PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9));
43269 PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10));
43270 PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11));
43271 PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12));
43272 PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13));
43273 PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14));
43274 PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15));
43275 PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16));
43276 PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17));
43277 PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18));
43278 PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19));
43279 PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20));
43280 PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21));
43281 PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22));
43282 PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23));
43283 PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24));
43284 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK));
43285 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL));
43286 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP));
43287 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN));
43288 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE));
43289 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB));
43290 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER));
43291 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1));
43292 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2));
43293 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3));
43294 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4));
43295 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME));
43296 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT));
43297 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP));
43298 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT));
43299 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN));
43300 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR));
43301 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP));
43302 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT));
43303 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN));
43304 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END));
43305 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN));
43306 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT));
43307 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE));
43308 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL));
43309 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY));
43310 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD));
43311 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR));
43312 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT));
43313 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL));
43314 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE));
43315 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT));
43316 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT));
43317 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU));
43318 PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE));
43319 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER));
43320 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL));
43321 PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4));
43322 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET));
43323 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET));
43324 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET));
43325 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL));
43326 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID));
43327 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER));
43328 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT));
43329 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE));
43330 PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3));
43331 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL));
43332 PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5));
43333 PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4));
43334 PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5));
43335 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO));
43336 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO));
43337 PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14));
43338 PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17));
43339 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE));
43340 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9));
43341 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10));
43342 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11));
43343 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12));
43344 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14));
43345 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL));
43346 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5));
43347 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3));
43348 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4));
43349 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6));
43350 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65));
43351 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4));
43352 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5));
43353 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6));
43354 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY));
43355 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH));
43356 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL));
43357 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US));
43358 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN));
43359 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN));
43360 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4));
43361 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD));
43362 PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11));
43363 PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11));
43364 PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11));
43365 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE));
43366 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA));
43367 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA));
43368 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA));
43369 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA));
43370 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE));
43371 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE));
43372 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
43373 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS));
43374 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS));
43375 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS));
43376 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS));
43377 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE));
43378 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE));
43379 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA));
43380 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA));
43381 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA));
43382 PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2));
43383 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE));
43384 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE));
43385 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX));
43386 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL));
43387 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL));
43388 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR));
43389 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL));
43390 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK));
43391 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO));
43392 PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX));
43393 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE));
43394 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST));
43395 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1));
43396 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2));
43397 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
43398 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
43399 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB));
43400 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1));
43401 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2));
43402 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST));
43403 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE));
43404 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE));
43405 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR));
43406 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR));
43407 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER));
43408 PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX));
43409 PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE));
43410 PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT));
43411 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL));
43412 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT));
43413 PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN));
43414 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE));
43415 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE));
43416 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE));
43417 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
43418 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
43419 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID));
43420 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP));
43421 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO));
43422 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR));
43423 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM));
43424 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA));
43425 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM));
43426 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA));
43427 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF));
43428 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF));
43429 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG));
43430 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG));
43431 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM));
43432 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX));
43433 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT));
43434 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON));
43435 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI));
43436 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF));
43437 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR));
43438 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY));
43439 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE));
43440 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW));
43441 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW));
43442 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE));
43443 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR));
43444 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS));
43445 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND));
43446 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM));
43447 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON));
43448 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER));
43449 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON));
43450 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY));
43451 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH));
43452 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL));
43453 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT));
43454 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT));
43455 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW));
43456 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON));
43457 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW));
43458 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS));
43459 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE));
43460 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE));
43461 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING));
43462 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN));
43463 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT));
43464 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH));
43465 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK));
43466 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT));
43467 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW));
43468 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT));
43469 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX));
43470 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
43471 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
43472 PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart));
43473 PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent));
43474 PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd));
43475
43476 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
43477
43478
43479 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
43480
43481 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
43482 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
43483 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
43484 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
43485 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
43486 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
43487 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES));
43488 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM));
43489 PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP));
43490 PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP));
43491 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY));
43492 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY));
43493 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED));
43494 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE));
43495 PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP));
43496 PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP));
43497 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW));
43498 PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS));
43499 PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE));
43500 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE));
43501 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX));
43502 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
43503 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
43504 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
43505 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
43506 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
43507 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
43508 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
43509 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
43510 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
43511 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
43512 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
43513 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
43514 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
43515 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
43516 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
43517 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
43518 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
43519 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
43520 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
43521 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
43522 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
43523 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
43524 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
43525 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
43526 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
43527 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
43528 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
43529 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
43530 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
43531 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
43532 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
43533 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
43534 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
43535 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
43536 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
43537 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
43538 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
43539 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
43540 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
43541 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
43542 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
43543 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
43544 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
43545 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
43546 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
43547 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
43548 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
43549 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
43550 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
43551 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
43552 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
43553 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
43554 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
43555 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
43556 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
43557 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
43558 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
43559 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
43560 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
43561 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
43562 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
43563 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
43564 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
43565 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
43566 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
43567 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
43568 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
43569 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
43570 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
43571 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
43572 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
43573 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
43574 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
43575 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
43576 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
43577 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
43578 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
43579 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
43580 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
43581 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
43582 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
43583 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
43584 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
43585 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
43586 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
43587 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
43588 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
43589 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
43590 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
43591 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
43592 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
43593 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
43594 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
43595 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
43596 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
43597 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
43598 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
43599 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
43600 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
43601 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
43602 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
43603 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
43604 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
43605 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
43606 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
43607 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
43608 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
43609 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
43610 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
43611 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
43612 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
43613 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
43614 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
43615 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
43616 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY));
43617 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE));
43618 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT));
43619 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE));
43620 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT));
43621 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL));
43622 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED));
43623 PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward));
43624 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward));
43625 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange));
43626 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL));
43627 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED));
43628 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS));
43629 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION));
43630 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG));
43631 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG));
43632 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS));
43633 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT));
43634 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
43635 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
43636 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL));
43637 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL));
43638 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI));
43639 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE));
43640 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX));
43641 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
43642 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
43643 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE));
43644 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED));
43645 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL));
43646 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
43647 PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft));
43648 PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop));
43649 PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight));
43650 PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom));
43651 PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth));
43652 PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight));
43653 PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre));
43654 PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter));
43655 PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX));
43656 PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY));
43657 PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained));
43658 PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs));
43659 PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf));
43660 PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove));
43661 PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow));
43662 PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf));
43663 PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf));
43664 PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs));
43665 PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute));
43666
43667 // Initialize threading, some globals and such
43668 __wxPyPreStart(d);
43669
43670
43671 // Although these are defined in __version__ they need to be here too so
43672 // that an assert can be done to ensure that the wxPython and the wxWindows
43673 // versions match.
43674 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
43675 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
43676 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
43677
43678 }
43679