reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _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_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
210 #define SWIGTYPE_p_wxRealPoint swig_types[1]
211 #define SWIGTYPE_p_wxSizerItem swig_types[2]
212 #define SWIGTYPE_p_wxGBSizerItem swig_types[3]
213 #define SWIGTYPE_p_wxScrollEvent swig_types[4]
214 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
215 #define SWIGTYPE_p_wxSizer swig_types[6]
216 #define SWIGTYPE_p_wxBoxSizer swig_types[7]
217 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
218 #define SWIGTYPE_p_wxGridBagSizer swig_types[9]
219 #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
220 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
221 #define SWIGTYPE_p_wxMenu swig_types[12]
222 #define SWIGTYPE_p_wxEvent swig_types[13]
223 #define SWIGTYPE_p_wxGridSizer swig_types[14]
224 #define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
225 #define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
226 #define SWIGTYPE_p_wxItemContainer swig_types[17]
227 #define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
228 #define SWIGTYPE_p_wxPaintEvent swig_types[19]
229 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
230 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
231 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
232 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
233 #define SWIGTYPE_p_wxControl swig_types[24]
234 #define SWIGTYPE_p_wxFont swig_types[25]
235 #define SWIGTYPE_p_wxMenuBarBase swig_types[26]
236 #define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
237 #define SWIGTYPE_p_wxFSFile swig_types[28]
238 #define SWIGTYPE_p_wxCaret swig_types[29]
239 #define SWIGTYPE_p_wxRegion swig_types[30]
240 #define SWIGTYPE_p_wxPoint2D swig_types[31]
241 #define SWIGTYPE_p_int swig_types[32]
242 #define SWIGTYPE_p_wxSize swig_types[33]
243 #define SWIGTYPE_p_wxDC swig_types[34]
244 #define SWIGTYPE_p_wxPySizer swig_types[35]
245 #define SWIGTYPE_p_wxVisualAttributes swig_types[36]
246 #define SWIGTYPE_p_wxNotifyEvent swig_types[37]
247 #define SWIGTYPE_p_wxPyEvent swig_types[38]
248 #define SWIGTYPE_p_wxPropagationDisabler swig_types[39]
249 #define SWIGTYPE_p_wxAppTraits swig_types[40]
250 #define SWIGTYPE_p_wxArrayString swig_types[41]
251 #define SWIGTYPE_p_wxShowEvent swig_types[42]
252 #define SWIGTYPE_p_wxToolTip swig_types[43]
253 #define SWIGTYPE_p_wxIconizeEvent swig_types[44]
254 #define SWIGTYPE_p_wxActivateEvent swig_types[45]
255 #define SWIGTYPE_p_wxMoveEvent swig_types[46]
256 #define SWIGTYPE_p_wxSizeEvent swig_types[47]
257 #define SWIGTYPE_p_wxMaximizeEvent swig_types[48]
258 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49]
259 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[50]
260 #define SWIGTYPE_p_wxIdleEvent swig_types[51]
261 #define SWIGTYPE_p_wxMenuItem swig_types[52]
262 #define SWIGTYPE_p_wxStaticBox swig_types[53]
263 #define SWIGTYPE_p_long swig_types[54]
264 #define SWIGTYPE_p_wxTIFFHandler swig_types[55]
265 #define SWIGTYPE_p_wxXPMHandler swig_types[56]
266 #define SWIGTYPE_p_wxPNMHandler swig_types[57]
267 #define SWIGTYPE_p_wxJPEGHandler swig_types[58]
268 #define SWIGTYPE_p_wxPCXHandler swig_types[59]
269 #define SWIGTYPE_p_wxGIFHandler swig_types[60]
270 #define SWIGTYPE_p_wxPNGHandler swig_types[61]
271 #define SWIGTYPE_p_wxANIHandler swig_types[62]
272 #define SWIGTYPE_p_wxMemoryFSHandler swig_types[63]
273 #define SWIGTYPE_p_wxEvtHandler swig_types[64]
274 #define SWIGTYPE_p_wxCURHandler swig_types[65]
275 #define SWIGTYPE_p_wxICOHandler swig_types[66]
276 #define SWIGTYPE_p_wxBMPHandler swig_types[67]
277 #define SWIGTYPE_p_wxImageHandler swig_types[68]
278 #define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
279 #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
280 #define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
281 #define SWIGTYPE_p_wxZipFSHandler swig_types[72]
282 #define SWIGTYPE_p_wxRect swig_types[73]
283 #define SWIGTYPE_p_wxGBSpan swig_types[74]
284 #define SWIGTYPE_p_wxPropagateOnce swig_types[75]
285 #define SWIGTYPE_p_wxAcceleratorTable swig_types[76]
286 #define SWIGTYPE_p_char swig_types[77]
287 #define SWIGTYPE_p_wxGBPosition swig_types[78]
288 #define SWIGTYPE_p_wxImage swig_types[79]
289 #define SWIGTYPE_p_wxFrame swig_types[80]
290 #define SWIGTYPE_p_wxScrollWinEvent swig_types[81]
291 #define SWIGTYPE_p_wxImageHistogram swig_types[82]
292 #define SWIGTYPE_p_byte swig_types[83]
293 #define SWIGTYPE_p_wxPoint swig_types[84]
294 #define SWIGTYPE_p_wxCursor swig_types[85]
295 #define SWIGTYPE_p_wxObject swig_types[86]
296 #define SWIGTYPE_p_wxPyInputStream swig_types[87]
297 #define SWIGTYPE_p_wxOutputStream swig_types[88]
298 #define SWIGTYPE_p_wxInputStream swig_types[89]
299 #define SWIGTYPE_p_wxDateTime swig_types[90]
300 #define SWIGTYPE_p_wxKeyEvent swig_types[91]
301 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
302 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93]
303 #define SWIGTYPE_p_wxWindow swig_types[94]
304 #define SWIGTYPE_p_wxMenuBar swig_types[95]
305 #define SWIGTYPE_p_wxFileSystem swig_types[96]
306 #define SWIGTYPE_p_wxBitmap swig_types[97]
307 #define SWIGTYPE_p_wxMenuEvent swig_types[98]
308 #define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
309 #define SWIGTYPE_p_unsigned_char swig_types[100]
310 #define SWIGTYPE_p_wxCloseEvent swig_types[101]
311 #define SWIGTYPE_p_wxEraseEvent swig_types[102]
312 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
313 #define SWIGTYPE_p_wxPyApp swig_types[104]
314 #define SWIGTYPE_p_wxCommandEvent swig_types[105]
315 #define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
316 #define SWIGTYPE_p_wxPyDropTarget swig_types[107]
317 #define SWIGTYPE_p_wxQuantize swig_types[108]
318 #define SWIGTYPE_p_wxChildFocusEvent swig_types[109]
319 #define SWIGTYPE_p_wxFocusEvent swig_types[110]
320 #define SWIGTYPE_p_wxDropFilesEvent swig_types[111]
321 #define SWIGTYPE_p_wxControlWithItems swig_types[112]
322 #define SWIGTYPE_p_wxColour swig_types[113]
323 #define SWIGTYPE_p_wxValidator swig_types[114]
324 #define SWIGTYPE_p_wxPyValidator swig_types[115]
325 static swig_type_info *swig_types[117];
326
327 /* -------- TYPES TABLE (END) -------- */
328
329
330 /*-----------------------------------------------
331 @(target):= _core_.so
332 ------------------------------------------------*/
333 #define SWIG_init init_core_
334
335 #define SWIG_name "_core_"
336
337 /* Auxiliar swig macros */
338
339 #ifdef __cplusplus
340 #define SWIGSTATICINLINE(a) static inline a
341 #define SWIGSTATIC(a) static a
342 #define swig_new_array(type, size) (new type[(size)])
343 #define swig_delete_array(cptr) delete[] cptr
344 #define swig_const_cast(type,a) const_cast<type>(a)
345 #define swig_static_cast(type,a) static_cast<type>(a)
346 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
347
348 #ifdef HAVE_NUMERIC_CAST
349 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
350 #else
351 #define swig_numeric_cast(type,a) static_cast<type>(a)
352 #endif
353
354 #else /* C case */
355
356 #define SWIGSTATICINLINE(a) static a
357 #define SWIGSTATIC(a) static a
358 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
359 #define swig_delete_array(cptr) free((char*)cptr)
360 #define swig_const_cast(type,a) (type)(a)
361 #define swig_static_cast(type,a) (type)(a)
362 #define swig_reinterpret_cast(type,a) (type)(a)
363 #define swig_numeric_cast(type,a) (type)(a)
364
365 #endif /* __cplusplus */
366
367
368 #define SWIG_FromSignedChar PyInt_FromLong
369 #define SWIG_FromUnsignedChar PyInt_FromLong
370 #define SWIG_FromShort PyInt_FromLong
371 #define SWIG_FromUnsignedShort PyInt_FromLong
372 #define SWIG_FromInt PyInt_FromLong
373 #define SWIG_FromLong PyInt_FromLong
374 #define SWIG_FromFloat PyFloat_FromDouble
375 #define SWIG_FromDouble PyFloat_FromDouble
376 #define SWIG_FromFloat PyFloat_FromDouble
377 #define SWIG_FromDouble PyFloat_FromDouble
378
379
380 #include "wx/wxPython/wxPython_int.h"
381 #include "wx/wxPython/pyclasses.h"
382
383
384 #ifndef wxPyUSE_EXPORT
385 // Helper functions for dealing with SWIG objects and such. These are
386 // located here so they know about the SWIG types and functions declared
387 // in the wrapper code.
388
389 #include <wx/hashmap.h>
390 WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
391
392
393 // Maintains a hashmap of className to swig_type_info pointers. Given the
394 // name of a class either looks up the type info in the cache, or scans the
395 // SWIG tables for it.
396 extern PyObject* wxPyPtrTypeMap;
397 static
398 swig_type_info* wxPyFindSwigType(const wxChar* className) {
399
400 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
401
402 if (typeInfoCache == NULL)
403 typeInfoCache = new wxPyTypeInfoHashMap;
404
405 wxString name(className);
406 swig_type_info* swigType = (*typeInfoCache)[name];
407
408 if (! swigType) {
409 // it wasn't in the cache, so look it up from SWIG
410 name.Append(wxT(" *"));
411 swigType = SWIG_Python_TypeQuery(name.mb_str());
412
413 // if it still wasn't found, try looking for a mapped name
414 if (!swigType) {
415 PyObject* item;
416 name = className;
417
418 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
419 (char*)(const char*)name.mbc_str())) != NULL) {
420 name = wxString(PyString_AsString(item), *wxConvCurrent);
421 name.Append(wxT(" *"));
422 swigType = SWIG_Python_TypeQuery(name.mb_str());
423 }
424 }
425 if (swigType) {
426 // and add it to the map if found
427 (*typeInfoCache)[className] = swigType;
428 }
429 }
430 return swigType;
431 }
432
433
434 // Check if a class name is a type known to SWIG
435 bool wxPyCheckSwigType(const wxChar* className) {
436
437 swig_type_info* swigType = wxPyFindSwigType(className);
438 return swigType != NULL;
439 }
440
441
442 // Given a pointer to a C++ object and a class name, construct a Python proxy
443 // object for it.
444 PyObject* wxPyConstructObject(void* ptr,
445 const wxChar* className,
446 int setThisOwn) {
447
448 swig_type_info* swigType = wxPyFindSwigType(className);
449 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
450
451 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
452 }
453
454
455 // Extract a pointer to the wrapped C++ object from a Python proxy object.
456 // Ensures that the proxy object is of the specified (or derived) type. If
457 // not able to perform the conversion then a Python exception is set and the
458 // error should be handled properly in the caller. Returns True on success.
459 bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
460 const wxChar* className) {
461
462 swig_type_info* swigType = wxPyFindSwigType(className);
463 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
464
465 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
466 }
467
468
469 // Make a SWIGified pointer object suitable for a .this attribute
470 PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
471
472 PyObject* robj = NULL;
473
474 swig_type_info* swigType = wxPyFindSwigType(className);
475 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
476
477 #ifdef SWIG_COBJECT_TYPES
478 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
479 #else
480 {
481 char result[1024];
482 char *r = result;
483 *(r++) = '_';
484 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
485 strcpy(r, swigType->name);
486 robj = PyString_FromString(result);
487 }
488 #endif
489
490 return robj;
491 }
492
493
494
495
496 // Export a C API in a struct. Other modules will be able to load this from
497 // the wx._core_ module and will then have safe access to these functions,
498 // even if they are located in another shared library.
499 static wxPyCoreAPI API = {
500
501 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
502 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
503 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
504 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
505 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
506 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
507 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
508 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
509 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
510 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
511 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
512 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
513 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
514 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
515 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
516 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
517 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
518
519 wxPyCheckSwigType,
520 wxPyConstructObject,
521 wxPyConvertSwigPtr,
522 wxPyMakeSwigPtr,
523
524 wxPyBeginAllowThreads,
525 wxPyEndAllowThreads,
526 wxPyBeginBlockThreads,
527 wxPyEndBlockThreads,
528
529 wxPy_ConvertList,
530
531 wxString_in_helper,
532 Py2wxString,
533 wx2PyString,
534
535 byte_LIST_helper,
536 int_LIST_helper,
537 long_LIST_helper,
538 string_LIST_helper,
539 wxPoint_LIST_helper,
540 wxBitmap_LIST_helper,
541 wxString_LIST_helper,
542 wxAcceleratorEntry_LIST_helper,
543
544 wxSize_helper,
545 wxPoint_helper,
546 wxRealPoint_helper,
547 wxRect_helper,
548 wxColour_helper,
549 wxPoint2D_helper,
550
551 wxPySimple_typecheck,
552 wxColour_typecheck,
553
554 wxPyCBH_setCallbackInfo,
555 wxPyCBH_findCallback,
556 wxPyCBH_callCallback,
557 wxPyCBH_callCallbackObj,
558 wxPyCBH_delete,
559
560 wxPyMake_wxObject,
561 wxPyMake_wxSizer,
562 wxPyPtrTypeMap_Add,
563 wxPy2int_seq_helper,
564 wxPy4int_seq_helper,
565 wxArrayString2PyList_helper,
566 wxArrayInt2PyList_helper,
567
568 wxPyClientData_dtor,
569 wxPyUserData_dtor,
570 wxPyOORClientData_dtor,
571
572 wxPyCBInputStream_create,
573
574 wxPyInstance_Check,
575 wxPySwigInstance_Check,
576
577 wxPyCheckForApp
578
579 };
580
581 #endif
582
583
584 #if ! wxUSE_HOTKEY
585 enum wxHotkeyModifier
586 {
587 wxMOD_NONE = 0,
588 wxMOD_ALT = 1,
589 wxMOD_CONTROL = 2,
590 wxMOD_SHIFT = 4,
591 wxMOD_WIN = 8
592 };
593 #define wxEVT_HOTKEY 9999
594 #endif
595
596 static const wxString wxPyEmptyString(wxEmptyString);
597 wxString wxObject_GetClassName(wxObject *self){
598 return self->GetClassInfo()->GetClassName();
599 }
600 void wxObject_Destroy(wxObject *self){
601 delete self;
602 }
603
604 #ifndef __WXMAC__
605 #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
606 #endif
607
608
609 #include <limits.h>
610
611
612 SWIGSTATICINLINE(long)
613 SWIG_CheckLongInRange(long value, const char* type,
614 long min_value, long max_value)
615 {
616 if (!PyErr_Occurred()) {
617 if (value < min_value) {
618 PyObject *err =
619 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
620 value, type, min_value);
621
622 PyErr_SetObject(PyExc_OverflowError, err);
623 Py_DECREF(err);
624 } else if (value > max_value) {
625 PyObject *err =
626 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
627 value, type, max_value);
628 PyErr_SetObject(PyExc_OverflowError, err);
629 Py_DECREF(err);
630 }
631 }
632 return value;
633 }
634
635
636 SWIGSTATICINLINE(long)
637 SWIG_AsLong(PyObject * obj)
638 {
639 if (PyNumber_Check(obj))
640 return PyInt_AsLong(obj);
641 else {
642 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
643 obj->ob_type->tp_name);
644 PyErr_SetObject(PyExc_TypeError, errmsg);
645 Py_DECREF(errmsg);
646 return 0;
647 }
648 }
649
650
651 #if INT_MAX != LONG_MAX
652 SWIGSTATICINLINE(int)
653 SWIG_AsInt(PyObject *obj)
654 {
655 return swig_numeric_cast(int,
656 SWIG_CheckLongInRange(SWIG_AsLong(obj),
657 "int", INT_MIN, INT_MAX));
658 }
659 #else
660 #define SWIG_AsInt SWIG_AsLong
661 #endif
662
663
664 SWIGSTATICINLINE(int)
665 SWIG_CheckInt(PyObject* obj)
666 {
667 SWIG_AsInt(obj);
668 if (PyErr_Occurred()) {
669 PyErr_Clear();
670 return 0;
671 } else {
672 return 1;
673 }
674 }
675
676 PyObject *wxSize_Get(wxSize *self){
677 bool blocked = wxPyBeginBlockThreads();
678 PyObject* tup = PyTuple_New(2);
679 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
680 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
681 wxPyEndBlockThreads(blocked);
682 return tup;
683 }
684
685 SWIGSTATICINLINE(double)
686 SWIG_AsDouble(PyObject *obj)
687 {
688 if (PyNumber_Check(obj))
689 return PyFloat_AsDouble(obj);
690 else {
691 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
692 obj->ob_type->tp_name);
693 PyErr_SetObject(PyExc_TypeError, errmsg);
694 Py_DECREF(errmsg);
695 return 0;
696 }
697 }
698
699
700 SWIGSTATICINLINE(int)
701 SWIG_CheckDouble(PyObject* obj)
702 {
703 SWIG_AsDouble(obj);
704 if (PyErr_Occurred()) {
705 PyErr_Clear();
706 return 0;
707 } else {
708 return 1;
709 }
710 }
711
712 void wxRealPoint_Set(wxRealPoint *self,double x,double y){
713 self->x = x;
714 self->y = y;
715 }
716 PyObject *wxRealPoint_Get(wxRealPoint *self){
717 bool blocked = wxPyBeginBlockThreads();
718 PyObject* tup = PyTuple_New(2);
719 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
720 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
721 wxPyEndBlockThreads(blocked);
722 return tup;
723 }
724
725 SWIGSTATICINLINE(int)
726 SWIG_CheckLong(PyObject* obj)
727 {
728 SWIG_AsLong(obj);
729 if (PyErr_Occurred()) {
730 PyErr_Clear();
731 return 0;
732 } else {
733 return 1;
734 }
735 }
736
737 void wxPoint_Set(wxPoint *self,long x,long y){
738 self->x = x;
739 self->y = y;
740 }
741 PyObject *wxPoint_Get(wxPoint *self){
742 bool blocked = wxPyBeginBlockThreads();
743 PyObject* tup = PyTuple_New(2);
744 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
745 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
746 wxPyEndBlockThreads(blocked);
747 return tup;
748 }
749 void wxRect_Set(wxRect *self,int x,int y,int width,int height){
750 self->x = x;
751 self->y = y;
752 self->width = width;
753 self->height = height;
754 }
755 PyObject *wxRect_Get(wxRect *self){
756 bool blocked = wxPyBeginBlockThreads();
757 PyObject* tup = PyTuple_New(4);
758 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
759 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
760 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
761 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
762 wxPyEndBlockThreads(blocked);
763 return tup;
764 }
765
766 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
767 wxRegion reg1(*r1);
768 wxRegion reg2(*r2);
769 wxRect dest(0,0,0,0);
770 PyObject* obj;
771
772 reg1.Intersect(reg2);
773 dest = reg1.GetBox();
774
775 if (dest != wxRect(0,0,0,0)) {
776 bool blocked = wxPyBeginBlockThreads();
777 wxRect* newRect = new wxRect(dest);
778 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
779 wxPyEndBlockThreads(blocked);
780 return obj;
781 }
782 Py_INCREF(Py_None);
783 return Py_None;
784 }
785
786
787 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
788 PyObject* o2;
789 PyObject* o3;
790
791 if (!target) {
792 target = o;
793 } else if (target == Py_None) {
794 Py_DECREF(Py_None);
795 target = o;
796 } else {
797 if (!PyTuple_Check(target)) {
798 o2 = target;
799 target = PyTuple_New(1);
800 PyTuple_SetItem(target, 0, o2);
801 }
802 o3 = PyTuple_New(1);
803 PyTuple_SetItem(o3, 0, o);
804
805 o2 = target;
806 target = PySequence_Concat(o2, o3);
807 Py_DECREF(o2);
808 Py_DECREF(o3);
809 }
810 return target;
811 }
812
813 void wxPoint2D_Set(wxPoint2D *self,double x,double y){
814 self->m_x = x;
815 self->m_y = y;
816 }
817 PyObject *wxPoint2D_Get(wxPoint2D *self){
818 bool blocked = wxPyBeginBlockThreads();
819 PyObject* tup = PyTuple_New(2);
820 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
821 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
822 wxPyEndBlockThreads(blocked);
823 return tup;
824 }
825
826 #include "wx/wxPython/pyistream.h"
827
828 wxPyInputStream *new_wxPyInputStream(PyObject *p){
829 wxInputStream* wxis = wxPyCBInputStream::create(p);
830 if (wxis)
831 return new wxPyInputStream(wxis);
832 else
833 return NULL;
834 }
835
836 SWIGSTATICINLINE(PyObject*)
837 SWIG_FromChar(char c)
838 {
839 return PyString_FromStringAndSize(&c,1);
840 }
841
842
843 SWIGSTATICINLINE(PyObject* )
844 SWIG_FromUnsignedLong(unsigned long value)
845 {
846 return (value > LONG_MAX) ?
847 PyLong_FromUnsignedLong(value)
848 : PyInt_FromLong(swig_numeric_cast(long,value));
849 }
850
851
852 /* returns '1' if the input is a raw char*, '0' if is a PyString */
853 SWIGSTATIC(int)
854 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size)
855 {
856 static swig_type_info* pchar_info = 0;
857 int psize = 0;
858 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
859
860 if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) {
861 PyErr_Clear();
862 PyString_AsStringAndSize(obj, cptr, &psize);
863 if (PyErr_Occurred()) {
864 PyErr_Clear();
865 PyErr_SetString(PyExc_TypeError,"a string is expected");
866 }
867 if (size) *size = psize;
868 return 0;
869 } else {
870 if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0;
871 return 1;
872 }
873 }
874
875
876 SWIGSTATIC(void)
877 SWIG_AsCharArray(PyObject *obj, char* carray, size_t size)
878 {
879 char* cptr; size_t csize;
880 SWIG_AsCharPtrAndSize(obj, &cptr, &csize);
881 if (PyErr_Occurred()) {
882 PyErr_Clear();
883 PyObject *err =
884 PyString_FromFormat("a char array of size %d is expected", size);
885 PyErr_SetObject(PyExc_TypeError, err);
886 Py_DECREF(err);
887 } else {
888 /* in C (but not in C++) you can do:
889
890 char x[5] = "hello";
891
892 ie, assing the array using an extra '0' char.
893 */
894 #ifndef __cplusplus
895 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
896 #endif
897 if (csize > size) {
898 PyObject *err =
899 PyString_FromFormat("a char array of maximum size %d is expected",
900 size);
901 PyErr_SetObject(PyExc_TypeError, err);
902 Py_DECREF(err);
903 } else {
904 if (csize) memcpy(carray, cptr, csize);
905 if (csize < size) memset(carray + csize, 0, size - csize);
906 }
907 }
908 }
909
910
911 SWIGSTATICINLINE(char)
912 SWIG_AsChar(PyObject *obj)
913 {
914 char c = 0;
915 if (PyInt_Check(obj) || PyLong_Check(obj)) {
916 c = swig_numeric_cast(char,
917 SWIG_CheckLongInRange(SWIG_AsLong(obj),
918 "char", CHAR_MIN, CHAR_MAX));
919 } else {
920 SWIG_AsCharArray(obj, &c, 1);
921 if (PyErr_Occurred()) {
922 PyErr_Clear();
923 PyErr_SetString(PyExc_TypeError, "a char is expected");
924 }
925 }
926 return c;
927 }
928
929
930 SWIGSTATICINLINE(int)
931 SWIG_CheckChar(PyObject* obj)
932 {
933 SWIG_AsChar(obj);
934 if (PyErr_Occurred()) {
935 PyErr_Clear();
936 return 0;
937 } else {
938 return 1;
939 }
940 }
941
942 void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
943 // We use only strings for the streams, not unicode
944 PyObject* str = PyObject_Str(obj);
945 if (! str) {
946 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
947 return;
948 }
949 self->Write(PyString_AS_STRING(str),
950 PyString_GET_SIZE(str));
951 Py_DECREF(str);
952 }
953
954 #include "wx/wxPython/pyistream.h"
955
956
957 class wxPyFileSystemHandler : public wxFileSystemHandler
958 {
959 public:
960 wxPyFileSystemHandler() : wxFileSystemHandler() {}
961
962 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
963 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
964 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
965 DEC_PYCALLBACK_STRING__pure(FindNext);
966
967 wxString GetProtocol(const wxString& location) {
968 return wxFileSystemHandler::GetProtocol(location);
969 }
970
971 wxString GetLeftLocation(const wxString& location) {
972 return wxFileSystemHandler::GetLeftLocation(location);
973 }
974
975 wxString GetAnchor(const wxString& location) {
976 return wxFileSystemHandler::GetAnchor(location);
977 }
978
979 wxString GetRightLocation(const wxString& location) {
980 return wxFileSystemHandler::GetRightLocation(location);
981 }
982
983 wxString GetMimeTypeFromExt(const wxString& location) {
984 return wxFileSystemHandler::GetMimeTypeFromExt(location);
985 }
986
987 PYPRIVATE;
988 };
989
990
991 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
992 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
993 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
994 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
995
996
997 SWIGSTATICINLINE(bool)
998 SWIG_AsBool(PyObject *obj)
999 {
1000 return PyObject_IsTrue(obj) ? true : false;
1001 }
1002
1003
1004 SWIGSTATICINLINE(int)
1005 SWIG_CheckBool(PyObject* obj)
1006 {
1007 SWIG_AsBool(obj);
1008 if (PyErr_Occurred()) {
1009 PyErr_Clear();
1010 return 0;
1011 } else {
1012 return 1;
1013 }
1014 }
1015
1016
1017 wxString wxFileSystem_URLToFileName(const wxString& url) {
1018 wxFileName fname = wxFileSystem::URLToFileName(url);
1019 return fname.GetFullPath();
1020 }
1021
1022
1023 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1024 wxImage& image,
1025 long type) {
1026 wxMemoryFSHandler::AddFile(filename, image, type);
1027 }
1028
1029 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1030 const wxBitmap& bitmap,
1031 long type) {
1032 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1033 }
1034
1035 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1036 PyObject* data) {
1037 wxMemoryFSHandler::AddFile(filename,
1038 // TODO: Verify data type
1039 (void*)PyString_AsString(data),
1040 (size_t)PyString_Size(data));
1041 }
1042
1043
1044 #include "wx/wxPython/pyistream.h"
1045
1046
1047 SWIGSTATICINLINE(unsigned long)
1048 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
1049 unsigned long max_value)
1050 {
1051 if (!PyErr_Occurred()) {
1052 if (value > max_value) {
1053 PyObject *err =
1054 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
1055 value, type, max_value);
1056 PyErr_SetObject(PyExc_OverflowError, err);
1057 Py_DECREF(err);
1058 }
1059 }
1060 return value;
1061 }
1062
1063
1064 SWIGSTATICINLINE(unsigned long)
1065 SWIG_AsUnsignedLong(PyObject * obj)
1066 {
1067 if (PyLong_Check(obj)) {
1068 return PyLong_AsUnsignedLong(obj);
1069 } else {
1070 long i = SWIG_AsLong(obj);
1071 if ( !PyErr_Occurred() && (i < 0)) {
1072 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1073 }
1074 return i;
1075 }
1076 }
1077
1078
1079 SWIGSTATICINLINE(unsigned char)
1080 SWIG_AsUnsignedChar(PyObject *obj)
1081 {
1082 return swig_numeric_cast(unsigned char,
1083 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1084 "unsigned char", UCHAR_MAX));
1085 }
1086
1087
1088 SWIGSTATICINLINE(int)
1089 SWIG_CheckUnsignedChar(PyObject* obj)
1090 {
1091 SWIG_AsUnsignedChar(obj);
1092 if (PyErr_Occurred()) {
1093 PyErr_Clear();
1094 return 0;
1095 } else {
1096 return 1;
1097 }
1098 }
1099
1100 wxImage *new_wxImage(int width,int height,bool clear){
1101 if (width > 0 && height > 0)
1102 return new wxImage(width, height, clear);
1103 else
1104 return new wxImage;
1105 }
1106 wxImage *new_wxImage(wxBitmap const &bitmap){
1107 return new wxImage(bitmap.ConvertToImage());
1108 }
1109 wxImage *new_wxImage(int width,int height,unsigned char *data){
1110 // Copy the source data so the wxImage can clean it up later
1111 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1112 if (copy == NULL) {
1113 PyErr_NoMemory();
1114 return NULL;
1115 }
1116 memcpy(copy, data, width*height*3);
1117 return new wxImage(width, height, copy, False);
1118 }
1119 wxSize wxImage_GetSize(wxImage *self){
1120 wxSize size(self->GetWidth(), self->GetHeight());
1121 return size;
1122 }
1123 PyObject *wxImage_GetData(wxImage *self){
1124 unsigned char* data = self->GetData();
1125 int len = self->GetWidth() * self->GetHeight() * 3;
1126 PyObject* rv;
1127 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1128 return rv;
1129 }
1130 void wxImage_SetData(wxImage *self,PyObject *data){
1131 unsigned char* dataPtr;
1132
1133 if (! PyString_Check(data)) {
1134 PyErr_SetString(PyExc_TypeError, "Expected string object");
1135 return /* NULL */ ;
1136 }
1137
1138 size_t len = self->GetWidth() * self->GetHeight() * 3;
1139 dataPtr = (unsigned char*) malloc(len);
1140 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1141 self->SetData(dataPtr);
1142 // wxImage takes ownership of dataPtr...
1143 }
1144 PyObject *wxImage_GetDataBuffer(wxImage *self){
1145 unsigned char* data = self->GetData();
1146 int len = self->GetWidth() * self->GetHeight() * 3;
1147 PyObject* rv;
1148 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1149 return rv;
1150 }
1151 void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1152 unsigned char* buffer;
1153 int size;
1154
1155 bool blocked = wxPyBeginBlockThreads();
1156 if (!PyArg_Parse(data, "t#", &buffer, &size))
1157 goto done;
1158
1159 if (size != self->GetWidth() * self->GetHeight() * 3) {
1160 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1161 goto done;
1162 }
1163 self->SetData(buffer);
1164 done:
1165 wxPyEndBlockThreads(blocked);
1166 }
1167 PyObject *wxImage_GetAlphaData(wxImage *self){
1168 unsigned char* data = self->GetAlpha();
1169 if (! data) {
1170 RETURN_NONE();
1171 } else {
1172 int len = self->GetWidth() * self->GetHeight();
1173 PyObject* rv;
1174 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1175 return rv;
1176 }
1177 }
1178 void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1179 unsigned char* dataPtr;
1180
1181 if (! PyString_Check(data)) {
1182 PyErr_SetString(PyExc_TypeError, "Expected string object");
1183 return /* NULL */ ;
1184 }
1185
1186 size_t len = self->GetWidth() * self->GetHeight();
1187 dataPtr = (unsigned char*) malloc(len);
1188 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1189 self->SetAlpha(dataPtr);
1190 // wxImage takes ownership of dataPtr...
1191 }
1192 PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1193 unsigned char* data = self->GetAlpha();
1194 int len = self->GetWidth() * self->GetHeight();
1195 PyObject* rv;
1196 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1197 return rv;
1198 }
1199 void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1200 unsigned char* buffer;
1201 int size;
1202
1203 bool blocked = wxPyBeginBlockThreads();
1204 if (!PyArg_Parse(data, "t#", &buffer, &size))
1205 goto done;
1206
1207 if (size != self->GetWidth() * self->GetHeight()) {
1208 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1209 goto done;
1210 }
1211 self->SetAlpha(buffer);
1212 done:
1213 wxPyEndBlockThreads(blocked);
1214 }
1215
1216 SWIGSTATICINLINE(int)
1217 SWIG_CheckUnsignedLong(PyObject* obj)
1218 {
1219 SWIG_AsUnsignedLong(obj);
1220 if (PyErr_Occurred()) {
1221 PyErr_Clear();
1222 return 0;
1223 } else {
1224 return 1;
1225 }
1226 }
1227
1228 wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1229 wxBitmap bitmap(*self);
1230 return bitmap;
1231 }
1232 wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1233 wxImage mono = self->ConvertToMono( red, green, blue );
1234 wxBitmap bitmap( mono, 1 );
1235 return bitmap;
1236 }
1237 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1238 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1239 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1240 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1241 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1242
1243 #include <wx/quantize.h>
1244
1245 bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){
1246 return wxQuantize::Quantize(src, dest,
1247 //NULL, // palette
1248 desiredNoColours,
1249 NULL, // eightBitData
1250 flags);
1251 }
1252 void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1253 if (PyCallable_Check(func)) {
1254 self->Connect(id, lastId, eventType,
1255 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1256 new wxPyCallback(func));
1257 }
1258 else if (func == Py_None) {
1259 self->Disconnect(id, lastId, eventType,
1260 (wxObjectEventFunction)
1261 &wxPyCallback::EventThunker);
1262 }
1263 else {
1264 wxPyBLOCK_THREADS(
1265 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1266 }
1267 }
1268 bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1269 return self->Disconnect(id, lastId, eventType,
1270 (wxObjectEventFunction)
1271 &wxPyCallback::EventThunker);
1272 }
1273 void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1274 if (_self && _self != Py_None) {
1275 self->SetClientObject(new wxPyOORClientData(_self));
1276 }
1277 else {
1278 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1279 if (data) {
1280 self->SetClientObject(NULL); // This will delete it too
1281 }
1282 }
1283 }
1284 int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
1285 #if wxUSE_UNICODE
1286 return self->GetUnicodeKey();
1287 #else
1288 return 0;
1289 #endif
1290 }
1291
1292 #if UINT_MAX < LONG_MAX
1293 #define SWIG_FromUnsignedInt SWIG_FromLong
1294 #else
1295 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1296 #endif
1297
1298
1299 #if UINT_MAX != ULONG_MAX
1300 SWIGSTATICINLINE(unsigned int)
1301 SWIG_AsUnsignedInt(PyObject *obj)
1302 {
1303 return swig_numeric_cast(unsigned int,
1304 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1305 "unsigned int", UINT_MAX));
1306 }
1307 #else
1308 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
1309 #endif
1310
1311
1312 SWIGSTATICINLINE(int)
1313 SWIG_CheckUnsignedInt(PyObject* obj)
1314 {
1315 SWIG_AsUnsignedInt(obj);
1316 if (PyErr_Occurred()) {
1317 PyErr_Clear();
1318 return 0;
1319 } else {
1320 return 1;
1321 }
1322 }
1323
1324 void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1325 self->m_size = size;
1326 }
1327 void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1328 self->m_pos = pos;
1329 }
1330 PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1331 int count = self->GetNumberOfFiles();
1332 wxString* files = self->GetFiles();
1333 PyObject* list = PyList_New(count);
1334
1335 if (!list) {
1336 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1337 return NULL;
1338 }
1339
1340 for (int i=0; i<count; i++) {
1341 PyList_SetItem(list, i, wx2PyString(files[i]));
1342 }
1343 return list;
1344 }
1345
1346
1347 wxPyApp *new_wxPyApp(){
1348 wxPythonApp = new wxPyApp();
1349 return wxPythonApp;
1350 }
1351 int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
1352
1353 void wxApp_CleanUp() {
1354 __wxPyCleanup();
1355 }
1356
1357
1358 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
1359
1360
1361
1362 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1363 wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
1364 void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
1365 PyObject *wxWindow_GetChildren(wxWindow *self){
1366 wxWindowList& list = self->GetChildren();
1367 return wxPy_ConvertList(&list);
1368 }
1369 bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1370 #if wxUSE_HOTKEY
1371 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
1372 #else
1373 return False;
1374 #endif
1375 }
1376 bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1377
1378
1379
1380 return False;
1381
1382 }
1383 long wxWindow_GetHandle(wxWindow *self){
1384 return wxPyGetWinHandle(self);
1385 }
1386
1387 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1388 return wxWindow::FindWindowById(id, parent);
1389 }
1390
1391 wxWindow* wxFindWindowByName( const wxString& name,
1392 const wxWindow *parent = NULL ) {
1393 return wxWindow::FindWindowByName(name, parent);
1394 }
1395
1396 wxWindow* wxFindWindowByLabel( const wxString& label,
1397 const wxWindow *parent = NULL ) {
1398 return wxWindow::FindWindowByLabel(label, parent);
1399 }
1400
1401
1402 #ifdef __WXMSW__
1403 #include <wx/msw/private.h> // to get wxGetWindowId
1404 #endif
1405
1406
1407 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
1408 #ifdef __WXMSW__
1409 WXHWND hWnd = (WXHWND)_hWnd;
1410 long id = wxGetWindowId(hWnd);
1411 wxWindow* win = new wxWindow;
1412 parent->AddChild(win);
1413 win->SetEventHandler(win);
1414 win->SetHWND(hWnd);
1415 win->SetId(id);
1416 win->SubclassWin(hWnd);
1417 win->AdoptAttributesFromHWND();
1418 win->SetupColours();
1419 return win;
1420 #else
1421 wxPyRaiseNotImplemented();
1422 return NULL;
1423 #endif
1424 }
1425
1426
1427 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1428 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1429 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1430
1431 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1432
1433 void wxMenu_Destroy(wxMenu *self){ delete self; }
1434 PyObject *wxMenu_GetMenuItems(wxMenu *self){
1435 wxMenuItemList& list = self->GetMenuItems();
1436 return wxPy_ConvertList(&list);
1437 }
1438 int MenuItem_GetDefaultMarginWidth(){ return 0; }
1439 static const wxString wxPyControlNameStr(wxControlNameStr);
1440 int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1441 if (clientData) {
1442 wxPyClientData* data = new wxPyClientData(clientData);
1443 return self->Append(item, data);
1444 } else
1445 return self->Append(item);
1446 }
1447 int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1448 if (clientData) {
1449 wxPyClientData* data = new wxPyClientData(clientData);
1450 return self->Insert(item, pos, data);
1451 } else
1452 return self->Insert(item, pos);
1453 }
1454 PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1455 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1456 if (data) {
1457 Py_INCREF(data->m_obj);
1458 return data->m_obj;
1459 } else {
1460 Py_INCREF(Py_None);
1461 return Py_None;
1462 }
1463 }
1464 void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1465 wxPyClientData* data = new wxPyClientData(clientData);
1466 self->SetClientObject(n, data);
1467 }
1468
1469
1470 wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){
1471 wxPyUserData* data = NULL;
1472 if ( userData ) {
1473 bool blocked = wxPyBeginBlockThreads();
1474 data = new wxPyUserData(userData);
1475 wxPyEndBlockThreads(blocked);
1476 }
1477 return new wxSizerItem(window, proportion, flag, border, data);
1478 }
1479 wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){
1480 wxPyUserData* data = NULL;
1481 if ( userData ) {
1482 bool blocked = wxPyBeginBlockThreads();
1483 data = new wxPyUserData(userData);
1484 wxPyEndBlockThreads(blocked);
1485 }
1486 return new wxSizerItem(width, height, proportion, flag, border, data);
1487 }
1488 wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){
1489 wxPyUserData* data = NULL;
1490 if ( userData ) {
1491 bool blocked = wxPyBeginBlockThreads();
1492 data = new wxPyUserData(userData);
1493 wxPyEndBlockThreads(blocked);
1494 }
1495 return new wxSizerItem(sizer, proportion, flag, border, data);
1496 }
1497
1498 #include <float.h>
1499
1500 SWIGSTATIC(float)
1501 SWIG_FloatCast(double value)
1502 {
1503 float f = 0;
1504 if (!PyErr_Occurred()) {
1505 if (value < FLT_MIN) {
1506 PyObject *err =
1507 PyString_FromFormat("value %g is less than float minimum %g",
1508 value, FLT_MIN);
1509 PyErr_SetObject(PyExc_OverflowError, err);
1510 Py_DECREF(err);
1511 } else if (value > FLT_MAX) {
1512 PyObject *err =
1513 PyString_FromFormat("value %g is greater than float maximum %g",
1514 value, FLT_MAX);
1515 PyErr_SetObject(PyExc_OverflowError, err);
1516 Py_DECREF(err);
1517 } else {
1518 f = swig_numeric_cast(float, value);
1519 }
1520 }
1521 return f;
1522 }
1523
1524
1525 SWIGSTATICINLINE(float)
1526 SWIG_AsFloat(PyObject *obj)
1527 {
1528 return SWIG_FloatCast(SWIG_AsDouble(obj));
1529 }
1530
1531
1532 SWIGSTATICINLINE(int)
1533 SWIG_CheckFloat(PyObject* obj)
1534 {
1535 SWIG_AsFloat(obj);
1536 if (PyErr_Occurred()) {
1537 PyErr_Clear();
1538 return 0;
1539 } else {
1540 return 1;
1541 }
1542 }
1543
1544 PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1545 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1546 if (data) {
1547 Py_INCREF(data->m_obj);
1548 return data->m_obj;
1549 } else {
1550 Py_INCREF(Py_None);
1551 return Py_None;
1552 }
1553 }
1554
1555 // Figure out the type of the sizer item
1556
1557 struct wxPySizerItemInfo {
1558 wxPySizerItemInfo()
1559 : window(NULL), sizer(NULL), gotSize(False),
1560 size(wxDefaultSize), gotPos(False), pos(-1)
1561 {}
1562
1563 wxWindow* window;
1564 wxSizer* sizer;
1565 bool gotSize;
1566 wxSize size;
1567 bool gotPos;
1568 int pos;
1569 };
1570
1571 static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1572
1573 wxPySizerItemInfo info;
1574 wxSize size;
1575 wxSize* sizePtr = &size;
1576
1577 // Find out what the type of the item is
1578 // try wxWindow
1579 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1580 PyErr_Clear();
1581 info.window = NULL;
1582
1583 // try wxSizer
1584 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1585 PyErr_Clear();
1586 info.sizer = NULL;
1587
1588 // try wxSize or (w,h)
1589 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1590 info.size = *sizePtr;
1591 info.gotSize = True;
1592 }
1593
1594 // or a single int
1595 if (checkIdx && PyInt_Check(item)) {
1596 info.pos = PyInt_AsLong(item);
1597 info.gotPos = True;
1598 }
1599 }
1600 }
1601
1602 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1603 // no expected type, figure out what kind of error message to generate
1604 if ( !checkSize && !checkIdx )
1605 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1606 else if ( checkSize && !checkIdx )
1607 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1608 else if ( !checkSize && checkIdx)
1609 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1610 else
1611 // can this one happen?
1612 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1613 }
1614
1615 return info;
1616 }
1617
1618 void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1619 if (!self->GetClientObject())
1620 self->SetClientObject(new wxPyOORClientData(_self));
1621 }
1622 void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1623
1624 wxPyUserData* data = NULL;
1625 bool blocked = wxPyBeginBlockThreads();
1626 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1627 if ( userData && (info.window || info.sizer || info.gotSize) )
1628 data = new wxPyUserData(userData);
1629 wxPyEndBlockThreads(blocked);
1630
1631 // Now call the real Add method if a valid item type was found
1632 if ( info.window )
1633 self->Add(info.window, proportion, flag, border, data);
1634 else if ( info.sizer )
1635 self->Add(info.sizer, proportion, flag, border, data);
1636 else if (info.gotSize)
1637 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1638 proportion, flag, border, data);
1639 }
1640 void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1641
1642 wxPyUserData* data = NULL;
1643 bool blocked = wxPyBeginBlockThreads();
1644 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1645 if ( userData && (info.window || info.sizer || info.gotSize) )
1646 data = new wxPyUserData(userData);
1647 wxPyEndBlockThreads(blocked);
1648
1649 // Now call the real Insert method if a valid item type was found
1650 if ( info.window )
1651 self->Insert(before, info.window, proportion, flag, border, data);
1652 else if ( info.sizer )
1653 self->Insert(before, info.sizer, proportion, flag, border, data);
1654 else if (info.gotSize)
1655 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1656 proportion, flag, border, data);
1657 }
1658 void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1659
1660 wxPyUserData* data = NULL;
1661 bool blocked = wxPyBeginBlockThreads();
1662 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1663 if ( userData && (info.window || info.sizer || info.gotSize) )
1664 data = new wxPyUserData(userData);
1665 wxPyEndBlockThreads(blocked);
1666
1667 // Now call the real Prepend method if a valid item type was found
1668 if ( info.window )
1669 self->Prepend(info.window, proportion, flag, border, data);
1670 else if ( info.sizer )
1671 self->Prepend(info.sizer, proportion, flag, border, data);
1672 else if (info.gotSize)
1673 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1674 proportion, flag, border, data);
1675 }
1676 bool wxSizer_Remove(wxSizer *self,PyObject *item){
1677 bool blocked = wxPyBeginBlockThreads();
1678 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1679 wxPyEndBlockThreads(blocked);
1680 if ( info.window )
1681 return self->Remove(info.window);
1682 else if ( info.sizer )
1683 return self->Remove(info.sizer);
1684 else if ( info.gotPos )
1685 return self->Remove(info.pos);
1686 else
1687 return False;
1688 }
1689 bool wxSizer_Detach(wxSizer *self,PyObject *item){
1690 bool blocked = wxPyBeginBlockThreads();
1691 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1692 wxPyEndBlockThreads(blocked);
1693 if ( info.window )
1694 return self->Detach(info.window);
1695 else if ( info.sizer )
1696 return self->Detach(info.sizer);
1697 else if ( info.gotPos )
1698 return self->Detach(info.pos);
1699 else
1700 return False;
1701 }
1702 void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1703 bool blocked = wxPyBeginBlockThreads();
1704 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1705 wxPyEndBlockThreads(blocked);
1706 if ( info.window )
1707 self->SetItemMinSize(info.window, size);
1708 else if ( info.sizer )
1709 self->SetItemMinSize(info.sizer, size);
1710 else if ( info.gotPos )
1711 self->SetItemMinSize(info.pos, size);
1712 }
1713 PyObject *wxSizer_GetChildren(wxSizer *self){
1714 wxSizerItemList& list = self->GetChildren();
1715 return wxPy_ConvertList(&list);
1716 }
1717 void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
1718 bool blocked = wxPyBeginBlockThreads();
1719 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1720 wxPyEndBlockThreads(blocked);
1721 if ( info.window )
1722 self->Show(info.window, show);
1723 else if ( info.sizer )
1724 self->Show(info.sizer, show);
1725 else if ( info.gotPos )
1726 self->Show(info.pos, show);
1727 }
1728 bool wxSizer_IsShown(wxSizer *self,PyObject *item){
1729 bool blocked = wxPyBeginBlockThreads();
1730 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1731 wxPyEndBlockThreads(blocked);
1732 if ( info.window )
1733 return self->IsShown(info.window);
1734 else if ( info.sizer )
1735 return self->IsShown(info.sizer);
1736 else if ( info.gotPos )
1737 return self->IsShown(info.pos);
1738 else
1739 return False;
1740 }
1741
1742 // See pyclasses.h
1743 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1744 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1745 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1746
1747
1748
1749
1750 bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1751 {
1752 if (source == Py_None) {
1753 **obj = wxGBPosition(-1,-1);
1754 return True;
1755 }
1756 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1757 }
1758
1759 bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1760 {
1761 if (source == Py_None) {
1762 **obj = wxGBSpan(-1,-1);
1763 return True;
1764 }
1765 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1766 }
1767
1768
1769 void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1770 self->SetRow(row);
1771 self->SetCol(col);
1772 }
1773 PyObject *wxGBPosition_Get(wxGBPosition *self){
1774 bool blocked = wxPyBeginBlockThreads();
1775 PyObject* tup = PyTuple_New(2);
1776 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1777 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1778 wxPyEndBlockThreads(blocked);
1779 return tup;
1780 }
1781 void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1782 self->SetRowspan(rowspan);
1783 self->SetColspan(colspan);
1784 }
1785 PyObject *wxGBSpan_Get(wxGBSpan *self){
1786 bool blocked = wxPyBeginBlockThreads();
1787 PyObject* tup = PyTuple_New(2);
1788 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1789 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1790 wxPyEndBlockThreads(blocked);
1791 return tup;
1792 }
1793 wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1794 wxPyUserData* data = NULL;
1795 if ( userData ) {
1796 bool blocked = wxPyBeginBlockThreads();
1797 data = new wxPyUserData(userData);
1798 wxPyEndBlockThreads(blocked);
1799 }
1800 return new wxGBSizerItem(window, pos, span, flag, border, data);
1801 }
1802 wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1803 wxPyUserData* data = NULL;
1804 if ( userData ) {
1805 bool blocked = wxPyBeginBlockThreads();
1806 data = new wxPyUserData(userData);
1807 wxPyEndBlockThreads(blocked);
1808 }
1809 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
1810 }
1811 wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1812 wxPyUserData* data = NULL;
1813 if ( userData ) {
1814 bool blocked = wxPyBeginBlockThreads();
1815 data = new wxPyUserData(userData);
1816 wxPyEndBlockThreads(blocked);
1817 }
1818 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
1819 }
1820 wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
1821 int row, col;
1822 self->GetEndPos(row, col);
1823 return wxGBPosition(row, col);
1824 }
1825 bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1826
1827 wxPyUserData* data = NULL;
1828 bool blocked = wxPyBeginBlockThreads();
1829 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1830 if ( userData && (info.window || info.sizer || info.gotSize) )
1831 data = new wxPyUserData(userData);
1832 wxPyEndBlockThreads(blocked);
1833
1834 // Now call the real Add method if a valid item type was found
1835 if ( info.window )
1836 return self->Add(info.window, pos, span, flag, border, data);
1837 else if ( info.sizer )
1838 return self->Add(info.sizer, pos, span, flag, border, data);
1839 else if (info.gotSize)
1840 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1841 pos, span, flag, border, data);
1842 return False;
1843 }
1844
1845
1846 #ifdef __cplusplus
1847 extern "C" {
1848 #endif
1849 static int _wrap_EmptyString_set(PyObject *_val) {
1850 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1851 return 1;
1852 }
1853
1854
1855 static PyObject *_wrap_EmptyString_get() {
1856 PyObject *pyobj;
1857
1858 {
1859 #if wxUSE_UNICODE
1860 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1861 #else
1862 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1863 #endif
1864 }
1865 return pyobj;
1866 }
1867
1868
1869 static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1870 PyObject *resultobj;
1871 wxObject *arg1 = (wxObject *) 0 ;
1872 wxString result;
1873 PyObject * obj0 = 0 ;
1874 char *kwnames[] = {
1875 (char *) "self", NULL
1876 };
1877
1878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1881 {
1882 PyThreadState* __tstate = wxPyBeginAllowThreads();
1883 result = wxObject_GetClassName(arg1);
1884
1885 wxPyEndAllowThreads(__tstate);
1886 if (PyErr_Occurred()) SWIG_fail;
1887 }
1888 {
1889 #if wxUSE_UNICODE
1890 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1891 #else
1892 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1893 #endif
1894 }
1895 return resultobj;
1896 fail:
1897 return NULL;
1898 }
1899
1900
1901 static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxObject *arg1 = (wxObject *) 0 ;
1904 PyObject * obj0 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1912 {
1913 PyThreadState* __tstate = wxPyBeginAllowThreads();
1914 wxObject_Destroy(arg1);
1915
1916 wxPyEndAllowThreads(__tstate);
1917 if (PyErr_Occurred()) SWIG_fail;
1918 }
1919 Py_INCREF(Py_None); resultobj = Py_None;
1920 return resultobj;
1921 fail:
1922 return NULL;
1923 }
1924
1925
1926 static PyObject * Object_swigregister(PyObject *self, PyObject *args) {
1927 PyObject *obj;
1928 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1929 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1930 Py_INCREF(obj);
1931 return Py_BuildValue((char *)"");
1932 }
1933 static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1934 PyObject *resultobj;
1935 wxSize *arg1 = (wxSize *) 0 ;
1936 int arg2 ;
1937 PyObject * obj0 = 0 ;
1938 PyObject * obj1 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "self",(char *) "x", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
1944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1946 arg2 = (int) SWIG_AsInt(obj1);
1947 if (PyErr_Occurred()) SWIG_fail;
1948 if (arg1) (arg1)->x = arg2;
1949
1950 Py_INCREF(Py_None); resultobj = Py_None;
1951 return resultobj;
1952 fail:
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxSize *arg1 = (wxSize *) 0 ;
1960 int result;
1961 PyObject * obj0 = 0 ;
1962 char *kwnames[] = {
1963 (char *) "self", NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1969 result = (int) ((arg1)->x);
1970
1971 resultobj = SWIG_FromInt((int)result);
1972 return resultobj;
1973 fail:
1974 return NULL;
1975 }
1976
1977
1978 static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject *resultobj;
1980 wxSize *arg1 = (wxSize *) 0 ;
1981 int arg2 ;
1982 PyObject * obj0 = 0 ;
1983 PyObject * obj1 = 0 ;
1984 char *kwnames[] = {
1985 (char *) "self",(char *) "y", NULL
1986 };
1987
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
1989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1991 arg2 = (int) SWIG_AsInt(obj1);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 if (arg1) (arg1)->y = arg2;
1994
1995 Py_INCREF(Py_None); resultobj = Py_None;
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxSize *arg1 = (wxSize *) 0 ;
2005 int result;
2006 PyObject * obj0 = 0 ;
2007 char *kwnames[] = {
2008 (char *) "self", NULL
2009 };
2010
2011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
2012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2014 result = (int) ((arg1)->y);
2015
2016 resultobj = SWIG_FromInt((int)result);
2017 return resultobj;
2018 fail:
2019 return NULL;
2020 }
2021
2022
2023 static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2024 PyObject *resultobj;
2025 int arg1 = (int) 0 ;
2026 int arg2 = (int) 0 ;
2027 wxSize *result;
2028 PyObject * obj0 = 0 ;
2029 PyObject * obj1 = 0 ;
2030 char *kwnames[] = {
2031 (char *) "w",(char *) "h", NULL
2032 };
2033
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
2035 if (obj0) {
2036 arg1 = (int) SWIG_AsInt(obj0);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 if (obj1) {
2040 arg2 = (int) SWIG_AsInt(obj1);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 }
2043 {
2044 PyThreadState* __tstate = wxPyBeginAllowThreads();
2045 result = (wxSize *)new wxSize(arg1,arg2);
2046
2047 wxPyEndAllowThreads(__tstate);
2048 if (PyErr_Occurred()) SWIG_fail;
2049 }
2050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
2051 return resultobj;
2052 fail:
2053 return NULL;
2054 }
2055
2056
2057 static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2058 PyObject *resultobj;
2059 wxSize *arg1 = (wxSize *) 0 ;
2060 PyObject * obj0 = 0 ;
2061 char *kwnames[] = {
2062 (char *) "self", NULL
2063 };
2064
2065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
2066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2068 {
2069 PyThreadState* __tstate = wxPyBeginAllowThreads();
2070 delete arg1;
2071
2072 wxPyEndAllowThreads(__tstate);
2073 if (PyErr_Occurred()) SWIG_fail;
2074 }
2075 Py_INCREF(Py_None); resultobj = Py_None;
2076 return resultobj;
2077 fail:
2078 return NULL;
2079 }
2080
2081
2082 static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2083 PyObject *resultobj;
2084 wxSize *arg1 = (wxSize *) 0 ;
2085 wxSize *arg2 = 0 ;
2086 bool result;
2087 wxSize temp2 ;
2088 PyObject * obj0 = 0 ;
2089 PyObject * obj1 = 0 ;
2090 char *kwnames[] = {
2091 (char *) "self",(char *) "sz", NULL
2092 };
2093
2094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2097 {
2098 arg2 = &temp2;
2099 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2100 }
2101 {
2102 PyThreadState* __tstate = wxPyBeginAllowThreads();
2103 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2104
2105 wxPyEndAllowThreads(__tstate);
2106 if (PyErr_Occurred()) SWIG_fail;
2107 }
2108 {
2109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2110 }
2111 return resultobj;
2112 fail:
2113 return NULL;
2114 }
2115
2116
2117 static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2118 PyObject *resultobj;
2119 wxSize *arg1 = (wxSize *) 0 ;
2120 wxSize *arg2 = 0 ;
2121 bool result;
2122 wxSize temp2 ;
2123 PyObject * obj0 = 0 ;
2124 PyObject * obj1 = 0 ;
2125 char *kwnames[] = {
2126 (char *) "self",(char *) "sz", NULL
2127 };
2128
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2132 {
2133 arg2 = &temp2;
2134 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2135 }
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 {
2144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2145 }
2146 return resultobj;
2147 fail:
2148 return NULL;
2149 }
2150
2151
2152 static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2153 PyObject *resultobj;
2154 wxSize *arg1 = (wxSize *) 0 ;
2155 wxSize *arg2 = 0 ;
2156 wxSize result;
2157 wxSize temp2 ;
2158 PyObject * obj0 = 0 ;
2159 PyObject * obj1 = 0 ;
2160 char *kwnames[] = {
2161 (char *) "self",(char *) "sz", NULL
2162 };
2163
2164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2167 {
2168 arg2 = &temp2;
2169 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2170 }
2171 {
2172 PyThreadState* __tstate = wxPyBeginAllowThreads();
2173 result = (arg1)->operator +((wxSize const &)*arg2);
2174
2175 wxPyEndAllowThreads(__tstate);
2176 if (PyErr_Occurred()) SWIG_fail;
2177 }
2178 {
2179 wxSize * resultptr;
2180 resultptr = new wxSize((wxSize &) result);
2181 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2182 }
2183 return resultobj;
2184 fail:
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 wxSize *arg1 = (wxSize *) 0 ;
2192 wxSize *arg2 = 0 ;
2193 wxSize result;
2194 wxSize temp2 ;
2195 PyObject * obj0 = 0 ;
2196 PyObject * obj1 = 0 ;
2197 char *kwnames[] = {
2198 (char *) "self",(char *) "sz", NULL
2199 };
2200
2201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2204 {
2205 arg2 = &temp2;
2206 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2207 }
2208 {
2209 PyThreadState* __tstate = wxPyBeginAllowThreads();
2210 result = (arg1)->operator -((wxSize const &)*arg2);
2211
2212 wxPyEndAllowThreads(__tstate);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
2215 {
2216 wxSize * resultptr;
2217 resultptr = new wxSize((wxSize &) result);
2218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2219 }
2220 return resultobj;
2221 fail:
2222 return NULL;
2223 }
2224
2225
2226 static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2227 PyObject *resultobj;
2228 wxSize *arg1 = (wxSize *) 0 ;
2229 wxSize *arg2 = 0 ;
2230 wxSize temp2 ;
2231 PyObject * obj0 = 0 ;
2232 PyObject * obj1 = 0 ;
2233 char *kwnames[] = {
2234 (char *) "self",(char *) "sz", NULL
2235 };
2236
2237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2240 {
2241 arg2 = &temp2;
2242 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2243 }
2244 {
2245 PyThreadState* __tstate = wxPyBeginAllowThreads();
2246 (arg1)->IncTo((wxSize const &)*arg2);
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) SWIG_fail;
2250 }
2251 Py_INCREF(Py_None); resultobj = Py_None;
2252 return resultobj;
2253 fail:
2254 return NULL;
2255 }
2256
2257
2258 static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2259 PyObject *resultobj;
2260 wxSize *arg1 = (wxSize *) 0 ;
2261 wxSize *arg2 = 0 ;
2262 wxSize temp2 ;
2263 PyObject * obj0 = 0 ;
2264 PyObject * obj1 = 0 ;
2265 char *kwnames[] = {
2266 (char *) "self",(char *) "sz", NULL
2267 };
2268
2269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2272 {
2273 arg2 = &temp2;
2274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2275 }
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 (arg1)->DecTo((wxSize const &)*arg2);
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 Py_INCREF(Py_None); resultobj = Py_None;
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 wxSize *arg1 = (wxSize *) 0 ;
2293 int arg2 ;
2294 int arg3 ;
2295 PyObject * obj0 = 0 ;
2296 PyObject * obj1 = 0 ;
2297 PyObject * obj2 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self",(char *) "w",(char *) "h", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2305 arg2 = (int) SWIG_AsInt(obj1);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 arg3 = (int) SWIG_AsInt(obj2);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 (arg1)->Set(arg2,arg3);
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 Py_INCREF(Py_None); resultobj = Py_None;
2317 return resultobj;
2318 fail:
2319 return NULL;
2320 }
2321
2322
2323 static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2324 PyObject *resultobj;
2325 wxSize *arg1 = (wxSize *) 0 ;
2326 int arg2 ;
2327 PyObject * obj0 = 0 ;
2328 PyObject * obj1 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "self",(char *) "w", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2336 arg2 = (int) SWIG_AsInt(obj1);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 (arg1)->SetWidth(arg2);
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 Py_INCREF(Py_None); resultobj = Py_None;
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj;
2354 wxSize *arg1 = (wxSize *) 0 ;
2355 int arg2 ;
2356 PyObject * obj0 = 0 ;
2357 PyObject * obj1 = 0 ;
2358 char *kwnames[] = {
2359 (char *) "self",(char *) "h", NULL
2360 };
2361
2362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2365 arg2 = (int) SWIG_AsInt(obj1);
2366 if (PyErr_Occurred()) SWIG_fail;
2367 {
2368 PyThreadState* __tstate = wxPyBeginAllowThreads();
2369 (arg1)->SetHeight(arg2);
2370
2371 wxPyEndAllowThreads(__tstate);
2372 if (PyErr_Occurred()) SWIG_fail;
2373 }
2374 Py_INCREF(Py_None); resultobj = Py_None;
2375 return resultobj;
2376 fail:
2377 return NULL;
2378 }
2379
2380
2381 static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2382 PyObject *resultobj;
2383 wxSize *arg1 = (wxSize *) 0 ;
2384 int result;
2385 PyObject * obj0 = 0 ;
2386 char *kwnames[] = {
2387 (char *) "self", NULL
2388 };
2389
2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 result = (int)((wxSize const *)arg1)->GetWidth();
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) SWIG_fail;
2399 }
2400 resultobj = SWIG_FromInt((int)result);
2401 return resultobj;
2402 fail:
2403 return NULL;
2404 }
2405
2406
2407 static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2408 PyObject *resultobj;
2409 wxSize *arg1 = (wxSize *) 0 ;
2410 int result;
2411 PyObject * obj0 = 0 ;
2412 char *kwnames[] = {
2413 (char *) "self", NULL
2414 };
2415
2416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2419 {
2420 PyThreadState* __tstate = wxPyBeginAllowThreads();
2421 result = (int)((wxSize const *)arg1)->GetHeight();
2422
2423 wxPyEndAllowThreads(__tstate);
2424 if (PyErr_Occurred()) SWIG_fail;
2425 }
2426 resultobj = SWIG_FromInt((int)result);
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxSize *arg1 = (wxSize *) 0 ;
2436 bool result;
2437 PyObject * obj0 = 0 ;
2438 char *kwnames[] = {
2439 (char *) "self", NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2445 {
2446 PyThreadState* __tstate = wxPyBeginAllowThreads();
2447 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2448
2449 wxPyEndAllowThreads(__tstate);
2450 if (PyErr_Occurred()) SWIG_fail;
2451 }
2452 {
2453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2454 }
2455 return resultobj;
2456 fail:
2457 return NULL;
2458 }
2459
2460
2461 static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
2462 PyObject *resultobj;
2463 wxSize *arg1 = (wxSize *) 0 ;
2464 wxSize *arg2 = 0 ;
2465 wxSize temp2 ;
2466 PyObject * obj0 = 0 ;
2467 PyObject * obj1 = 0 ;
2468 char *kwnames[] = {
2469 (char *) "self",(char *) "size", NULL
2470 };
2471
2472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2475 {
2476 arg2 = &temp2;
2477 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2478 }
2479 {
2480 PyThreadState* __tstate = wxPyBeginAllowThreads();
2481 (arg1)->SetDefaults((wxSize const &)*arg2);
2482
2483 wxPyEndAllowThreads(__tstate);
2484 if (PyErr_Occurred()) SWIG_fail;
2485 }
2486 Py_INCREF(Py_None); resultobj = Py_None;
2487 return resultobj;
2488 fail:
2489 return NULL;
2490 }
2491
2492
2493 static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2494 PyObject *resultobj;
2495 wxSize *arg1 = (wxSize *) 0 ;
2496 PyObject *result;
2497 PyObject * obj0 = 0 ;
2498 char *kwnames[] = {
2499 (char *) "self", NULL
2500 };
2501
2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 result = (PyObject *)wxSize_Get(arg1);
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) SWIG_fail;
2511 }
2512 resultobj = result;
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2520 PyObject *obj;
2521 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2522 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2523 Py_INCREF(obj);
2524 return Py_BuildValue((char *)"");
2525 }
2526 static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2529 double arg2 ;
2530 PyObject * obj0 = 0 ;
2531 PyObject * obj1 = 0 ;
2532 char *kwnames[] = {
2533 (char *) "self",(char *) "x", NULL
2534 };
2535
2536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2539 arg2 = (double) SWIG_AsDouble(obj1);
2540 if (PyErr_Occurred()) SWIG_fail;
2541 if (arg1) (arg1)->x = arg2;
2542
2543 Py_INCREF(Py_None); resultobj = Py_None;
2544 return resultobj;
2545 fail:
2546 return NULL;
2547 }
2548
2549
2550 static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2551 PyObject *resultobj;
2552 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2553 double result;
2554 PyObject * obj0 = 0 ;
2555 char *kwnames[] = {
2556 (char *) "self", NULL
2557 };
2558
2559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2562 result = (double) ((arg1)->x);
2563
2564 resultobj = SWIG_FromDouble((double)result);
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2574 double arg2 ;
2575 PyObject * obj0 = 0 ;
2576 PyObject * obj1 = 0 ;
2577 char *kwnames[] = {
2578 (char *) "self",(char *) "y", NULL
2579 };
2580
2581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2584 arg2 = (double) SWIG_AsDouble(obj1);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 if (arg1) (arg1)->y = arg2;
2587
2588 Py_INCREF(Py_None); resultobj = Py_None;
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2598 double result;
2599 PyObject * obj0 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "self", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2607 result = (double) ((arg1)->y);
2608
2609 resultobj = SWIG_FromDouble((double)result);
2610 return resultobj;
2611 fail:
2612 return NULL;
2613 }
2614
2615
2616 static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2617 PyObject *resultobj;
2618 double arg1 = (double) 0.0 ;
2619 double arg2 = (double) 0.0 ;
2620 wxRealPoint *result;
2621 PyObject * obj0 = 0 ;
2622 PyObject * obj1 = 0 ;
2623 char *kwnames[] = {
2624 (char *) "x",(char *) "y", NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2628 if (obj0) {
2629 arg1 = (double) SWIG_AsDouble(obj0);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 if (obj1) {
2633 arg2 = (double) SWIG_AsDouble(obj1);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) SWIG_fail;
2642 }
2643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2644 return resultobj;
2645 fail:
2646 return NULL;
2647 }
2648
2649
2650 static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject *resultobj;
2652 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2653 PyObject * obj0 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 delete arg1;
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 Py_INCREF(Py_None); resultobj = Py_None;
2669 return resultobj;
2670 fail:
2671 return NULL;
2672 }
2673
2674
2675 static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2676 PyObject *resultobj;
2677 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2678 wxRealPoint *arg2 = 0 ;
2679 bool result;
2680 wxRealPoint temp2 ;
2681 PyObject * obj0 = 0 ;
2682 PyObject * obj1 = 0 ;
2683 char *kwnames[] = {
2684 (char *) "self",(char *) "pt", NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2690 {
2691 arg2 = &temp2;
2692 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2693 }
2694 {
2695 PyThreadState* __tstate = wxPyBeginAllowThreads();
2696 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2697
2698 wxPyEndAllowThreads(__tstate);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 }
2701 {
2702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2703 }
2704 return resultobj;
2705 fail:
2706 return NULL;
2707 }
2708
2709
2710 static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2711 PyObject *resultobj;
2712 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2713 wxRealPoint *arg2 = 0 ;
2714 bool result;
2715 wxRealPoint temp2 ;
2716 PyObject * obj0 = 0 ;
2717 PyObject * obj1 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self",(char *) "pt", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2725 {
2726 arg2 = &temp2;
2727 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2728 }
2729 {
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2732
2733 wxPyEndAllowThreads(__tstate);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 }
2736 {
2737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2738 }
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2748 wxRealPoint *arg2 = 0 ;
2749 wxRealPoint result;
2750 wxRealPoint temp2 ;
2751 PyObject * obj0 = 0 ;
2752 PyObject * obj1 = 0 ;
2753 char *kwnames[] = {
2754 (char *) "self",(char *) "pt", NULL
2755 };
2756
2757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2760 {
2761 arg2 = &temp2;
2762 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2763 }
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2767
2768 wxPyEndAllowThreads(__tstate);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 }
2771 {
2772 wxRealPoint * resultptr;
2773 resultptr = new wxRealPoint((wxRealPoint &) result);
2774 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2775 }
2776 return resultobj;
2777 fail:
2778 return NULL;
2779 }
2780
2781
2782 static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject *resultobj;
2784 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2785 wxRealPoint *arg2 = 0 ;
2786 wxRealPoint result;
2787 wxRealPoint temp2 ;
2788 PyObject * obj0 = 0 ;
2789 PyObject * obj1 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "pt", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 {
2798 arg2 = &temp2;
2799 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2800 }
2801 {
2802 PyThreadState* __tstate = wxPyBeginAllowThreads();
2803 result = (arg1)->operator -((wxRealPoint const &)*arg2);
2804
2805 wxPyEndAllowThreads(__tstate);
2806 if (PyErr_Occurred()) SWIG_fail;
2807 }
2808 {
2809 wxRealPoint * resultptr;
2810 resultptr = new wxRealPoint((wxRealPoint &) result);
2811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2812 }
2813 return resultobj;
2814 fail:
2815 return NULL;
2816 }
2817
2818
2819 static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2820 PyObject *resultobj;
2821 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2822 double arg2 ;
2823 double arg3 ;
2824 PyObject * obj0 = 0 ;
2825 PyObject * obj1 = 0 ;
2826 PyObject * obj2 = 0 ;
2827 char *kwnames[] = {
2828 (char *) "self",(char *) "x",(char *) "y", NULL
2829 };
2830
2831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2834 arg2 = (double) SWIG_AsDouble(obj1);
2835 if (PyErr_Occurred()) SWIG_fail;
2836 arg3 = (double) SWIG_AsDouble(obj2);
2837 if (PyErr_Occurred()) SWIG_fail;
2838 {
2839 PyThreadState* __tstate = wxPyBeginAllowThreads();
2840 wxRealPoint_Set(arg1,arg2,arg3);
2841
2842 wxPyEndAllowThreads(__tstate);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 }
2845 Py_INCREF(Py_None); resultobj = Py_None;
2846 return resultobj;
2847 fail:
2848 return NULL;
2849 }
2850
2851
2852 static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2853 PyObject *resultobj;
2854 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2855 PyObject *result;
2856 PyObject * obj0 = 0 ;
2857 char *kwnames[] = {
2858 (char *) "self", NULL
2859 };
2860
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
2862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (PyObject *)wxRealPoint_Get(arg1);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 resultobj = result;
2872 return resultobj;
2873 fail:
2874 return NULL;
2875 }
2876
2877
2878 static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2879 PyObject *obj;
2880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2881 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2882 Py_INCREF(obj);
2883 return Py_BuildValue((char *)"");
2884 }
2885 static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2886 PyObject *resultobj;
2887 wxPoint *arg1 = (wxPoint *) 0 ;
2888 int arg2 ;
2889 PyObject * obj0 = 0 ;
2890 PyObject * obj1 = 0 ;
2891 char *kwnames[] = {
2892 (char *) "self",(char *) "x", NULL
2893 };
2894
2895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
2896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2898 arg2 = (int) SWIG_AsInt(obj1);
2899 if (PyErr_Occurred()) SWIG_fail;
2900 if (arg1) (arg1)->x = arg2;
2901
2902 Py_INCREF(Py_None); resultobj = Py_None;
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxPoint *arg1 = (wxPoint *) 0 ;
2912 int result;
2913 PyObject * obj0 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "self", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2921 result = (int) ((arg1)->x);
2922
2923 resultobj = SWIG_FromInt((int)result);
2924 return resultobj;
2925 fail:
2926 return NULL;
2927 }
2928
2929
2930 static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject *resultobj;
2932 wxPoint *arg1 = (wxPoint *) 0 ;
2933 int arg2 ;
2934 PyObject * obj0 = 0 ;
2935 PyObject * obj1 = 0 ;
2936 char *kwnames[] = {
2937 (char *) "self",(char *) "y", NULL
2938 };
2939
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
2941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2943 arg2 = (int) SWIG_AsInt(obj1);
2944 if (PyErr_Occurred()) SWIG_fail;
2945 if (arg1) (arg1)->y = arg2;
2946
2947 Py_INCREF(Py_None); resultobj = Py_None;
2948 return resultobj;
2949 fail:
2950 return NULL;
2951 }
2952
2953
2954 static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2955 PyObject *resultobj;
2956 wxPoint *arg1 = (wxPoint *) 0 ;
2957 int result;
2958 PyObject * obj0 = 0 ;
2959 char *kwnames[] = {
2960 (char *) "self", NULL
2961 };
2962
2963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2966 result = (int) ((arg1)->y);
2967
2968 resultobj = SWIG_FromInt((int)result);
2969 return resultobj;
2970 fail:
2971 return NULL;
2972 }
2973
2974
2975 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2976 PyObject *resultobj;
2977 int arg1 = (int) 0 ;
2978 int arg2 = (int) 0 ;
2979 wxPoint *result;
2980 PyObject * obj0 = 0 ;
2981 PyObject * obj1 = 0 ;
2982 char *kwnames[] = {
2983 (char *) "x",(char *) "y", NULL
2984 };
2985
2986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2987 if (obj0) {
2988 arg1 = (int) SWIG_AsInt(obj0);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 if (obj1) {
2992 arg2 = (int) SWIG_AsInt(obj1);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 }
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 result = (wxPoint *)new wxPoint(arg1,arg2);
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
3003 return resultobj;
3004 fail:
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 wxPoint *arg1 = (wxPoint *) 0 ;
3012 PyObject * obj0 = 0 ;
3013 char *kwnames[] = {
3014 (char *) "self", NULL
3015 };
3016
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
3018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3020 {
3021 PyThreadState* __tstate = wxPyBeginAllowThreads();
3022 delete arg1;
3023
3024 wxPyEndAllowThreads(__tstate);
3025 if (PyErr_Occurred()) SWIG_fail;
3026 }
3027 Py_INCREF(Py_None); resultobj = Py_None;
3028 return resultobj;
3029 fail:
3030 return NULL;
3031 }
3032
3033
3034 static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3035 PyObject *resultobj;
3036 wxPoint *arg1 = (wxPoint *) 0 ;
3037 wxPoint *arg2 = 0 ;
3038 bool result;
3039 wxPoint temp2 ;
3040 PyObject * obj0 = 0 ;
3041 PyObject * obj1 = 0 ;
3042 char *kwnames[] = {
3043 (char *) "self",(char *) "pt", NULL
3044 };
3045
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
3047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3049 {
3050 arg2 = &temp2;
3051 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3052 }
3053 {
3054 PyThreadState* __tstate = wxPyBeginAllowThreads();
3055 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
3056
3057 wxPyEndAllowThreads(__tstate);
3058 if (PyErr_Occurred()) SWIG_fail;
3059 }
3060 {
3061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3062 }
3063 return resultobj;
3064 fail:
3065 return NULL;
3066 }
3067
3068
3069 static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxPoint *arg1 = (wxPoint *) 0 ;
3072 wxPoint *arg2 = 0 ;
3073 bool result;
3074 wxPoint temp2 ;
3075 PyObject * obj0 = 0 ;
3076 PyObject * obj1 = 0 ;
3077 char *kwnames[] = {
3078 (char *) "self",(char *) "pt", NULL
3079 };
3080
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3084 {
3085 arg2 = &temp2;
3086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3087 }
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
3095 {
3096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3097 }
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxPoint *arg1 = (wxPoint *) 0 ;
3107 wxPoint *arg2 = 0 ;
3108 wxPoint result;
3109 wxPoint temp2 ;
3110 PyObject * obj0 = 0 ;
3111 PyObject * obj1 = 0 ;
3112 char *kwnames[] = {
3113 (char *) "self",(char *) "pt", NULL
3114 };
3115
3116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3119 {
3120 arg2 = &temp2;
3121 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3122 }
3123 {
3124 PyThreadState* __tstate = wxPyBeginAllowThreads();
3125 result = (arg1)->operator +((wxPoint const &)*arg2);
3126
3127 wxPyEndAllowThreads(__tstate);
3128 if (PyErr_Occurred()) SWIG_fail;
3129 }
3130 {
3131 wxPoint * resultptr;
3132 resultptr = new wxPoint((wxPoint &) result);
3133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3134 }
3135 return resultobj;
3136 fail:
3137 return NULL;
3138 }
3139
3140
3141 static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj;
3143 wxPoint *arg1 = (wxPoint *) 0 ;
3144 wxPoint *arg2 = 0 ;
3145 wxPoint result;
3146 wxPoint temp2 ;
3147 PyObject * obj0 = 0 ;
3148 PyObject * obj1 = 0 ;
3149 char *kwnames[] = {
3150 (char *) "self",(char *) "pt", NULL
3151 };
3152
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3156 {
3157 arg2 = &temp2;
3158 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3159 }
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 result = (arg1)->operator -((wxPoint const &)*arg2);
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 {
3168 wxPoint * resultptr;
3169 resultptr = new wxPoint((wxPoint &) result);
3170 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3171 }
3172 return resultobj;
3173 fail:
3174 return NULL;
3175 }
3176
3177
3178 static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3179 PyObject *resultobj;
3180 wxPoint *arg1 = (wxPoint *) 0 ;
3181 wxPoint *arg2 = 0 ;
3182 wxPoint *result;
3183 wxPoint temp2 ;
3184 PyObject * obj0 = 0 ;
3185 PyObject * obj1 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "self",(char *) "pt", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3193 {
3194 arg2 = &temp2;
3195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3196 }
3197 {
3198 PyThreadState* __tstate = wxPyBeginAllowThreads();
3199 {
3200 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3201 result = (wxPoint *) &_result_ref;
3202 }
3203
3204 wxPyEndAllowThreads(__tstate);
3205 if (PyErr_Occurred()) SWIG_fail;
3206 }
3207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3208 return resultobj;
3209 fail:
3210 return NULL;
3211 }
3212
3213
3214 static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3215 PyObject *resultobj;
3216 wxPoint *arg1 = (wxPoint *) 0 ;
3217 wxPoint *arg2 = 0 ;
3218 wxPoint *result;
3219 wxPoint temp2 ;
3220 PyObject * obj0 = 0 ;
3221 PyObject * obj1 = 0 ;
3222 char *kwnames[] = {
3223 (char *) "self",(char *) "pt", NULL
3224 };
3225
3226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3229 {
3230 arg2 = &temp2;
3231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3232 }
3233 {
3234 PyThreadState* __tstate = wxPyBeginAllowThreads();
3235 {
3236 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3237 result = (wxPoint *) &_result_ref;
3238 }
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3244 return resultobj;
3245 fail:
3246 return NULL;
3247 }
3248
3249
3250 static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj;
3252 wxPoint *arg1 = (wxPoint *) 0 ;
3253 long arg2 ;
3254 long arg3 ;
3255 PyObject * obj0 = 0 ;
3256 PyObject * obj1 = 0 ;
3257 PyObject * obj2 = 0 ;
3258 char *kwnames[] = {
3259 (char *) "self",(char *) "x",(char *) "y", NULL
3260 };
3261
3262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3265 arg2 = (long) SWIG_AsLong(obj1);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 arg3 = (long) SWIG_AsLong(obj2);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 wxPoint_Set(arg1,arg2,arg3);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 Py_INCREF(Py_None); resultobj = Py_None;
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject *resultobj;
3285 wxPoint *arg1 = (wxPoint *) 0 ;
3286 PyObject *result;
3287 PyObject * obj0 = 0 ;
3288 char *kwnames[] = {
3289 (char *) "self", NULL
3290 };
3291
3292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 result = (PyObject *)wxPoint_Get(arg1);
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 resultobj = result;
3303 return resultobj;
3304 fail:
3305 return NULL;
3306 }
3307
3308
3309 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
3310 PyObject *obj;
3311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3312 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3313 Py_INCREF(obj);
3314 return Py_BuildValue((char *)"");
3315 }
3316 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject *resultobj;
3318 int arg1 = (int) 0 ;
3319 int arg2 = (int) 0 ;
3320 int arg3 = (int) 0 ;
3321 int arg4 = (int) 0 ;
3322 wxRect *result;
3323 PyObject * obj0 = 0 ;
3324 PyObject * obj1 = 0 ;
3325 PyObject * obj2 = 0 ;
3326 PyObject * obj3 = 0 ;
3327 char *kwnames[] = {
3328 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3329 };
3330
3331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3332 if (obj0) {
3333 arg1 = (int) SWIG_AsInt(obj0);
3334 if (PyErr_Occurred()) SWIG_fail;
3335 }
3336 if (obj1) {
3337 arg2 = (int) SWIG_AsInt(obj1);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 }
3340 if (obj2) {
3341 arg3 = (int) SWIG_AsInt(obj2);
3342 if (PyErr_Occurred()) SWIG_fail;
3343 }
3344 if (obj3) {
3345 arg4 = (int) SWIG_AsInt(obj3);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 }
3348 {
3349 PyThreadState* __tstate = wxPyBeginAllowThreads();
3350 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3351
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3356 return resultobj;
3357 fail:
3358 return NULL;
3359 }
3360
3361
3362 static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
3363 PyObject *resultobj;
3364 wxPoint *arg1 = 0 ;
3365 wxPoint *arg2 = 0 ;
3366 wxRect *result;
3367 wxPoint temp1 ;
3368 wxPoint temp2 ;
3369 PyObject * obj0 = 0 ;
3370 PyObject * obj1 = 0 ;
3371 char *kwnames[] = {
3372 (char *) "topLeft",(char *) "bottomRight", NULL
3373 };
3374
3375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3376 {
3377 arg1 = &temp1;
3378 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3379 }
3380 {
3381 arg2 = &temp2;
3382 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3383 }
3384 {
3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
3386 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3387
3388 wxPyEndAllowThreads(__tstate);
3389 if (PyErr_Occurred()) SWIG_fail;
3390 }
3391 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3392 return resultobj;
3393 fail:
3394 return NULL;
3395 }
3396
3397
3398 static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj;
3400 wxPoint *arg1 = 0 ;
3401 wxSize *arg2 = 0 ;
3402 wxRect *result;
3403 wxPoint temp1 ;
3404 wxSize temp2 ;
3405 PyObject * obj0 = 0 ;
3406 PyObject * obj1 = 0 ;
3407 char *kwnames[] = {
3408 (char *) "pos",(char *) "size", NULL
3409 };
3410
3411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3412 {
3413 arg1 = &temp1;
3414 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3415 }
3416 {
3417 arg2 = &temp2;
3418 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3419 }
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxRect *arg1 = (wxRect *) 0 ;
3437 PyObject * obj0 = 0 ;
3438 char *kwnames[] = {
3439 (char *) "self", NULL
3440 };
3441
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 delete arg1;
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 Py_INCREF(Py_None); resultobj = Py_None;
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxRect *arg1 = (wxRect *) 0 ;
3462 int result;
3463 PyObject * obj0 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 result = (int)((wxRect const *)arg1)->GetX();
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 resultobj = SWIG_FromInt((int)result);
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxRect *arg1 = (wxRect *) 0 ;
3488 int arg2 ;
3489 PyObject * obj0 = 0 ;
3490 PyObject * obj1 = 0 ;
3491 char *kwnames[] = {
3492 (char *) "self",(char *) "x", NULL
3493 };
3494
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3498 arg2 = (int) SWIG_AsInt(obj1);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 {
3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
3502 (arg1)->SetX(arg2);
3503
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 Py_INCREF(Py_None); resultobj = Py_None;
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3515 PyObject *resultobj;
3516 wxRect *arg1 = (wxRect *) 0 ;
3517 int result;
3518 PyObject * obj0 = 0 ;
3519 char *kwnames[] = {
3520 (char *) "self", NULL
3521 };
3522
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3526 {
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (int)(arg1)->GetY();
3529
3530 wxPyEndAllowThreads(__tstate);
3531 if (PyErr_Occurred()) SWIG_fail;
3532 }
3533 resultobj = SWIG_FromInt((int)result);
3534 return resultobj;
3535 fail:
3536 return NULL;
3537 }
3538
3539
3540 static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3541 PyObject *resultobj;
3542 wxRect *arg1 = (wxRect *) 0 ;
3543 int arg2 ;
3544 PyObject * obj0 = 0 ;
3545 PyObject * obj1 = 0 ;
3546 char *kwnames[] = {
3547 (char *) "self",(char *) "y", NULL
3548 };
3549
3550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3553 arg2 = (int) SWIG_AsInt(obj1);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 (arg1)->SetY(arg2);
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 Py_INCREF(Py_None); resultobj = Py_None;
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj;
3571 wxRect *arg1 = (wxRect *) 0 ;
3572 int result;
3573 PyObject * obj0 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "self", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3581 {
3582 PyThreadState* __tstate = wxPyBeginAllowThreads();
3583 result = (int)((wxRect const *)arg1)->GetWidth();
3584
3585 wxPyEndAllowThreads(__tstate);
3586 if (PyErr_Occurred()) SWIG_fail;
3587 }
3588 resultobj = SWIG_FromInt((int)result);
3589 return resultobj;
3590 fail:
3591 return NULL;
3592 }
3593
3594
3595 static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3596 PyObject *resultobj;
3597 wxRect *arg1 = (wxRect *) 0 ;
3598 int arg2 ;
3599 PyObject * obj0 = 0 ;
3600 PyObject * obj1 = 0 ;
3601 char *kwnames[] = {
3602 (char *) "self",(char *) "w", NULL
3603 };
3604
3605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3608 arg2 = (int) SWIG_AsInt(obj1);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 {
3611 PyThreadState* __tstate = wxPyBeginAllowThreads();
3612 (arg1)->SetWidth(arg2);
3613
3614 wxPyEndAllowThreads(__tstate);
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 Py_INCREF(Py_None); resultobj = Py_None;
3618 return resultobj;
3619 fail:
3620 return NULL;
3621 }
3622
3623
3624 static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3625 PyObject *resultobj;
3626 wxRect *arg1 = (wxRect *) 0 ;
3627 int result;
3628 PyObject * obj0 = 0 ;
3629 char *kwnames[] = {
3630 (char *) "self", NULL
3631 };
3632
3633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3636 {
3637 PyThreadState* __tstate = wxPyBeginAllowThreads();
3638 result = (int)((wxRect const *)arg1)->GetHeight();
3639
3640 wxPyEndAllowThreads(__tstate);
3641 if (PyErr_Occurred()) SWIG_fail;
3642 }
3643 resultobj = SWIG_FromInt((int)result);
3644 return resultobj;
3645 fail:
3646 return NULL;
3647 }
3648
3649
3650 static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj;
3652 wxRect *arg1 = (wxRect *) 0 ;
3653 int arg2 ;
3654 PyObject * obj0 = 0 ;
3655 PyObject * obj1 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "self",(char *) "h", NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3663 arg2 = (int) SWIG_AsInt(obj1);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 (arg1)->SetHeight(arg2);
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 Py_INCREF(Py_None); resultobj = Py_None;
3673 return resultobj;
3674 fail:
3675 return NULL;
3676 }
3677
3678
3679 static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3680 PyObject *resultobj;
3681 wxRect *arg1 = (wxRect *) 0 ;
3682 wxPoint result;
3683 PyObject * obj0 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "self", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = ((wxRect const *)arg1)->GetPosition();
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 {
3699 wxPoint * resultptr;
3700 resultptr = new wxPoint((wxPoint &) result);
3701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3702 }
3703 return resultobj;
3704 fail:
3705 return NULL;
3706 }
3707
3708
3709 static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3710 PyObject *resultobj;
3711 wxRect *arg1 = (wxRect *) 0 ;
3712 wxPoint *arg2 = 0 ;
3713 wxPoint temp2 ;
3714 PyObject * obj0 = 0 ;
3715 PyObject * obj1 = 0 ;
3716 char *kwnames[] = {
3717 (char *) "self",(char *) "p", NULL
3718 };
3719
3720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3723 {
3724 arg2 = &temp2;
3725 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 (arg1)->SetPosition((wxPoint const &)*arg2);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 Py_INCREF(Py_None); resultobj = Py_None;
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj;
3743 wxRect *arg1 = (wxRect *) 0 ;
3744 wxSize result;
3745 PyObject * obj0 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "self", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3753 {
3754 PyThreadState* __tstate = wxPyBeginAllowThreads();
3755 result = ((wxRect const *)arg1)->GetSize();
3756
3757 wxPyEndAllowThreads(__tstate);
3758 if (PyErr_Occurred()) SWIG_fail;
3759 }
3760 {
3761 wxSize * resultptr;
3762 resultptr = new wxSize((wxSize &) result);
3763 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3764 }
3765 return resultobj;
3766 fail:
3767 return NULL;
3768 }
3769
3770
3771 static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj;
3773 wxRect *arg1 = (wxRect *) 0 ;
3774 wxSize *arg2 = 0 ;
3775 wxSize temp2 ;
3776 PyObject * obj0 = 0 ;
3777 PyObject * obj1 = 0 ;
3778 char *kwnames[] = {
3779 (char *) "self",(char *) "s", NULL
3780 };
3781
3782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3785 {
3786 arg2 = &temp2;
3787 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3788 }
3789 {
3790 PyThreadState* __tstate = wxPyBeginAllowThreads();
3791 (arg1)->SetSize((wxSize const &)*arg2);
3792
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 Py_INCREF(Py_None); resultobj = Py_None;
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject *resultobj;
3805 wxRect *arg1 = (wxRect *) 0 ;
3806 wxPoint result;
3807 PyObject * obj0 = 0 ;
3808 char *kwnames[] = {
3809 (char *) "self", NULL
3810 };
3811
3812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = ((wxRect const *)arg1)->GetTopLeft();
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 {
3823 wxPoint * resultptr;
3824 resultptr = new wxPoint((wxPoint &) result);
3825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3826 }
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj;
3835 wxRect *arg1 = (wxRect *) 0 ;
3836 wxPoint *arg2 = 0 ;
3837 wxPoint temp2 ;
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj1 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "self",(char *) "p", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3847 {
3848 arg2 = &temp2;
3849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3850 }
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 Py_INCREF(Py_None); resultobj = Py_None;
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 wxRect *arg1 = (wxRect *) 0 ;
3868 wxPoint result;
3869 PyObject * obj0 = 0 ;
3870 char *kwnames[] = {
3871 (char *) "self", NULL
3872 };
3873
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3877 {
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 result = ((wxRect const *)arg1)->GetBottomRight();
3880
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 {
3885 wxPoint * resultptr;
3886 resultptr = new wxPoint((wxPoint &) result);
3887 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3888 }
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 wxRect *arg1 = (wxRect *) 0 ;
3898 wxPoint *arg2 = 0 ;
3899 wxPoint temp2 ;
3900 PyObject * obj0 = 0 ;
3901 PyObject * obj1 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "self",(char *) "p", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3909 {
3910 arg2 = &temp2;
3911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3912 }
3913 {
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3916
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 Py_INCREF(Py_None); resultobj = Py_None;
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3928 PyObject *resultobj;
3929 wxRect *arg1 = (wxRect *) 0 ;
3930 int result;
3931 PyObject * obj0 = 0 ;
3932 char *kwnames[] = {
3933 (char *) "self", NULL
3934 };
3935
3936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 result = (int)((wxRect const *)arg1)->GetLeft();
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 resultobj = SWIG_FromInt((int)result);
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxRect *arg1 = (wxRect *) 0 ;
3956 int result;
3957 PyObject * obj0 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "self", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3965 {
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 result = (int)((wxRect const *)arg1)->GetTop();
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 resultobj = SWIG_FromInt((int)result);
3973 return resultobj;
3974 fail:
3975 return NULL;
3976 }
3977
3978
3979 static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj;
3981 wxRect *arg1 = (wxRect *) 0 ;
3982 int result;
3983 PyObject * obj0 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "self", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (int)((wxRect const *)arg1)->GetBottom();
3994
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_FromInt((int)result);
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
4006 PyObject *resultobj;
4007 wxRect *arg1 = (wxRect *) 0 ;
4008 int result;
4009 PyObject * obj0 = 0 ;
4010 char *kwnames[] = {
4011 (char *) "self", NULL
4012 };
4013
4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
4015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (int)((wxRect const *)arg1)->GetRight();
4020
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 resultobj = SWIG_FromInt((int)result);
4025 return resultobj;
4026 fail:
4027 return NULL;
4028 }
4029
4030
4031 static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
4032 PyObject *resultobj;
4033 wxRect *arg1 = (wxRect *) 0 ;
4034 int arg2 ;
4035 PyObject * obj0 = 0 ;
4036 PyObject * obj1 = 0 ;
4037 char *kwnames[] = {
4038 (char *) "self",(char *) "left", NULL
4039 };
4040
4041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
4042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4044 arg2 = (int) SWIG_AsInt(obj1);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 (arg1)->SetLeft(arg2);
4049
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 Py_INCREF(Py_None); resultobj = Py_None;
4054 return resultobj;
4055 fail:
4056 return NULL;
4057 }
4058
4059
4060 static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj;
4062 wxRect *arg1 = (wxRect *) 0 ;
4063 int arg2 ;
4064 PyObject * obj0 = 0 ;
4065 PyObject * obj1 = 0 ;
4066 char *kwnames[] = {
4067 (char *) "self",(char *) "right", NULL
4068 };
4069
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
4071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4073 arg2 = (int) SWIG_AsInt(obj1);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 (arg1)->SetRight(arg2);
4078
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 Py_INCREF(Py_None); resultobj = Py_None;
4083 return resultobj;
4084 fail:
4085 return NULL;
4086 }
4087
4088
4089 static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
4090 PyObject *resultobj;
4091 wxRect *arg1 = (wxRect *) 0 ;
4092 int arg2 ;
4093 PyObject * obj0 = 0 ;
4094 PyObject * obj1 = 0 ;
4095 char *kwnames[] = {
4096 (char *) "self",(char *) "top", NULL
4097 };
4098
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4102 arg2 = (int) SWIG_AsInt(obj1);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 (arg1)->SetTop(arg2);
4107
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 Py_INCREF(Py_None); resultobj = Py_None;
4112 return resultobj;
4113 fail:
4114 return NULL;
4115 }
4116
4117
4118 static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
4119 PyObject *resultobj;
4120 wxRect *arg1 = (wxRect *) 0 ;
4121 int arg2 ;
4122 PyObject * obj0 = 0 ;
4123 PyObject * obj1 = 0 ;
4124 char *kwnames[] = {
4125 (char *) "self",(char *) "bottom", NULL
4126 };
4127
4128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4131 arg2 = (int) SWIG_AsInt(obj1);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 (arg1)->SetBottom(arg2);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 Py_INCREF(Py_None); resultobj = Py_None;
4141 return resultobj;
4142 fail:
4143 return NULL;
4144 }
4145
4146
4147 static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4148 PyObject *resultobj;
4149 wxRect *arg1 = (wxRect *) 0 ;
4150 int arg2 ;
4151 int arg3 ;
4152 wxRect *result;
4153 PyObject * obj0 = 0 ;
4154 PyObject * obj1 = 0 ;
4155 PyObject * obj2 = 0 ;
4156 char *kwnames[] = {
4157 (char *) "self",(char *) "dx",(char *) "dy", NULL
4158 };
4159
4160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4163 arg2 = (int) SWIG_AsInt(obj1);
4164 if (PyErr_Occurred()) SWIG_fail;
4165 arg3 = (int) SWIG_AsInt(obj2);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 {
4170 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4171 result = (wxRect *) &_result_ref;
4172 }
4173
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj;
4186 wxRect *arg1 = (wxRect *) 0 ;
4187 int arg2 ;
4188 int arg3 ;
4189 wxRect *result;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 PyObject * obj2 = 0 ;
4193 char *kwnames[] = {
4194 (char *) "self",(char *) "dx",(char *) "dy", NULL
4195 };
4196
4197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4200 arg2 = (int) SWIG_AsInt(obj1);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 arg3 = (int) SWIG_AsInt(obj2);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 {
4207 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4208 result = (wxRect *) &_result_ref;
4209 }
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4215 return resultobj;
4216 fail:
4217 return NULL;
4218 }
4219
4220
4221 static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj;
4223 wxRect *arg1 = (wxRect *) 0 ;
4224 int arg2 ;
4225 int arg3 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 PyObject * obj2 = 0 ;
4229 char *kwnames[] = {
4230 (char *) "self",(char *) "dx",(char *) "dy", NULL
4231 };
4232
4233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4236 arg2 = (int) SWIG_AsInt(obj1);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 arg3 = (int) SWIG_AsInt(obj2);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 (arg1)->Offset(arg2,arg3);
4243
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 Py_INCREF(Py_None); resultobj = Py_None;
4248 return resultobj;
4249 fail:
4250 return NULL;
4251 }
4252
4253
4254 static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4255 PyObject *resultobj;
4256 wxRect *arg1 = (wxRect *) 0 ;
4257 wxPoint *arg2 = 0 ;
4258 wxPoint temp2 ;
4259 PyObject * obj0 = 0 ;
4260 PyObject * obj1 = 0 ;
4261 char *kwnames[] = {
4262 (char *) "self",(char *) "pt", NULL
4263 };
4264
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4268 {
4269 arg2 = &temp2;
4270 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4271 }
4272 {
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 (arg1)->Offset((wxPoint const &)*arg2);
4275
4276 wxPyEndAllowThreads(__tstate);
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 Py_INCREF(Py_None); resultobj = Py_None;
4280 return resultobj;
4281 fail:
4282 return NULL;
4283 }
4284
4285
4286 static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj;
4288 wxRect *arg1 = (wxRect *) 0 ;
4289 wxRect *arg2 = 0 ;
4290 wxRect *result;
4291 wxRect temp2 ;
4292 PyObject * obj0 = 0 ;
4293 PyObject * obj1 = 0 ;
4294 char *kwnames[] = {
4295 (char *) "self",(char *) "rect", NULL
4296 };
4297
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4301 {
4302 arg2 = &temp2;
4303 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4304 }
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 {
4308 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4309 result = (wxRect *) &_result_ref;
4310 }
4311
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxRect *arg1 = (wxRect *) 0 ;
4325 wxRect *arg2 = 0 ;
4326 wxRect result;
4327 wxRect temp2 ;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "self",(char *) "rect", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4337 {
4338 arg2 = &temp2;
4339 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4340 }
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4344
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 {
4349 wxRect * resultptr;
4350 resultptr = new wxRect((wxRect &) result);
4351 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4352 }
4353 return resultobj;
4354 fail:
4355 return NULL;
4356 }
4357
4358
4359 static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj;
4361 wxRect *arg1 = (wxRect *) 0 ;
4362 wxRect *arg2 = 0 ;
4363 wxRect *result;
4364 wxRect temp2 ;
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 char *kwnames[] = {
4368 (char *) "self",(char *) "rect", NULL
4369 };
4370
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4374 {
4375 arg2 = &temp2;
4376 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4377 }
4378 {
4379 PyThreadState* __tstate = wxPyBeginAllowThreads();
4380 {
4381 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4382 result = (wxRect *) &_result_ref;
4383 }
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4389 return resultobj;
4390 fail:
4391 return NULL;
4392 }
4393
4394
4395 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj;
4397 wxRect *arg1 = (wxRect *) 0 ;
4398 wxRect *arg2 = 0 ;
4399 bool result;
4400 wxRect temp2 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char *kwnames[] = {
4404 (char *) "self",(char *) "rect", NULL
4405 };
4406
4407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4410 {
4411 arg2 = &temp2;
4412 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4413 }
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 {
4422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4423 }
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxRect *arg1 = (wxRect *) 0 ;
4433 wxRect *arg2 = 0 ;
4434 bool result;
4435 wxRect temp2 ;
4436 PyObject * obj0 = 0 ;
4437 PyObject * obj1 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "self",(char *) "rect", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4445 {
4446 arg2 = &temp2;
4447 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4448 }
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4452
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 {
4457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4458 }
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj;
4467 wxRect *arg1 = (wxRect *) 0 ;
4468 int arg2 ;
4469 int arg3 ;
4470 bool result;
4471 PyObject * obj0 = 0 ;
4472 PyObject * obj1 = 0 ;
4473 PyObject * obj2 = 0 ;
4474 char *kwnames[] = {
4475 (char *) "self",(char *) "x",(char *) "y", NULL
4476 };
4477
4478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4481 arg2 = (int) SWIG_AsInt(obj1);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 arg3 = (int) SWIG_AsInt(obj2);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 {
4493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4494 }
4495 return resultobj;
4496 fail:
4497 return NULL;
4498 }
4499
4500
4501 static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj;
4503 wxRect *arg1 = (wxRect *) 0 ;
4504 wxPoint *arg2 = 0 ;
4505 bool result;
4506 wxPoint temp2 ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "self",(char *) "pt", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4516 {
4517 arg2 = &temp2;
4518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4519 }
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 {
4528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4529 }
4530 return resultobj;
4531 fail:
4532 return NULL;
4533 }
4534
4535
4536 static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj;
4538 wxRect *arg1 = (wxRect *) 0 ;
4539 wxRect *arg2 = 0 ;
4540 bool result;
4541 wxRect temp2 ;
4542 PyObject * obj0 = 0 ;
4543 PyObject * obj1 = 0 ;
4544 char *kwnames[] = {
4545 (char *) "self",(char *) "rect", NULL
4546 };
4547
4548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4551 {
4552 arg2 = &temp2;
4553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4554 }
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 {
4563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4564 }
4565 return resultobj;
4566 fail:
4567 return NULL;
4568 }
4569
4570
4571 static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj;
4573 wxRect *arg1 = (wxRect *) 0 ;
4574 int arg2 ;
4575 PyObject * obj0 = 0 ;
4576 PyObject * obj1 = 0 ;
4577 char *kwnames[] = {
4578 (char *) "self",(char *) "x", NULL
4579 };
4580
4581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4584 arg2 = (int) SWIG_AsInt(obj1);
4585 if (PyErr_Occurred()) SWIG_fail;
4586 if (arg1) (arg1)->x = arg2;
4587
4588 Py_INCREF(Py_None); resultobj = Py_None;
4589 return resultobj;
4590 fail:
4591 return NULL;
4592 }
4593
4594
4595 static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4596 PyObject *resultobj;
4597 wxRect *arg1 = (wxRect *) 0 ;
4598 int result;
4599 PyObject * obj0 = 0 ;
4600 char *kwnames[] = {
4601 (char *) "self", NULL
4602 };
4603
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4607 result = (int) ((arg1)->x);
4608
4609 resultobj = SWIG_FromInt((int)result);
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject *resultobj;
4618 wxRect *arg1 = (wxRect *) 0 ;
4619 int arg2 ;
4620 PyObject * obj0 = 0 ;
4621 PyObject * obj1 = 0 ;
4622 char *kwnames[] = {
4623 (char *) "self",(char *) "y", NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4629 arg2 = (int) SWIG_AsInt(obj1);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 if (arg1) (arg1)->y = arg2;
4632
4633 Py_INCREF(Py_None); resultobj = Py_None;
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj;
4642 wxRect *arg1 = (wxRect *) 0 ;
4643 int result;
4644 PyObject * obj0 = 0 ;
4645 char *kwnames[] = {
4646 (char *) "self", NULL
4647 };
4648
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4652 result = (int) ((arg1)->y);
4653
4654 resultobj = SWIG_FromInt((int)result);
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 wxRect *arg1 = (wxRect *) 0 ;
4664 int arg2 ;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 char *kwnames[] = {
4668 (char *) "self",(char *) "width", NULL
4669 };
4670
4671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4674 arg2 = (int) SWIG_AsInt(obj1);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 if (arg1) (arg1)->width = arg2;
4677
4678 Py_INCREF(Py_None); resultobj = Py_None;
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj;
4687 wxRect *arg1 = (wxRect *) 0 ;
4688 int result;
4689 PyObject * obj0 = 0 ;
4690 char *kwnames[] = {
4691 (char *) "self", NULL
4692 };
4693
4694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4697 result = (int) ((arg1)->width);
4698
4699 resultobj = SWIG_FromInt((int)result);
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4707 PyObject *resultobj;
4708 wxRect *arg1 = (wxRect *) 0 ;
4709 int arg2 ;
4710 PyObject * obj0 = 0 ;
4711 PyObject * obj1 = 0 ;
4712 char *kwnames[] = {
4713 (char *) "self",(char *) "height", NULL
4714 };
4715
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4719 arg2 = (int) SWIG_AsInt(obj1);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 if (arg1) (arg1)->height = arg2;
4722
4723 Py_INCREF(Py_None); resultobj = Py_None;
4724 return resultobj;
4725 fail:
4726 return NULL;
4727 }
4728
4729
4730 static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4731 PyObject *resultobj;
4732 wxRect *arg1 = (wxRect *) 0 ;
4733 int result;
4734 PyObject * obj0 = 0 ;
4735 char *kwnames[] = {
4736 (char *) "self", NULL
4737 };
4738
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4742 result = (int) ((arg1)->height);
4743
4744 resultobj = SWIG_FromInt((int)result);
4745 return resultobj;
4746 fail:
4747 return NULL;
4748 }
4749
4750
4751 static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject *resultobj;
4753 wxRect *arg1 = (wxRect *) 0 ;
4754 int arg2 = (int) 0 ;
4755 int arg3 = (int) 0 ;
4756 int arg4 = (int) 0 ;
4757 int arg5 = (int) 0 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 PyObject * obj2 = 0 ;
4761 PyObject * obj3 = 0 ;
4762 PyObject * obj4 = 0 ;
4763 char *kwnames[] = {
4764 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4765 };
4766
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4770 if (obj1) {
4771 arg2 = (int) SWIG_AsInt(obj1);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 if (obj2) {
4775 arg3 = (int) SWIG_AsInt(obj2);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 if (obj3) {
4779 arg4 = (int) SWIG_AsInt(obj3);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 if (obj4) {
4783 arg5 = (int) SWIG_AsInt(obj4);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 {
4787 PyThreadState* __tstate = wxPyBeginAllowThreads();
4788 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4789
4790 wxPyEndAllowThreads(__tstate);
4791 if (PyErr_Occurred()) SWIG_fail;
4792 }
4793 Py_INCREF(Py_None); resultobj = Py_None;
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 wxRect *arg1 = (wxRect *) 0 ;
4803 PyObject *result;
4804 PyObject * obj0 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "self", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (PyObject *)wxRect_Get(arg1);
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 resultobj = result;
4820 return resultobj;
4821 fail:
4822 return NULL;
4823 }
4824
4825
4826 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4827 PyObject *obj;
4828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4829 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4830 Py_INCREF(obj);
4831 return Py_BuildValue((char *)"");
4832 }
4833 static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4834 PyObject *resultobj;
4835 wxRect *arg1 = (wxRect *) 0 ;
4836 wxRect *arg2 = (wxRect *) 0 ;
4837 PyObject *result;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char *kwnames[] = {
4841 (char *) "r1",(char *) "r2", NULL
4842 };
4843
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
4848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4849 {
4850 if (!wxPyCheckForApp()) SWIG_fail;
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (PyObject *)wxIntersectRect(arg1,arg2);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = result;
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj;
4866 double arg1 = (double) 0.0 ;
4867 double arg2 = (double) 0.0 ;
4868 wxPoint2D *result;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char *kwnames[] = {
4872 (char *) "x",(char *) "y", NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4876 if (obj0) {
4877 arg1 = (double) SWIG_AsDouble(obj0);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 }
4880 if (obj1) {
4881 arg2 = (double) SWIG_AsDouble(obj1);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4887
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4899 PyObject *resultobj;
4900 wxPoint2D *arg1 = 0 ;
4901 wxPoint2D *result;
4902 wxPoint2D temp1 ;
4903 PyObject * obj0 = 0 ;
4904 char *kwnames[] = {
4905 (char *) "pt", NULL
4906 };
4907
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4909 {
4910 arg1 = &temp1;
4911 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4912 }
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4916
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj;
4929 wxPoint *arg1 = 0 ;
4930 wxPoint2D *result;
4931 wxPoint temp1 ;
4932 PyObject * obj0 = 0 ;
4933 char *kwnames[] = {
4934 (char *) "pt", NULL
4935 };
4936
4937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4938 {
4939 arg1 = &temp1;
4940 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4941 }
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4945
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4950 return resultobj;
4951 fail:
4952 return NULL;
4953 }
4954
4955
4956 static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4957 PyObject *resultobj;
4958 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4959 int *arg2 = (int *) 0 ;
4960 int *arg3 = (int *) 0 ;
4961 int temp2 ;
4962 int temp3 ;
4963 PyObject * obj0 = 0 ;
4964 char *kwnames[] = {
4965 (char *) "self", NULL
4966 };
4967
4968 arg2 = &temp2;
4969 arg3 = &temp3;
4970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 Py_INCREF(Py_None); resultobj = Py_None;
4981 {
4982 PyObject *o = PyInt_FromLong((long) (*arg2));
4983 resultobj = t_output_helper(resultobj,o);
4984 }
4985 {
4986 PyObject *o = PyInt_FromLong((long) (*arg3));
4987 resultobj = t_output_helper(resultobj,o);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4998 int *arg2 = (int *) 0 ;
4999 int *arg3 = (int *) 0 ;
5000 int temp2 ;
5001 int temp3 ;
5002 PyObject * obj0 = 0 ;
5003 char *kwnames[] = {
5004 (char *) "self", NULL
5005 };
5006
5007 arg2 = &temp2;
5008 arg3 = &temp3;
5009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
5010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 Py_INCREF(Py_None); resultobj = Py_None;
5020 {
5021 PyObject *o = PyInt_FromLong((long) (*arg2));
5022 resultobj = t_output_helper(resultobj,o);
5023 }
5024 {
5025 PyObject *o = PyInt_FromLong((long) (*arg3));
5026 resultobj = t_output_helper(resultobj,o);
5027 }
5028 return resultobj;
5029 fail:
5030 return NULL;
5031 }
5032
5033
5034 static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj;
5036 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5037 double result;
5038 PyObject * obj0 = 0 ;
5039 char *kwnames[] = {
5040 (char *) "self", NULL
5041 };
5042
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
5044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_FromDouble((double)result);
5054 return resultobj;
5055 fail:
5056 return NULL;
5057 }
5058
5059
5060 static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5063 double result;
5064 PyObject * obj0 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
5075
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 resultobj = SWIG_FromDouble((double)result);
5080 return resultobj;
5081 fail:
5082 return NULL;
5083 }
5084
5085
5086 static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5087 PyObject *resultobj;
5088 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5089 double arg2 ;
5090 PyObject * obj0 = 0 ;
5091 PyObject * obj1 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "self",(char *) "length", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5099 arg2 = (double) SWIG_AsDouble(obj1);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 (arg1)->SetVectorLength(arg2);
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 Py_INCREF(Py_None); resultobj = Py_None;
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5116 PyObject *resultobj;
5117 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5118 double arg2 ;
5119 PyObject * obj0 = 0 ;
5120 PyObject * obj1 = 0 ;
5121 char *kwnames[] = {
5122 (char *) "self",(char *) "degrees", NULL
5123 };
5124
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5128 arg2 = (double) SWIG_AsDouble(obj1);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 (arg1)->SetVectorAngle(arg2);
5133
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 Py_INCREF(Py_None); resultobj = Py_None;
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
5145 PyObject *resultobj;
5146 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5147 wxPoint2D *arg2 = 0 ;
5148 double result;
5149 wxPoint2D temp2 ;
5150 PyObject * obj0 = 0 ;
5151 PyObject * obj1 = 0 ;
5152 char *kwnames[] = {
5153 (char *) "self",(char *) "pt", NULL
5154 };
5155
5156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5159 {
5160 arg2 = &temp2;
5161 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5162 }
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_FromDouble((double)result);
5171 return resultobj;
5172 fail:
5173 return NULL;
5174 }
5175
5176
5177 static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
5179 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5180 wxPoint2D *arg2 = 0 ;
5181 double result;
5182 wxPoint2D temp2 ;
5183 PyObject * obj0 = 0 ;
5184 PyObject * obj1 = 0 ;
5185 char *kwnames[] = {
5186 (char *) "self",(char *) "pt", NULL
5187 };
5188
5189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5192 {
5193 arg2 = &temp2;
5194 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5195 }
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 resultobj = SWIG_FromDouble((double)result);
5204 return resultobj;
5205 fail:
5206 return NULL;
5207 }
5208
5209
5210 static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5213 wxPoint2D *arg2 = 0 ;
5214 double result;
5215 wxPoint2D temp2 ;
5216 PyObject * obj0 = 0 ;
5217 PyObject * obj1 = 0 ;
5218 char *kwnames[] = {
5219 (char *) "self",(char *) "vec", NULL
5220 };
5221
5222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5225 {
5226 arg2 = &temp2;
5227 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5228 }
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_FromDouble((double)result);
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj;
5245 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5246 wxPoint2D *arg2 = 0 ;
5247 double result;
5248 wxPoint2D temp2 ;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 char *kwnames[] = {
5252 (char *) "self",(char *) "vec", NULL
5253 };
5254
5255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5258 {
5259 arg2 = &temp2;
5260 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5261 }
5262 {
5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
5264 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5265
5266 wxPyEndAllowThreads(__tstate);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 }
5269 resultobj = SWIG_FromDouble((double)result);
5270 return resultobj;
5271 fail:
5272 return NULL;
5273 }
5274
5275
5276 static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
5277 PyObject *resultobj;
5278 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5279 wxPoint2D result;
5280 PyObject * obj0 = 0 ;
5281 char *kwnames[] = {
5282 (char *) "self", NULL
5283 };
5284
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 result = (arg1)->operator -();
5291
5292 wxPyEndAllowThreads(__tstate);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 {
5296 wxPoint2D * resultptr;
5297 resultptr = new wxPoint2D((wxPoint2D &) result);
5298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5299 }
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5309 wxPoint2D *arg2 = 0 ;
5310 wxPoint2D *result;
5311 wxPoint2D temp2 ;
5312 PyObject * obj0 = 0 ;
5313 PyObject * obj1 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self",(char *) "pt", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5321 {
5322 arg2 = &temp2;
5323 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5324 }
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 {
5328 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5329 result = (wxPoint2D *) &_result_ref;
5330 }
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5345 wxPoint2D *arg2 = 0 ;
5346 wxPoint2D *result;
5347 wxPoint2D temp2 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char *kwnames[] = {
5351 (char *) "self",(char *) "pt", NULL
5352 };
5353
5354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5357 {
5358 arg2 = &temp2;
5359 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 {
5364 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5365 result = (wxPoint2D *) &_result_ref;
5366 }
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5381 wxPoint2D *arg2 = 0 ;
5382 wxPoint2D *result;
5383 wxPoint2D temp2 ;
5384 PyObject * obj0 = 0 ;
5385 PyObject * obj1 = 0 ;
5386 char *kwnames[] = {
5387 (char *) "self",(char *) "pt", NULL
5388 };
5389
5390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5393 {
5394 arg2 = &temp2;
5395 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5396 }
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 {
5400 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5401 result = (wxPoint2D *) &_result_ref;
5402 }
5403
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5408 return resultobj;
5409 fail:
5410 return NULL;
5411 }
5412
5413
5414 static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj;
5416 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5417 wxPoint2D *arg2 = 0 ;
5418 wxPoint2D *result;
5419 wxPoint2D temp2 ;
5420 PyObject * obj0 = 0 ;
5421 PyObject * obj1 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self",(char *) "pt", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5429 {
5430 arg2 = &temp2;
5431 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5432 }
5433 {
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 {
5436 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5437 result = (wxPoint2D *) &_result_ref;
5438 }
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5453 wxPoint2D *arg2 = 0 ;
5454 bool result;
5455 wxPoint2D temp2 ;
5456 PyObject * obj0 = 0 ;
5457 PyObject * obj1 = 0 ;
5458 char *kwnames[] = {
5459 (char *) "self",(char *) "pt", NULL
5460 };
5461
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5465 {
5466 arg2 = &temp2;
5467 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5468 }
5469 {
5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
5471 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5472
5473 wxPyEndAllowThreads(__tstate);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 }
5476 {
5477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5478 }
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj;
5487 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5488 wxPoint2D *arg2 = 0 ;
5489 bool result;
5490 wxPoint2D temp2 ;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "pt", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",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 = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5513 }
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj;
5522 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5523 double arg2 ;
5524 PyObject * obj0 = 0 ;
5525 PyObject * obj1 = 0 ;
5526 char *kwnames[] = {
5527 (char *) "self",(char *) "m_x", NULL
5528 };
5529
5530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5533 arg2 = (double) SWIG_AsDouble(obj1);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 if (arg1) (arg1)->m_x = arg2;
5536
5537 Py_INCREF(Py_None); resultobj = Py_None;
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5547 double result;
5548 PyObject * obj0 = 0 ;
5549 char *kwnames[] = {
5550 (char *) "self", NULL
5551 };
5552
5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5556 result = (double) ((arg1)->m_x);
5557
5558 resultobj = SWIG_FromDouble((double)result);
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5566 PyObject *resultobj;
5567 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5568 double arg2 ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self",(char *) "m_y", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5578 arg2 = (double) SWIG_AsDouble(obj1);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 if (arg1) (arg1)->m_y = arg2;
5581
5582 Py_INCREF(Py_None); resultobj = Py_None;
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5592 double result;
5593 PyObject * obj0 = 0 ;
5594 char *kwnames[] = {
5595 (char *) "self", NULL
5596 };
5597
5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 result = (double) ((arg1)->m_y);
5602
5603 resultobj = SWIG_FromDouble((double)result);
5604 return resultobj;
5605 fail:
5606 return NULL;
5607 }
5608
5609
5610 static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5611 PyObject *resultobj;
5612 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5613 double arg2 = (double) 0 ;
5614 double arg3 = (double) 0 ;
5615 PyObject * obj0 = 0 ;
5616 PyObject * obj1 = 0 ;
5617 PyObject * obj2 = 0 ;
5618 char *kwnames[] = {
5619 (char *) "self",(char *) "x",(char *) "y", NULL
5620 };
5621
5622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5625 if (obj1) {
5626 arg2 = (double) SWIG_AsDouble(obj1);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 if (obj2) {
5630 arg3 = (double) SWIG_AsDouble(obj2);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 wxPoint2D_Set(arg1,arg2,arg3);
5636
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 Py_INCREF(Py_None); resultobj = Py_None;
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5650 PyObject *result;
5651 PyObject * obj0 = 0 ;
5652 char *kwnames[] = {
5653 (char *) "self", NULL
5654 };
5655
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 result = (PyObject *)wxPoint2D_Get(arg1);
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 resultobj = result;
5667 return resultobj;
5668 fail:
5669 return NULL;
5670 }
5671
5672
5673 static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5674 PyObject *obj;
5675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5676 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5677 Py_INCREF(obj);
5678 return Py_BuildValue((char *)"");
5679 }
5680 static int _wrap_DefaultPosition_set(PyObject *_val) {
5681 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5682 return 1;
5683 }
5684
5685
5686 static PyObject *_wrap_DefaultPosition_get() {
5687 PyObject *pyobj;
5688
5689 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5690 return pyobj;
5691 }
5692
5693
5694 static int _wrap_DefaultSize_set(PyObject *_val) {
5695 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5696 return 1;
5697 }
5698
5699
5700 static PyObject *_wrap_DefaultSize_get() {
5701 PyObject *pyobj;
5702
5703 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5704 return pyobj;
5705 }
5706
5707
5708 static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5709 PyObject *resultobj;
5710 PyObject *arg1 = (PyObject *) 0 ;
5711 wxPyInputStream *result;
5712 PyObject * obj0 = 0 ;
5713 char *kwnames[] = {
5714 (char *) "p", NULL
5715 };
5716
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5718 arg1 = obj0;
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
5727 return resultobj;
5728 fail:
5729 return NULL;
5730 }
5731
5732
5733 static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5734 PyObject *resultobj;
5735 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5736 PyObject * obj0 = 0 ;
5737 char *kwnames[] = {
5738 (char *) "self", NULL
5739 };
5740
5741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 (arg1)->close();
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 Py_INCREF(Py_None); resultobj = Py_None;
5752 return resultobj;
5753 fail:
5754 return NULL;
5755 }
5756
5757
5758 static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj;
5760 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5761 PyObject * obj0 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 (arg1)->flush();
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 Py_INCREF(Py_None); resultobj = Py_None;
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj;
5785 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5786 bool result;
5787 PyObject * obj0 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self", NULL
5790 };
5791
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
5797 result = (bool)(arg1)->eof();
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 {
5803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5804 }
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj;
5813 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5814 int arg2 = (int) -1 ;
5815 PyObject *result;
5816 PyObject * obj0 = 0 ;
5817 PyObject * obj1 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self",(char *) "size", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5825 if (obj1) {
5826 arg2 = (int) SWIG_AsInt(obj1);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 {
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = (PyObject *)(arg1)->read(arg2);
5832
5833 wxPyEndAllowThreads(__tstate);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 }
5836 resultobj = result;
5837 return resultobj;
5838 fail:
5839 return NULL;
5840 }
5841
5842
5843 static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5844 PyObject *resultobj;
5845 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5846 int arg2 = (int) -1 ;
5847 PyObject *result;
5848 PyObject * obj0 = 0 ;
5849 PyObject * obj1 = 0 ;
5850 char *kwnames[] = {
5851 (char *) "self",(char *) "size", NULL
5852 };
5853
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
5855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5857 if (obj1) {
5858 arg2 = (int) SWIG_AsInt(obj1);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (PyObject *)(arg1)->readline(arg2);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = result;
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5878 int arg2 = (int) -1 ;
5879 PyObject *result;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char *kwnames[] = {
5883 (char *) "self",(char *) "sizehint", NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
5887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5889 if (obj1) {
5890 arg2 = (int) SWIG_AsInt(obj1);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = (PyObject *)(arg1)->readlines(arg2);
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = result;
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj;
5909 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5910 int arg2 ;
5911 int arg3 = (int) 0 ;
5912 PyObject * obj0 = 0 ;
5913 PyObject * obj1 = 0 ;
5914 PyObject * obj2 = 0 ;
5915 char *kwnames[] = {
5916 (char *) "self",(char *) "offset",(char *) "whence", NULL
5917 };
5918
5919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
5920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5922 arg2 = (int) SWIG_AsInt(obj1);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 if (obj2) {
5925 arg3 = (int) SWIG_AsInt(obj2);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 {
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 (arg1)->seek(arg2,arg3);
5931
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 Py_INCREF(Py_None); resultobj = Py_None;
5936 return resultobj;
5937 fail:
5938 return NULL;
5939 }
5940
5941
5942 static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5943 PyObject *resultobj;
5944 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5945 int result;
5946 PyObject * obj0 = 0 ;
5947 char *kwnames[] = {
5948 (char *) "self", NULL
5949 };
5950
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (int)(arg1)->tell();
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = SWIG_FromInt((int)result);
5962 return resultobj;
5963 fail:
5964 return NULL;
5965 }
5966
5967
5968 static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5969 PyObject *resultobj;
5970 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5971 char result;
5972 PyObject * obj0 = 0 ;
5973 char *kwnames[] = {
5974 (char *) "self", NULL
5975 };
5976
5977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = (char)(arg1)->Peek();
5983
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_FromChar((char)result);
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5995 PyObject *resultobj;
5996 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5997 char result;
5998 PyObject * obj0 = 0 ;
5999 char *kwnames[] = {
6000 (char *) "self", NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
6004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (char)(arg1)->GetC();
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_FromChar((char)result);
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj;
6022 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6023 size_t result;
6024 PyObject * obj0 = 0 ;
6025 char *kwnames[] = {
6026 (char *) "self", NULL
6027 };
6028
6029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
6030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 result = (size_t)(arg1)->LastRead();
6035
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj;
6048 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6049 bool result;
6050 PyObject * obj0 = 0 ;
6051 char *kwnames[] = {
6052 (char *) "self", NULL
6053 };
6054
6055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
6056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->CanRead();
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 {
6066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6067 }
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6077 bool result;
6078 PyObject * obj0 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (bool)(arg1)->Eof();
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 {
6094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6095 }
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6105 char arg2 ;
6106 bool result;
6107 PyObject * obj0 = 0 ;
6108 PyObject * obj1 = 0 ;
6109 char *kwnames[] = {
6110 (char *) "self",(char *) "c", NULL
6111 };
6112
6113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6116 arg2 = (char) SWIG_AsChar(obj1);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (bool)(arg1)->Ungetch(arg2);
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 {
6126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6127 }
6128 return resultobj;
6129 fail:
6130 return NULL;
6131 }
6132
6133
6134 static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj;
6136 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6137 long arg2 ;
6138 int arg3 = (int) wxFromStart ;
6139 long result;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 PyObject * obj2 = 0 ;
6143 char *kwnames[] = {
6144 (char *) "self",(char *) "pos",(char *) "mode", NULL
6145 };
6146
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6150 arg2 = (long) SWIG_AsLong(obj1);
6151 if (PyErr_Occurred()) SWIG_fail;
6152 if (obj2) {
6153 arg3 = (wxSeekMode) SWIG_AsInt(obj2);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 {
6157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6158 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6159
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_FromLong((long)result);
6164 return resultobj;
6165 fail:
6166 return NULL;
6167 }
6168
6169
6170 static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj;
6172 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6173 long result;
6174 PyObject * obj0 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "self", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 result = (long)(arg1)->TellI();
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 resultobj = SWIG_FromLong((long)result);
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
6197 PyObject *obj;
6198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6199 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6200 Py_INCREF(obj);
6201 return Py_BuildValue((char *)"");
6202 }
6203 static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj;
6205 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6206 PyObject *arg2 = (PyObject *) 0 ;
6207 PyObject * obj0 = 0 ;
6208 PyObject * obj1 = 0 ;
6209 char *kwnames[] = {
6210 (char *) "self",(char *) "obj", NULL
6211 };
6212
6213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6216 arg2 = obj1;
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 wxOutputStream_write(arg1,arg2);
6220
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 Py_INCREF(Py_None); resultobj = Py_None;
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
6232 PyObject *obj;
6233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6234 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6235 Py_INCREF(obj);
6236 return Py_BuildValue((char *)"");
6237 }
6238 static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj;
6240 wxInputStream *arg1 = (wxInputStream *) 0 ;
6241 wxString *arg2 = 0 ;
6242 wxString *arg3 = 0 ;
6243 wxString *arg4 = 0 ;
6244 wxDateTime arg5 ;
6245 wxFSFile *result;
6246 wxPyInputStream *temp1 ;
6247 bool created1 ;
6248 bool temp2 = False ;
6249 bool temp3 = False ;
6250 bool temp4 = False ;
6251 wxDateTime *argp5 ;
6252 PyObject * obj0 = 0 ;
6253 PyObject * obj1 = 0 ;
6254 PyObject * obj2 = 0 ;
6255 PyObject * obj3 = 0 ;
6256 PyObject * obj4 = 0 ;
6257 char *kwnames[] = {
6258 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6259 };
6260
6261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6262 {
6263 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6264 arg1 = temp1->m_wxis;
6265 created1 = False;
6266 } else {
6267 PyErr_Clear(); // clear the failure of the wxPyConvert above
6268 arg1 = wxPyCBInputStream_create(obj0, False);
6269 if (arg1 == NULL) {
6270 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6271 SWIG_fail;
6272 }
6273 created1 = True;
6274 }
6275 }
6276 {
6277 arg2 = wxString_in_helper(obj1);
6278 if (arg2 == NULL) SWIG_fail;
6279 temp2 = True;
6280 }
6281 {
6282 arg3 = wxString_in_helper(obj2);
6283 if (arg3 == NULL) SWIG_fail;
6284 temp3 = True;
6285 }
6286 {
6287 arg4 = wxString_in_helper(obj3);
6288 if (arg4 == NULL) SWIG_fail;
6289 temp4 = True;
6290 }
6291 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6292 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6293 arg5 = *argp5;
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 {
6302 resultobj = wxPyMake_wxObject(result, 1);
6303 }
6304 {
6305 if (created1)
6306 delete arg1;
6307 }
6308 {
6309 if (temp2)
6310 delete arg2;
6311 }
6312 {
6313 if (temp3)
6314 delete arg3;
6315 }
6316 {
6317 if (temp4)
6318 delete arg4;
6319 }
6320 return resultobj;
6321 fail:
6322 {
6323 if (created1)
6324 delete arg1;
6325 }
6326 {
6327 if (temp2)
6328 delete arg2;
6329 }
6330 {
6331 if (temp3)
6332 delete arg3;
6333 }
6334 {
6335 if (temp4)
6336 delete arg4;
6337 }
6338 return NULL;
6339 }
6340
6341
6342 static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj;
6344 wxFSFile *arg1 = (wxFSFile *) 0 ;
6345 PyObject * obj0 = 0 ;
6346 char *kwnames[] = {
6347 (char *) "self", NULL
6348 };
6349
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 delete arg1;
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 Py_INCREF(Py_None); resultobj = Py_None;
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxFSFile *arg1 = (wxFSFile *) 0 ;
6370 wxInputStream *result;
6371 PyObject * obj0 = 0 ;
6372 char *kwnames[] = {
6373 (char *) "self", NULL
6374 };
6375
6376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 result = (wxInputStream *)(arg1)->GetStream();
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 {
6387 wxPyInputStream * _ptr = NULL;
6388
6389 if (result) {
6390 _ptr = new wxPyInputStream(result);
6391 }
6392 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
6393 }
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj;
6402 wxFSFile *arg1 = (wxFSFile *) 0 ;
6403 wxString *result;
6404 PyObject * obj0 = 0 ;
6405 char *kwnames[] = {
6406 (char *) "self", NULL
6407 };
6408
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 {
6415 wxString const &_result_ref = (arg1)->GetMimeType();
6416 result = (wxString *) &_result_ref;
6417 }
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 #if wxUSE_UNICODE
6424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6425 #else
6426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6427 #endif
6428 }
6429 return resultobj;
6430 fail:
6431 return NULL;
6432 }
6433
6434
6435 static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj;
6437 wxFSFile *arg1 = (wxFSFile *) 0 ;
6438 wxString *result;
6439 PyObject * obj0 = 0 ;
6440 char *kwnames[] = {
6441 (char *) "self", NULL
6442 };
6443
6444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 {
6450 wxString const &_result_ref = (arg1)->GetLocation();
6451 result = (wxString *) &_result_ref;
6452 }
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 {
6458 #if wxUSE_UNICODE
6459 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6460 #else
6461 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6462 #endif
6463 }
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6471 PyObject *resultobj;
6472 wxFSFile *arg1 = (wxFSFile *) 0 ;
6473 wxString *result;
6474 PyObject * obj0 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 {
6485 wxString const &_result_ref = (arg1)->GetAnchor();
6486 result = (wxString *) &_result_ref;
6487 }
6488
6489 wxPyEndAllowThreads(__tstate);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 {
6493 #if wxUSE_UNICODE
6494 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6495 #else
6496 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6497 #endif
6498 }
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj;
6507 wxFSFile *arg1 = (wxFSFile *) 0 ;
6508 wxDateTime result;
6509 PyObject * obj0 = 0 ;
6510 char *kwnames[] = {
6511 (char *) "self", NULL
6512 };
6513
6514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 result = (arg1)->GetModificationTime();
6520
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 {
6525 wxDateTime * resultptr;
6526 resultptr = new wxDateTime((wxDateTime &) result);
6527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6528 }
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6536 PyObject *obj;
6537 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6538 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6539 Py_INCREF(obj);
6540 return Py_BuildValue((char *)"");
6541 }
6542 static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6543 PyObject *obj;
6544 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6545 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6546 Py_INCREF(obj);
6547 return Py_BuildValue((char *)"");
6548 }
6549 static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6550 PyObject *resultobj;
6551 wxPyFileSystemHandler *result;
6552 char *kwnames[] = {
6553 NULL
6554 };
6555
6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj;
6573 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6574 PyObject *arg2 = (PyObject *) 0 ;
6575 PyObject *arg3 = (PyObject *) 0 ;
6576 PyObject * obj0 = 0 ;
6577 PyObject * obj1 = 0 ;
6578 PyObject * obj2 = 0 ;
6579 char *kwnames[] = {
6580 (char *) "self",(char *) "self",(char *) "_class", NULL
6581 };
6582
6583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6586 arg2 = obj1;
6587 arg3 = obj2;
6588 {
6589 PyThreadState* __tstate = wxPyBeginAllowThreads();
6590 (arg1)->_setCallbackInfo(arg2,arg3);
6591
6592 wxPyEndAllowThreads(__tstate);
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 Py_INCREF(Py_None); resultobj = Py_None;
6596 return resultobj;
6597 fail:
6598 return NULL;
6599 }
6600
6601
6602 static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj;
6604 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6605 wxString *arg2 = 0 ;
6606 bool result;
6607 bool temp2 = False ;
6608 PyObject * obj0 = 0 ;
6609 PyObject * obj1 = 0 ;
6610 char *kwnames[] = {
6611 (char *) "self",(char *) "location", NULL
6612 };
6613
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6617 {
6618 arg2 = wxString_in_helper(obj1);
6619 if (arg2 == NULL) SWIG_fail;
6620 temp2 = True;
6621 }
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 {
6630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6631 }
6632 {
6633 if (temp2)
6634 delete arg2;
6635 }
6636 return resultobj;
6637 fail:
6638 {
6639 if (temp2)
6640 delete arg2;
6641 }
6642 return NULL;
6643 }
6644
6645
6646 static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6647 PyObject *resultobj;
6648 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6649 wxFileSystem *arg2 = 0 ;
6650 wxString *arg3 = 0 ;
6651 wxFSFile *result;
6652 bool temp3 = False ;
6653 PyObject * obj0 = 0 ;
6654 PyObject * obj1 = 0 ;
6655 PyObject * obj2 = 0 ;
6656 char *kwnames[] = {
6657 (char *) "self",(char *) "fs",(char *) "location", NULL
6658 };
6659
6660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6664 SWIG_POINTER_EXCEPTION | 0)) == -1)
6665 SWIG_fail;
6666 if (arg2 == NULL) {
6667 PyErr_SetString(PyExc_TypeError,"null reference");
6668 SWIG_fail;
6669 }
6670 {
6671 arg3 = wxString_in_helper(obj2);
6672 if (arg3 == NULL) SWIG_fail;
6673 temp3 = True;
6674 }
6675 {
6676 PyThreadState* __tstate = wxPyBeginAllowThreads();
6677 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6678
6679 wxPyEndAllowThreads(__tstate);
6680 if (PyErr_Occurred()) SWIG_fail;
6681 }
6682 {
6683 resultobj = wxPyMake_wxObject(result, 1);
6684 }
6685 {
6686 if (temp3)
6687 delete arg3;
6688 }
6689 return resultobj;
6690 fail:
6691 {
6692 if (temp3)
6693 delete arg3;
6694 }
6695 return NULL;
6696 }
6697
6698
6699 static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6700 PyObject *resultobj;
6701 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6702 wxString *arg2 = 0 ;
6703 int arg3 = (int) 0 ;
6704 wxString result;
6705 bool temp2 = False ;
6706 PyObject * obj0 = 0 ;
6707 PyObject * obj1 = 0 ;
6708 PyObject * obj2 = 0 ;
6709 char *kwnames[] = {
6710 (char *) "self",(char *) "spec",(char *) "flags", NULL
6711 };
6712
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6716 {
6717 arg2 = wxString_in_helper(obj1);
6718 if (arg2 == NULL) SWIG_fail;
6719 temp2 = True;
6720 }
6721 if (obj2) {
6722 arg3 = (int) SWIG_AsInt(obj2);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 {
6726 PyThreadState* __tstate = wxPyBeginAllowThreads();
6727 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6728
6729 wxPyEndAllowThreads(__tstate);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 {
6733 #if wxUSE_UNICODE
6734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6735 #else
6736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6737 #endif
6738 }
6739 {
6740 if (temp2)
6741 delete arg2;
6742 }
6743 return resultobj;
6744 fail:
6745 {
6746 if (temp2)
6747 delete arg2;
6748 }
6749 return NULL;
6750 }
6751
6752
6753 static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6756 wxString result;
6757 PyObject * obj0 = 0 ;
6758 char *kwnames[] = {
6759 (char *) "self", NULL
6760 };
6761
6762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6765 {
6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
6767 result = (arg1)->FindNext();
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 {
6773 #if wxUSE_UNICODE
6774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6775 #else
6776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6777 #endif
6778 }
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj;
6787 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6788 wxString *arg2 = 0 ;
6789 wxString result;
6790 bool temp2 = False ;
6791 PyObject * obj0 = 0 ;
6792 PyObject * obj1 = 0 ;
6793 char *kwnames[] = {
6794 (char *) "self",(char *) "location", NULL
6795 };
6796
6797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6800 {
6801 arg2 = wxString_in_helper(obj1);
6802 if (arg2 == NULL) SWIG_fail;
6803 temp2 = True;
6804 }
6805 {
6806 PyThreadState* __tstate = wxPyBeginAllowThreads();
6807 result = (arg1)->GetProtocol((wxString const &)*arg2);
6808
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 {
6813 #if wxUSE_UNICODE
6814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6815 #else
6816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6817 #endif
6818 }
6819 {
6820 if (temp2)
6821 delete arg2;
6822 }
6823 return resultobj;
6824 fail:
6825 {
6826 if (temp2)
6827 delete arg2;
6828 }
6829 return NULL;
6830 }
6831
6832
6833 static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6834 PyObject *resultobj;
6835 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6836 wxString *arg2 = 0 ;
6837 wxString result;
6838 bool temp2 = False ;
6839 PyObject * obj0 = 0 ;
6840 PyObject * obj1 = 0 ;
6841 char *kwnames[] = {
6842 (char *) "self",(char *) "location", NULL
6843 };
6844
6845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6848 {
6849 arg2 = wxString_in_helper(obj1);
6850 if (arg2 == NULL) SWIG_fail;
6851 temp2 = True;
6852 }
6853 {
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6856
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 {
6861 #if wxUSE_UNICODE
6862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6863 #else
6864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6865 #endif
6866 }
6867 {
6868 if (temp2)
6869 delete arg2;
6870 }
6871 return resultobj;
6872 fail:
6873 {
6874 if (temp2)
6875 delete arg2;
6876 }
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6884 wxString *arg2 = 0 ;
6885 wxString result;
6886 bool temp2 = False ;
6887 PyObject * obj0 = 0 ;
6888 PyObject * obj1 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self",(char *) "location", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 {
6897 arg2 = wxString_in_helper(obj1);
6898 if (arg2 == NULL) SWIG_fail;
6899 temp2 = True;
6900 }
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 result = (arg1)->GetAnchor((wxString const &)*arg2);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 #if wxUSE_UNICODE
6910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6911 #else
6912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6913 #endif
6914 }
6915 {
6916 if (temp2)
6917 delete arg2;
6918 }
6919 return resultobj;
6920 fail:
6921 {
6922 if (temp2)
6923 delete arg2;
6924 }
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6932 wxString *arg2 = 0 ;
6933 wxString result;
6934 bool temp2 = False ;
6935 PyObject * obj0 = 0 ;
6936 PyObject * obj1 = 0 ;
6937 char *kwnames[] = {
6938 (char *) "self",(char *) "location", NULL
6939 };
6940
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6944 {
6945 arg2 = wxString_in_helper(obj1);
6946 if (arg2 == NULL) SWIG_fail;
6947 temp2 = True;
6948 }
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6952
6953 wxPyEndAllowThreads(__tstate);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 {
6957 #if wxUSE_UNICODE
6958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6959 #else
6960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6961 #endif
6962 }
6963 {
6964 if (temp2)
6965 delete arg2;
6966 }
6967 return resultobj;
6968 fail:
6969 {
6970 if (temp2)
6971 delete arg2;
6972 }
6973 return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6978 PyObject *resultobj;
6979 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6980 wxString *arg2 = 0 ;
6981 wxString result;
6982 bool temp2 = False ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self",(char *) "location", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6992 {
6993 arg2 = wxString_in_helper(obj1);
6994 if (arg2 == NULL) SWIG_fail;
6995 temp2 = True;
6996 }
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
7000
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005 #if wxUSE_UNICODE
7006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7007 #else
7008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7009 #endif
7010 }
7011 {
7012 if (temp2)
7013 delete arg2;
7014 }
7015 return resultobj;
7016 fail:
7017 {
7018 if (temp2)
7019 delete arg2;
7020 }
7021 return NULL;
7022 }
7023
7024
7025 static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
7026 PyObject *obj;
7027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7028 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
7029 Py_INCREF(obj);
7030 return Py_BuildValue((char *)"");
7031 }
7032 static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj;
7034 wxFileSystem *result;
7035 char *kwnames[] = {
7036 NULL
7037 };
7038
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 result = (wxFileSystem *)new wxFileSystem();
7043
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = wxPyMake_wxObject(result, 1);
7049 }
7050 return resultobj;
7051 fail:
7052 return NULL;
7053 }
7054
7055
7056 static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj;
7058 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7059 PyObject * obj0 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 delete arg1;
7070
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 Py_INCREF(Py_None); resultobj = Py_None;
7075 return resultobj;
7076 fail:
7077 return NULL;
7078 }
7079
7080
7081 static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7084 wxString *arg2 = 0 ;
7085 bool arg3 = (bool) False ;
7086 bool temp2 = False ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 PyObject * obj2 = 0 ;
7090 char *kwnames[] = {
7091 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7092 };
7093
7094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7097 {
7098 arg2 = wxString_in_helper(obj1);
7099 if (arg2 == NULL) SWIG_fail;
7100 temp2 = True;
7101 }
7102 if (obj2) {
7103 arg3 = (bool) SWIG_AsBool(obj2);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7109
7110 wxPyEndAllowThreads(__tstate);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 Py_INCREF(Py_None); resultobj = Py_None;
7114 {
7115 if (temp2)
7116 delete arg2;
7117 }
7118 return resultobj;
7119 fail:
7120 {
7121 if (temp2)
7122 delete arg2;
7123 }
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7131 wxString result;
7132 PyObject * obj0 = 0 ;
7133 char *kwnames[] = {
7134 (char *) "self", NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 result = (arg1)->GetPath();
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 {
7148 #if wxUSE_UNICODE
7149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7150 #else
7151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7152 #endif
7153 }
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7163 wxString *arg2 = 0 ;
7164 wxFSFile *result;
7165 bool temp2 = False ;
7166 PyObject * obj0 = 0 ;
7167 PyObject * obj1 = 0 ;
7168 char *kwnames[] = {
7169 (char *) "self",(char *) "location", NULL
7170 };
7171
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7175 {
7176 arg2 = wxString_in_helper(obj1);
7177 if (arg2 == NULL) SWIG_fail;
7178 temp2 = True;
7179 }
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 {
7188 resultobj = wxPyMake_wxObject(result, 1);
7189 }
7190 {
7191 if (temp2)
7192 delete arg2;
7193 }
7194 return resultobj;
7195 fail:
7196 {
7197 if (temp2)
7198 delete arg2;
7199 }
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7207 wxString *arg2 = 0 ;
7208 int arg3 = (int) 0 ;
7209 wxString result;
7210 bool temp2 = False ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 PyObject * obj2 = 0 ;
7214 char *kwnames[] = {
7215 (char *) "self",(char *) "spec",(char *) "flags", NULL
7216 };
7217
7218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7221 {
7222 arg2 = wxString_in_helper(obj1);
7223 if (arg2 == NULL) SWIG_fail;
7224 temp2 = True;
7225 }
7226 if (obj2) {
7227 arg3 = (int) SWIG_AsInt(obj2);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 {
7231 PyThreadState* __tstate = wxPyBeginAllowThreads();
7232 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7233
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 {
7238 #if wxUSE_UNICODE
7239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7240 #else
7241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7242 #endif
7243 }
7244 {
7245 if (temp2)
7246 delete arg2;
7247 }
7248 return resultobj;
7249 fail:
7250 {
7251 if (temp2)
7252 delete arg2;
7253 }
7254 return NULL;
7255 }
7256
7257
7258 static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7261 wxString result;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (arg1)->FindNext();
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 {
7278 #if wxUSE_UNICODE
7279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7280 #else
7281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7282 #endif
7283 }
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj;
7292 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7293 PyObject * obj0 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "handler", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 wxFileSystem::AddHandler(arg1);
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 Py_INCREF(Py_None); resultobj = Py_None;
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj;
7317 char *kwnames[] = {
7318 NULL
7319 };
7320
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 wxFileSystem::CleanUpHandlers();
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 Py_INCREF(Py_None); resultobj = Py_None;
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj;
7338 wxString *arg1 = 0 ;
7339 wxString result;
7340 bool temp1 = False ;
7341 PyObject * obj0 = 0 ;
7342 char *kwnames[] = {
7343 (char *) "filename", NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7347 {
7348 arg1 = wxString_in_helper(obj0);
7349 if (arg1 == NULL) SWIG_fail;
7350 temp1 = True;
7351 }
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7355
7356 wxPyEndAllowThreads(__tstate);
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 {
7360 #if wxUSE_UNICODE
7361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7362 #else
7363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7364 #endif
7365 }
7366 {
7367 if (temp1)
7368 delete arg1;
7369 }
7370 return resultobj;
7371 fail:
7372 {
7373 if (temp1)
7374 delete arg1;
7375 }
7376 return NULL;
7377 }
7378
7379
7380 static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
7381 PyObject *obj;
7382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7383 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7384 Py_INCREF(obj);
7385 return Py_BuildValue((char *)"");
7386 }
7387 static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxString *arg1 = 0 ;
7390 wxString result;
7391 bool temp1 = False ;
7392 PyObject * obj0 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "url", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7398 {
7399 arg1 = wxString_in_helper(obj0);
7400 if (arg1 == NULL) SWIG_fail;
7401 temp1 = True;
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 {
7411 #if wxUSE_UNICODE
7412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7413 #else
7414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7415 #endif
7416 }
7417 {
7418 if (temp1)
7419 delete arg1;
7420 }
7421 return resultobj;
7422 fail:
7423 {
7424 if (temp1)
7425 delete arg1;
7426 }
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxInternetFSHandler *result;
7434 char *kwnames[] = {
7435 NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj;
7455 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7456 wxString *arg2 = 0 ;
7457 bool result;
7458 bool temp2 = False ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "self",(char *) "location", NULL
7463 };
7464
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7468 {
7469 arg2 = wxString_in_helper(obj1);
7470 if (arg2 == NULL) SWIG_fail;
7471 temp2 = True;
7472 }
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 {
7481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7482 }
7483 {
7484 if (temp2)
7485 delete arg2;
7486 }
7487 return resultobj;
7488 fail:
7489 {
7490 if (temp2)
7491 delete arg2;
7492 }
7493 return NULL;
7494 }
7495
7496
7497 static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7498 PyObject *resultobj;
7499 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7500 wxFileSystem *arg2 = 0 ;
7501 wxString *arg3 = 0 ;
7502 wxFSFile *result;
7503 bool temp3 = False ;
7504 PyObject * obj0 = 0 ;
7505 PyObject * obj1 = 0 ;
7506 PyObject * obj2 = 0 ;
7507 char *kwnames[] = {
7508 (char *) "self",(char *) "fs",(char *) "location", NULL
7509 };
7510
7511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7515 SWIG_POINTER_EXCEPTION | 0)) == -1)
7516 SWIG_fail;
7517 if (arg2 == NULL) {
7518 PyErr_SetString(PyExc_TypeError,"null reference");
7519 SWIG_fail;
7520 }
7521 {
7522 arg3 = wxString_in_helper(obj2);
7523 if (arg3 == NULL) SWIG_fail;
7524 temp3 = True;
7525 }
7526 {
7527 PyThreadState* __tstate = wxPyBeginAllowThreads();
7528 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7529
7530 wxPyEndAllowThreads(__tstate);
7531 if (PyErr_Occurred()) SWIG_fail;
7532 }
7533 {
7534 resultobj = wxPyMake_wxObject(result, 1);
7535 }
7536 {
7537 if (temp3)
7538 delete arg3;
7539 }
7540 return resultobj;
7541 fail:
7542 {
7543 if (temp3)
7544 delete arg3;
7545 }
7546 return NULL;
7547 }
7548
7549
7550 static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7551 PyObject *obj;
7552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7553 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7554 Py_INCREF(obj);
7555 return Py_BuildValue((char *)"");
7556 }
7557 static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7558 PyObject *resultobj;
7559 wxZipFSHandler *result;
7560 char *kwnames[] = {
7561 NULL
7562 };
7563
7564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (wxZipFSHandler *)new wxZipFSHandler();
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7582 wxString *arg2 = 0 ;
7583 bool result;
7584 bool temp2 = False ;
7585 PyObject * obj0 = 0 ;
7586 PyObject * obj1 = 0 ;
7587 char *kwnames[] = {
7588 (char *) "self",(char *) "location", NULL
7589 };
7590
7591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7594 {
7595 arg2 = wxString_in_helper(obj1);
7596 if (arg2 == NULL) SWIG_fail;
7597 temp2 = True;
7598 }
7599 {
7600 PyThreadState* __tstate = wxPyBeginAllowThreads();
7601 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7602
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 {
7607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7608 }
7609 {
7610 if (temp2)
7611 delete arg2;
7612 }
7613 return resultobj;
7614 fail:
7615 {
7616 if (temp2)
7617 delete arg2;
7618 }
7619 return NULL;
7620 }
7621
7622
7623 static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7624 PyObject *resultobj;
7625 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7626 wxFileSystem *arg2 = 0 ;
7627 wxString *arg3 = 0 ;
7628 wxFSFile *result;
7629 bool temp3 = False ;
7630 PyObject * obj0 = 0 ;
7631 PyObject * obj1 = 0 ;
7632 PyObject * obj2 = 0 ;
7633 char *kwnames[] = {
7634 (char *) "self",(char *) "fs",(char *) "location", NULL
7635 };
7636
7637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7641 SWIG_POINTER_EXCEPTION | 0)) == -1)
7642 SWIG_fail;
7643 if (arg2 == NULL) {
7644 PyErr_SetString(PyExc_TypeError,"null reference");
7645 SWIG_fail;
7646 }
7647 {
7648 arg3 = wxString_in_helper(obj2);
7649 if (arg3 == NULL) SWIG_fail;
7650 temp3 = True;
7651 }
7652 {
7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
7654 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7655
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 {
7660 resultobj = wxPyMake_wxObject(result, 1);
7661 }
7662 {
7663 if (temp3)
7664 delete arg3;
7665 }
7666 return resultobj;
7667 fail:
7668 {
7669 if (temp3)
7670 delete arg3;
7671 }
7672 return NULL;
7673 }
7674
7675
7676 static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7679 wxString *arg2 = 0 ;
7680 int arg3 = (int) 0 ;
7681 wxString result;
7682 bool temp2 = False ;
7683 PyObject * obj0 = 0 ;
7684 PyObject * obj1 = 0 ;
7685 PyObject * obj2 = 0 ;
7686 char *kwnames[] = {
7687 (char *) "self",(char *) "spec",(char *) "flags", NULL
7688 };
7689
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7693 {
7694 arg2 = wxString_in_helper(obj1);
7695 if (arg2 == NULL) SWIG_fail;
7696 temp2 = True;
7697 }
7698 if (obj2) {
7699 arg3 = (int) SWIG_AsInt(obj2);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 #if wxUSE_UNICODE
7711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7712 #else
7713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7714 #endif
7715 }
7716 {
7717 if (temp2)
7718 delete arg2;
7719 }
7720 return resultobj;
7721 fail:
7722 {
7723 if (temp2)
7724 delete arg2;
7725 }
7726 return NULL;
7727 }
7728
7729
7730 static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj;
7732 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7733 wxString result;
7734 PyObject * obj0 = 0 ;
7735 char *kwnames[] = {
7736 (char *) "self", NULL
7737 };
7738
7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (arg1)->FindNext();
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 {
7750 #if wxUSE_UNICODE
7751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7752 #else
7753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7754 #endif
7755 }
7756 return resultobj;
7757 fail:
7758 return NULL;
7759 }
7760
7761
7762 static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7763 PyObject *obj;
7764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7765 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7766 Py_INCREF(obj);
7767 return Py_BuildValue((char *)"");
7768 }
7769 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7770 PyObject *resultobj;
7771 wxString *arg1 = 0 ;
7772 wxImage *arg2 = 0 ;
7773 long arg3 ;
7774 bool temp1 = False ;
7775 PyObject * obj0 = 0 ;
7776 PyObject * obj1 = 0 ;
7777 PyObject * obj2 = 0 ;
7778 char *kwnames[] = {
7779 (char *) "filename",(char *) "image",(char *) "type", NULL
7780 };
7781
7782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7783 {
7784 arg1 = wxString_in_helper(obj0);
7785 if (arg1 == NULL) SWIG_fail;
7786 temp1 = True;
7787 }
7788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1)
7790 SWIG_fail;
7791 if (arg2 == NULL) {
7792 PyErr_SetString(PyExc_TypeError,"null reference");
7793 SWIG_fail;
7794 }
7795 arg3 = (long) SWIG_AsLong(obj2);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 {
7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
7799 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7800
7801 wxPyEndAllowThreads(__tstate);
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
7804 Py_INCREF(Py_None); resultobj = Py_None;
7805 {
7806 if (temp1)
7807 delete arg1;
7808 }
7809 return resultobj;
7810 fail:
7811 {
7812 if (temp1)
7813 delete arg1;
7814 }
7815 return NULL;
7816 }
7817
7818
7819 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7820 PyObject *resultobj;
7821 wxString *arg1 = 0 ;
7822 wxBitmap *arg2 = 0 ;
7823 long arg3 ;
7824 bool temp1 = False ;
7825 PyObject * obj0 = 0 ;
7826 PyObject * obj1 = 0 ;
7827 PyObject * obj2 = 0 ;
7828 char *kwnames[] = {
7829 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7830 };
7831
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
7833 {
7834 arg1 = wxString_in_helper(obj0);
7835 if (arg1 == NULL) SWIG_fail;
7836 temp1 = True;
7837 }
7838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
7839 SWIG_POINTER_EXCEPTION | 0)) == -1)
7840 SWIG_fail;
7841 if (arg2 == NULL) {
7842 PyErr_SetString(PyExc_TypeError,"null reference");
7843 SWIG_fail;
7844 }
7845 arg3 = (long) SWIG_AsLong(obj2);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 {
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
7849 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7850
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 Py_INCREF(Py_None); resultobj = Py_None;
7855 {
7856 if (temp1)
7857 delete arg1;
7858 }
7859 return resultobj;
7860 fail:
7861 {
7862 if (temp1)
7863 delete arg1;
7864 }
7865 return NULL;
7866 }
7867
7868
7869 static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7870 PyObject *resultobj;
7871 wxString *arg1 = 0 ;
7872 PyObject *arg2 = (PyObject *) 0 ;
7873 bool temp1 = False ;
7874 PyObject * obj0 = 0 ;
7875 PyObject * obj1 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "filename",(char *) "data", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7881 {
7882 arg1 = wxString_in_helper(obj0);
7883 if (arg1 == NULL) SWIG_fail;
7884 temp1 = True;
7885 }
7886 arg2 = obj1;
7887 {
7888 PyThreadState* __tstate = wxPyBeginAllowThreads();
7889 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7890
7891 wxPyEndAllowThreads(__tstate);
7892 if (PyErr_Occurred()) SWIG_fail;
7893 }
7894 Py_INCREF(Py_None); resultobj = Py_None;
7895 {
7896 if (temp1)
7897 delete arg1;
7898 }
7899 return resultobj;
7900 fail:
7901 {
7902 if (temp1)
7903 delete arg1;
7904 }
7905 return NULL;
7906 }
7907
7908
7909 static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7910 PyObject *resultobj;
7911 wxMemoryFSHandler *result;
7912 char *kwnames[] = {
7913 NULL
7914 };
7915
7916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7917 {
7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
7919 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7920
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxString *arg1 = 0 ;
7934 bool temp1 = False ;
7935 PyObject * obj0 = 0 ;
7936 char *kwnames[] = {
7937 (char *) "filename", NULL
7938 };
7939
7940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7941 {
7942 arg1 = wxString_in_helper(obj0);
7943 if (arg1 == NULL) SWIG_fail;
7944 temp1 = True;
7945 }
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 Py_INCREF(Py_None); resultobj = Py_None;
7954 {
7955 if (temp1)
7956 delete arg1;
7957 }
7958 return resultobj;
7959 fail:
7960 {
7961 if (temp1)
7962 delete arg1;
7963 }
7964 return NULL;
7965 }
7966
7967
7968 static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7969 PyObject *resultobj;
7970 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7971 wxString *arg2 = 0 ;
7972 bool result;
7973 bool temp2 = False ;
7974 PyObject * obj0 = 0 ;
7975 PyObject * obj1 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self",(char *) "location", NULL
7978 };
7979
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
7982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7983 {
7984 arg2 = wxString_in_helper(obj1);
7985 if (arg2 == NULL) SWIG_fail;
7986 temp2 = True;
7987 }
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 {
7996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7997 }
7998 {
7999 if (temp2)
8000 delete arg2;
8001 }
8002 return resultobj;
8003 fail:
8004 {
8005 if (temp2)
8006 delete arg2;
8007 }
8008 return NULL;
8009 }
8010
8011
8012 static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8013 PyObject *resultobj;
8014 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8015 wxFileSystem *arg2 = 0 ;
8016 wxString *arg3 = 0 ;
8017 wxFSFile *result;
8018 bool temp3 = False ;
8019 PyObject * obj0 = 0 ;
8020 PyObject * obj1 = 0 ;
8021 PyObject * obj2 = 0 ;
8022 char *kwnames[] = {
8023 (char *) "self",(char *) "fs",(char *) "location", NULL
8024 };
8025
8026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
8030 SWIG_POINTER_EXCEPTION | 0)) == -1)
8031 SWIG_fail;
8032 if (arg2 == NULL) {
8033 PyErr_SetString(PyExc_TypeError,"null reference");
8034 SWIG_fail;
8035 }
8036 {
8037 arg3 = wxString_in_helper(obj2);
8038 if (arg3 == NULL) SWIG_fail;
8039 temp3 = True;
8040 }
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 {
8049 resultobj = wxPyMake_wxObject(result, 1);
8050 }
8051 {
8052 if (temp3)
8053 delete arg3;
8054 }
8055 return resultobj;
8056 fail:
8057 {
8058 if (temp3)
8059 delete arg3;
8060 }
8061 return NULL;
8062 }
8063
8064
8065 static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj;
8067 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8068 wxString *arg2 = 0 ;
8069 int arg3 = (int) 0 ;
8070 wxString result;
8071 bool temp2 = False ;
8072 PyObject * obj0 = 0 ;
8073 PyObject * obj1 = 0 ;
8074 PyObject * obj2 = 0 ;
8075 char *kwnames[] = {
8076 (char *) "self",(char *) "spec",(char *) "flags", NULL
8077 };
8078
8079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8082 {
8083 arg2 = wxString_in_helper(obj1);
8084 if (arg2 == NULL) SWIG_fail;
8085 temp2 = True;
8086 }
8087 if (obj2) {
8088 arg3 = (int) SWIG_AsInt(obj2);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8094
8095 wxPyEndAllowThreads(__tstate);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 {
8099 #if wxUSE_UNICODE
8100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8101 #else
8102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8103 #endif
8104 }
8105 {
8106 if (temp2)
8107 delete arg2;
8108 }
8109 return resultobj;
8110 fail:
8111 {
8112 if (temp2)
8113 delete arg2;
8114 }
8115 return NULL;
8116 }
8117
8118
8119 static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
8120 PyObject *resultobj;
8121 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8122 wxString result;
8123 PyObject * obj0 = 0 ;
8124 char *kwnames[] = {
8125 (char *) "self", NULL
8126 };
8127
8128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8131 {
8132 PyThreadState* __tstate = wxPyBeginAllowThreads();
8133 result = (arg1)->FindNext();
8134
8135 wxPyEndAllowThreads(__tstate);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 {
8139 #if wxUSE_UNICODE
8140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8141 #else
8142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8143 #endif
8144 }
8145 return resultobj;
8146 fail:
8147 return NULL;
8148 }
8149
8150
8151 static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
8152 PyObject *obj;
8153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8154 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8155 Py_INCREF(obj);
8156 return Py_BuildValue((char *)"");
8157 }
8158 static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8161 wxString result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 result = (arg1)->GetName();
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 {
8178 #if wxUSE_UNICODE
8179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8180 #else
8181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8182 #endif
8183 }
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj;
8192 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8193 wxString result;
8194 PyObject * obj0 = 0 ;
8195 char *kwnames[] = {
8196 (char *) "self", NULL
8197 };
8198
8199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8202 {
8203 PyThreadState* __tstate = wxPyBeginAllowThreads();
8204 result = (arg1)->GetExtension();
8205
8206 wxPyEndAllowThreads(__tstate);
8207 if (PyErr_Occurred()) SWIG_fail;
8208 }
8209 {
8210 #if wxUSE_UNICODE
8211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8212 #else
8213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8214 #endif
8215 }
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj;
8224 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8225 long result;
8226 PyObject * obj0 = 0 ;
8227 char *kwnames[] = {
8228 (char *) "self", NULL
8229 };
8230
8231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = (long)(arg1)->GetType();
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 resultobj = SWIG_FromLong((long)result);
8242 return resultobj;
8243 fail:
8244 return NULL;
8245 }
8246
8247
8248 static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj;
8250 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8251 wxString result;
8252 PyObject * obj0 = 0 ;
8253 char *kwnames[] = {
8254 (char *) "self", NULL
8255 };
8256
8257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8260 {
8261 PyThreadState* __tstate = wxPyBeginAllowThreads();
8262 result = (arg1)->GetMimeType();
8263
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 {
8268 #if wxUSE_UNICODE
8269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8270 #else
8271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8272 #endif
8273 }
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8283 wxString *arg2 = 0 ;
8284 bool result;
8285 bool temp2 = False ;
8286 PyObject * obj0 = 0 ;
8287 PyObject * obj1 = 0 ;
8288 char *kwnames[] = {
8289 (char *) "self",(char *) "name", NULL
8290 };
8291
8292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8295 {
8296 arg2 = wxString_in_helper(obj1);
8297 if (arg2 == NULL) SWIG_fail;
8298 temp2 = True;
8299 }
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8303
8304 wxPyEndAllowThreads(__tstate);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 {
8308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8309 }
8310 {
8311 if (temp2)
8312 delete arg2;
8313 }
8314 return resultobj;
8315 fail:
8316 {
8317 if (temp2)
8318 delete arg2;
8319 }
8320 return NULL;
8321 }
8322
8323
8324 static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj;
8326 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8327 wxString *arg2 = 0 ;
8328 bool temp2 = False ;
8329 PyObject * obj0 = 0 ;
8330 PyObject * obj1 = 0 ;
8331 char *kwnames[] = {
8332 (char *) "self",(char *) "name", NULL
8333 };
8334
8335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8338 {
8339 arg2 = wxString_in_helper(obj1);
8340 if (arg2 == NULL) SWIG_fail;
8341 temp2 = True;
8342 }
8343 {
8344 PyThreadState* __tstate = wxPyBeginAllowThreads();
8345 (arg1)->SetName((wxString const &)*arg2);
8346
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 Py_INCREF(Py_None); resultobj = Py_None;
8351 {
8352 if (temp2)
8353 delete arg2;
8354 }
8355 return resultobj;
8356 fail:
8357 {
8358 if (temp2)
8359 delete arg2;
8360 }
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8368 wxString *arg2 = 0 ;
8369 bool temp2 = False ;
8370 PyObject * obj0 = 0 ;
8371 PyObject * obj1 = 0 ;
8372 char *kwnames[] = {
8373 (char *) "self",(char *) "extension", NULL
8374 };
8375
8376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8379 {
8380 arg2 = wxString_in_helper(obj1);
8381 if (arg2 == NULL) SWIG_fail;
8382 temp2 = True;
8383 }
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 (arg1)->SetExtension((wxString const &)*arg2);
8387
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 Py_INCREF(Py_None); resultobj = Py_None;
8392 {
8393 if (temp2)
8394 delete arg2;
8395 }
8396 return resultobj;
8397 fail:
8398 {
8399 if (temp2)
8400 delete arg2;
8401 }
8402 return NULL;
8403 }
8404
8405
8406 static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject *resultobj;
8408 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8409 long arg2 ;
8410 PyObject * obj0 = 0 ;
8411 PyObject * obj1 = 0 ;
8412 char *kwnames[] = {
8413 (char *) "self",(char *) "type", NULL
8414 };
8415
8416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8419 arg2 = (long) SWIG_AsLong(obj1);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 (arg1)->SetType(arg2);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 Py_INCREF(Py_None); resultobj = Py_None;
8429 return resultobj;
8430 fail:
8431 return NULL;
8432 }
8433
8434
8435 static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj;
8437 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8438 wxString *arg2 = 0 ;
8439 bool temp2 = False ;
8440 PyObject * obj0 = 0 ;
8441 PyObject * obj1 = 0 ;
8442 char *kwnames[] = {
8443 (char *) "self",(char *) "mimetype", NULL
8444 };
8445
8446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8449 {
8450 arg2 = wxString_in_helper(obj1);
8451 if (arg2 == NULL) SWIG_fail;
8452 temp2 = True;
8453 }
8454 {
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 (arg1)->SetMimeType((wxString const &)*arg2);
8457
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 Py_INCREF(Py_None); resultobj = Py_None;
8462 {
8463 if (temp2)
8464 delete arg2;
8465 }
8466 return resultobj;
8467 fail:
8468 {
8469 if (temp2)
8470 delete arg2;
8471 }
8472 return NULL;
8473 }
8474
8475
8476 static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
8477 PyObject *obj;
8478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8479 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8480 Py_INCREF(obj);
8481 return Py_BuildValue((char *)"");
8482 }
8483 static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj;
8485 wxImageHistogram *result;
8486 char *kwnames[] = {
8487 NULL
8488 };
8489
8490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8491 {
8492 PyThreadState* __tstate = wxPyBeginAllowThreads();
8493 result = (wxImageHistogram *)new wxImageHistogram();
8494
8495 wxPyEndAllowThreads(__tstate);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 }
8498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8499 return resultobj;
8500 fail:
8501 return NULL;
8502 }
8503
8504
8505 static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
8506 PyObject *resultobj;
8507 unsigned char arg1 ;
8508 unsigned char arg2 ;
8509 unsigned char arg3 ;
8510 unsigned long result;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 PyObject * obj2 = 0 ;
8514 char *kwnames[] = {
8515 (char *) "r",(char *) "g",(char *) "b", NULL
8516 };
8517
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8519 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8524 if (PyErr_Occurred()) SWIG_fail;
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8533 return resultobj;
8534 fail:
8535 return NULL;
8536 }
8537
8538
8539 static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8540 PyObject *resultobj;
8541 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8542 unsigned char *arg2 = (unsigned char *) 0 ;
8543 unsigned char *arg3 = (unsigned char *) 0 ;
8544 unsigned char *arg4 = (unsigned char *) 0 ;
8545 unsigned char arg5 = (unsigned char) 1 ;
8546 unsigned char arg6 = (unsigned char) 0 ;
8547 unsigned char arg7 = (unsigned char) 0 ;
8548 bool result;
8549 unsigned char temp2 ;
8550 unsigned char temp3 ;
8551 unsigned char temp4 ;
8552 PyObject * obj0 = 0 ;
8553 PyObject * obj1 = 0 ;
8554 PyObject * obj2 = 0 ;
8555 PyObject * obj3 = 0 ;
8556 char *kwnames[] = {
8557 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8558 };
8559
8560 arg2 = &temp2;
8561 arg3 = &temp3;
8562 arg4 = &temp4;
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8566 if (obj1) {
8567 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8568 if (PyErr_Occurred()) SWIG_fail;
8569 }
8570 if (obj2) {
8571 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 if (obj3) {
8575 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3);
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 {
8579 PyThreadState* __tstate = wxPyBeginAllowThreads();
8580 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8581
8582 wxPyEndAllowThreads(__tstate);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 {
8586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8587 }
8588 {
8589 PyObject *o = PyInt_FromLong((long) (*arg2));
8590 resultobj = t_output_helper(resultobj,o);
8591 }
8592 {
8593 PyObject *o = PyInt_FromLong((long) (*arg3));
8594 resultobj = t_output_helper(resultobj,o);
8595 }
8596 {
8597 PyObject *o = PyInt_FromLong((long) (*arg4));
8598 resultobj = t_output_helper(resultobj,o);
8599 }
8600 return resultobj;
8601 fail:
8602 return NULL;
8603 }
8604
8605
8606 static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8607 PyObject *obj;
8608 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8609 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8610 Py_INCREF(obj);
8611 return Py_BuildValue((char *)"");
8612 }
8613 static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8614 PyObject *resultobj;
8615 wxString *arg1 = 0 ;
8616 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8617 int arg3 = (int) -1 ;
8618 wxImage *result;
8619 bool temp1 = False ;
8620 PyObject * obj0 = 0 ;
8621 PyObject * obj1 = 0 ;
8622 PyObject * obj2 = 0 ;
8623 char *kwnames[] = {
8624 (char *) "name",(char *) "type",(char *) "index", NULL
8625 };
8626
8627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8628 {
8629 arg1 = wxString_in_helper(obj0);
8630 if (arg1 == NULL) SWIG_fail;
8631 temp1 = True;
8632 }
8633 if (obj1) {
8634 arg2 = (long) SWIG_AsLong(obj1);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 if (obj2) {
8638 arg3 = (int) SWIG_AsInt(obj2);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8649 {
8650 if (temp1)
8651 delete arg1;
8652 }
8653 return resultobj;
8654 fail:
8655 {
8656 if (temp1)
8657 delete arg1;
8658 }
8659 return NULL;
8660 }
8661
8662
8663 static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj;
8665 wxImage *arg1 = (wxImage *) 0 ;
8666 PyObject * obj0 = 0 ;
8667 char *kwnames[] = {
8668 (char *) "self", NULL
8669 };
8670
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 delete arg1;
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 return resultobj;
8683 fail:
8684 return NULL;
8685 }
8686
8687
8688 static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject *resultobj;
8690 wxString *arg1 = 0 ;
8691 wxString *arg2 = 0 ;
8692 int arg3 = (int) -1 ;
8693 wxImage *result;
8694 bool temp1 = False ;
8695 bool temp2 = False ;
8696 PyObject * obj0 = 0 ;
8697 PyObject * obj1 = 0 ;
8698 PyObject * obj2 = 0 ;
8699 char *kwnames[] = {
8700 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8701 };
8702
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8704 {
8705 arg1 = wxString_in_helper(obj0);
8706 if (arg1 == NULL) SWIG_fail;
8707 temp1 = True;
8708 }
8709 {
8710 arg2 = wxString_in_helper(obj1);
8711 if (arg2 == NULL) SWIG_fail;
8712 temp2 = True;
8713 }
8714 if (obj2) {
8715 arg3 = (int) SWIG_AsInt(obj2);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 {
8719 PyThreadState* __tstate = wxPyBeginAllowThreads();
8720 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8721
8722 wxPyEndAllowThreads(__tstate);
8723 if (PyErr_Occurred()) SWIG_fail;
8724 }
8725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8726 {
8727 if (temp1)
8728 delete arg1;
8729 }
8730 {
8731 if (temp2)
8732 delete arg2;
8733 }
8734 return resultobj;
8735 fail:
8736 {
8737 if (temp1)
8738 delete arg1;
8739 }
8740 {
8741 if (temp2)
8742 delete arg2;
8743 }
8744 return NULL;
8745 }
8746
8747
8748 static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj;
8750 wxInputStream *arg1 = 0 ;
8751 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8752 int arg3 = (int) -1 ;
8753 wxImage *result;
8754 wxPyInputStream *temp1 ;
8755 bool created1 ;
8756 PyObject * obj0 = 0 ;
8757 PyObject * obj1 = 0 ;
8758 PyObject * obj2 = 0 ;
8759 char *kwnames[] = {
8760 (char *) "stream",(char *) "type",(char *) "index", NULL
8761 };
8762
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8764 {
8765 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8766 arg1 = temp1->m_wxis;
8767 created1 = False;
8768 } else {
8769 PyErr_Clear(); // clear the failure of the wxPyConvert above
8770 arg1 = wxPyCBInputStream_create(obj0, False);
8771 if (arg1 == NULL) {
8772 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8773 SWIG_fail;
8774 }
8775 created1 = True;
8776 }
8777 }
8778 if (obj1) {
8779 arg2 = (long) SWIG_AsLong(obj1);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 if (obj2) {
8783 arg3 = (int) SWIG_AsInt(obj2);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 {
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8789
8790 wxPyEndAllowThreads(__tstate);
8791 if (PyErr_Occurred()) SWIG_fail;
8792 }
8793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8794 {
8795 if (created1)
8796 delete arg1;
8797 }
8798 return resultobj;
8799 fail:
8800 {
8801 if (created1)
8802 delete arg1;
8803 }
8804 return NULL;
8805 }
8806
8807
8808 static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj;
8810 wxInputStream *arg1 = 0 ;
8811 wxString *arg2 = 0 ;
8812 int arg3 = (int) -1 ;
8813 wxImage *result;
8814 wxPyInputStream *temp1 ;
8815 bool created1 ;
8816 bool temp2 = False ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 PyObject * obj2 = 0 ;
8820 char *kwnames[] = {
8821 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8825 {
8826 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8827 arg1 = temp1->m_wxis;
8828 created1 = False;
8829 } else {
8830 PyErr_Clear(); // clear the failure of the wxPyConvert above
8831 arg1 = wxPyCBInputStream_create(obj0, False);
8832 if (arg1 == NULL) {
8833 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8834 SWIG_fail;
8835 }
8836 created1 = True;
8837 }
8838 }
8839 {
8840 arg2 = wxString_in_helper(obj1);
8841 if (arg2 == NULL) SWIG_fail;
8842 temp2 = True;
8843 }
8844 if (obj2) {
8845 arg3 = (int) SWIG_AsInt(obj2);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8856 {
8857 if (created1)
8858 delete arg1;
8859 }
8860 {
8861 if (temp2)
8862 delete arg2;
8863 }
8864 return resultobj;
8865 fail:
8866 {
8867 if (created1)
8868 delete arg1;
8869 }
8870 {
8871 if (temp2)
8872 delete arg2;
8873 }
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj;
8880 int arg1 = (int) 0 ;
8881 int arg2 = (int) 0 ;
8882 bool arg3 = (bool) True ;
8883 wxImage *result;
8884 PyObject * obj0 = 0 ;
8885 PyObject * obj1 = 0 ;
8886 PyObject * obj2 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "width",(char *) "height",(char *) "clear", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
8892 if (obj0) {
8893 arg1 = (int) SWIG_AsInt(obj0);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 if (obj1) {
8897 arg2 = (int) SWIG_AsInt(obj1);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 if (obj2) {
8901 arg3 = (bool) SWIG_AsBool(obj2);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8912 return resultobj;
8913 fail:
8914 return NULL;
8915 }
8916
8917
8918 static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 wxBitmap *arg1 = 0 ;
8921 wxImage *result;
8922 PyObject * obj0 = 0 ;
8923 char *kwnames[] = {
8924 (char *) "bitmap", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
8929 SWIG_POINTER_EXCEPTION | 0)) == -1)
8930 SWIG_fail;
8931 if (arg1 == NULL) {
8932 PyErr_SetString(PyExc_TypeError,"null reference");
8933 SWIG_fail;
8934 }
8935 {
8936 if (!wxPyCheckForApp()) SWIG_fail;
8937 PyThreadState* __tstate = wxPyBeginAllowThreads();
8938 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8939
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8944 return resultobj;
8945 fail:
8946 return NULL;
8947 }
8948
8949
8950 static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj;
8952 int arg1 ;
8953 int arg2 ;
8954 unsigned char *arg3 = (unsigned char *) 0 ;
8955 wxImage *result;
8956 PyObject * obj0 = 0 ;
8957 PyObject * obj1 = 0 ;
8958 PyObject * obj2 = 0 ;
8959 char *kwnames[] = {
8960 (char *) "width",(char *) "height",(char *) "data", NULL
8961 };
8962
8963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8964 arg1 = (int) SWIG_AsInt(obj0);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 arg2 = (int) SWIG_AsInt(obj1);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
8969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8970 {
8971 PyThreadState* __tstate = wxPyBeginAllowThreads();
8972 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8973
8974 wxPyEndAllowThreads(__tstate);
8975 if (PyErr_Occurred()) SWIG_fail;
8976 }
8977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8978 return resultobj;
8979 fail:
8980 return NULL;
8981 }
8982
8983
8984 static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8985 PyObject *resultobj;
8986 wxImage *arg1 = (wxImage *) 0 ;
8987 int arg2 ;
8988 int arg3 ;
8989 PyObject * obj0 = 0 ;
8990 PyObject * obj1 = 0 ;
8991 PyObject * obj2 = 0 ;
8992 char *kwnames[] = {
8993 (char *) "self",(char *) "width",(char *) "height", NULL
8994 };
8995
8996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8999 arg2 = (int) SWIG_AsInt(obj1);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 arg3 = (int) SWIG_AsInt(obj2);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 {
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 (arg1)->Create(arg2,arg3);
9006
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 Py_INCREF(Py_None); resultobj = Py_None;
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj;
9019 wxImage *arg1 = (wxImage *) 0 ;
9020 PyObject * obj0 = 0 ;
9021 char *kwnames[] = {
9022 (char *) "self", NULL
9023 };
9024
9025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
9026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9028 {
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 (arg1)->Destroy();
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 Py_INCREF(Py_None); resultobj = Py_None;
9036 return resultobj;
9037 fail:
9038 return NULL;
9039 }
9040
9041
9042 static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 wxImage *arg1 = (wxImage *) 0 ;
9045 int arg2 ;
9046 int arg3 ;
9047 SwigValueWrapper< wxImage > result;
9048 PyObject * obj0 = 0 ;
9049 PyObject * obj1 = 0 ;
9050 PyObject * obj2 = 0 ;
9051 char *kwnames[] = {
9052 (char *) "self",(char *) "width",(char *) "height", NULL
9053 };
9054
9055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9058 arg2 = (int) SWIG_AsInt(obj1);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 arg3 = (int) SWIG_AsInt(obj2);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 {
9063 PyThreadState* __tstate = wxPyBeginAllowThreads();
9064 result = (arg1)->Scale(arg2,arg3);
9065
9066 wxPyEndAllowThreads(__tstate);
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 {
9070 wxImage * resultptr;
9071 resultptr = new wxImage((wxImage &) result);
9072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9073 }
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxImage *arg1 = (wxImage *) 0 ;
9083 int arg2 ;
9084 int arg3 ;
9085 SwigValueWrapper< wxImage > result;
9086 PyObject * obj0 = 0 ;
9087 PyObject * obj1 = 0 ;
9088 PyObject * obj2 = 0 ;
9089 char *kwnames[] = {
9090 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9091 };
9092
9093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9096 arg2 = (int) SWIG_AsInt(obj1);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 arg3 = (int) SWIG_AsInt(obj2);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 wxImage * resultptr;
9109 resultptr = new wxImage((wxImage &) result);
9110 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9111 }
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxImage *arg1 = (wxImage *) 0 ;
9121 int arg2 ;
9122 int arg3 ;
9123 wxImage *result;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self",(char *) "width",(char *) "height", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9134 arg2 = (int) SWIG_AsInt(obj1);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 arg3 = (int) SWIG_AsInt(obj2);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 {
9141 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9142 result = (wxImage *) &_result_ref;
9143 }
9144
9145 wxPyEndAllowThreads(__tstate);
9146 if (PyErr_Occurred()) SWIG_fail;
9147 }
9148 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9149 return resultobj;
9150 fail:
9151 return NULL;
9152 }
9153
9154
9155 static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj;
9157 wxImage *arg1 = (wxImage *) 0 ;
9158 int arg2 ;
9159 int arg3 ;
9160 unsigned char arg4 ;
9161 unsigned char arg5 ;
9162 unsigned char arg6 ;
9163 PyObject * obj0 = 0 ;
9164 PyObject * obj1 = 0 ;
9165 PyObject * obj2 = 0 ;
9166 PyObject * obj3 = 0 ;
9167 PyObject * obj4 = 0 ;
9168 PyObject * obj5 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9176 arg2 = (int) SWIG_AsInt(obj1);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 arg3 = (int) SWIG_AsInt(obj2);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 Py_INCREF(Py_None); resultobj = Py_None;
9194 return resultobj;
9195 fail:
9196 return NULL;
9197 }
9198
9199
9200 static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj;
9202 wxImage *arg1 = (wxImage *) 0 ;
9203 int arg2 ;
9204 int arg3 ;
9205 unsigned char result;
9206 PyObject * obj0 = 0 ;
9207 PyObject * obj1 = 0 ;
9208 PyObject * obj2 = 0 ;
9209 char *kwnames[] = {
9210 (char *) "self",(char *) "x",(char *) "y", NULL
9211 };
9212
9213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9216 arg2 = (int) SWIG_AsInt(obj1);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 arg3 = (int) SWIG_AsInt(obj2);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9223
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9228 return resultobj;
9229 fail:
9230 return NULL;
9231 }
9232
9233
9234 static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj;
9236 wxImage *arg1 = (wxImage *) 0 ;
9237 int arg2 ;
9238 int arg3 ;
9239 unsigned char result;
9240 PyObject * obj0 = 0 ;
9241 PyObject * obj1 = 0 ;
9242 PyObject * obj2 = 0 ;
9243 char *kwnames[] = {
9244 (char *) "self",(char *) "x",(char *) "y", NULL
9245 };
9246
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9250 arg2 = (int) SWIG_AsInt(obj1);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 arg3 = (int) SWIG_AsInt(obj2);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9257
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj;
9270 wxImage *arg1 = (wxImage *) 0 ;
9271 int arg2 ;
9272 int arg3 ;
9273 unsigned char result;
9274 PyObject * obj0 = 0 ;
9275 PyObject * obj1 = 0 ;
9276 PyObject * obj2 = 0 ;
9277 char *kwnames[] = {
9278 (char *) "self",(char *) "x",(char *) "y", NULL
9279 };
9280
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9284 arg2 = (int) SWIG_AsInt(obj1);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 arg3 = (int) SWIG_AsInt(obj2);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9291
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9296 return resultobj;
9297 fail:
9298 return NULL;
9299 }
9300
9301
9302 static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject *resultobj;
9304 wxImage *arg1 = (wxImage *) 0 ;
9305 int arg2 ;
9306 int arg3 ;
9307 unsigned char arg4 ;
9308 PyObject * obj0 = 0 ;
9309 PyObject * obj1 = 0 ;
9310 PyObject * obj2 = 0 ;
9311 PyObject * obj3 = 0 ;
9312 char *kwnames[] = {
9313 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9314 };
9315
9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9319 arg2 = (int) SWIG_AsInt(obj1);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 arg3 = (int) SWIG_AsInt(obj2);
9322 if (PyErr_Occurred()) SWIG_fail;
9323 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 (arg1)->SetAlpha(arg2,arg3,arg4);
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_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 wxImage *arg1 = (wxImage *) 0 ;
9342 int arg2 ;
9343 int arg3 ;
9344 unsigned char result;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 PyObject * obj2 = 0 ;
9348 char *kwnames[] = {
9349 (char *) "self",(char *) "x",(char *) "y", NULL
9350 };
9351
9352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",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_AsInt(obj1);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 arg3 = (int) SWIG_AsInt(obj2);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj;
9375 wxImage *arg1 = (wxImage *) 0 ;
9376 bool result;
9377 PyObject * obj0 = 0 ;
9378 char *kwnames[] = {
9379 (char *) "self", NULL
9380 };
9381
9382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (bool)(arg1)->HasAlpha();
9388
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 {
9393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9394 }
9395 return resultobj;
9396 fail:
9397 return NULL;
9398 }
9399
9400
9401 static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9402 PyObject *resultobj;
9403 wxImage *arg1 = (wxImage *) 0 ;
9404 byte *arg2 = (byte *) 0 ;
9405 byte *arg3 = (byte *) 0 ;
9406 byte *arg4 = (byte *) 0 ;
9407 byte arg5 = (byte) 0 ;
9408 byte arg6 = (byte) 0 ;
9409 byte arg7 = (byte) 0 ;
9410 bool result;
9411 byte temp2 ;
9412 byte temp3 ;
9413 byte temp4 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 PyObject * obj2 = 0 ;
9417 PyObject * obj3 = 0 ;
9418 char *kwnames[] = {
9419 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9420 };
9421
9422 arg2 = &temp2;
9423 arg3 = &temp3;
9424 arg4 = &temp4;
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9428 if (obj1) {
9429 arg5 = (byte) SWIG_AsUnsignedChar(obj1);
9430 if (PyErr_Occurred()) SWIG_fail;
9431 }
9432 if (obj2) {
9433 arg6 = (byte) SWIG_AsUnsignedChar(obj2);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 if (obj3) {
9437 arg7 = (byte) SWIG_AsUnsignedChar(obj3);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9449 }
9450 {
9451 PyObject *o = PyInt_FromLong((long) (*arg2));
9452 resultobj = t_output_helper(resultobj,o);
9453 }
9454 {
9455 PyObject *o = PyInt_FromLong((long) (*arg3));
9456 resultobj = t_output_helper(resultobj,o);
9457 }
9458 {
9459 PyObject *o = PyInt_FromLong((long) (*arg4));
9460 resultobj = t_output_helper(resultobj,o);
9461 }
9462 return resultobj;
9463 fail:
9464 return NULL;
9465 }
9466
9467
9468 static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *self, PyObject *args, PyObject *kwargs) {
9469 PyObject *resultobj;
9470 wxImage *arg1 = (wxImage *) 0 ;
9471 byte arg2 = (byte) 128 ;
9472 bool result;
9473 PyObject * obj0 = 0 ;
9474 PyObject * obj1 = 0 ;
9475 char *kwnames[] = {
9476 (char *) "self",(char *) "threshold", NULL
9477 };
9478
9479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail;
9480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9482 if (obj1) {
9483 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
9489
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 {
9494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9495 }
9496 return resultobj;
9497 fail:
9498 return NULL;
9499 }
9500
9501
9502 static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9503 PyObject *resultobj;
9504 wxImage *arg1 = (wxImage *) 0 ;
9505 wxImage *arg2 = 0 ;
9506 byte arg3 ;
9507 byte arg4 ;
9508 byte arg5 ;
9509 bool result;
9510 PyObject * obj0 = 0 ;
9511 PyObject * obj1 = 0 ;
9512 PyObject * obj2 = 0 ;
9513 PyObject * obj3 = 0 ;
9514 PyObject * obj4 = 0 ;
9515 char *kwnames[] = {
9516 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9523 SWIG_POINTER_EXCEPTION | 0)) == -1)
9524 SWIG_fail;
9525 if (arg2 == NULL) {
9526 PyErr_SetString(PyExc_TypeError,"null reference");
9527 SWIG_fail;
9528 }
9529 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 arg5 = (byte) SWIG_AsUnsignedChar(obj4);
9534 if (PyErr_Occurred()) SWIG_fail;
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9538
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 {
9543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9544 }
9545 return resultobj;
9546 fail:
9547 return NULL;
9548 }
9549
9550
9551 static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9552 PyObject *resultobj;
9553 wxString *arg1 = 0 ;
9554 bool result;
9555 bool temp1 = False ;
9556 PyObject * obj0 = 0 ;
9557 char *kwnames[] = {
9558 (char *) "name", NULL
9559 };
9560
9561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9562 {
9563 arg1 = wxString_in_helper(obj0);
9564 if (arg1 == NULL) SWIG_fail;
9565 temp1 = True;
9566 }
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9570
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 }
9574 {
9575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9576 }
9577 {
9578 if (temp1)
9579 delete arg1;
9580 }
9581 return resultobj;
9582 fail:
9583 {
9584 if (temp1)
9585 delete arg1;
9586 }
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxString *arg1 = 0 ;
9594 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9595 int result;
9596 bool temp1 = False ;
9597 PyObject * obj0 = 0 ;
9598 PyObject * obj1 = 0 ;
9599 char *kwnames[] = {
9600 (char *) "name",(char *) "type", NULL
9601 };
9602
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9604 {
9605 arg1 = wxString_in_helper(obj0);
9606 if (arg1 == NULL) SWIG_fail;
9607 temp1 = True;
9608 }
9609 if (obj1) {
9610 arg2 = (long) SWIG_AsLong(obj1);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9616
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_FromInt((int)result);
9621 {
9622 if (temp1)
9623 delete arg1;
9624 }
9625 return resultobj;
9626 fail:
9627 {
9628 if (temp1)
9629 delete arg1;
9630 }
9631 return NULL;
9632 }
9633
9634
9635 static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 wxImage *arg1 = (wxImage *) 0 ;
9638 wxString *arg2 = 0 ;
9639 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9640 int arg4 = (int) -1 ;
9641 bool result;
9642 bool temp2 = False ;
9643 PyObject * obj0 = 0 ;
9644 PyObject * obj1 = 0 ;
9645 PyObject * obj2 = 0 ;
9646 PyObject * obj3 = 0 ;
9647 char *kwnames[] = {
9648 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9649 };
9650
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9654 {
9655 arg2 = wxString_in_helper(obj1);
9656 if (arg2 == NULL) SWIG_fail;
9657 temp2 = True;
9658 }
9659 if (obj2) {
9660 arg3 = (long) SWIG_AsLong(obj2);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 if (obj3) {
9664 arg4 = (int) SWIG_AsInt(obj3);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9670
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 {
9675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9676 }
9677 {
9678 if (temp2)
9679 delete arg2;
9680 }
9681 return resultobj;
9682 fail:
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return NULL;
9688 }
9689
9690
9691 static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9692 PyObject *resultobj;
9693 wxImage *arg1 = (wxImage *) 0 ;
9694 wxString *arg2 = 0 ;
9695 wxString *arg3 = 0 ;
9696 int arg4 = (int) -1 ;
9697 bool result;
9698 bool temp2 = False ;
9699 bool temp3 = False ;
9700 PyObject * obj0 = 0 ;
9701 PyObject * obj1 = 0 ;
9702 PyObject * obj2 = 0 ;
9703 PyObject * obj3 = 0 ;
9704 char *kwnames[] = {
9705 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9706 };
9707
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9711 {
9712 arg2 = wxString_in_helper(obj1);
9713 if (arg2 == NULL) SWIG_fail;
9714 temp2 = True;
9715 }
9716 {
9717 arg3 = wxString_in_helper(obj2);
9718 if (arg3 == NULL) SWIG_fail;
9719 temp3 = True;
9720 }
9721 if (obj3) {
9722 arg4 = (int) SWIG_AsInt(obj3);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9734 }
9735 {
9736 if (temp2)
9737 delete arg2;
9738 }
9739 {
9740 if (temp3)
9741 delete arg3;
9742 }
9743 return resultobj;
9744 fail:
9745 {
9746 if (temp2)
9747 delete arg2;
9748 }
9749 {
9750 if (temp3)
9751 delete arg3;
9752 }
9753 return NULL;
9754 }
9755
9756
9757 static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj;
9759 wxImage *arg1 = (wxImage *) 0 ;
9760 wxString *arg2 = 0 ;
9761 int arg3 ;
9762 bool result;
9763 bool temp2 = False ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 PyObject * obj2 = 0 ;
9767 char *kwnames[] = {
9768 (char *) "self",(char *) "name",(char *) "type", NULL
9769 };
9770
9771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9774 {
9775 arg2 = wxString_in_helper(obj1);
9776 if (arg2 == NULL) SWIG_fail;
9777 temp2 = True;
9778 }
9779 arg3 = (int) SWIG_AsInt(obj2);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 {
9789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9790 }
9791 {
9792 if (temp2)
9793 delete arg2;
9794 }
9795 return resultobj;
9796 fail:
9797 {
9798 if (temp2)
9799 delete arg2;
9800 }
9801 return NULL;
9802 }
9803
9804
9805 static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9806 PyObject *resultobj;
9807 wxImage *arg1 = (wxImage *) 0 ;
9808 wxString *arg2 = 0 ;
9809 wxString *arg3 = 0 ;
9810 bool result;
9811 bool temp2 = False ;
9812 bool temp3 = False ;
9813 PyObject * obj0 = 0 ;
9814 PyObject * obj1 = 0 ;
9815 PyObject * obj2 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9823 {
9824 arg2 = wxString_in_helper(obj1);
9825 if (arg2 == NULL) SWIG_fail;
9826 temp2 = True;
9827 }
9828 {
9829 arg3 = wxString_in_helper(obj2);
9830 if (arg3 == NULL) SWIG_fail;
9831 temp3 = True;
9832 }
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 {
9841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9842 }
9843 {
9844 if (temp2)
9845 delete arg2;
9846 }
9847 {
9848 if (temp3)
9849 delete arg3;
9850 }
9851 return resultobj;
9852 fail:
9853 {
9854 if (temp2)
9855 delete arg2;
9856 }
9857 {
9858 if (temp3)
9859 delete arg3;
9860 }
9861 return NULL;
9862 }
9863
9864
9865 static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj;
9867 wxInputStream *arg1 = 0 ;
9868 bool result;
9869 wxPyInputStream *temp1 ;
9870 bool created1 ;
9871 PyObject * obj0 = 0 ;
9872 char *kwnames[] = {
9873 (char *) "stream", NULL
9874 };
9875
9876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9877 {
9878 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9879 arg1 = temp1->m_wxis;
9880 created1 = False;
9881 } else {
9882 PyErr_Clear(); // clear the failure of the wxPyConvert above
9883 arg1 = wxPyCBInputStream_create(obj0, False);
9884 if (arg1 == NULL) {
9885 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9886 SWIG_fail;
9887 }
9888 created1 = True;
9889 }
9890 }
9891 {
9892 PyThreadState* __tstate = wxPyBeginAllowThreads();
9893 result = (bool)wxImage::CanRead(*arg1);
9894
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 {
9899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9900 }
9901 {
9902 if (created1)
9903 delete arg1;
9904 }
9905 return resultobj;
9906 fail:
9907 {
9908 if (created1)
9909 delete arg1;
9910 }
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxImage *arg1 = (wxImage *) 0 ;
9918 wxInputStream *arg2 = 0 ;
9919 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9920 int arg4 = (int) -1 ;
9921 bool result;
9922 wxPyInputStream *temp2 ;
9923 bool created2 ;
9924 PyObject * obj0 = 0 ;
9925 PyObject * obj1 = 0 ;
9926 PyObject * obj2 = 0 ;
9927 PyObject * obj3 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9935 {
9936 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9937 arg2 = temp2->m_wxis;
9938 created2 = False;
9939 } else {
9940 PyErr_Clear(); // clear the failure of the wxPyConvert above
9941 arg2 = wxPyCBInputStream_create(obj1, False);
9942 if (arg2 == NULL) {
9943 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9944 SWIG_fail;
9945 }
9946 created2 = True;
9947 }
9948 }
9949 if (obj2) {
9950 arg3 = (long) SWIG_AsLong(obj2);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 if (obj3) {
9954 arg4 = (int) SWIG_AsInt(obj3);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 {
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9960
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 {
9965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9966 }
9967 {
9968 if (created2)
9969 delete arg2;
9970 }
9971 return resultobj;
9972 fail:
9973 {
9974 if (created2)
9975 delete arg2;
9976 }
9977 return NULL;
9978 }
9979
9980
9981 static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj;
9983 wxImage *arg1 = (wxImage *) 0 ;
9984 wxInputStream *arg2 = 0 ;
9985 wxString *arg3 = 0 ;
9986 int arg4 = (int) -1 ;
9987 bool result;
9988 wxPyInputStream *temp2 ;
9989 bool created2 ;
9990 bool temp3 = False ;
9991 PyObject * obj0 = 0 ;
9992 PyObject * obj1 = 0 ;
9993 PyObject * obj2 = 0 ;
9994 PyObject * obj3 = 0 ;
9995 char *kwnames[] = {
9996 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9997 };
9998
9999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10002 {
10003 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
10004 arg2 = temp2->m_wxis;
10005 created2 = False;
10006 } else {
10007 PyErr_Clear(); // clear the failure of the wxPyConvert above
10008 arg2 = wxPyCBInputStream_create(obj1, False);
10009 if (arg2 == NULL) {
10010 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10011 SWIG_fail;
10012 }
10013 created2 = True;
10014 }
10015 }
10016 {
10017 arg3 = wxString_in_helper(obj2);
10018 if (arg3 == NULL) SWIG_fail;
10019 temp3 = True;
10020 }
10021 if (obj3) {
10022 arg4 = (int) SWIG_AsInt(obj3);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
10028
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 {
10033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10034 }
10035 {
10036 if (created2)
10037 delete arg2;
10038 }
10039 {
10040 if (temp3)
10041 delete arg3;
10042 }
10043 return resultobj;
10044 fail:
10045 {
10046 if (created2)
10047 delete arg2;
10048 }
10049 {
10050 if (temp3)
10051 delete arg3;
10052 }
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxImage *arg1 = (wxImage *) 0 ;
10060 bool result;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10069 {
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 result = (bool)(arg1)->Ok();
10072
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 {
10077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10078 }
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxImage *arg1 = (wxImage *) 0 ;
10088 int result;
10089 PyObject * obj0 = 0 ;
10090 char *kwnames[] = {
10091 (char *) "self", NULL
10092 };
10093
10094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
10095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10097 {
10098 PyThreadState* __tstate = wxPyBeginAllowThreads();
10099 result = (int)(arg1)->GetWidth();
10100
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 resultobj = SWIG_FromInt((int)result);
10105 return resultobj;
10106 fail:
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 wxImage *arg1 = (wxImage *) 0 ;
10114 int result;
10115 PyObject * obj0 = 0 ;
10116 char *kwnames[] = {
10117 (char *) "self", NULL
10118 };
10119
10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10123 {
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (int)(arg1)->GetHeight();
10126
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 resultobj = SWIG_FromInt((int)result);
10131 return resultobj;
10132 fail:
10133 return NULL;
10134 }
10135
10136
10137 static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10138 PyObject *resultobj;
10139 wxImage *arg1 = (wxImage *) 0 ;
10140 wxSize result;
10141 PyObject * obj0 = 0 ;
10142 char *kwnames[] = {
10143 (char *) "self", NULL
10144 };
10145
10146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
10147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 result = wxImage_GetSize(arg1);
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 {
10157 wxSize * resultptr;
10158 resultptr = new wxSize((wxSize &) result);
10159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10160 }
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxImage *arg1 = (wxImage *) 0 ;
10170 wxRect *arg2 = 0 ;
10171 SwigValueWrapper< wxImage > result;
10172 wxRect temp2 ;
10173 PyObject * obj0 = 0 ;
10174 PyObject * obj1 = 0 ;
10175 char *kwnames[] = {
10176 (char *) "self",(char *) "rect", NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10182 {
10183 arg2 = &temp2;
10184 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10185 }
10186 {
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10189
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 {
10194 wxImage * resultptr;
10195 resultptr = new wxImage((wxImage &) result);
10196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10197 }
10198 return resultobj;
10199 fail:
10200 return NULL;
10201 }
10202
10203
10204 static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj;
10206 wxImage *arg1 = (wxImage *) 0 ;
10207 SwigValueWrapper< wxImage > result;
10208 PyObject * obj0 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (arg1)->Copy();
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 {
10224 wxImage * resultptr;
10225 resultptr = new wxImage((wxImage &) result);
10226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10227 }
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj;
10236 wxImage *arg1 = (wxImage *) 0 ;
10237 wxImage *arg2 = 0 ;
10238 int arg3 ;
10239 int arg4 ;
10240 PyObject * obj0 = 0 ;
10241 PyObject * obj1 = 0 ;
10242 PyObject * obj2 = 0 ;
10243 PyObject * obj3 = 0 ;
10244 char *kwnames[] = {
10245 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10246 };
10247
10248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10251 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10252 SWIG_POINTER_EXCEPTION | 0)) == -1)
10253 SWIG_fail;
10254 if (arg2 == NULL) {
10255 PyErr_SetString(PyExc_TypeError,"null reference");
10256 SWIG_fail;
10257 }
10258 arg3 = (int) SWIG_AsInt(obj2);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 arg4 = (int) SWIG_AsInt(obj3);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10265
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) SWIG_fail;
10268 }
10269 Py_INCREF(Py_None); resultobj = Py_None;
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj;
10278 wxImage *arg1 = (wxImage *) 0 ;
10279 PyObject *result;
10280 PyObject * obj0 = 0 ;
10281 char *kwnames[] = {
10282 (char *) "self", NULL
10283 };
10284
10285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (PyObject *)wxImage_GetData(arg1);
10291
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 resultobj = result;
10296 return resultobj;
10297 fail:
10298 return NULL;
10299 }
10300
10301
10302 static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj;
10304 wxImage *arg1 = (wxImage *) 0 ;
10305 PyObject *arg2 = (PyObject *) 0 ;
10306 PyObject * obj0 = 0 ;
10307 PyObject * obj1 = 0 ;
10308 char *kwnames[] = {
10309 (char *) "self",(char *) "data", NULL
10310 };
10311
10312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10315 arg2 = obj1;
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 wxImage_SetData(arg1,arg2);
10319
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
10323 Py_INCREF(Py_None); resultobj = Py_None;
10324 return resultobj;
10325 fail:
10326 return NULL;
10327 }
10328
10329
10330 static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10331 PyObject *resultobj;
10332 wxImage *arg1 = (wxImage *) 0 ;
10333 PyObject *result;
10334 PyObject * obj0 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "self", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 resultobj = result;
10350 return resultobj;
10351 fail:
10352 return NULL;
10353 }
10354
10355
10356 static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj;
10358 wxImage *arg1 = (wxImage *) 0 ;
10359 PyObject *arg2 = (PyObject *) 0 ;
10360 PyObject * obj0 = 0 ;
10361 PyObject * obj1 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self",(char *) "data", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 arg2 = obj1;
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 wxImage_SetDataBuffer(arg1,arg2);
10373
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 Py_INCREF(Py_None); resultobj = Py_None;
10378 return resultobj;
10379 fail:
10380 return NULL;
10381 }
10382
10383
10384 static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxImage *arg1 = (wxImage *) 0 ;
10387 PyObject *result;
10388 PyObject * obj0 = 0 ;
10389 char *kwnames[] = {
10390 (char *) "self", NULL
10391 };
10392
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 result = (PyObject *)wxImage_GetAlphaData(arg1);
10399
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 resultobj = result;
10404 return resultobj;
10405 fail:
10406 return NULL;
10407 }
10408
10409
10410 static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj;
10412 wxImage *arg1 = (wxImage *) 0 ;
10413 PyObject *arg2 = (PyObject *) 0 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self",(char *) "data", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10423 arg2 = obj1;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 wxImage_SetAlphaData(arg1,arg2);
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 Py_INCREF(Py_None); resultobj = Py_None;
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxImage *arg1 = (wxImage *) 0 ;
10441 PyObject *result;
10442 PyObject * obj0 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = result;
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10465 PyObject *resultobj;
10466 wxImage *arg1 = (wxImage *) 0 ;
10467 PyObject *arg2 = (PyObject *) 0 ;
10468 PyObject * obj0 = 0 ;
10469 PyObject * obj1 = 0 ;
10470 char *kwnames[] = {
10471 (char *) "self",(char *) "data", NULL
10472 };
10473
10474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10477 arg2 = obj1;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 wxImage_SetAlphaBuffer(arg1,arg2);
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 Py_INCREF(Py_None); resultobj = Py_None;
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj;
10494 wxImage *arg1 = (wxImage *) 0 ;
10495 unsigned char arg2 ;
10496 unsigned char arg3 ;
10497 unsigned char arg4 ;
10498 PyObject * obj0 = 0 ;
10499 PyObject * obj1 = 0 ;
10500 PyObject * obj2 = 0 ;
10501 PyObject * obj3 = 0 ;
10502 char *kwnames[] = {
10503 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10504 };
10505
10506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10509 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 (arg1)->SetMaskColour(arg2,arg3,arg4);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 Py_INCREF(Py_None); resultobj = Py_None;
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxImage *arg1 = (wxImage *) 0 ;
10532 unsigned char result;
10533 PyObject * obj0 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10541 {
10542 PyThreadState* __tstate = wxPyBeginAllowThreads();
10543 result = (unsigned char)(arg1)->GetMaskRed();
10544
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10556 PyObject *resultobj;
10557 wxImage *arg1 = (wxImage *) 0 ;
10558 unsigned char result;
10559 PyObject * obj0 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 result = (unsigned char)(arg1)->GetMaskGreen();
10570
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj;
10583 wxImage *arg1 = (wxImage *) 0 ;
10584 unsigned char result;
10585 PyObject * obj0 = 0 ;
10586 char *kwnames[] = {
10587 (char *) "self", NULL
10588 };
10589
10590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 result = (unsigned char)(arg1)->GetMaskBlue();
10596
10597 wxPyEndAllowThreads(__tstate);
10598 if (PyErr_Occurred()) SWIG_fail;
10599 }
10600 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10601 return resultobj;
10602 fail:
10603 return NULL;
10604 }
10605
10606
10607 static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10608 PyObject *resultobj;
10609 wxImage *arg1 = (wxImage *) 0 ;
10610 bool arg2 = (bool) True ;
10611 PyObject * obj0 = 0 ;
10612 PyObject * obj1 = 0 ;
10613 char *kwnames[] = {
10614 (char *) "self",(char *) "mask", NULL
10615 };
10616
10617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10620 if (obj1) {
10621 arg2 = (bool) SWIG_AsBool(obj1);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 {
10625 PyThreadState* __tstate = wxPyBeginAllowThreads();
10626 (arg1)->SetMask(arg2);
10627
10628 wxPyEndAllowThreads(__tstate);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
10631 Py_INCREF(Py_None); resultobj = Py_None;
10632 return resultobj;
10633 fail:
10634 return NULL;
10635 }
10636
10637
10638 static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj;
10640 wxImage *arg1 = (wxImage *) 0 ;
10641 bool result;
10642 PyObject * obj0 = 0 ;
10643 char *kwnames[] = {
10644 (char *) "self", NULL
10645 };
10646
10647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 result = (bool)(arg1)->HasMask();
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 {
10658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10659 }
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 wxImage *arg1 = (wxImage *) 0 ;
10669 double arg2 ;
10670 wxPoint *arg3 = 0 ;
10671 bool arg4 = (bool) True ;
10672 wxPoint *arg5 = (wxPoint *) NULL ;
10673 SwigValueWrapper< wxImage > result;
10674 wxPoint temp3 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 PyObject * obj2 = 0 ;
10678 PyObject * obj3 = 0 ;
10679 PyObject * obj4 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10687 arg2 = (double) SWIG_AsDouble(obj1);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 {
10690 arg3 = &temp3;
10691 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10692 }
10693 if (obj3) {
10694 arg4 = (bool) SWIG_AsBool(obj3);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 if (obj4) {
10698 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
10699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10700 }
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 {
10709 wxImage * resultptr;
10710 resultptr = new wxImage((wxImage &) result);
10711 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10712 }
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 wxImage *arg1 = (wxImage *) 0 ;
10722 bool arg2 = (bool) True ;
10723 SwigValueWrapper< wxImage > result;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 char *kwnames[] = {
10727 (char *) "self",(char *) "clockwise", NULL
10728 };
10729
10730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10733 if (obj1) {
10734 arg2 = (bool) SWIG_AsBool(obj1);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 result = (arg1)->Rotate90(arg2);
10740
10741 wxPyEndAllowThreads(__tstate);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 {
10745 wxImage * resultptr;
10746 resultptr = new wxImage((wxImage &) result);
10747 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10748 }
10749 return resultobj;
10750 fail:
10751 return NULL;
10752 }
10753
10754
10755 static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj;
10757 wxImage *arg1 = (wxImage *) 0 ;
10758 bool arg2 = (bool) True ;
10759 SwigValueWrapper< wxImage > result;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 char *kwnames[] = {
10763 (char *) "self",(char *) "horizontally", NULL
10764 };
10765
10766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10769 if (obj1) {
10770 arg2 = (bool) SWIG_AsBool(obj1);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 result = (arg1)->Mirror(arg2);
10776
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 wxImage * resultptr;
10782 resultptr = new wxImage((wxImage &) result);
10783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10784 }
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxImage *arg1 = (wxImage *) 0 ;
10794 unsigned char arg2 ;
10795 unsigned char arg3 ;
10796 unsigned char arg4 ;
10797 unsigned char arg5 ;
10798 unsigned char arg6 ;
10799 unsigned char arg7 ;
10800 PyObject * obj0 = 0 ;
10801 PyObject * obj1 = 0 ;
10802 PyObject * obj2 = 0 ;
10803 PyObject * obj3 = 0 ;
10804 PyObject * obj4 = 0 ;
10805 PyObject * obj5 = 0 ;
10806 PyObject * obj6 = 0 ;
10807 char *kwnames[] = {
10808 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10809 };
10810
10811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10814 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10829
10830 wxPyEndAllowThreads(__tstate);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
10833 Py_INCREF(Py_None); resultobj = Py_None;
10834 return resultobj;
10835 fail:
10836 return NULL;
10837 }
10838
10839
10840 static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10841 PyObject *resultobj;
10842 wxImage *arg1 = (wxImage *) 0 ;
10843 unsigned char arg2 ;
10844 unsigned char arg3 ;
10845 unsigned char arg4 ;
10846 SwigValueWrapper< wxImage > result;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 PyObject * obj2 = 0 ;
10850 PyObject * obj3 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10858 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 {
10872 wxImage * resultptr;
10873 resultptr = new wxImage((wxImage &) result);
10874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10875 }
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj;
10884 wxImage *arg1 = (wxImage *) 0 ;
10885 wxString *arg2 = 0 ;
10886 wxString *arg3 = 0 ;
10887 bool temp2 = False ;
10888 bool temp3 = False ;
10889 PyObject * obj0 = 0 ;
10890 PyObject * obj1 = 0 ;
10891 PyObject * obj2 = 0 ;
10892 char *kwnames[] = {
10893 (char *) "self",(char *) "name",(char *) "value", NULL
10894 };
10895
10896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10899 {
10900 arg2 = wxString_in_helper(obj1);
10901 if (arg2 == NULL) SWIG_fail;
10902 temp2 = True;
10903 }
10904 {
10905 arg3 = wxString_in_helper(obj2);
10906 if (arg3 == NULL) SWIG_fail;
10907 temp3 = True;
10908 }
10909 {
10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
10911 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10912
10913 wxPyEndAllowThreads(__tstate);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 }
10916 Py_INCREF(Py_None); resultobj = Py_None;
10917 {
10918 if (temp2)
10919 delete arg2;
10920 }
10921 {
10922 if (temp3)
10923 delete arg3;
10924 }
10925 return resultobj;
10926 fail:
10927 {
10928 if (temp2)
10929 delete arg2;
10930 }
10931 {
10932 if (temp3)
10933 delete arg3;
10934 }
10935 return NULL;
10936 }
10937
10938
10939 static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10940 PyObject *resultobj;
10941 wxImage *arg1 = (wxImage *) 0 ;
10942 wxString *arg2 = 0 ;
10943 int arg3 ;
10944 bool temp2 = False ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 PyObject * obj2 = 0 ;
10948 char *kwnames[] = {
10949 (char *) "self",(char *) "name",(char *) "value", NULL
10950 };
10951
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10955 {
10956 arg2 = wxString_in_helper(obj1);
10957 if (arg2 == NULL) SWIG_fail;
10958 temp2 = True;
10959 }
10960 arg3 = (int) SWIG_AsInt(obj2);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 (arg1)->SetOption((wxString const &)*arg2,arg3);
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 Py_INCREF(Py_None); resultobj = Py_None;
10970 {
10971 if (temp2)
10972 delete arg2;
10973 }
10974 return resultobj;
10975 fail:
10976 {
10977 if (temp2)
10978 delete arg2;
10979 }
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxImage *arg1 = (wxImage *) 0 ;
10987 wxString *arg2 = 0 ;
10988 wxString result;
10989 bool temp2 = False ;
10990 PyObject * obj0 = 0 ;
10991 PyObject * obj1 = 0 ;
10992 char *kwnames[] = {
10993 (char *) "self",(char *) "name", NULL
10994 };
10995
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10999 {
11000 arg2 = wxString_in_helper(obj1);
11001 if (arg2 == NULL) SWIG_fail;
11002 temp2 = True;
11003 }
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
11007
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 {
11012 #if wxUSE_UNICODE
11013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11014 #else
11015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11016 #endif
11017 }
11018 {
11019 if (temp2)
11020 delete arg2;
11021 }
11022 return resultobj;
11023 fail:
11024 {
11025 if (temp2)
11026 delete arg2;
11027 }
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj;
11034 wxImage *arg1 = (wxImage *) 0 ;
11035 wxString *arg2 = 0 ;
11036 int result;
11037 bool temp2 = False ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 char *kwnames[] = {
11041 (char *) "self",(char *) "name", NULL
11042 };
11043
11044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
11045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11047 {
11048 arg2 = wxString_in_helper(obj1);
11049 if (arg2 == NULL) SWIG_fail;
11050 temp2 = True;
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 resultobj = SWIG_FromInt((int)result);
11060 {
11061 if (temp2)
11062 delete arg2;
11063 }
11064 return resultobj;
11065 fail:
11066 {
11067 if (temp2)
11068 delete arg2;
11069 }
11070 return NULL;
11071 }
11072
11073
11074 static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
11075 PyObject *resultobj;
11076 wxImage *arg1 = (wxImage *) 0 ;
11077 wxString *arg2 = 0 ;
11078 bool result;
11079 bool temp2 = False ;
11080 PyObject * obj0 = 0 ;
11081 PyObject * obj1 = 0 ;
11082 char *kwnames[] = {
11083 (char *) "self",(char *) "name", NULL
11084 };
11085
11086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
11087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11089 {
11090 arg2 = wxString_in_helper(obj1);
11091 if (arg2 == NULL) SWIG_fail;
11092 temp2 = True;
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 {
11102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11103 }
11104 {
11105 if (temp2)
11106 delete arg2;
11107 }
11108 return resultobj;
11109 fail:
11110 {
11111 if (temp2)
11112 delete arg2;
11113 }
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxImage *arg1 = (wxImage *) 0 ;
11121 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11122 unsigned long result;
11123 PyObject * obj0 = 0 ;
11124 PyObject * obj1 = 0 ;
11125 char *kwnames[] = {
11126 (char *) "self",(char *) "stopafter", NULL
11127 };
11128
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11132 if (obj1) {
11133 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = (unsigned long)(arg1)->CountColours(arg2);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11144 return resultobj;
11145 fail:
11146 return NULL;
11147 }
11148
11149
11150 static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
11151 PyObject *resultobj;
11152 wxImage *arg1 = (wxImage *) 0 ;
11153 wxImageHistogram *arg2 = 0 ;
11154 unsigned long result;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "self",(char *) "h", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11165 SWIG_POINTER_EXCEPTION | 0)) == -1)
11166 SWIG_fail;
11167 if (arg2 == NULL) {
11168 PyErr_SetString(PyExc_TypeError,"null reference");
11169 SWIG_fail;
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11179 return resultobj;
11180 fail:
11181 return NULL;
11182 }
11183
11184
11185 static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj;
11187 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11188 PyObject * obj0 = 0 ;
11189 char *kwnames[] = {
11190 (char *) "handler", NULL
11191 };
11192
11193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 wxImage::AddHandler(arg1);
11199
11200 wxPyEndAllowThreads(__tstate);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 Py_INCREF(Py_None); resultobj = Py_None;
11204 return resultobj;
11205 fail:
11206 return NULL;
11207 }
11208
11209
11210 static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11211 PyObject *resultobj;
11212 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11213 PyObject * obj0 = 0 ;
11214 char *kwnames[] = {
11215 (char *) "handler", NULL
11216 };
11217
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 wxImage::InsertHandler(arg1);
11224
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 Py_INCREF(Py_None); resultobj = Py_None;
11229 return resultobj;
11230 fail:
11231 return NULL;
11232 }
11233
11234
11235 static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11236 PyObject *resultobj;
11237 wxString *arg1 = 0 ;
11238 bool result;
11239 bool temp1 = False ;
11240 PyObject * obj0 = 0 ;
11241 char *kwnames[] = {
11242 (char *) "name", NULL
11243 };
11244
11245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11246 {
11247 arg1 = wxString_in_helper(obj0);
11248 if (arg1 == NULL) SWIG_fail;
11249 temp1 = True;
11250 }
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 {
11259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11260 }
11261 {
11262 if (temp1)
11263 delete arg1;
11264 }
11265 return resultobj;
11266 fail:
11267 {
11268 if (temp1)
11269 delete arg1;
11270 }
11271 return NULL;
11272 }
11273
11274
11275 static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj;
11277 wxString result;
11278 char *kwnames[] = {
11279 NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 result = wxImage::GetImageExtWildcard();
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 {
11291 #if wxUSE_UNICODE
11292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11293 #else
11294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11295 #endif
11296 }
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11304 PyObject *resultobj;
11305 wxImage *arg1 = (wxImage *) 0 ;
11306 wxBitmap result;
11307 PyObject * obj0 = 0 ;
11308 char *kwnames[] = {
11309 (char *) "self", NULL
11310 };
11311
11312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
11313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11315 {
11316 if (!wxPyCheckForApp()) SWIG_fail;
11317 PyThreadState* __tstate = wxPyBeginAllowThreads();
11318 result = wxImage_ConvertToBitmap(arg1);
11319
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 wxBitmap * resultptr;
11325 resultptr = new wxBitmap((wxBitmap &) result);
11326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11327 }
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj;
11336 wxImage *arg1 = (wxImage *) 0 ;
11337 unsigned char arg2 ;
11338 unsigned char arg3 ;
11339 unsigned char arg4 ;
11340 wxBitmap result;
11341 PyObject * obj0 = 0 ;
11342 PyObject * obj1 = 0 ;
11343 PyObject * obj2 = 0 ;
11344 PyObject * obj3 = 0 ;
11345 char *kwnames[] = {
11346 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11347 };
11348
11349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11352 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 {
11359 if (!wxPyCheckForApp()) SWIG_fail;
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11362
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 {
11367 wxBitmap * resultptr;
11368 resultptr = new wxBitmap((wxBitmap &) result);
11369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11370 }
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
11378 PyObject *obj;
11379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11380 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11381 Py_INCREF(obj);
11382 return Py_BuildValue((char *)"");
11383 }
11384 static int _wrap_NullImage_set(PyObject *_val) {
11385 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11386 return 1;
11387 }
11388
11389
11390 static PyObject *_wrap_NullImage_get() {
11391 PyObject *pyobj;
11392
11393 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11394 return pyobj;
11395 }
11396
11397
11398 static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) {
11399 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11400 return 1;
11401 }
11402
11403
11404 static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11405 PyObject *pyobj;
11406
11407 {
11408 #if wxUSE_UNICODE
11409 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11410 #else
11411 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11412 #endif
11413 }
11414 return pyobj;
11415 }
11416
11417
11418 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) {
11419 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11420 return 1;
11421 }
11422
11423
11424 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11425 PyObject *pyobj;
11426
11427 {
11428 #if wxUSE_UNICODE
11429 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11430 #else
11431 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11432 #endif
11433 }
11434 return pyobj;
11435 }
11436
11437
11438 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) {
11439 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11440 return 1;
11441 }
11442
11443
11444 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11445 PyObject *pyobj;
11446
11447 {
11448 #if wxUSE_UNICODE
11449 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11450 #else
11451 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11452 #endif
11453 }
11454 return pyobj;
11455 }
11456
11457
11458 static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) {
11459 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11460 return 1;
11461 }
11462
11463
11464 static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11465 PyObject *pyobj;
11466
11467 {
11468 #if wxUSE_UNICODE
11469 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11470 #else
11471 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11472 #endif
11473 }
11474 return pyobj;
11475 }
11476
11477
11478 static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) {
11479 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11480 return 1;
11481 }
11482
11483
11484 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11485 PyObject *pyobj;
11486
11487 {
11488 #if wxUSE_UNICODE
11489 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11490 #else
11491 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11492 #endif
11493 }
11494 return pyobj;
11495 }
11496
11497
11498 static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11499 PyObject *resultobj;
11500 wxBMPHandler *result;
11501 char *kwnames[] = {
11502 NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (wxBMPHandler *)new wxBMPHandler();
11509
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11514 return resultobj;
11515 fail:
11516 return NULL;
11517 }
11518
11519
11520 static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11521 PyObject *obj;
11522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11523 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11524 Py_INCREF(obj);
11525 return Py_BuildValue((char *)"");
11526 }
11527 static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11528 PyObject *resultobj;
11529 wxICOHandler *result;
11530 char *kwnames[] = {
11531 NULL
11532 };
11533
11534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 result = (wxICOHandler *)new wxICOHandler();
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11550 PyObject *obj;
11551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11552 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11553 Py_INCREF(obj);
11554 return Py_BuildValue((char *)"");
11555 }
11556 static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj;
11558 wxCURHandler *result;
11559 char *kwnames[] = {
11560 NULL
11561 };
11562
11563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 result = (wxCURHandler *)new wxCURHandler();
11567
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11572 return resultobj;
11573 fail:
11574 return NULL;
11575 }
11576
11577
11578 static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11579 PyObject *obj;
11580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11581 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11582 Py_INCREF(obj);
11583 return Py_BuildValue((char *)"");
11584 }
11585 static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxANIHandler *result;
11588 char *kwnames[] = {
11589 NULL
11590 };
11591
11592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 result = (wxANIHandler *)new wxANIHandler();
11596
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11608 PyObject *obj;
11609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11610 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11611 Py_INCREF(obj);
11612 return Py_BuildValue((char *)"");
11613 }
11614 static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj;
11616 wxPNGHandler *result;
11617 char *kwnames[] = {
11618 NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 result = (wxPNGHandler *)new wxPNGHandler();
11625
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11630 return resultobj;
11631 fail:
11632 return NULL;
11633 }
11634
11635
11636 static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11637 PyObject *obj;
11638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11639 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11640 Py_INCREF(obj);
11641 return Py_BuildValue((char *)"");
11642 }
11643 static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11644 PyObject *resultobj;
11645 wxGIFHandler *result;
11646 char *kwnames[] = {
11647 NULL
11648 };
11649
11650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxGIFHandler *)new wxGIFHandler();
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11666 PyObject *obj;
11667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11668 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11669 Py_INCREF(obj);
11670 return Py_BuildValue((char *)"");
11671 }
11672 static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj;
11674 wxPCXHandler *result;
11675 char *kwnames[] = {
11676 NULL
11677 };
11678
11679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11680 {
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (wxPCXHandler *)new wxPCXHandler();
11683
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11695 PyObject *obj;
11696 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11697 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11698 Py_INCREF(obj);
11699 return Py_BuildValue((char *)"");
11700 }
11701 static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11702 PyObject *resultobj;
11703 wxJPEGHandler *result;
11704 char *kwnames[] = {
11705 NULL
11706 };
11707
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11709 {
11710 PyThreadState* __tstate = wxPyBeginAllowThreads();
11711 result = (wxJPEGHandler *)new wxJPEGHandler();
11712
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
11717 return resultobj;
11718 fail:
11719 return NULL;
11720 }
11721
11722
11723 static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11724 PyObject *obj;
11725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11726 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11727 Py_INCREF(obj);
11728 return Py_BuildValue((char *)"");
11729 }
11730 static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11731 PyObject *resultobj;
11732 wxPNMHandler *result;
11733 char *kwnames[] = {
11734 NULL
11735 };
11736
11737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (wxPNMHandler *)new wxPNMHandler();
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11753 PyObject *obj;
11754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11755 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11756 Py_INCREF(obj);
11757 return Py_BuildValue((char *)"");
11758 }
11759 static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11760 PyObject *resultobj;
11761 wxXPMHandler *result;
11762 char *kwnames[] = {
11763 NULL
11764 };
11765
11766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (wxXPMHandler *)new wxXPMHandler();
11770
11771 wxPyEndAllowThreads(__tstate);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
11775 return resultobj;
11776 fail:
11777 return NULL;
11778 }
11779
11780
11781 static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11782 PyObject *obj;
11783 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11784 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11785 Py_INCREF(obj);
11786 return Py_BuildValue((char *)"");
11787 }
11788 static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxTIFFHandler *result;
11791 char *kwnames[] = {
11792 NULL
11793 };
11794
11795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11796 {
11797 PyThreadState* __tstate = wxPyBeginAllowThreads();
11798 result = (wxTIFFHandler *)new wxTIFFHandler();
11799
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11811 PyObject *obj;
11812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11813 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11814 Py_INCREF(obj);
11815 return Py_BuildValue((char *)"");
11816 }
11817 static PyObject *_wrap_Quantize_Quantize(PyObject *self, PyObject *args, PyObject *kwargs) {
11818 PyObject *resultobj;
11819 wxImage *arg1 = 0 ;
11820 wxImage *arg2 = 0 ;
11821 int arg3 = (int) 236 ;
11822 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
11823 bool result;
11824 PyObject * obj0 = 0 ;
11825 PyObject * obj1 = 0 ;
11826 PyObject * obj2 = 0 ;
11827 PyObject * obj3 = 0 ;
11828 char *kwnames[] = {
11829 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
11830 };
11831
11832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11834 SWIG_POINTER_EXCEPTION | 0)) == -1)
11835 SWIG_fail;
11836 if (arg1 == NULL) {
11837 PyErr_SetString(PyExc_TypeError,"null reference");
11838 SWIG_fail;
11839 }
11840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
11841 SWIG_POINTER_EXCEPTION | 0)) == -1)
11842 SWIG_fail;
11843 if (arg2 == NULL) {
11844 PyErr_SetString(PyExc_TypeError,"null reference");
11845 SWIG_fail;
11846 }
11847 if (obj2) {
11848 arg3 = (int) SWIG_AsInt(obj2);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 if (obj3) {
11852 arg4 = (int) SWIG_AsInt(obj3);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 {
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
11858
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 {
11863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11864 }
11865 return resultobj;
11866 fail:
11867 return NULL;
11868 }
11869
11870
11871 static PyObject * Quantize_swigregister(PyObject *self, PyObject *args) {
11872 PyObject *obj;
11873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11874 SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj);
11875 Py_INCREF(obj);
11876 return Py_BuildValue((char *)"");
11877 }
11878 static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11879 PyObject *resultobj;
11880 wxEvtHandler *result;
11881 char *kwnames[] = {
11882 NULL
11883 };
11884
11885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 result = (wxEvtHandler *)new wxEvtHandler();
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1);
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11901 PyObject *resultobj;
11902 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11903 wxEvtHandler *result;
11904 PyObject * obj0 = 0 ;
11905 char *kwnames[] = {
11906 (char *) "self", NULL
11907 };
11908
11909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11912 {
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11915
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 {
11920 resultobj = wxPyMake_wxObject(result, 0);
11921 }
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj;
11930 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11931 wxEvtHandler *result;
11932 PyObject * obj0 = 0 ;
11933 char *kwnames[] = {
11934 (char *) "self", NULL
11935 };
11936
11937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11943
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 {
11948 resultobj = wxPyMake_wxObject(result, 0);
11949 }
11950 return resultobj;
11951 fail:
11952 return NULL;
11953 }
11954
11955
11956 static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11957 PyObject *resultobj;
11958 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11959 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11960 PyObject * obj0 = 0 ;
11961 PyObject * obj1 = 0 ;
11962 char *kwnames[] = {
11963 (char *) "self",(char *) "handler", NULL
11964 };
11965
11966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 (arg1)->SetNextHandler(arg2);
11974
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 Py_INCREF(Py_None); resultobj = Py_None;
11979 return resultobj;
11980 fail:
11981 return NULL;
11982 }
11983
11984
11985 static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj;
11987 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11988 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11989 PyObject * obj0 = 0 ;
11990 PyObject * obj1 = 0 ;
11991 char *kwnames[] = {
11992 (char *) "self",(char *) "handler", NULL
11993 };
11994
11995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 (arg1)->SetPreviousHandler(arg2);
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 Py_INCREF(Py_None); resultobj = Py_None;
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12017 bool result;
12018 PyObject * obj0 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 result = (bool)(arg1)->GetEvtHandlerEnabled();
12029
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 {
12034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12035 }
12036 return resultobj;
12037 fail:
12038 return NULL;
12039 }
12040
12041
12042 static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj;
12044 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12045 bool arg2 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char *kwnames[] = {
12049 (char *) "self",(char *) "enabled", NULL
12050 };
12051
12052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
12053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12055 arg2 = (bool) SWIG_AsBool(obj1);
12056 if (PyErr_Occurred()) SWIG_fail;
12057 {
12058 PyThreadState* __tstate = wxPyBeginAllowThreads();
12059 (arg1)->SetEvtHandlerEnabled(arg2);
12060
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 Py_INCREF(Py_None); resultobj = Py_None;
12065 return resultobj;
12066 fail:
12067 return NULL;
12068 }
12069
12070
12071 static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12072 PyObject *resultobj;
12073 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12074 wxEvent *arg2 = 0 ;
12075 bool result;
12076 PyObject * obj0 = 0 ;
12077 PyObject * obj1 = 0 ;
12078 char *kwnames[] = {
12079 (char *) "self",(char *) "event", NULL
12080 };
12081
12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
12083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12086 SWIG_POINTER_EXCEPTION | 0)) == -1)
12087 SWIG_fail;
12088 if (arg2 == NULL) {
12089 PyErr_SetString(PyExc_TypeError,"null reference");
12090 SWIG_fail;
12091 }
12092 {
12093 PyThreadState* __tstate = wxPyBeginAllowThreads();
12094 result = (bool)(arg1)->ProcessEvent(*arg2);
12095
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 {
12100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12101 }
12102 return resultobj;
12103 fail:
12104 return NULL;
12105 }
12106
12107
12108 static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj;
12110 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12111 wxEvent *arg2 = 0 ;
12112 PyObject * obj0 = 0 ;
12113 PyObject * obj1 = 0 ;
12114 char *kwnames[] = {
12115 (char *) "self",(char *) "event", NULL
12116 };
12117
12118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
12119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12122 SWIG_POINTER_EXCEPTION | 0)) == -1)
12123 SWIG_fail;
12124 if (arg2 == NULL) {
12125 PyErr_SetString(PyExc_TypeError,"null reference");
12126 SWIG_fail;
12127 }
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 (arg1)->AddPendingEvent(*arg2);
12131
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 Py_INCREF(Py_None); resultobj = Py_None;
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj;
12144 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12145 PyObject * obj0 = 0 ;
12146 char *kwnames[] = {
12147 (char *) "self", NULL
12148 };
12149
12150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
12151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12153 {
12154 PyThreadState* __tstate = wxPyBeginAllowThreads();
12155 (arg1)->ProcessPendingEvents();
12156
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 Py_INCREF(Py_None); resultobj = Py_None;
12161 return resultobj;
12162 fail:
12163 return NULL;
12164 }
12165
12166
12167 static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12170 int arg2 ;
12171 int arg3 ;
12172 int arg4 ;
12173 PyObject *arg5 = (PyObject *) 0 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 PyObject * obj2 = 0 ;
12177 PyObject * obj3 = 0 ;
12178 PyObject * obj4 = 0 ;
12179 char *kwnames[] = {
12180 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12181 };
12182
12183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12186 arg2 = (int) SWIG_AsInt(obj1);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 arg3 = (int) SWIG_AsInt(obj2);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 arg4 = (int) SWIG_AsInt(obj3);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 arg5 = obj4;
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 Py_INCREF(Py_None); resultobj = Py_None;
12201 return resultobj;
12202 fail:
12203 return NULL;
12204 }
12205
12206
12207 static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12210 int arg2 ;
12211 int arg3 = (int) -1 ;
12212 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12213 bool result;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 PyObject * obj2 = 0 ;
12217 PyObject * obj3 = 0 ;
12218 char *kwnames[] = {
12219 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12220 };
12221
12222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12225 arg2 = (int) SWIG_AsInt(obj1);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 if (obj2) {
12228 arg3 = (int) SWIG_AsInt(obj2);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 if (obj3) {
12232 arg4 = (wxEventType) SWIG_AsInt(obj3);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12238
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12244 }
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj;
12253 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12254 PyObject *arg2 = (PyObject *) 0 ;
12255 PyObject * obj0 = 0 ;
12256 PyObject * obj1 = 0 ;
12257 char *kwnames[] = {
12258 (char *) "self",(char *) "_self", NULL
12259 };
12260
12261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12264 arg2 = obj1;
12265 {
12266 PyThreadState* __tstate = wxPyBeginAllowThreads();
12267 wxEvtHandler__setOORInfo(arg1,arg2);
12268
12269 wxPyEndAllowThreads(__tstate);
12270 if (PyErr_Occurred()) SWIG_fail;
12271 }
12272 Py_INCREF(Py_None); resultobj = Py_None;
12273 return resultobj;
12274 fail:
12275 return NULL;
12276 }
12277
12278
12279 static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
12280 PyObject *obj;
12281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12282 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12283 Py_INCREF(obj);
12284 return Py_BuildValue((char *)"");
12285 }
12286 static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj;
12288 wxEventType result;
12289 char *kwnames[] = {
12290 NULL
12291 };
12292
12293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = (wxEventType)wxNewEventType();
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_FromInt((int)result);
12302 return resultobj;
12303 fail:
12304 return NULL;
12305 }
12306
12307
12308 static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj;
12310 wxEvent *arg1 = (wxEvent *) 0 ;
12311 PyObject * obj0 = 0 ;
12312 char *kwnames[] = {
12313 (char *) "self", NULL
12314 };
12315
12316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 delete arg1;
12322
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 Py_INCREF(Py_None); resultobj = Py_None;
12327 return resultobj;
12328 fail:
12329 return NULL;
12330 }
12331
12332
12333 static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12334 PyObject *resultobj;
12335 wxEvent *arg1 = (wxEvent *) 0 ;
12336 wxEventType arg2 ;
12337 PyObject * obj0 = 0 ;
12338 PyObject * obj1 = 0 ;
12339 char *kwnames[] = {
12340 (char *) "self",(char *) "typ", NULL
12341 };
12342
12343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12346 arg2 = (wxEventType) SWIG_AsInt(obj1);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 (arg1)->SetEventType(arg2);
12351
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 Py_INCREF(Py_None); resultobj = Py_None;
12356 return resultobj;
12357 fail:
12358 return NULL;
12359 }
12360
12361
12362 static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj;
12364 wxEvent *arg1 = (wxEvent *) 0 ;
12365 wxEventType result;
12366 PyObject * obj0 = 0 ;
12367 char *kwnames[] = {
12368 (char *) "self", NULL
12369 };
12370
12371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12377
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_FromInt((int)result);
12382 return resultobj;
12383 fail:
12384 return NULL;
12385 }
12386
12387
12388 static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12389 PyObject *resultobj;
12390 wxEvent *arg1 = (wxEvent *) 0 ;
12391 wxObject *result;
12392 PyObject * obj0 = 0 ;
12393 char *kwnames[] = {
12394 (char *) "self", NULL
12395 };
12396
12397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 {
12408 resultobj = wxPyMake_wxObject(result, 0);
12409 }
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj;
12418 wxEvent *arg1 = (wxEvent *) 0 ;
12419 wxObject *arg2 = (wxObject *) 0 ;
12420 PyObject * obj0 = 0 ;
12421 PyObject * obj1 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "self",(char *) "obj", NULL
12424 };
12425
12426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->SetEventObject(arg2);
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 Py_INCREF(Py_None); resultobj = Py_None;
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj;
12447 wxEvent *arg1 = (wxEvent *) 0 ;
12448 long result;
12449 PyObject * obj0 = 0 ;
12450 char *kwnames[] = {
12451 (char *) "self", NULL
12452 };
12453
12454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12460
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_FromLong((long)result);
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj;
12473 wxEvent *arg1 = (wxEvent *) 0 ;
12474 long arg2 = (long) 0 ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char *kwnames[] = {
12478 (char *) "self",(char *) "ts", NULL
12479 };
12480
12481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12484 if (obj1) {
12485 arg2 = (long) SWIG_AsLong(obj1);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 {
12489 PyThreadState* __tstate = wxPyBeginAllowThreads();
12490 (arg1)->SetTimestamp(arg2);
12491
12492 wxPyEndAllowThreads(__tstate);
12493 if (PyErr_Occurred()) SWIG_fail;
12494 }
12495 Py_INCREF(Py_None); resultobj = Py_None;
12496 return resultobj;
12497 fail:
12498 return NULL;
12499 }
12500
12501
12502 static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12503 PyObject *resultobj;
12504 wxEvent *arg1 = (wxEvent *) 0 ;
12505 int result;
12506 PyObject * obj0 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "self", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 result = (int)((wxEvent const *)arg1)->GetId();
12517
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 resultobj = SWIG_FromInt((int)result);
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxEvent *arg1 = (wxEvent *) 0 ;
12531 int arg2 ;
12532 PyObject * obj0 = 0 ;
12533 PyObject * obj1 = 0 ;
12534 char *kwnames[] = {
12535 (char *) "self",(char *) "Id", NULL
12536 };
12537
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12541 arg2 = (int) SWIG_AsInt(obj1);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 (arg1)->SetId(arg2);
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 Py_INCREF(Py_None); resultobj = Py_None;
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12558 PyObject *resultobj;
12559 wxEvent *arg1 = (wxEvent *) 0 ;
12560 bool result;
12561 PyObject * obj0 = 0 ;
12562 char *kwnames[] = {
12563 (char *) "self", NULL
12564 };
12565
12566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12572
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 {
12577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12578 }
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxEvent *arg1 = (wxEvent *) 0 ;
12588 bool arg2 = (bool) True ;
12589 PyObject * obj0 = 0 ;
12590 PyObject * obj1 = 0 ;
12591 char *kwnames[] = {
12592 (char *) "self",(char *) "skip", NULL
12593 };
12594
12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12598 if (obj1) {
12599 arg2 = (bool) SWIG_AsBool(obj1);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 (arg1)->Skip(arg2);
12605
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 Py_INCREF(Py_None); resultobj = Py_None;
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12617 PyObject *resultobj;
12618 wxEvent *arg1 = (wxEvent *) 0 ;
12619 bool result;
12620 PyObject * obj0 = 0 ;
12621 char *kwnames[] = {
12622 (char *) "self", NULL
12623 };
12624
12625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12631
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 {
12636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12637 }
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj;
12646 wxEvent *arg1 = (wxEvent *) 0 ;
12647 bool result;
12648 PyObject * obj0 = 0 ;
12649 char *kwnames[] = {
12650 (char *) "self", NULL
12651 };
12652
12653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12659
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 {
12664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12665 }
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxEvent *arg1 = (wxEvent *) 0 ;
12675 int result;
12676 PyObject * obj0 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = (int)(arg1)->StopPropagation();
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = SWIG_FromInt((int)result);
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxEvent *arg1 = (wxEvent *) 0 ;
12701 int arg2 ;
12702 PyObject * obj0 = 0 ;
12703 PyObject * obj1 = 0 ;
12704 char *kwnames[] = {
12705 (char *) "self",(char *) "propagationLevel", NULL
12706 };
12707
12708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12711 arg2 = (int) SWIG_AsInt(obj1);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 (arg1)->ResumePropagation(arg2);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 Py_INCREF(Py_None); resultobj = Py_None;
12721 return resultobj;
12722 fail:
12723 return NULL;
12724 }
12725
12726
12727 static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxEvent *arg1 = (wxEvent *) 0 ;
12730 wxEvent *result;
12731 PyObject * obj0 = 0 ;
12732 char *kwnames[] = {
12733 (char *) "self", NULL
12734 };
12735
12736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = (wxEvent *)(arg1)->Clone();
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12754 PyObject *obj;
12755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12756 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12757 Py_INCREF(obj);
12758 return Py_BuildValue((char *)"");
12759 }
12760 static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj;
12762 wxEvent *arg1 = 0 ;
12763 wxPropagationDisabler *result;
12764 PyObject * obj0 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "event", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1)
12772 SWIG_fail;
12773 if (arg1 == NULL) {
12774 PyErr_SetString(PyExc_TypeError,"null reference");
12775 SWIG_fail;
12776 }
12777 {
12778 PyThreadState* __tstate = wxPyBeginAllowThreads();
12779 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12780
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
12785 return resultobj;
12786 fail:
12787 return NULL;
12788 }
12789
12790
12791 static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12792 PyObject *resultobj;
12793 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12794 PyObject * obj0 = 0 ;
12795 char *kwnames[] = {
12796 (char *) "self", NULL
12797 };
12798
12799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
12801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12802 {
12803 PyThreadState* __tstate = wxPyBeginAllowThreads();
12804 delete arg1;
12805
12806 wxPyEndAllowThreads(__tstate);
12807 if (PyErr_Occurred()) SWIG_fail;
12808 }
12809 Py_INCREF(Py_None); resultobj = Py_None;
12810 return resultobj;
12811 fail:
12812 return NULL;
12813 }
12814
12815
12816 static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12817 PyObject *obj;
12818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12819 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12820 Py_INCREF(obj);
12821 return Py_BuildValue((char *)"");
12822 }
12823 static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj;
12825 wxEvent *arg1 = 0 ;
12826 wxPropagateOnce *result;
12827 PyObject * obj0 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "event", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12834 SWIG_POINTER_EXCEPTION | 0)) == -1)
12835 SWIG_fail;
12836 if (arg1 == NULL) {
12837 PyErr_SetString(PyExc_TypeError,"null reference");
12838 SWIG_fail;
12839 }
12840 {
12841 PyThreadState* __tstate = wxPyBeginAllowThreads();
12842 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12843
12844 wxPyEndAllowThreads(__tstate);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
12848 return resultobj;
12849 fail:
12850 return NULL;
12851 }
12852
12853
12854 static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12855 PyObject *resultobj;
12856 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12857 PyObject * obj0 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 delete arg1;
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 Py_INCREF(Py_None); resultobj = Py_None;
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12880 PyObject *obj;
12881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12882 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12883 Py_INCREF(obj);
12884 return Py_BuildValue((char *)"");
12885 }
12886 static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12889 int arg2 = (int) 0 ;
12890 wxCommandEvent *result;
12891 PyObject * obj0 = 0 ;
12892 PyObject * obj1 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "commandType",(char *) "winid", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12898 if (obj0) {
12899 arg1 = (wxEventType) SWIG_AsInt(obj0);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 if (obj1) {
12903 arg2 = (int) SWIG_AsInt(obj1);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12909
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
12914 return resultobj;
12915 fail:
12916 return NULL;
12917 }
12918
12919
12920 static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj;
12922 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12923 int result;
12924 PyObject * obj0 = 0 ;
12925 char *kwnames[] = {
12926 (char *) "self", NULL
12927 };
12928
12929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12932 {
12933 PyThreadState* __tstate = wxPyBeginAllowThreads();
12934 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12935
12936 wxPyEndAllowThreads(__tstate);
12937 if (PyErr_Occurred()) SWIG_fail;
12938 }
12939 resultobj = SWIG_FromInt((int)result);
12940 return resultobj;
12941 fail:
12942 return NULL;
12943 }
12944
12945
12946 static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12947 PyObject *resultobj;
12948 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12949 wxString *arg2 = 0 ;
12950 bool temp2 = False ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 char *kwnames[] = {
12954 (char *) "self",(char *) "s", NULL
12955 };
12956
12957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12960 {
12961 arg2 = wxString_in_helper(obj1);
12962 if (arg2 == NULL) SWIG_fail;
12963 temp2 = True;
12964 }
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 (arg1)->SetString((wxString const &)*arg2);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 Py_INCREF(Py_None); resultobj = Py_None;
12973 {
12974 if (temp2)
12975 delete arg2;
12976 }
12977 return resultobj;
12978 fail:
12979 {
12980 if (temp2)
12981 delete arg2;
12982 }
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12990 wxString result;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "self", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 result = ((wxCommandEvent const *)arg1)->GetString();
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 {
13007 #if wxUSE_UNICODE
13008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13009 #else
13010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13011 #endif
13012 }
13013 return resultobj;
13014 fail:
13015 return NULL;
13016 }
13017
13018
13019 static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj;
13021 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13022 bool result;
13023 PyObject * obj0 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13040 }
13041 return resultobj;
13042 fail:
13043 return NULL;
13044 }
13045
13046
13047 static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13048 PyObject *resultobj;
13049 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13050 bool result;
13051 PyObject * obj0 = 0 ;
13052 char *kwnames[] = {
13053 (char *) "self", NULL
13054 };
13055
13056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
13057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
13062
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 {
13067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13068 }
13069 return resultobj;
13070 fail:
13071 return NULL;
13072 }
13073
13074
13075 static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj;
13077 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13078 long arg2 ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 char *kwnames[] = {
13082 (char *) "self",(char *) "extraLong", NULL
13083 };
13084
13085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
13086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13088 arg2 = (long) SWIG_AsLong(obj1);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 (arg1)->SetExtraLong(arg2);
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 Py_INCREF(Py_None); resultobj = Py_None;
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13107 long result;
13108 PyObject * obj0 = 0 ;
13109 char *kwnames[] = {
13110 (char *) "self", NULL
13111 };
13112
13113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
13114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
13119
13120 wxPyEndAllowThreads(__tstate);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 }
13123 resultobj = SWIG_FromLong((long)result);
13124 return resultobj;
13125 fail:
13126 return NULL;
13127 }
13128
13129
13130 static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj;
13132 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13133 int arg2 ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 char *kwnames[] = {
13137 (char *) "self",(char *) "i", NULL
13138 };
13139
13140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
13141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13143 arg2 = (int) SWIG_AsInt(obj1);
13144 if (PyErr_Occurred()) SWIG_fail;
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 (arg1)->SetInt(arg2);
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 Py_INCREF(Py_None); resultobj = Py_None;
13153 return resultobj;
13154 fail:
13155 return NULL;
13156 }
13157
13158
13159 static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj;
13161 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13162 long result;
13163 PyObject * obj0 = 0 ;
13164 char *kwnames[] = {
13165 (char *) "self", NULL
13166 };
13167
13168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 resultobj = SWIG_FromLong((long)result);
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj;
13187 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13188 wxEvent *result;
13189 PyObject * obj0 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self", NULL
13192 };
13193
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13200
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
13212 PyObject *obj;
13213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13214 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13215 Py_INCREF(obj);
13216 return Py_BuildValue((char *)"");
13217 }
13218 static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13219 PyObject *resultobj;
13220 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13221 int arg2 = (int) 0 ;
13222 wxNotifyEvent *result;
13223 PyObject * obj0 = 0 ;
13224 PyObject * obj1 = 0 ;
13225 char *kwnames[] = {
13226 (char *) "commandType",(char *) "winid", NULL
13227 };
13228
13229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13230 if (obj0) {
13231 arg1 = (wxEventType) SWIG_AsInt(obj0);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 if (obj1) {
13235 arg2 = (int) SWIG_AsInt(obj1);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
13253 PyObject *resultobj;
13254 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13255 PyObject * obj0 = 0 ;
13256 char *kwnames[] = {
13257 (char *) "self", NULL
13258 };
13259
13260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13263 {
13264 PyThreadState* __tstate = wxPyBeginAllowThreads();
13265 (arg1)->Veto();
13266
13267 wxPyEndAllowThreads(__tstate);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 Py_INCREF(Py_None); resultobj = Py_None;
13271 return resultobj;
13272 fail:
13273 return NULL;
13274 }
13275
13276
13277 static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
13278 PyObject *resultobj;
13279 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13280 PyObject * obj0 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 (arg1)->Allow();
13291
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 Py_INCREF(Py_None); resultobj = Py_None;
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13305 bool result;
13306 PyObject * obj0 = 0 ;
13307 char *kwnames[] = {
13308 (char *) "self", NULL
13309 };
13310
13311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (bool)(arg1)->IsAllowed();
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 {
13322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13323 }
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
13331 PyObject *obj;
13332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13333 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13334 Py_INCREF(obj);
13335 return Py_BuildValue((char *)"");
13336 }
13337 static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj;
13339 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13340 int arg2 = (int) 0 ;
13341 int arg3 = (int) 0 ;
13342 int arg4 = (int) 0 ;
13343 wxScrollEvent *result;
13344 PyObject * obj0 = 0 ;
13345 PyObject * obj1 = 0 ;
13346 PyObject * obj2 = 0 ;
13347 PyObject * obj3 = 0 ;
13348 char *kwnames[] = {
13349 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13353 if (obj0) {
13354 arg1 = (wxEventType) SWIG_AsInt(obj0);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 if (obj1) {
13358 arg2 = (int) SWIG_AsInt(obj1);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 if (obj2) {
13362 arg3 = (int) SWIG_AsInt(obj2);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 if (obj3) {
13366 arg4 = (int) SWIG_AsInt(obj3);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj;
13385 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13386 int result;
13387 PyObject * obj0 = 0 ;
13388 char *kwnames[] = {
13389 (char *) "self", NULL
13390 };
13391
13392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13395 {
13396 PyThreadState* __tstate = wxPyBeginAllowThreads();
13397 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13398
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 resultobj = SWIG_FromInt((int)result);
13403 return resultobj;
13404 fail:
13405 return NULL;
13406 }
13407
13408
13409 static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj;
13411 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13412 int result;
13413 PyObject * obj0 = 0 ;
13414 char *kwnames[] = {
13415 (char *) "self", NULL
13416 };
13417
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13421 {
13422 PyThreadState* __tstate = wxPyBeginAllowThreads();
13423 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13424
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_FromInt((int)result);
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj;
13437 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13438 int arg2 ;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 char *kwnames[] = {
13442 (char *) "self",(char *) "orient", NULL
13443 };
13444
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13448 arg2 = (int) SWIG_AsInt(obj1);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 (arg1)->SetOrientation(arg2);
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 Py_INCREF(Py_None); resultobj = Py_None;
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13467 int arg2 ;
13468 PyObject * obj0 = 0 ;
13469 PyObject * obj1 = 0 ;
13470 char *kwnames[] = {
13471 (char *) "self",(char *) "pos", NULL
13472 };
13473
13474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13477 arg2 = (int) SWIG_AsInt(obj1);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 (arg1)->SetPosition(arg2);
13482
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 Py_INCREF(Py_None); resultobj = Py_None;
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
13494 PyObject *obj;
13495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13496 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13497 Py_INCREF(obj);
13498 return Py_BuildValue((char *)"");
13499 }
13500 static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13503 int arg2 = (int) 0 ;
13504 int arg3 = (int) 0 ;
13505 wxScrollWinEvent *result;
13506 PyObject * obj0 = 0 ;
13507 PyObject * obj1 = 0 ;
13508 PyObject * obj2 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13511 };
13512
13513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13514 if (obj0) {
13515 arg1 = (wxEventType) SWIG_AsInt(obj0);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 if (obj1) {
13519 arg2 = (int) SWIG_AsInt(obj1);
13520 if (PyErr_Occurred()) SWIG_fail;
13521 }
13522 if (obj2) {
13523 arg3 = (int) SWIG_AsInt(obj2);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj;
13542 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13543 int result;
13544 PyObject * obj0 = 0 ;
13545 char *kwnames[] = {
13546 (char *) "self", NULL
13547 };
13548
13549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13555
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 resultobj = SWIG_FromInt((int)result);
13560 return resultobj;
13561 fail:
13562 return NULL;
13563 }
13564
13565
13566 static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj;
13568 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13569 int result;
13570 PyObject * obj0 = 0 ;
13571 char *kwnames[] = {
13572 (char *) "self", NULL
13573 };
13574
13575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 resultobj = SWIG_FromInt((int)result);
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13595 int arg2 ;
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self",(char *) "orient", NULL
13600 };
13601
13602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13605 arg2 = (int) SWIG_AsInt(obj1);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 {
13608 PyThreadState* __tstate = wxPyBeginAllowThreads();
13609 (arg1)->SetOrientation(arg2);
13610
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 Py_INCREF(Py_None); resultobj = Py_None;
13615 return resultobj;
13616 fail:
13617 return NULL;
13618 }
13619
13620
13621 static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13622 PyObject *resultobj;
13623 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13624 int arg2 ;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "self",(char *) "pos", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13634 arg2 = (int) SWIG_AsInt(obj1);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 (arg1)->SetPosition(arg2);
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 Py_INCREF(Py_None); resultobj = Py_None;
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13651 PyObject *obj;
13652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13653 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13654 Py_INCREF(obj);
13655 return Py_BuildValue((char *)"");
13656 }
13657 static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13658 PyObject *resultobj;
13659 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13660 wxMouseEvent *result;
13661 PyObject * obj0 = 0 ;
13662 char *kwnames[] = {
13663 (char *) "mouseType", NULL
13664 };
13665
13666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13667 if (obj0) {
13668 arg1 = (wxEventType) SWIG_AsInt(obj0);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13674
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 {
13679 resultobj = wxPyMake_wxObject(result, 1);
13680 }
13681 return resultobj;
13682 fail:
13683 return NULL;
13684 }
13685
13686
13687 static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13688 PyObject *resultobj;
13689 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13690 bool result;
13691 PyObject * obj0 = 0 ;
13692 char *kwnames[] = {
13693 (char *) "self", NULL
13694 };
13695
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13702
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 {
13707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13708 }
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj;
13717 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13718 int arg2 = (int) wxMOUSE_BTN_ANY ;
13719 bool result;
13720 PyObject * obj0 = 0 ;
13721 PyObject * obj1 = 0 ;
13722 char *kwnames[] = {
13723 (char *) "self",(char *) "but", NULL
13724 };
13725
13726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13729 if (obj1) {
13730 arg2 = (int) SWIG_AsInt(obj1);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 PyThreadState* __tstate = wxPyBeginAllowThreads();
13735 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13736
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 {
13741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13742 }
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj;
13751 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13752 int arg2 = (int) wxMOUSE_BTN_ANY ;
13753 bool result;
13754 PyObject * obj0 = 0 ;
13755 PyObject * obj1 = 0 ;
13756 char *kwnames[] = {
13757 (char *) "self",(char *) "but", NULL
13758 };
13759
13760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13763 if (obj1) {
13764 arg2 = (int) SWIG_AsInt(obj1);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13770
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13776 }
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13786 int arg2 = (int) wxMOUSE_BTN_ANY ;
13787 bool result;
13788 PyObject * obj0 = 0 ;
13789 PyObject * obj1 = 0 ;
13790 char *kwnames[] = {
13791 (char *) "self",(char *) "but", NULL
13792 };
13793
13794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13797 if (obj1) {
13798 arg2 = (int) SWIG_AsInt(obj1);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13804
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 {
13809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13810 }
13811 return resultobj;
13812 fail:
13813 return NULL;
13814 }
13815
13816
13817 static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13818 PyObject *resultobj;
13819 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13820 int arg2 ;
13821 bool result;
13822 PyObject * obj0 = 0 ;
13823 PyObject * obj1 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self",(char *) "but", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13831 arg2 = (int) SWIG_AsInt(obj1);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 {
13841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13842 }
13843 return resultobj;
13844 fail:
13845 return NULL;
13846 }
13847
13848
13849 static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13850 PyObject *resultobj;
13851 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13852 int arg2 ;
13853 bool result;
13854 PyObject * obj0 = 0 ;
13855 PyObject * obj1 = 0 ;
13856 char *kwnames[] = {
13857 (char *) "self",(char *) "but", NULL
13858 };
13859
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
13861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13863 arg2 = (int) SWIG_AsInt(obj1);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 {
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13868
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 {
13873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13874 }
13875 return resultobj;
13876 fail:
13877 return NULL;
13878 }
13879
13880
13881 static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13882 PyObject *resultobj;
13883 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13884 int result;
13885 PyObject * obj0 = 0 ;
13886 char *kwnames[] = {
13887 (char *) "self", NULL
13888 };
13889
13890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_FromInt((int)result);
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj;
13909 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13910 bool result;
13911 PyObject * obj0 = 0 ;
13912 char *kwnames[] = {
13913 (char *) "self", NULL
13914 };
13915
13916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13922
13923 wxPyEndAllowThreads(__tstate);
13924 if (PyErr_Occurred()) SWIG_fail;
13925 }
13926 {
13927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13928 }
13929 return resultobj;
13930 fail:
13931 return NULL;
13932 }
13933
13934
13935 static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj;
13937 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13938 bool result;
13939 PyObject * obj0 = 0 ;
13940 char *kwnames[] = {
13941 (char *) "self", NULL
13942 };
13943
13944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13950
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 {
13955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13956 }
13957 return resultobj;
13958 fail:
13959 return NULL;
13960 }
13961
13962
13963 static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13964 PyObject *resultobj;
13965 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13966 bool result;
13967 PyObject * obj0 = 0 ;
13968 char *kwnames[] = {
13969 (char *) "self", NULL
13970 };
13971
13972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13978
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 {
13983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13984 }
13985 return resultobj;
13986 fail:
13987 return NULL;
13988 }
13989
13990
13991 static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13992 PyObject *resultobj;
13993 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13994 bool result;
13995 PyObject * obj0 = 0 ;
13996 char *kwnames[] = {
13997 (char *) "self", NULL
13998 };
13999
14000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
14001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
14006
14007 wxPyEndAllowThreads(__tstate);
14008 if (PyErr_Occurred()) SWIG_fail;
14009 }
14010 {
14011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14012 }
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 static PyObject *_wrap_MouseEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj;
14021 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14022 bool result;
14023 PyObject * obj0 = 0 ;
14024 char *kwnames[] = {
14025 (char *) "self", NULL
14026 };
14027
14028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail;
14029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14031 {
14032 PyThreadState* __tstate = wxPyBeginAllowThreads();
14033 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
14034
14035 wxPyEndAllowThreads(__tstate);
14036 if (PyErr_Occurred()) SWIG_fail;
14037 }
14038 {
14039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14040 }
14041 return resultobj;
14042 fail:
14043 return NULL;
14044 }
14045
14046
14047 static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14048 PyObject *resultobj;
14049 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14050 bool result;
14051 PyObject * obj0 = 0 ;
14052 char *kwnames[] = {
14053 (char *) "self", NULL
14054 };
14055
14056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
14057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14059 {
14060 PyThreadState* __tstate = wxPyBeginAllowThreads();
14061 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
14062
14063 wxPyEndAllowThreads(__tstate);
14064 if (PyErr_Occurred()) SWIG_fail;
14065 }
14066 {
14067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14068 }
14069 return resultobj;
14070 fail:
14071 return NULL;
14072 }
14073
14074
14075 static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14076 PyObject *resultobj;
14077 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14078 bool result;
14079 PyObject * obj0 = 0 ;
14080 char *kwnames[] = {
14081 (char *) "self", NULL
14082 };
14083
14084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
14085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
14090
14091 wxPyEndAllowThreads(__tstate);
14092 if (PyErr_Occurred()) SWIG_fail;
14093 }
14094 {
14095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14096 }
14097 return resultobj;
14098 fail:
14099 return NULL;
14100 }
14101
14102
14103 static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14104 PyObject *resultobj;
14105 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14106 bool result;
14107 PyObject * obj0 = 0 ;
14108 char *kwnames[] = {
14109 (char *) "self", NULL
14110 };
14111
14112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
14113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 {
14123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14124 }
14125 return resultobj;
14126 fail:
14127 return NULL;
14128 }
14129
14130
14131 static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj;
14133 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14134 bool result;
14135 PyObject * obj0 = 0 ;
14136 char *kwnames[] = {
14137 (char *) "self", NULL
14138 };
14139
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14152 }
14153 return resultobj;
14154 fail:
14155 return NULL;
14156 }
14157
14158
14159 static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14160 PyObject *resultobj;
14161 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14162 bool result;
14163 PyObject * obj0 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self", NULL
14166 };
14167
14168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
14169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
14174
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 {
14179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14180 }
14181 return resultobj;
14182 fail:
14183 return NULL;
14184 }
14185
14186
14187 static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14190 bool result;
14191 PyObject * obj0 = 0 ;
14192 char *kwnames[] = {
14193 (char *) "self", NULL
14194 };
14195
14196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
14201 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14202
14203 wxPyEndAllowThreads(__tstate);
14204 if (PyErr_Occurred()) SWIG_fail;
14205 }
14206 {
14207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14208 }
14209 return resultobj;
14210 fail:
14211 return NULL;
14212 }
14213
14214
14215 static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj;
14217 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14218 bool result;
14219 PyObject * obj0 = 0 ;
14220 char *kwnames[] = {
14221 (char *) "self", NULL
14222 };
14223
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14227 {
14228 PyThreadState* __tstate = wxPyBeginAllowThreads();
14229 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14230
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 {
14235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14236 }
14237 return resultobj;
14238 fail:
14239 return NULL;
14240 }
14241
14242
14243 static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj;
14245 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14246 bool result;
14247 PyObject * obj0 = 0 ;
14248 char *kwnames[] = {
14249 (char *) "self", NULL
14250 };
14251
14252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 {
14263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14264 }
14265 return resultobj;
14266 fail:
14267 return NULL;
14268 }
14269
14270
14271 static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14272 PyObject *resultobj;
14273 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14274 bool result;
14275 PyObject * obj0 = 0 ;
14276 char *kwnames[] = {
14277 (char *) "self", NULL
14278 };
14279
14280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14283 {
14284 PyThreadState* __tstate = wxPyBeginAllowThreads();
14285 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14286
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 {
14291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14292 }
14293 return resultobj;
14294 fail:
14295 return NULL;
14296 }
14297
14298
14299 static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14300 PyObject *resultobj;
14301 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14302 bool result;
14303 PyObject * obj0 = 0 ;
14304 char *kwnames[] = {
14305 (char *) "self", NULL
14306 };
14307
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 result = (bool)(arg1)->LeftIsDown();
14314
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14320 }
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj;
14329 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14330 bool result;
14331 PyObject * obj0 = 0 ;
14332 char *kwnames[] = {
14333 (char *) "self", NULL
14334 };
14335
14336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (bool)(arg1)->MiddleIsDown();
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 {
14347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14348 }
14349 return resultobj;
14350 fail:
14351 return NULL;
14352 }
14353
14354
14355 static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj;
14357 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14358 bool result;
14359 PyObject * obj0 = 0 ;
14360 char *kwnames[] = {
14361 (char *) "self", NULL
14362 };
14363
14364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14367 {
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 result = (bool)(arg1)->RightIsDown();
14370
14371 wxPyEndAllowThreads(__tstate);
14372 if (PyErr_Occurred()) SWIG_fail;
14373 }
14374 {
14375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14376 }
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14386 bool result;
14387 PyObject * obj0 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14398
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 {
14403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14404 }
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj;
14413 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14414 bool result;
14415 PyObject * obj0 = 0 ;
14416 char *kwnames[] = {
14417 (char *) "self", NULL
14418 };
14419
14420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14426
14427 wxPyEndAllowThreads(__tstate);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 {
14431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14432 }
14433 return resultobj;
14434 fail:
14435 return NULL;
14436 }
14437
14438
14439 static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
14440 PyObject *resultobj;
14441 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14442 bool result;
14443 PyObject * obj0 = 0 ;
14444 char *kwnames[] = {
14445 (char *) "self", NULL
14446 };
14447
14448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14451 {
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14454
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 {
14459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14460 }
14461 return resultobj;
14462 fail:
14463 return NULL;
14464 }
14465
14466
14467 static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
14468 PyObject *resultobj;
14469 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14470 bool result;
14471 PyObject * obj0 = 0 ;
14472 char *kwnames[] = {
14473 (char *) "self", NULL
14474 };
14475
14476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14482
14483 wxPyEndAllowThreads(__tstate);
14484 if (PyErr_Occurred()) SWIG_fail;
14485 }
14486 {
14487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14488 }
14489 return resultobj;
14490 fail:
14491 return NULL;
14492 }
14493
14494
14495 static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj;
14497 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14498 wxPoint result;
14499 PyObject * obj0 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "self", NULL
14502 };
14503
14504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 result = (arg1)->GetPosition();
14510
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 {
14515 wxPoint * resultptr;
14516 resultptr = new wxPoint((wxPoint &) result);
14517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14518 }
14519 return resultobj;
14520 fail:
14521 return NULL;
14522 }
14523
14524
14525 static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14526 PyObject *resultobj;
14527 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14528 long *arg2 = (long *) 0 ;
14529 long *arg3 = (long *) 0 ;
14530 long temp2 ;
14531 long temp3 ;
14532 PyObject * obj0 = 0 ;
14533 char *kwnames[] = {
14534 (char *) "self", NULL
14535 };
14536
14537 arg2 = &temp2;
14538 arg3 = &temp3;
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 (arg1)->GetPosition(arg2,arg3);
14545
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 Py_INCREF(Py_None); resultobj = Py_None;
14550 {
14551 PyObject *o = PyInt_FromLong((long) (*arg2));
14552 resultobj = t_output_helper(resultobj,o);
14553 }
14554 {
14555 PyObject *o = PyInt_FromLong((long) (*arg3));
14556 resultobj = t_output_helper(resultobj,o);
14557 }
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14567 wxDC *arg2 = 0 ;
14568 wxPoint result;
14569 PyObject * obj0 = 0 ;
14570 PyObject * obj1 = 0 ;
14571 char *kwnames[] = {
14572 (char *) "self",(char *) "dc", NULL
14573 };
14574
14575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14579 SWIG_POINTER_EXCEPTION | 0)) == -1)
14580 SWIG_fail;
14581 if (arg2 == NULL) {
14582 PyErr_SetString(PyExc_TypeError,"null reference");
14583 SWIG_fail;
14584 }
14585 {
14586 PyThreadState* __tstate = wxPyBeginAllowThreads();
14587 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14588
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 {
14593 wxPoint * resultptr;
14594 resultptr = new wxPoint((wxPoint &) result);
14595 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14596 }
14597 return resultobj;
14598 fail:
14599 return NULL;
14600 }
14601
14602
14603 static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14606 int result;
14607 PyObject * obj0 = 0 ;
14608 char *kwnames[] = {
14609 (char *) "self", NULL
14610 };
14611
14612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (int)((wxMouseEvent const *)arg1)->GetX();
14618
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = SWIG_FromInt((int)result);
14623 return resultobj;
14624 fail:
14625 return NULL;
14626 }
14627
14628
14629 static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14630 PyObject *resultobj;
14631 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14632 int result;
14633 PyObject * obj0 = 0 ;
14634 char *kwnames[] = {
14635 (char *) "self", NULL
14636 };
14637
14638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14641 {
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = (int)((wxMouseEvent const *)arg1)->GetY();
14644
14645 wxPyEndAllowThreads(__tstate);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 }
14648 resultobj = SWIG_FromInt((int)result);
14649 return resultobj;
14650 fail:
14651 return NULL;
14652 }
14653
14654
14655 static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
14656 PyObject *resultobj;
14657 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14658 int result;
14659 PyObject * obj0 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self", NULL
14662 };
14663
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14670
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
14674 resultobj = SWIG_FromInt((int)result);
14675 return resultobj;
14676 fail:
14677 return NULL;
14678 }
14679
14680
14681 static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
14682 PyObject *resultobj;
14683 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14684 int result;
14685 PyObject * obj0 = 0 ;
14686 char *kwnames[] = {
14687 (char *) "self", NULL
14688 };
14689
14690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14693 {
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
14695 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14696
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 resultobj = SWIG_FromInt((int)result);
14701 return resultobj;
14702 fail:
14703 return NULL;
14704 }
14705
14706
14707 static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14708 PyObject *resultobj;
14709 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14710 int result;
14711 PyObject * obj0 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14722
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 resultobj = SWIG_FromInt((int)result);
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14734 PyObject *resultobj;
14735 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14736 bool result;
14737 PyObject * obj0 = 0 ;
14738 char *kwnames[] = {
14739 (char *) "self", NULL
14740 };
14741
14742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 {
14753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14754 }
14755 return resultobj;
14756 fail:
14757 return NULL;
14758 }
14759
14760
14761 static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14762 PyObject *resultobj;
14763 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14764 int arg2 ;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj1 = 0 ;
14767 char *kwnames[] = {
14768 (char *) "self",(char *) "m_x", NULL
14769 };
14770
14771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14774 arg2 = (int) SWIG_AsInt(obj1);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 if (arg1) (arg1)->m_x = arg2;
14777
14778 Py_INCREF(Py_None); resultobj = Py_None;
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14786 PyObject *resultobj;
14787 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14788 int result;
14789 PyObject * obj0 = 0 ;
14790 char *kwnames[] = {
14791 (char *) "self", NULL
14792 };
14793
14794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14797 result = (int) ((arg1)->m_x);
14798
14799 resultobj = SWIG_FromInt((int)result);
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14807 PyObject *resultobj;
14808 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14809 int arg2 ;
14810 PyObject * obj0 = 0 ;
14811 PyObject * obj1 = 0 ;
14812 char *kwnames[] = {
14813 (char *) "self",(char *) "m_y", NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14819 arg2 = (int) SWIG_AsInt(obj1);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 if (arg1) (arg1)->m_y = arg2;
14822
14823 Py_INCREF(Py_None); resultobj = Py_None;
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj;
14832 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14833 int result;
14834 PyObject * obj0 = 0 ;
14835 char *kwnames[] = {
14836 (char *) "self", NULL
14837 };
14838
14839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14842 result = (int) ((arg1)->m_y);
14843
14844 resultobj = SWIG_FromInt((int)result);
14845 return resultobj;
14846 fail:
14847 return NULL;
14848 }
14849
14850
14851 static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj;
14853 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14854 bool arg2 ;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 char *kwnames[] = {
14858 (char *) "self",(char *) "m_leftDown", NULL
14859 };
14860
14861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14864 arg2 = (bool) SWIG_AsBool(obj1);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 if (arg1) (arg1)->m_leftDown = arg2;
14867
14868 Py_INCREF(Py_None); resultobj = Py_None;
14869 return resultobj;
14870 fail:
14871 return NULL;
14872 }
14873
14874
14875 static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj;
14877 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14878 bool result;
14879 PyObject * obj0 = 0 ;
14880 char *kwnames[] = {
14881 (char *) "self", NULL
14882 };
14883
14884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14887 result = (bool) ((arg1)->m_leftDown);
14888
14889 {
14890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14891 }
14892 return resultobj;
14893 fail:
14894 return NULL;
14895 }
14896
14897
14898 static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj;
14900 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14901 bool arg2 ;
14902 PyObject * obj0 = 0 ;
14903 PyObject * obj1 = 0 ;
14904 char *kwnames[] = {
14905 (char *) "self",(char *) "m_middleDown", NULL
14906 };
14907
14908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14911 arg2 = (bool) SWIG_AsBool(obj1);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 if (arg1) (arg1)->m_middleDown = arg2;
14914
14915 Py_INCREF(Py_None); resultobj = Py_None;
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj;
14924 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14925 bool result;
14926 PyObject * obj0 = 0 ;
14927 char *kwnames[] = {
14928 (char *) "self", NULL
14929 };
14930
14931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14934 result = (bool) ((arg1)->m_middleDown);
14935
14936 {
14937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14938 }
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14948 bool arg2 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 char *kwnames[] = {
14952 (char *) "self",(char *) "m_rightDown", NULL
14953 };
14954
14955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14958 arg2 = (bool) SWIG_AsBool(obj1);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 if (arg1) (arg1)->m_rightDown = arg2;
14961
14962 Py_INCREF(Py_None); resultobj = Py_None;
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj;
14971 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14972 bool result;
14973 PyObject * obj0 = 0 ;
14974 char *kwnames[] = {
14975 (char *) "self", NULL
14976 };
14977
14978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14981 result = (bool) ((arg1)->m_rightDown);
14982
14983 {
14984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14985 }
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14995 bool arg2 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "self",(char *) "m_controlDown", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 arg2 = (bool) SWIG_AsBool(obj1);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 if (arg1) (arg1)->m_controlDown = arg2;
15008
15009 Py_INCREF(Py_None); resultobj = Py_None;
15010 return resultobj;
15011 fail:
15012 return NULL;
15013 }
15014
15015
15016 static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj;
15018 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15019 bool result;
15020 PyObject * obj0 = 0 ;
15021 char *kwnames[] = {
15022 (char *) "self", NULL
15023 };
15024
15025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15028 result = (bool) ((arg1)->m_controlDown);
15029
15030 {
15031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15032 }
15033 return resultobj;
15034 fail:
15035 return NULL;
15036 }
15037
15038
15039 static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15040 PyObject *resultobj;
15041 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15042 bool arg2 ;
15043 PyObject * obj0 = 0 ;
15044 PyObject * obj1 = 0 ;
15045 char *kwnames[] = {
15046 (char *) "self",(char *) "m_shiftDown", NULL
15047 };
15048
15049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15052 arg2 = (bool) SWIG_AsBool(obj1);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 if (arg1) (arg1)->m_shiftDown = arg2;
15055
15056 Py_INCREF(Py_None); resultobj = Py_None;
15057 return resultobj;
15058 fail:
15059 return NULL;
15060 }
15061
15062
15063 static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15064 PyObject *resultobj;
15065 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15066 bool result;
15067 PyObject * obj0 = 0 ;
15068 char *kwnames[] = {
15069 (char *) "self", NULL
15070 };
15071
15072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15075 result = (bool) ((arg1)->m_shiftDown);
15076
15077 {
15078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15079 }
15080 return resultobj;
15081 fail:
15082 return NULL;
15083 }
15084
15085
15086 static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj;
15088 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15089 bool arg2 ;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092 char *kwnames[] = {
15093 (char *) "self",(char *) "m_altDown", NULL
15094 };
15095
15096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15099 arg2 = (bool) SWIG_AsBool(obj1);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 if (arg1) (arg1)->m_altDown = arg2;
15102
15103 Py_INCREF(Py_None); resultobj = Py_None;
15104 return resultobj;
15105 fail:
15106 return NULL;
15107 }
15108
15109
15110 static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15111 PyObject *resultobj;
15112 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15113 bool result;
15114 PyObject * obj0 = 0 ;
15115 char *kwnames[] = {
15116 (char *) "self", NULL
15117 };
15118
15119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15122 result = (bool) ((arg1)->m_altDown);
15123
15124 {
15125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15126 }
15127 return resultobj;
15128 fail:
15129 return NULL;
15130 }
15131
15132
15133 static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15134 PyObject *resultobj;
15135 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15136 bool arg2 ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 char *kwnames[] = {
15140 (char *) "self",(char *) "m_metaDown", NULL
15141 };
15142
15143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15146 arg2 = (bool) SWIG_AsBool(obj1);
15147 if (PyErr_Occurred()) SWIG_fail;
15148 if (arg1) (arg1)->m_metaDown = arg2;
15149
15150 Py_INCREF(Py_None); resultobj = Py_None;
15151 return resultobj;
15152 fail:
15153 return NULL;
15154 }
15155
15156
15157 static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj;
15159 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15160 bool result;
15161 PyObject * obj0 = 0 ;
15162 char *kwnames[] = {
15163 (char *) "self", NULL
15164 };
15165
15166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15169 result = (bool) ((arg1)->m_metaDown);
15170
15171 {
15172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15173 }
15174 return resultobj;
15175 fail:
15176 return NULL;
15177 }
15178
15179
15180 static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15181 PyObject *resultobj;
15182 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15183 int arg2 ;
15184 PyObject * obj0 = 0 ;
15185 PyObject * obj1 = 0 ;
15186 char *kwnames[] = {
15187 (char *) "self",(char *) "m_wheelRotation", NULL
15188 };
15189
15190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15193 arg2 = (int) SWIG_AsInt(obj1);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 if (arg1) (arg1)->m_wheelRotation = arg2;
15196
15197 Py_INCREF(Py_None); resultobj = Py_None;
15198 return resultobj;
15199 fail:
15200 return NULL;
15201 }
15202
15203
15204 static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15207 int result;
15208 PyObject * obj0 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "self", NULL
15211 };
15212
15213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15216 result = (int) ((arg1)->m_wheelRotation);
15217
15218 resultobj = SWIG_FromInt((int)result);
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15228 int arg2 ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self",(char *) "m_wheelDelta", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 arg2 = (int) SWIG_AsInt(obj1);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 if (arg1) (arg1)->m_wheelDelta = arg2;
15241
15242 Py_INCREF(Py_None); resultobj = Py_None;
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15252 int result;
15253 PyObject * obj0 = 0 ;
15254 char *kwnames[] = {
15255 (char *) "self", NULL
15256 };
15257
15258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15261 result = (int) ((arg1)->m_wheelDelta);
15262
15263 resultobj = SWIG_FromInt((int)result);
15264 return resultobj;
15265 fail:
15266 return NULL;
15267 }
15268
15269
15270 static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj;
15272 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15273 int arg2 ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "self",(char *) "m_linesPerAction", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15283 arg2 = (int) SWIG_AsInt(obj1);
15284 if (PyErr_Occurred()) SWIG_fail;
15285 if (arg1) (arg1)->m_linesPerAction = arg2;
15286
15287 Py_INCREF(Py_None); resultobj = Py_None;
15288 return resultobj;
15289 fail:
15290 return NULL;
15291 }
15292
15293
15294 static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15295 PyObject *resultobj;
15296 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15297 int result;
15298 PyObject * obj0 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 result = (int) ((arg1)->m_linesPerAction);
15307
15308 resultobj = SWIG_FromInt((int)result);
15309 return resultobj;
15310 fail:
15311 return NULL;
15312 }
15313
15314
15315 static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
15316 PyObject *obj;
15317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15318 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15319 Py_INCREF(obj);
15320 return Py_BuildValue((char *)"");
15321 }
15322 static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15323 PyObject *resultobj;
15324 int arg1 = (int) 0 ;
15325 int arg2 = (int) 0 ;
15326 wxSetCursorEvent *result;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 char *kwnames[] = {
15330 (char *) "x",(char *) "y", NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15334 if (obj0) {
15335 arg1 = (int) SWIG_AsInt(obj0);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 if (obj1) {
15339 arg2 = (int) SWIG_AsInt(obj1);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15345
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15350 return resultobj;
15351 fail:
15352 return NULL;
15353 }
15354
15355
15356 static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15357 PyObject *resultobj;
15358 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15359 int result;
15360 PyObject * obj0 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "self", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 resultobj = SWIG_FromInt((int)result);
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj;
15384 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15385 int result;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 resultobj = SWIG_FromInt((int)result);
15402 return resultobj;
15403 fail:
15404 return NULL;
15405 }
15406
15407
15408 static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15409 PyObject *resultobj;
15410 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15411 wxCursor *arg2 = 0 ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char *kwnames[] = {
15415 (char *) "self",(char *) "cursor", NULL
15416 };
15417
15418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15422 SWIG_POINTER_EXCEPTION | 0)) == -1)
15423 SWIG_fail;
15424 if (arg2 == NULL) {
15425 PyErr_SetString(PyExc_TypeError,"null reference");
15426 SWIG_fail;
15427 }
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 (arg1)->SetCursor((wxCursor const &)*arg2);
15431
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 Py_INCREF(Py_None); resultobj = Py_None;
15436 return resultobj;
15437 fail:
15438 return NULL;
15439 }
15440
15441
15442 static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj;
15444 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15445 wxCursor *result;
15446 PyObject * obj0 = 0 ;
15447 char *kwnames[] = {
15448 (char *) "self", NULL
15449 };
15450
15451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15454 {
15455 PyThreadState* __tstate = wxPyBeginAllowThreads();
15456 {
15457 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15458 result = (wxCursor *) &_result_ref;
15459 }
15460
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 {
15465 wxCursor* resultptr = new wxCursor(*result);
15466 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15467 }
15468 return resultobj;
15469 fail:
15470 return NULL;
15471 }
15472
15473
15474 static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj;
15476 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15477 bool result;
15478 PyObject * obj0 = 0 ;
15479 char *kwnames[] = {
15480 (char *) "self", NULL
15481 };
15482
15483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15486 {
15487 PyThreadState* __tstate = wxPyBeginAllowThreads();
15488 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15489
15490 wxPyEndAllowThreads(__tstate);
15491 if (PyErr_Occurred()) SWIG_fail;
15492 }
15493 {
15494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15495 }
15496 return resultobj;
15497 fail:
15498 return NULL;
15499 }
15500
15501
15502 static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
15503 PyObject *obj;
15504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15505 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15506 Py_INCREF(obj);
15507 return Py_BuildValue((char *)"");
15508 }
15509 static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15510 PyObject *resultobj;
15511 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15512 wxKeyEvent *result;
15513 PyObject * obj0 = 0 ;
15514 char *kwnames[] = {
15515 (char *) "keyType", NULL
15516 };
15517
15518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15519 if (obj0) {
15520 arg1 = (wxEventType) SWIG_AsInt(obj0);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15526
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj;
15539 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15540 bool result;
15541 PyObject * obj0 = 0 ;
15542 char *kwnames[] = {
15543 (char *) "self", NULL
15544 };
15545
15546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15552
15553 wxPyEndAllowThreads(__tstate);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 {
15557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15558 }
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15566 PyObject *resultobj;
15567 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15568 bool result;
15569 PyObject * obj0 = 0 ;
15570 char *kwnames[] = {
15571 (char *) "self", NULL
15572 };
15573
15574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15580
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 {
15585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15586 }
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj;
15595 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15596 bool result;
15597 PyObject * obj0 = 0 ;
15598 char *kwnames[] = {
15599 (char *) "self", NULL
15600 };
15601
15602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 {
15613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15614 }
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj;
15623 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15624 bool result;
15625 PyObject * obj0 = 0 ;
15626 char *kwnames[] = {
15627 (char *) "self", NULL
15628 };
15629
15630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15633 {
15634 PyThreadState* __tstate = wxPyBeginAllowThreads();
15635 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15636
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 {
15641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15642 }
15643 return resultobj;
15644 fail:
15645 return NULL;
15646 }
15647
15648
15649 static PyObject *_wrap_KeyEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15650 PyObject *resultobj;
15651 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15652 bool result;
15653 PyObject * obj0 = 0 ;
15654 char *kwnames[] = {
15655 (char *) "self", NULL
15656 };
15657
15658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail;
15659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 {
15669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15670 }
15671 return resultobj;
15672 fail:
15673 return NULL;
15674 }
15675
15676
15677 static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15680 bool result;
15681 PyObject * obj0 = 0 ;
15682 char *kwnames[] = {
15683 (char *) "self", NULL
15684 };
15685
15686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15692
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 {
15697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15698 }
15699 return resultobj;
15700 fail:
15701 return NULL;
15702 }
15703
15704
15705 static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj;
15707 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15708 int result;
15709 PyObject * obj0 = 0 ;
15710 char *kwnames[] = {
15711 (char *) "self", NULL
15712 };
15713
15714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15717 {
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15720
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 resultobj = SWIG_FromInt((int)result);
15725 return resultobj;
15726 fail:
15727 return NULL;
15728 }
15729
15730
15731 static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj;
15733 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15734 int result;
15735 PyObject * obj0 = 0 ;
15736 char *kwnames[] = {
15737 (char *) "self", NULL
15738 };
15739
15740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
15741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
15746
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 resultobj = SWIG_FromInt((int)result);
15751 return resultobj;
15752 fail:
15753 return NULL;
15754 }
15755
15756
15757 static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15758 PyObject *resultobj;
15759 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15760 unsigned int result;
15761 PyObject * obj0 = 0 ;
15762 char *kwnames[] = {
15763 (char *) "self", NULL
15764 };
15765
15766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15772
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15777 return resultobj;
15778 fail:
15779 return NULL;
15780 }
15781
15782
15783 static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15784 PyObject *resultobj;
15785 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15786 unsigned int result;
15787 PyObject * obj0 = 0 ;
15788 char *kwnames[] = {
15789 (char *) "self", NULL
15790 };
15791
15792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15803 return resultobj;
15804 fail:
15805 return NULL;
15806 }
15807
15808
15809 static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15812 wxPoint result;
15813 PyObject * obj0 = 0 ;
15814 char *kwnames[] = {
15815 (char *) "self", NULL
15816 };
15817
15818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15821 {
15822 PyThreadState* __tstate = wxPyBeginAllowThreads();
15823 result = (arg1)->GetPosition();
15824
15825 wxPyEndAllowThreads(__tstate);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 }
15828 {
15829 wxPoint * resultptr;
15830 resultptr = new wxPoint((wxPoint &) result);
15831 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15832 }
15833 return resultobj;
15834 fail:
15835 return NULL;
15836 }
15837
15838
15839 static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15840 PyObject *resultobj;
15841 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15842 long *arg2 = (long *) 0 ;
15843 long *arg3 = (long *) 0 ;
15844 long temp2 ;
15845 long temp3 ;
15846 PyObject * obj0 = 0 ;
15847 char *kwnames[] = {
15848 (char *) "self", NULL
15849 };
15850
15851 arg2 = &temp2;
15852 arg3 = &temp3;
15853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 (arg1)->GetPosition(arg2,arg3);
15859
15860 wxPyEndAllowThreads(__tstate);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 Py_INCREF(Py_None); resultobj = Py_None;
15864 {
15865 PyObject *o = PyInt_FromLong((long) (*arg2));
15866 resultobj = t_output_helper(resultobj,o);
15867 }
15868 {
15869 PyObject *o = PyInt_FromLong((long) (*arg3));
15870 resultobj = t_output_helper(resultobj,o);
15871 }
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15879 PyObject *resultobj;
15880 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15881 int result;
15882 PyObject * obj0 = 0 ;
15883 char *kwnames[] = {
15884 (char *) "self", NULL
15885 };
15886
15887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = (int)((wxKeyEvent const *)arg1)->GetX();
15893
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_FromInt((int)result);
15898 return resultobj;
15899 fail:
15900 return NULL;
15901 }
15902
15903
15904 static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj;
15906 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15907 int result;
15908 PyObject * obj0 = 0 ;
15909 char *kwnames[] = {
15910 (char *) "self", NULL
15911 };
15912
15913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = (int)((wxKeyEvent const *)arg1)->GetY();
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_FromInt((int)result);
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj;
15932 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15933 int arg2 ;
15934 PyObject * obj0 = 0 ;
15935 PyObject * obj1 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "self",(char *) "m_x", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15943 arg2 = (int) SWIG_AsInt(obj1);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 if (arg1) (arg1)->m_x = arg2;
15946
15947 Py_INCREF(Py_None); resultobj = Py_None;
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj;
15956 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15957 int result;
15958 PyObject * obj0 = 0 ;
15959 char *kwnames[] = {
15960 (char *) "self", NULL
15961 };
15962
15963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15966 result = (int) ((arg1)->m_x);
15967
15968 resultobj = SWIG_FromInt((int)result);
15969 return resultobj;
15970 fail:
15971 return NULL;
15972 }
15973
15974
15975 static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj;
15977 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15978 int arg2 ;
15979 PyObject * obj0 = 0 ;
15980 PyObject * obj1 = 0 ;
15981 char *kwnames[] = {
15982 (char *) "self",(char *) "m_y", NULL
15983 };
15984
15985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15988 arg2 = (int) SWIG_AsInt(obj1);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 if (arg1) (arg1)->m_y = arg2;
15991
15992 Py_INCREF(Py_None); resultobj = Py_None;
15993 return resultobj;
15994 fail:
15995 return NULL;
15996 }
15997
15998
15999 static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16000 PyObject *resultobj;
16001 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16002 int result;
16003 PyObject * obj0 = 0 ;
16004 char *kwnames[] = {
16005 (char *) "self", NULL
16006 };
16007
16008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
16009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16011 result = (int) ((arg1)->m_y);
16012
16013 resultobj = SWIG_FromInt((int)result);
16014 return resultobj;
16015 fail:
16016 return NULL;
16017 }
16018
16019
16020 static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16023 long arg2 ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 char *kwnames[] = {
16027 (char *) "self",(char *) "m_keyCode", NULL
16028 };
16029
16030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
16031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16033 arg2 = (long) SWIG_AsLong(obj1);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 if (arg1) (arg1)->m_keyCode = arg2;
16036
16037 Py_INCREF(Py_None); resultobj = Py_None;
16038 return resultobj;
16039 fail:
16040 return NULL;
16041 }
16042
16043
16044 static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj;
16046 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16047 long result;
16048 PyObject * obj0 = 0 ;
16049 char *kwnames[] = {
16050 (char *) "self", NULL
16051 };
16052
16053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
16054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16056 result = (long) ((arg1)->m_keyCode);
16057
16058 resultobj = SWIG_FromLong((long)result);
16059 return resultobj;
16060 fail:
16061 return NULL;
16062 }
16063
16064
16065 static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16068 bool arg2 ;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 char *kwnames[] = {
16072 (char *) "self",(char *) "m_controlDown", NULL
16073 };
16074
16075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
16076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16078 arg2 = (bool) SWIG_AsBool(obj1);
16079 if (PyErr_Occurred()) SWIG_fail;
16080 if (arg1) (arg1)->m_controlDown = arg2;
16081
16082 Py_INCREF(Py_None); resultobj = Py_None;
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16092 bool result;
16093 PyObject * obj0 = 0 ;
16094 char *kwnames[] = {
16095 (char *) "self", NULL
16096 };
16097
16098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
16099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16101 result = (bool) ((arg1)->m_controlDown);
16102
16103 {
16104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16115 bool arg2 ;
16116 PyObject * obj0 = 0 ;
16117 PyObject * obj1 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "self",(char *) "m_shiftDown", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16125 arg2 = (bool) SWIG_AsBool(obj1);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 if (arg1) (arg1)->m_shiftDown = arg2;
16128
16129 Py_INCREF(Py_None); resultobj = Py_None;
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16139 bool result;
16140 PyObject * obj0 = 0 ;
16141 char *kwnames[] = {
16142 (char *) "self", NULL
16143 };
16144
16145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
16146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16148 result = (bool) ((arg1)->m_shiftDown);
16149
16150 {
16151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16152 }
16153 return resultobj;
16154 fail:
16155 return NULL;
16156 }
16157
16158
16159 static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj;
16161 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16162 bool arg2 ;
16163 PyObject * obj0 = 0 ;
16164 PyObject * obj1 = 0 ;
16165 char *kwnames[] = {
16166 (char *) "self",(char *) "m_altDown", NULL
16167 };
16168
16169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16172 arg2 = (bool) SWIG_AsBool(obj1);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 if (arg1) (arg1)->m_altDown = arg2;
16175
16176 Py_INCREF(Py_None); resultobj = Py_None;
16177 return resultobj;
16178 fail:
16179 return NULL;
16180 }
16181
16182
16183 static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16184 PyObject *resultobj;
16185 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16186 bool result;
16187 PyObject * obj0 = 0 ;
16188 char *kwnames[] = {
16189 (char *) "self", NULL
16190 };
16191
16192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16195 result = (bool) ((arg1)->m_altDown);
16196
16197 {
16198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16199 }
16200 return resultobj;
16201 fail:
16202 return NULL;
16203 }
16204
16205
16206 static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16209 bool arg2 ;
16210 PyObject * obj0 = 0 ;
16211 PyObject * obj1 = 0 ;
16212 char *kwnames[] = {
16213 (char *) "self",(char *) "m_metaDown", NULL
16214 };
16215
16216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16219 arg2 = (bool) SWIG_AsBool(obj1);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 if (arg1) (arg1)->m_metaDown = arg2;
16222
16223 Py_INCREF(Py_None); resultobj = Py_None;
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj;
16232 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16233 bool result;
16234 PyObject * obj0 = 0 ;
16235 char *kwnames[] = {
16236 (char *) "self", NULL
16237 };
16238
16239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16242 result = (bool) ((arg1)->m_metaDown);
16243
16244 {
16245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16246 }
16247 return resultobj;
16248 fail:
16249 return NULL;
16250 }
16251
16252
16253 static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16254 PyObject *resultobj;
16255 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16256 bool arg2 ;
16257 PyObject * obj0 = 0 ;
16258 PyObject * obj1 = 0 ;
16259 char *kwnames[] = {
16260 (char *) "self",(char *) "m_scanCode", NULL
16261 };
16262
16263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16266 arg2 = (bool) SWIG_AsBool(obj1);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 if (arg1) (arg1)->m_scanCode = arg2;
16269
16270 Py_INCREF(Py_None); resultobj = Py_None;
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj;
16279 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16280 bool result;
16281 PyObject * obj0 = 0 ;
16282 char *kwnames[] = {
16283 (char *) "self", NULL
16284 };
16285
16286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16289 result = (bool) ((arg1)->m_scanCode);
16290
16291 {
16292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16293 }
16294 return resultobj;
16295 fail:
16296 return NULL;
16297 }
16298
16299
16300 static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16301 PyObject *resultobj;
16302 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16303 unsigned int arg2 ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 char *kwnames[] = {
16307 (char *) "self",(char *) "m_rawCode", NULL
16308 };
16309
16310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16313 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 if (arg1) (arg1)->m_rawCode = arg2;
16316
16317 Py_INCREF(Py_None); resultobj = Py_None;
16318 return resultobj;
16319 fail:
16320 return NULL;
16321 }
16322
16323
16324 static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16327 unsigned int result;
16328 PyObject * obj0 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16336 result = (unsigned int) ((arg1)->m_rawCode);
16337
16338 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16339 return resultobj;
16340 fail:
16341 return NULL;
16342 }
16343
16344
16345 static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj;
16347 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16348 unsigned int arg2 ;
16349 PyObject * obj0 = 0 ;
16350 PyObject * obj1 = 0 ;
16351 char *kwnames[] = {
16352 (char *) "self",(char *) "m_rawFlags", NULL
16353 };
16354
16355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16358 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 if (arg1) (arg1)->m_rawFlags = arg2;
16361
16362 Py_INCREF(Py_None); resultobj = Py_None;
16363 return resultobj;
16364 fail:
16365 return NULL;
16366 }
16367
16368
16369 static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj;
16371 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16372 unsigned int result;
16373 PyObject * obj0 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self", NULL
16376 };
16377
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16381 result = (unsigned int) ((arg1)->m_rawFlags);
16382
16383 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
16391 PyObject *obj;
16392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16393 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16394 Py_INCREF(obj);
16395 return Py_BuildValue((char *)"");
16396 }
16397 static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj;
16399 wxSize const &arg1_defvalue = wxDefaultSize ;
16400 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16401 int arg2 = (int) 0 ;
16402 wxSizeEvent *result;
16403 wxSize temp1 ;
16404 PyObject * obj0 = 0 ;
16405 PyObject * obj1 = 0 ;
16406 char *kwnames[] = {
16407 (char *) "sz",(char *) "winid", NULL
16408 };
16409
16410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16411 if (obj0) {
16412 {
16413 arg1 = &temp1;
16414 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16415 }
16416 }
16417 if (obj1) {
16418 arg2 = (int) SWIG_AsInt(obj1);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 }
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16424
16425 wxPyEndAllowThreads(__tstate);
16426 if (PyErr_Occurred()) SWIG_fail;
16427 }
16428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16429 return resultobj;
16430 fail:
16431 return NULL;
16432 }
16433
16434
16435 static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj;
16437 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16438 wxSize result;
16439 PyObject * obj0 = 0 ;
16440 char *kwnames[] = {
16441 (char *) "self", NULL
16442 };
16443
16444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = ((wxSizeEvent const *)arg1)->GetSize();
16450
16451 wxPyEndAllowThreads(__tstate);
16452 if (PyErr_Occurred()) SWIG_fail;
16453 }
16454 {
16455 wxSize * resultptr;
16456 resultptr = new wxSize((wxSize &) result);
16457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16458 }
16459 return resultobj;
16460 fail:
16461 return NULL;
16462 }
16463
16464
16465 static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16466 PyObject *resultobj;
16467 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16468 wxRect result;
16469 PyObject * obj0 = 0 ;
16470 char *kwnames[] = {
16471 (char *) "self", NULL
16472 };
16473
16474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = ((wxSizeEvent const *)arg1)->GetRect();
16480
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 {
16485 wxRect * resultptr;
16486 resultptr = new wxRect((wxRect &) result);
16487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16488 }
16489 return resultobj;
16490 fail:
16491 return NULL;
16492 }
16493
16494
16495 static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj;
16497 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16498 wxRect arg2 ;
16499 wxRect *argp2 ;
16500 PyObject * obj0 = 0 ;
16501 PyObject * obj1 = 0 ;
16502 char *kwnames[] = {
16503 (char *) "self",(char *) "rect", NULL
16504 };
16505
16506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16509 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16510 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16511 arg2 = *argp2;
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 (arg1)->SetRect(arg2);
16515
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 Py_INCREF(Py_None); resultobj = Py_None;
16520 return resultobj;
16521 fail:
16522 return NULL;
16523 }
16524
16525
16526 static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16527 PyObject *resultobj;
16528 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16529 wxSize arg2 ;
16530 wxSize *argp2 ;
16531 PyObject * obj0 = 0 ;
16532 PyObject * obj1 = 0 ;
16533 char *kwnames[] = {
16534 (char *) "self",(char *) "size", NULL
16535 };
16536
16537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16540 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16541 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16542 arg2 = *argp2;
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 wxSizeEvent_SetSize(arg1,arg2);
16546
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 Py_INCREF(Py_None); resultobj = Py_None;
16551 return resultobj;
16552 fail:
16553 return NULL;
16554 }
16555
16556
16557 static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj;
16559 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16560 wxSize *arg2 = (wxSize *) 0 ;
16561 PyObject * obj0 = 0 ;
16562 PyObject * obj1 = 0 ;
16563 char *kwnames[] = {
16564 (char *) "self",(char *) "m_size", NULL
16565 };
16566
16567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16572 if (arg1) (arg1)->m_size = *arg2;
16573
16574 Py_INCREF(Py_None); resultobj = Py_None;
16575 return resultobj;
16576 fail:
16577 return NULL;
16578 }
16579
16580
16581 static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16582 PyObject *resultobj;
16583 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16584 wxSize *result;
16585 PyObject * obj0 = 0 ;
16586 char *kwnames[] = {
16587 (char *) "self", NULL
16588 };
16589
16590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16593 result = (wxSize *)& ((arg1)->m_size);
16594
16595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16596 return resultobj;
16597 fail:
16598 return NULL;
16599 }
16600
16601
16602 static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj;
16604 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16605 wxRect *arg2 = (wxRect *) 0 ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 char *kwnames[] = {
16609 (char *) "self",(char *) "m_rect", NULL
16610 };
16611
16612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16617 if (arg1) (arg1)->m_rect = *arg2;
16618
16619 Py_INCREF(Py_None); resultobj = Py_None;
16620 return resultobj;
16621 fail:
16622 return NULL;
16623 }
16624
16625
16626 static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16627 PyObject *resultobj;
16628 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16629 wxRect *result;
16630 PyObject * obj0 = 0 ;
16631 char *kwnames[] = {
16632 (char *) "self", NULL
16633 };
16634
16635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16638 result = (wxRect *)& ((arg1)->m_rect);
16639
16640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16641 return resultobj;
16642 fail:
16643 return NULL;
16644 }
16645
16646
16647 static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
16648 PyObject *obj;
16649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16650 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16651 Py_INCREF(obj);
16652 return Py_BuildValue((char *)"");
16653 }
16654 static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16655 PyObject *resultobj;
16656 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16657 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16658 int arg2 = (int) 0 ;
16659 wxMoveEvent *result;
16660 wxPoint temp1 ;
16661 PyObject * obj0 = 0 ;
16662 PyObject * obj1 = 0 ;
16663 char *kwnames[] = {
16664 (char *) "pos",(char *) "winid", NULL
16665 };
16666
16667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16668 if (obj0) {
16669 {
16670 arg1 = &temp1;
16671 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16672 }
16673 }
16674 if (obj1) {
16675 arg2 = (int) SWIG_AsInt(obj1);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16681
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj;
16694 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16695 wxPoint result;
16696 PyObject * obj0 = 0 ;
16697 char *kwnames[] = {
16698 (char *) "self", NULL
16699 };
16700
16701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16704 {
16705 PyThreadState* __tstate = wxPyBeginAllowThreads();
16706 result = ((wxMoveEvent const *)arg1)->GetPosition();
16707
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712 wxPoint * resultptr;
16713 resultptr = new wxPoint((wxPoint &) result);
16714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16715 }
16716 return resultobj;
16717 fail:
16718 return NULL;
16719 }
16720
16721
16722 static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16723 PyObject *resultobj;
16724 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16725 wxRect result;
16726 PyObject * obj0 = 0 ;
16727 char *kwnames[] = {
16728 (char *) "self", NULL
16729 };
16730
16731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = ((wxMoveEvent const *)arg1)->GetRect();
16737
16738 wxPyEndAllowThreads(__tstate);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
16741 {
16742 wxRect * resultptr;
16743 resultptr = new wxRect((wxRect &) result);
16744 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16745 }
16746 return resultobj;
16747 fail:
16748 return NULL;
16749 }
16750
16751
16752 static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16753 PyObject *resultobj;
16754 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16755 wxRect arg2 ;
16756 wxRect *argp2 ;
16757 PyObject * obj0 = 0 ;
16758 PyObject * obj1 = 0 ;
16759 char *kwnames[] = {
16760 (char *) "self",(char *) "rect", NULL
16761 };
16762
16763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16766 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16767 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16768 arg2 = *argp2;
16769 {
16770 PyThreadState* __tstate = wxPyBeginAllowThreads();
16771 (arg1)->SetRect(arg2);
16772
16773 wxPyEndAllowThreads(__tstate);
16774 if (PyErr_Occurred()) SWIG_fail;
16775 }
16776 Py_INCREF(Py_None); resultobj = Py_None;
16777 return resultobj;
16778 fail:
16779 return NULL;
16780 }
16781
16782
16783 static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16784 PyObject *resultobj;
16785 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16786 wxPoint arg2 ;
16787 wxPoint *argp2 ;
16788 PyObject * obj0 = 0 ;
16789 PyObject * obj1 = 0 ;
16790 char *kwnames[] = {
16791 (char *) "self",(char *) "pos", NULL
16792 };
16793
16794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16797 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16798 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16799 arg2 = *argp2;
16800 {
16801 PyThreadState* __tstate = wxPyBeginAllowThreads();
16802 wxMoveEvent_SetPosition(arg1,arg2);
16803
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 Py_INCREF(Py_None); resultobj = Py_None;
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj;
16816 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16817 wxPoint *arg2 = (wxPoint *) 0 ;
16818 PyObject * obj0 = 0 ;
16819 PyObject * obj1 = 0 ;
16820 char *kwnames[] = {
16821 (char *) "self",(char *) "m_pos", NULL
16822 };
16823
16824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
16828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16829 if (arg1) (arg1)->m_pos = *arg2;
16830
16831 Py_INCREF(Py_None); resultobj = Py_None;
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj;
16840 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16841 wxPoint *result;
16842 PyObject * obj0 = 0 ;
16843 char *kwnames[] = {
16844 (char *) "self", NULL
16845 };
16846
16847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16850 result = (wxPoint *)& ((arg1)->m_pos);
16851
16852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
16853 return resultobj;
16854 fail:
16855 return NULL;
16856 }
16857
16858
16859 static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj;
16861 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16862 wxRect *arg2 = (wxRect *) 0 ;
16863 PyObject * obj0 = 0 ;
16864 PyObject * obj1 = 0 ;
16865 char *kwnames[] = {
16866 (char *) "self",(char *) "m_rect", NULL
16867 };
16868
16869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16874 if (arg1) (arg1)->m_rect = *arg2;
16875
16876 Py_INCREF(Py_None); resultobj = Py_None;
16877 return resultobj;
16878 fail:
16879 return NULL;
16880 }
16881
16882
16883 static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj;
16885 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16886 wxRect *result;
16887 PyObject * obj0 = 0 ;
16888 char *kwnames[] = {
16889 (char *) "self", NULL
16890 };
16891
16892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16895 result = (wxRect *)& ((arg1)->m_rect);
16896
16897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16898 return resultobj;
16899 fail:
16900 return NULL;
16901 }
16902
16903
16904 static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16905 PyObject *obj;
16906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16907 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16908 Py_INCREF(obj);
16909 return Py_BuildValue((char *)"");
16910 }
16911 static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj;
16913 int arg1 = (int) 0 ;
16914 wxPaintEvent *result;
16915 PyObject * obj0 = 0 ;
16916 char *kwnames[] = {
16917 (char *) "Id", NULL
16918 };
16919
16920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16921 if (obj0) {
16922 arg1 = (int) SWIG_AsInt(obj0);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16928
16929 wxPyEndAllowThreads(__tstate);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
16933 return resultobj;
16934 fail:
16935 return NULL;
16936 }
16937
16938
16939 static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16940 PyObject *obj;
16941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16942 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16943 Py_INCREF(obj);
16944 return Py_BuildValue((char *)"");
16945 }
16946 static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16947 PyObject *resultobj;
16948 int arg1 = (int) 0 ;
16949 wxNcPaintEvent *result;
16950 PyObject * obj0 = 0 ;
16951 char *kwnames[] = {
16952 (char *) "winid", NULL
16953 };
16954
16955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16956 if (obj0) {
16957 arg1 = (int) SWIG_AsInt(obj0);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16963
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
16968 return resultobj;
16969 fail:
16970 return NULL;
16971 }
16972
16973
16974 static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16975 PyObject *obj;
16976 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16977 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16978 Py_INCREF(obj);
16979 return Py_BuildValue((char *)"");
16980 }
16981 static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16982 PyObject *resultobj;
16983 int arg1 = (int) 0 ;
16984 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16985 wxEraseEvent *result;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 char *kwnames[] = {
16989 (char *) "Id",(char *) "dc", NULL
16990 };
16991
16992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16993 if (obj0) {
16994 arg1 = (int) SWIG_AsInt(obj0);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 if (obj1) {
16998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
16999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17000 }
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
17004
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
17018 wxDC *result;
17019 PyObject * obj0 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
17026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
17030
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 resultobj = wxPyMake_wxObject(result, 0);
17036 }
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
17044 PyObject *obj;
17045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17046 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
17047 Py_INCREF(obj);
17048 return Py_BuildValue((char *)"");
17049 }
17050 static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17051 PyObject *resultobj;
17052 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17053 int arg2 = (int) 0 ;
17054 wxFocusEvent *result;
17055 PyObject * obj0 = 0 ;
17056 PyObject * obj1 = 0 ;
17057 char *kwnames[] = {
17058 (char *) "type",(char *) "winid", NULL
17059 };
17060
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
17062 if (obj0) {
17063 arg1 = (wxEventType) SWIG_AsInt(obj0);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 if (obj1) {
17067 arg2 = (int) SWIG_AsInt(obj1);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 }
17070 {
17071 PyThreadState* __tstate = wxPyBeginAllowThreads();
17072 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
17073
17074 wxPyEndAllowThreads(__tstate);
17075 if (PyErr_Occurred()) SWIG_fail;
17076 }
17077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
17078 return resultobj;
17079 fail:
17080 return NULL;
17081 }
17082
17083
17084 static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17085 PyObject *resultobj;
17086 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17087 wxWindow *result;
17088 PyObject * obj0 = 0 ;
17089 char *kwnames[] = {
17090 (char *) "self", NULL
17091 };
17092
17093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17096 {
17097 PyThreadState* __tstate = wxPyBeginAllowThreads();
17098 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
17099
17100 wxPyEndAllowThreads(__tstate);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 {
17104 resultobj = wxPyMake_wxObject(result, 0);
17105 }
17106 return resultobj;
17107 fail:
17108 return NULL;
17109 }
17110
17111
17112 static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17113 PyObject *resultobj;
17114 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17115 wxWindow *arg2 = (wxWindow *) 0 ;
17116 PyObject * obj0 = 0 ;
17117 PyObject * obj1 = 0 ;
17118 char *kwnames[] = {
17119 (char *) "self",(char *) "win", NULL
17120 };
17121
17122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
17123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 (arg1)->SetWindow(arg2);
17130
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 Py_INCREF(Py_None); resultobj = Py_None;
17135 return resultobj;
17136 fail:
17137 return NULL;
17138 }
17139
17140
17141 static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
17142 PyObject *obj;
17143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17144 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
17145 Py_INCREF(obj);
17146 return Py_BuildValue((char *)"");
17147 }
17148 static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17149 PyObject *resultobj;
17150 wxWindow *arg1 = (wxWindow *) NULL ;
17151 wxChildFocusEvent *result;
17152 PyObject * obj0 = 0 ;
17153 char *kwnames[] = {
17154 (char *) "win", NULL
17155 };
17156
17157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
17158 if (obj0) {
17159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17161 }
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17170 return resultobj;
17171 fail:
17172 return NULL;
17173 }
17174
17175
17176 static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17177 PyObject *resultobj;
17178 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17179 wxWindow *result;
17180 PyObject * obj0 = 0 ;
17181 char *kwnames[] = {
17182 (char *) "self", NULL
17183 };
17184
17185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17191
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196 resultobj = wxPyMake_wxObject(result, 0);
17197 }
17198 return resultobj;
17199 fail:
17200 return NULL;
17201 }
17202
17203
17204 static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
17205 PyObject *obj;
17206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17207 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17208 Py_INCREF(obj);
17209 return Py_BuildValue((char *)"");
17210 }
17211 static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj;
17213 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17214 bool arg2 = (bool) True ;
17215 int arg3 = (int) 0 ;
17216 wxActivateEvent *result;
17217 PyObject * obj0 = 0 ;
17218 PyObject * obj1 = 0 ;
17219 PyObject * obj2 = 0 ;
17220 char *kwnames[] = {
17221 (char *) "type",(char *) "active",(char *) "Id", NULL
17222 };
17223
17224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17225 if (obj0) {
17226 arg1 = (wxEventType) SWIG_AsInt(obj0);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 if (obj1) {
17230 arg2 = (bool) SWIG_AsBool(obj1);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 }
17233 if (obj2) {
17234 arg3 = (int) SWIG_AsInt(obj2);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj;
17253 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17254 bool result;
17255 PyObject * obj0 = 0 ;
17256 char *kwnames[] = {
17257 (char *) "self", NULL
17258 };
17259
17260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17266
17267 wxPyEndAllowThreads(__tstate);
17268 if (PyErr_Occurred()) SWIG_fail;
17269 }
17270 {
17271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17272 }
17273 return resultobj;
17274 fail:
17275 return NULL;
17276 }
17277
17278
17279 static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
17280 PyObject *obj;
17281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17282 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17283 Py_INCREF(obj);
17284 return Py_BuildValue((char *)"");
17285 }
17286 static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17287 PyObject *resultobj;
17288 int arg1 = (int) 0 ;
17289 wxInitDialogEvent *result;
17290 PyObject * obj0 = 0 ;
17291 char *kwnames[] = {
17292 (char *) "Id", NULL
17293 };
17294
17295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17296 if (obj0) {
17297 arg1 = (int) SWIG_AsInt(obj0);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 {
17301 PyThreadState* __tstate = wxPyBeginAllowThreads();
17302 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17303
17304 wxPyEndAllowThreads(__tstate);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17308 return resultobj;
17309 fail:
17310 return NULL;
17311 }
17312
17313
17314 static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
17315 PyObject *obj;
17316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17317 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17318 Py_INCREF(obj);
17319 return Py_BuildValue((char *)"");
17320 }
17321 static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj;
17323 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17324 int arg2 = (int) 0 ;
17325 wxMenu *arg3 = (wxMenu *) NULL ;
17326 wxMenuEvent *result;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
17330 char *kwnames[] = {
17331 (char *) "type",(char *) "winid",(char *) "menu", NULL
17332 };
17333
17334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17335 if (obj0) {
17336 arg1 = (wxEventType) SWIG_AsInt(obj0);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 if (obj1) {
17340 arg2 = (int) SWIG_AsInt(obj1);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 if (obj2) {
17344 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17346 }
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17355 return resultobj;
17356 fail:
17357 return NULL;
17358 }
17359
17360
17361 static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
17362 PyObject *resultobj;
17363 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17364 int result;
17365 PyObject * obj0 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "self", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17376
17377 wxPyEndAllowThreads(__tstate);
17378 if (PyErr_Occurred()) SWIG_fail;
17379 }
17380 resultobj = SWIG_FromInt((int)result);
17381 return resultobj;
17382 fail:
17383 return NULL;
17384 }
17385
17386
17387 static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
17388 PyObject *resultobj;
17389 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17390 bool result;
17391 PyObject * obj0 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "self", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17399 {
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
17401 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17402
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 {
17407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17408 }
17409 return resultobj;
17410 fail:
17411 return NULL;
17412 }
17413
17414
17415 static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj;
17417 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17418 wxMenu *result;
17419 PyObject * obj0 = 0 ;
17420 char *kwnames[] = {
17421 (char *) "self", NULL
17422 };
17423
17424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17427 {
17428 PyThreadState* __tstate = wxPyBeginAllowThreads();
17429 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17430
17431 wxPyEndAllowThreads(__tstate);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 {
17435 resultobj = wxPyMake_wxObject(result, 0);
17436 }
17437 return resultobj;
17438 fail:
17439 return NULL;
17440 }
17441
17442
17443 static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
17444 PyObject *obj;
17445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17446 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17447 Py_INCREF(obj);
17448 return Py_BuildValue((char *)"");
17449 }
17450 static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj;
17452 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17453 int arg2 = (int) 0 ;
17454 wxCloseEvent *result;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17457 char *kwnames[] = {
17458 (char *) "type",(char *) "winid", NULL
17459 };
17460
17461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17462 if (obj0) {
17463 arg1 = (wxEventType) SWIG_AsInt(obj0);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 if (obj1) {
17467 arg2 = (int) SWIG_AsInt(obj1);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 {
17471 PyThreadState* __tstate = wxPyBeginAllowThreads();
17472 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17473
17474 wxPyEndAllowThreads(__tstate);
17475 if (PyErr_Occurred()) SWIG_fail;
17476 }
17477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17478 return resultobj;
17479 fail:
17480 return NULL;
17481 }
17482
17483
17484 static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17485 PyObject *resultobj;
17486 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17487 bool arg2 ;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 char *kwnames[] = {
17491 (char *) "self",(char *) "logOff", NULL
17492 };
17493
17494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17497 arg2 = (bool) SWIG_AsBool(obj1);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 (arg1)->SetLoggingOff(arg2);
17502
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 Py_INCREF(Py_None); resultobj = Py_None;
17507 return resultobj;
17508 fail:
17509 return NULL;
17510 }
17511
17512
17513 static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17514 PyObject *resultobj;
17515 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17516 bool result;
17517 PyObject * obj0 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "self", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17525 {
17526 PyThreadState* __tstate = wxPyBeginAllowThreads();
17527 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17528
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 {
17533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17534 }
17535 return resultobj;
17536 fail:
17537 return NULL;
17538 }
17539
17540
17541 static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
17542 PyObject *resultobj;
17543 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17544 bool arg2 = (bool) True ;
17545 PyObject * obj0 = 0 ;
17546 PyObject * obj1 = 0 ;
17547 char *kwnames[] = {
17548 (char *) "self",(char *) "veto", NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17554 if (obj1) {
17555 arg2 = (bool) SWIG_AsBool(obj1);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 {
17559 PyThreadState* __tstate = wxPyBeginAllowThreads();
17560 (arg1)->Veto(arg2);
17561
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 Py_INCREF(Py_None); resultobj = Py_None;
17566 return resultobj;
17567 fail:
17568 return NULL;
17569 }
17570
17571
17572 static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17573 PyObject *resultobj;
17574 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17575 bool arg2 ;
17576 PyObject * obj0 = 0 ;
17577 PyObject * obj1 = 0 ;
17578 char *kwnames[] = {
17579 (char *) "self",(char *) "canVeto", NULL
17580 };
17581
17582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17585 arg2 = (bool) SWIG_AsBool(obj1);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 (arg1)->SetCanVeto(arg2);
17590
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 Py_INCREF(Py_None); resultobj = Py_None;
17595 return resultobj;
17596 fail:
17597 return NULL;
17598 }
17599
17600
17601 static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17602 PyObject *resultobj;
17603 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17604 bool result;
17605 PyObject * obj0 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "self", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17613 {
17614 PyThreadState* __tstate = wxPyBeginAllowThreads();
17615 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17616
17617 wxPyEndAllowThreads(__tstate);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 {
17621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17622 }
17623 return resultobj;
17624 fail:
17625 return NULL;
17626 }
17627
17628
17629 static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17630 PyObject *resultobj;
17631 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17632 bool result;
17633 PyObject * obj0 = 0 ;
17634 char *kwnames[] = {
17635 (char *) "self", NULL
17636 };
17637
17638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17641 {
17642 PyThreadState* __tstate = wxPyBeginAllowThreads();
17643 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17644
17645 wxPyEndAllowThreads(__tstate);
17646 if (PyErr_Occurred()) SWIG_fail;
17647 }
17648 {
17649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17650 }
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
17658 PyObject *obj;
17659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17660 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17661 Py_INCREF(obj);
17662 return Py_BuildValue((char *)"");
17663 }
17664 static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17665 PyObject *resultobj;
17666 int arg1 = (int) 0 ;
17667 bool arg2 = (bool) False ;
17668 wxShowEvent *result;
17669 PyObject * obj0 = 0 ;
17670 PyObject * obj1 = 0 ;
17671 char *kwnames[] = {
17672 (char *) "winid",(char *) "show", NULL
17673 };
17674
17675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17676 if (obj0) {
17677 arg1 = (int) SWIG_AsInt(obj0);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 if (obj1) {
17681 arg2 = (bool) SWIG_AsBool(obj1);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 {
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17687
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17692 return resultobj;
17693 fail:
17694 return NULL;
17695 }
17696
17697
17698 static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17699 PyObject *resultobj;
17700 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17701 bool arg2 ;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 char *kwnames[] = {
17705 (char *) "self",(char *) "show", NULL
17706 };
17707
17708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17711 arg2 = (bool) SWIG_AsBool(obj1);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 {
17714 PyThreadState* __tstate = wxPyBeginAllowThreads();
17715 (arg1)->SetShow(arg2);
17716
17717 wxPyEndAllowThreads(__tstate);
17718 if (PyErr_Occurred()) SWIG_fail;
17719 }
17720 Py_INCREF(Py_None); resultobj = Py_None;
17721 return resultobj;
17722 fail:
17723 return NULL;
17724 }
17725
17726
17727 static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17728 PyObject *resultobj;
17729 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17730 bool result;
17731 PyObject * obj0 = 0 ;
17732 char *kwnames[] = {
17733 (char *) "self", NULL
17734 };
17735
17736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17742
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 {
17747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17748 }
17749 return resultobj;
17750 fail:
17751 return NULL;
17752 }
17753
17754
17755 static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
17756 PyObject *obj;
17757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17758 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17759 Py_INCREF(obj);
17760 return Py_BuildValue((char *)"");
17761 }
17762 static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17763 PyObject *resultobj;
17764 int arg1 = (int) 0 ;
17765 bool arg2 = (bool) True ;
17766 wxIconizeEvent *result;
17767 PyObject * obj0 = 0 ;
17768 PyObject * obj1 = 0 ;
17769 char *kwnames[] = {
17770 (char *) "id",(char *) "iconized", NULL
17771 };
17772
17773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17774 if (obj0) {
17775 arg1 = (int) SWIG_AsInt(obj0);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 if (obj1) {
17779 arg2 = (bool) SWIG_AsBool(obj1);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 {
17783 PyThreadState* __tstate = wxPyBeginAllowThreads();
17784 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17785
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17790 return resultobj;
17791 fail:
17792 return NULL;
17793 }
17794
17795
17796 static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17797 PyObject *resultobj;
17798 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17799 bool result;
17800 PyObject * obj0 = 0 ;
17801 char *kwnames[] = {
17802 (char *) "self", NULL
17803 };
17804
17805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 result = (bool)(arg1)->Iconized();
17811
17812 wxPyEndAllowThreads(__tstate);
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 {
17816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17817 }
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17825 PyObject *obj;
17826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17827 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17828 Py_INCREF(obj);
17829 return Py_BuildValue((char *)"");
17830 }
17831 static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj;
17833 int arg1 = (int) 0 ;
17834 wxMaximizeEvent *result;
17835 PyObject * obj0 = 0 ;
17836 char *kwnames[] = {
17837 (char *) "id", NULL
17838 };
17839
17840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17841 if (obj0) {
17842 arg1 = (int) SWIG_AsInt(obj0);
17843 if (PyErr_Occurred()) SWIG_fail;
17844 }
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17848
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
17853 return resultobj;
17854 fail:
17855 return NULL;
17856 }
17857
17858
17859 static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17860 PyObject *obj;
17861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17862 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17863 Py_INCREF(obj);
17864 return Py_BuildValue((char *)"");
17865 }
17866 static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17869 wxPoint result;
17870 PyObject * obj0 = 0 ;
17871 char *kwnames[] = {
17872 (char *) "self", NULL
17873 };
17874
17875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (arg1)->GetPosition();
17881
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 {
17886 wxPoint * resultptr;
17887 resultptr = new wxPoint((wxPoint &) result);
17888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17889 }
17890 return resultobj;
17891 fail:
17892 return NULL;
17893 }
17894
17895
17896 static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17897 PyObject *resultobj;
17898 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17899 int result;
17900 PyObject * obj0 = 0 ;
17901 char *kwnames[] = {
17902 (char *) "self", NULL
17903 };
17904
17905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17908 {
17909 PyThreadState* __tstate = wxPyBeginAllowThreads();
17910 result = (int)(arg1)->GetNumberOfFiles();
17911
17912 wxPyEndAllowThreads(__tstate);
17913 if (PyErr_Occurred()) SWIG_fail;
17914 }
17915 resultobj = SWIG_FromInt((int)result);
17916 return resultobj;
17917 fail:
17918 return NULL;
17919 }
17920
17921
17922 static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17923 PyObject *resultobj;
17924 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17925 PyObject *result;
17926 PyObject * obj0 = 0 ;
17927 char *kwnames[] = {
17928 (char *) "self", NULL
17929 };
17930
17931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17937
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 resultobj = result;
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17949 PyObject *obj;
17950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17951 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17952 Py_INCREF(obj);
17953 return Py_BuildValue((char *)"");
17954 }
17955 static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj;
17957 int arg1 = (int) 0 ;
17958 wxUpdateUIEvent *result;
17959 PyObject * obj0 = 0 ;
17960 char *kwnames[] = {
17961 (char *) "commandId", NULL
17962 };
17963
17964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17965 if (obj0) {
17966 arg1 = (int) SWIG_AsInt(obj0);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 }
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17972
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj;
17985 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17986 bool result;
17987 PyObject * obj0 = 0 ;
17988 char *kwnames[] = {
17989 (char *) "self", NULL
17990 };
17991
17992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17995 {
17996 PyThreadState* __tstate = wxPyBeginAllowThreads();
17997 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17998
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 {
18003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18004 }
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18014 bool result;
18015 PyObject * obj0 = 0 ;
18016 char *kwnames[] = {
18017 (char *) "self", NULL
18018 };
18019
18020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
18021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
18026
18027 wxPyEndAllowThreads(__tstate);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 {
18031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18032 }
18033 return resultobj;
18034 fail:
18035 return NULL;
18036 }
18037
18038
18039 static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18040 PyObject *resultobj;
18041 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18042 wxString result;
18043 PyObject * obj0 = 0 ;
18044 char *kwnames[] = {
18045 (char *) "self", NULL
18046 };
18047
18048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
18049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 result = ((wxUpdateUIEvent const *)arg1)->GetText();
18054
18055 wxPyEndAllowThreads(__tstate);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 }
18058 {
18059 #if wxUSE_UNICODE
18060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18061 #else
18062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18063 #endif
18064 }
18065 return resultobj;
18066 fail:
18067 return NULL;
18068 }
18069
18070
18071 static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18072 PyObject *resultobj;
18073 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18074 bool result;
18075 PyObject * obj0 = 0 ;
18076 char *kwnames[] = {
18077 (char *) "self", NULL
18078 };
18079
18080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
18081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
18086
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 {
18091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18092 }
18093 return resultobj;
18094 fail:
18095 return NULL;
18096 }
18097
18098
18099 static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj;
18101 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18102 bool result;
18103 PyObject * obj0 = 0 ;
18104 char *kwnames[] = {
18105 (char *) "self", NULL
18106 };
18107
18108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
18109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18111 {
18112 PyThreadState* __tstate = wxPyBeginAllowThreads();
18113 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
18114
18115 wxPyEndAllowThreads(__tstate);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 {
18119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18120 }
18121 return resultobj;
18122 fail:
18123 return NULL;
18124 }
18125
18126
18127 static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
18128 PyObject *resultobj;
18129 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18130 bool result;
18131 PyObject * obj0 = 0 ;
18132 char *kwnames[] = {
18133 (char *) "self", NULL
18134 };
18135
18136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
18137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
18142
18143 wxPyEndAllowThreads(__tstate);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
18146 {
18147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18148 }
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj;
18157 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18158 bool arg2 ;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "check", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 arg2 = (bool) SWIG_AsBool(obj1);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 (arg1)->Check(arg2);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 Py_INCREF(Py_None); resultobj = Py_None;
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj;
18186 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18187 bool arg2 ;
18188 PyObject * obj0 = 0 ;
18189 PyObject * obj1 = 0 ;
18190 char *kwnames[] = {
18191 (char *) "self",(char *) "enable", NULL
18192 };
18193
18194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18197 arg2 = (bool) SWIG_AsBool(obj1);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 (arg1)->Enable(arg2);
18202
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 Py_INCREF(Py_None); resultobj = Py_None;
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj;
18215 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18216 wxString *arg2 = 0 ;
18217 bool temp2 = False ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char *kwnames[] = {
18221 (char *) "self",(char *) "text", NULL
18222 };
18223
18224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18227 {
18228 arg2 = wxString_in_helper(obj1);
18229 if (arg2 == NULL) SWIG_fail;
18230 temp2 = True;
18231 }
18232 {
18233 PyThreadState* __tstate = wxPyBeginAllowThreads();
18234 (arg1)->SetText((wxString const &)*arg2);
18235
18236 wxPyEndAllowThreads(__tstate);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 Py_INCREF(Py_None); resultobj = Py_None;
18240 {
18241 if (temp2)
18242 delete arg2;
18243 }
18244 return resultobj;
18245 fail:
18246 {
18247 if (temp2)
18248 delete arg2;
18249 }
18250 return NULL;
18251 }
18252
18253
18254 static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj;
18256 long arg1 ;
18257 PyObject * obj0 = 0 ;
18258 char *kwnames[] = {
18259 (char *) "updateInterval", NULL
18260 };
18261
18262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18263 arg1 = (long) SWIG_AsLong(obj0);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 wxUpdateUIEvent::SetUpdateInterval(arg1);
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 Py_INCREF(Py_None); resultobj = Py_None;
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj;
18281 long result;
18282 char *kwnames[] = {
18283 NULL
18284 };
18285
18286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18290
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 resultobj = SWIG_FromLong((long)result);
18295 return resultobj;
18296 fail:
18297 return NULL;
18298 }
18299
18300
18301 static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
18302 PyObject *resultobj;
18303 wxWindow *arg1 = (wxWindow *) 0 ;
18304 bool result;
18305 PyObject * obj0 = 0 ;
18306 char *kwnames[] = {
18307 (char *) "win", NULL
18308 };
18309
18310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18316
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 {
18321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18322 }
18323 return resultobj;
18324 fail:
18325 return NULL;
18326 }
18327
18328
18329 static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18330 PyObject *resultobj;
18331 char *kwnames[] = {
18332 NULL
18333 };
18334
18335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18336 {
18337 PyThreadState* __tstate = wxPyBeginAllowThreads();
18338 wxUpdateUIEvent::ResetUpdateTime();
18339
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 Py_INCREF(Py_None); resultobj = Py_None;
18344 return resultobj;
18345 fail:
18346 return NULL;
18347 }
18348
18349
18350 static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18351 PyObject *resultobj;
18352 int arg1 ;
18353 PyObject * obj0 = 0 ;
18354 char *kwnames[] = {
18355 (char *) "mode", NULL
18356 };
18357
18358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18359 arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0);
18360 if (PyErr_Occurred()) SWIG_fail;
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18364
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 Py_INCREF(Py_None); resultobj = Py_None;
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj;
18377 int result;
18378 char *kwnames[] = {
18379 NULL
18380 };
18381
18382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18383 {
18384 PyThreadState* __tstate = wxPyBeginAllowThreads();
18385 result = (int)wxUpdateUIEvent::GetMode();
18386
18387 wxPyEndAllowThreads(__tstate);
18388 if (PyErr_Occurred()) SWIG_fail;
18389 }
18390 resultobj = SWIG_FromInt((int)result);
18391 return resultobj;
18392 fail:
18393 return NULL;
18394 }
18395
18396
18397 static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
18398 PyObject *obj;
18399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18400 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18401 Py_INCREF(obj);
18402 return Py_BuildValue((char *)"");
18403 }
18404 static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18405 PyObject *resultobj;
18406 wxSysColourChangedEvent *result;
18407 char *kwnames[] = {
18408 NULL
18409 };
18410
18411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18420 return resultobj;
18421 fail:
18422 return NULL;
18423 }
18424
18425
18426 static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
18427 PyObject *obj;
18428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18429 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18430 Py_INCREF(obj);
18431 return Py_BuildValue((char *)"");
18432 }
18433 static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18434 PyObject *resultobj;
18435 int arg1 = (int) 0 ;
18436 wxWindow *arg2 = (wxWindow *) NULL ;
18437 wxMouseCaptureChangedEvent *result;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 char *kwnames[] = {
18441 (char *) "winid",(char *) "gainedCapture", NULL
18442 };
18443
18444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18445 if (obj0) {
18446 arg1 = (int) SWIG_AsInt(obj0);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 if (obj1) {
18450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18452 }
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18456
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj;
18469 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18470 wxWindow *result;
18471 PyObject * obj0 = 0 ;
18472 char *kwnames[] = {
18473 (char *) "self", NULL
18474 };
18475
18476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18482
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 {
18487 resultobj = wxPyMake_wxObject(result, 0);
18488 }
18489 return resultobj;
18490 fail:
18491 return NULL;
18492 }
18493
18494
18495 static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
18496 PyObject *obj;
18497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18498 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18499 Py_INCREF(obj);
18500 return Py_BuildValue((char *)"");
18501 }
18502 static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18503 PyObject *resultobj;
18504 wxDisplayChangedEvent *result;
18505 char *kwnames[] = {
18506 NULL
18507 };
18508
18509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18510 {
18511 PyThreadState* __tstate = wxPyBeginAllowThreads();
18512 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18513
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18518 return resultobj;
18519 fail:
18520 return NULL;
18521 }
18522
18523
18524 static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
18525 PyObject *obj;
18526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18527 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18528 Py_INCREF(obj);
18529 return Py_BuildValue((char *)"");
18530 }
18531 static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj;
18533 int arg1 = (int) 0 ;
18534 wxPaletteChangedEvent *result;
18535 PyObject * obj0 = 0 ;
18536 char *kwnames[] = {
18537 (char *) "id", NULL
18538 };
18539
18540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18541 if (obj0) {
18542 arg1 = (int) SWIG_AsInt(obj0);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 {
18546 PyThreadState* __tstate = wxPyBeginAllowThreads();
18547 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18548
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18553 return resultobj;
18554 fail:
18555 return NULL;
18556 }
18557
18558
18559 static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18560 PyObject *resultobj;
18561 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18562 wxWindow *arg2 = (wxWindow *) 0 ;
18563 PyObject * obj0 = 0 ;
18564 PyObject * obj1 = 0 ;
18565 char *kwnames[] = {
18566 (char *) "self",(char *) "win", NULL
18567 };
18568
18569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 (arg1)->SetChangedWindow(arg2);
18577
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 Py_INCREF(Py_None); resultobj = Py_None;
18582 return resultobj;
18583 fail:
18584 return NULL;
18585 }
18586
18587
18588 static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18589 PyObject *resultobj;
18590 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18591 wxWindow *result;
18592 PyObject * obj0 = 0 ;
18593 char *kwnames[] = {
18594 (char *) "self", NULL
18595 };
18596
18597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 result = (wxWindow *)(arg1)->GetChangedWindow();
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 {
18608 resultobj = wxPyMake_wxObject(result, 0);
18609 }
18610 return resultobj;
18611 fail:
18612 return NULL;
18613 }
18614
18615
18616 static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
18617 PyObject *obj;
18618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18619 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18620 Py_INCREF(obj);
18621 return Py_BuildValue((char *)"");
18622 }
18623 static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18624 PyObject *resultobj;
18625 int arg1 = (int) 0 ;
18626 wxQueryNewPaletteEvent *result;
18627 PyObject * obj0 = 0 ;
18628 char *kwnames[] = {
18629 (char *) "winid", NULL
18630 };
18631
18632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18633 if (obj0) {
18634 arg1 = (int) SWIG_AsInt(obj0);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18640
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18645 return resultobj;
18646 fail:
18647 return NULL;
18648 }
18649
18650
18651 static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18652 PyObject *resultobj;
18653 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18654 bool arg2 ;
18655 PyObject * obj0 = 0 ;
18656 PyObject * obj1 = 0 ;
18657 char *kwnames[] = {
18658 (char *) "self",(char *) "realized", NULL
18659 };
18660
18661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18664 arg2 = (bool) SWIG_AsBool(obj1);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 {
18667 PyThreadState* __tstate = wxPyBeginAllowThreads();
18668 (arg1)->SetPaletteRealized(arg2);
18669
18670 wxPyEndAllowThreads(__tstate);
18671 if (PyErr_Occurred()) SWIG_fail;
18672 }
18673 Py_INCREF(Py_None); resultobj = Py_None;
18674 return resultobj;
18675 fail:
18676 return NULL;
18677 }
18678
18679
18680 static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18681 PyObject *resultobj;
18682 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18683 bool result;
18684 PyObject * obj0 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18695
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 {
18700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18701 }
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
18709 PyObject *obj;
18710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18711 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18712 Py_INCREF(obj);
18713 return Py_BuildValue((char *)"");
18714 }
18715 static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18716 PyObject *resultobj;
18717 wxNavigationKeyEvent *result;
18718 char *kwnames[] = {
18719 NULL
18720 };
18721
18722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18726
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj;
18739 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18740 bool result;
18741 PyObject * obj0 = 0 ;
18742 char *kwnames[] = {
18743 (char *) "self", NULL
18744 };
18745
18746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18749 {
18750 PyThreadState* __tstate = wxPyBeginAllowThreads();
18751 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18752
18753 wxPyEndAllowThreads(__tstate);
18754 if (PyErr_Occurred()) SWIG_fail;
18755 }
18756 {
18757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18758 }
18759 return resultobj;
18760 fail:
18761 return NULL;
18762 }
18763
18764
18765 static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18766 PyObject *resultobj;
18767 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18768 bool arg2 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self",(char *) "forward", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18778 arg2 = (bool) SWIG_AsBool(obj1);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 (arg1)->SetDirection(arg2);
18783
18784 wxPyEndAllowThreads(__tstate);
18785 if (PyErr_Occurred()) SWIG_fail;
18786 }
18787 Py_INCREF(Py_None); resultobj = Py_None;
18788 return resultobj;
18789 fail:
18790 return NULL;
18791 }
18792
18793
18794 static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18795 PyObject *resultobj;
18796 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18797 bool result;
18798 PyObject * obj0 = 0 ;
18799 char *kwnames[] = {
18800 (char *) "self", NULL
18801 };
18802
18803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18806 {
18807 PyThreadState* __tstate = wxPyBeginAllowThreads();
18808 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18809
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18815 }
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj;
18824 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18825 bool arg2 ;
18826 PyObject * obj0 = 0 ;
18827 PyObject * obj1 = 0 ;
18828 char *kwnames[] = {
18829 (char *) "self",(char *) "ischange", NULL
18830 };
18831
18832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18835 arg2 = (bool) SWIG_AsBool(obj1);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 {
18838 PyThreadState* __tstate = wxPyBeginAllowThreads();
18839 (arg1)->SetWindowChange(arg2);
18840
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 Py_INCREF(Py_None); resultobj = Py_None;
18845 return resultobj;
18846 fail:
18847 return NULL;
18848 }
18849
18850
18851 static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
18852 PyObject *resultobj;
18853 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18854 long arg2 ;
18855 PyObject * obj0 = 0 ;
18856 PyObject * obj1 = 0 ;
18857 char *kwnames[] = {
18858 (char *) "self",(char *) "flags", NULL
18859 };
18860
18861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
18862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18864 arg2 = (long) SWIG_AsLong(obj1);
18865 if (PyErr_Occurred()) SWIG_fail;
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->SetFlags(arg2);
18869
18870 wxPyEndAllowThreads(__tstate);
18871 if (PyErr_Occurred()) SWIG_fail;
18872 }
18873 Py_INCREF(Py_None); resultobj = Py_None;
18874 return resultobj;
18875 fail:
18876 return NULL;
18877 }
18878
18879
18880 static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18881 PyObject *resultobj;
18882 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18883 wxWindow *result;
18884 PyObject * obj0 = 0 ;
18885 char *kwnames[] = {
18886 (char *) "self", NULL
18887 };
18888
18889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18892 {
18893 PyThreadState* __tstate = wxPyBeginAllowThreads();
18894 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18895
18896 wxPyEndAllowThreads(__tstate);
18897 if (PyErr_Occurred()) SWIG_fail;
18898 }
18899 {
18900 resultobj = wxPyMake_wxObject(result, 0);
18901 }
18902 return resultobj;
18903 fail:
18904 return NULL;
18905 }
18906
18907
18908 static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj;
18910 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18911 wxWindow *arg2 = (wxWindow *) 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 char *kwnames[] = {
18915 (char *) "self",(char *) "win", NULL
18916 };
18917
18918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 (arg1)->SetCurrentFocus(arg2);
18926
18927 wxPyEndAllowThreads(__tstate);
18928 if (PyErr_Occurred()) SWIG_fail;
18929 }
18930 Py_INCREF(Py_None); resultobj = Py_None;
18931 return resultobj;
18932 fail:
18933 return NULL;
18934 }
18935
18936
18937 static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18938 PyObject *obj;
18939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18940 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18941 Py_INCREF(obj);
18942 return Py_BuildValue((char *)"");
18943 }
18944 static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18945 PyObject *resultobj;
18946 wxWindow *arg1 = (wxWindow *) NULL ;
18947 wxWindowCreateEvent *result;
18948 PyObject * obj0 = 0 ;
18949 char *kwnames[] = {
18950 (char *) "win", NULL
18951 };
18952
18953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18954 if (obj0) {
18955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18957 }
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18961
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
18966 return resultobj;
18967 fail:
18968 return NULL;
18969 }
18970
18971
18972 static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18973 PyObject *resultobj;
18974 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18975 wxWindow *result;
18976 PyObject * obj0 = 0 ;
18977 char *kwnames[] = {
18978 (char *) "self", NULL
18979 };
18980
18981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
18983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18984 {
18985 PyThreadState* __tstate = wxPyBeginAllowThreads();
18986 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18987
18988 wxPyEndAllowThreads(__tstate);
18989 if (PyErr_Occurred()) SWIG_fail;
18990 }
18991 {
18992 resultobj = wxPyMake_wxObject(result, 0);
18993 }
18994 return resultobj;
18995 fail:
18996 return NULL;
18997 }
18998
18999
19000 static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
19001 PyObject *obj;
19002 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19003 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
19004 Py_INCREF(obj);
19005 return Py_BuildValue((char *)"");
19006 }
19007 static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj;
19009 wxWindow *arg1 = (wxWindow *) NULL ;
19010 wxWindowDestroyEvent *result;
19011 PyObject * obj0 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "win", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
19017 if (obj0) {
19018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19020 }
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
19024
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
19029 return resultobj;
19030 fail:
19031 return NULL;
19032 }
19033
19034
19035 static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj;
19037 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
19038 wxWindow *result;
19039 PyObject * obj0 = 0 ;
19040 char *kwnames[] = {
19041 (char *) "self", NULL
19042 };
19043
19044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
19045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
19046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19047 {
19048 PyThreadState* __tstate = wxPyBeginAllowThreads();
19049 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
19050
19051 wxPyEndAllowThreads(__tstate);
19052 if (PyErr_Occurred()) SWIG_fail;
19053 }
19054 {
19055 resultobj = wxPyMake_wxObject(result, 0);
19056 }
19057 return resultobj;
19058 fail:
19059 return NULL;
19060 }
19061
19062
19063 static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
19064 PyObject *obj;
19065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19066 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
19067 Py_INCREF(obj);
19068 return Py_BuildValue((char *)"");
19069 }
19070 static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj;
19072 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19073 int arg2 = (int) 0 ;
19074 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19075 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19076 wxContextMenuEvent *result;
19077 wxPoint temp3 ;
19078 PyObject * obj0 = 0 ;
19079 PyObject * obj1 = 0 ;
19080 PyObject * obj2 = 0 ;
19081 char *kwnames[] = {
19082 (char *) "type",(char *) "winid",(char *) "pt", NULL
19083 };
19084
19085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
19086 if (obj0) {
19087 arg1 = (wxEventType) SWIG_AsInt(obj0);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 if (obj1) {
19091 arg2 = (int) SWIG_AsInt(obj1);
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 if (obj2) {
19095 {
19096 arg3 = &temp3;
19097 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19098 }
19099 }
19100 {
19101 PyThreadState* __tstate = wxPyBeginAllowThreads();
19102 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
19103
19104 wxPyEndAllowThreads(__tstate);
19105 if (PyErr_Occurred()) SWIG_fail;
19106 }
19107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
19108 return resultobj;
19109 fail:
19110 return NULL;
19111 }
19112
19113
19114 static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19115 PyObject *resultobj;
19116 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19117 wxPoint *result;
19118 PyObject * obj0 = 0 ;
19119 char *kwnames[] = {
19120 (char *) "self", NULL
19121 };
19122
19123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
19124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 {
19129 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
19130 result = (wxPoint *) &_result_ref;
19131 }
19132
19133 wxPyEndAllowThreads(__tstate);
19134 if (PyErr_Occurred()) SWIG_fail;
19135 }
19136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19137 return resultobj;
19138 fail:
19139 return NULL;
19140 }
19141
19142
19143 static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19144 PyObject *resultobj;
19145 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19146 wxPoint *arg2 = 0 ;
19147 wxPoint temp2 ;
19148 PyObject * obj0 = 0 ;
19149 PyObject * obj1 = 0 ;
19150 char *kwnames[] = {
19151 (char *) "self",(char *) "pos", NULL
19152 };
19153
19154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19157 {
19158 arg2 = &temp2;
19159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19160 }
19161 {
19162 PyThreadState* __tstate = wxPyBeginAllowThreads();
19163 (arg1)->SetPosition((wxPoint const &)*arg2);
19164
19165 wxPyEndAllowThreads(__tstate);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 Py_INCREF(Py_None); resultobj = Py_None;
19169 return resultobj;
19170 fail:
19171 return NULL;
19172 }
19173
19174
19175 static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
19176 PyObject *obj;
19177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19178 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19179 Py_INCREF(obj);
19180 return Py_BuildValue((char *)"");
19181 }
19182 static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj;
19184 wxIdleEvent *result;
19185 char *kwnames[] = {
19186 NULL
19187 };
19188
19189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 result = (wxIdleEvent *)new wxIdleEvent();
19193
19194 wxPyEndAllowThreads(__tstate);
19195 if (PyErr_Occurred()) SWIG_fail;
19196 }
19197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19198 return resultobj;
19199 fail:
19200 return NULL;
19201 }
19202
19203
19204 static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
19205 PyObject *resultobj;
19206 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19207 bool arg2 = (bool) True ;
19208 PyObject * obj0 = 0 ;
19209 PyObject * obj1 = 0 ;
19210 char *kwnames[] = {
19211 (char *) "self",(char *) "needMore", NULL
19212 };
19213
19214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19217 if (obj1) {
19218 arg2 = (bool) SWIG_AsBool(obj1);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 (arg1)->RequestMore(arg2);
19224
19225 wxPyEndAllowThreads(__tstate);
19226 if (PyErr_Occurred()) SWIG_fail;
19227 }
19228 Py_INCREF(Py_None); resultobj = Py_None;
19229 return resultobj;
19230 fail:
19231 return NULL;
19232 }
19233
19234
19235 static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
19236 PyObject *resultobj;
19237 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19238 bool result;
19239 PyObject * obj0 = 0 ;
19240 char *kwnames[] = {
19241 (char *) "self", NULL
19242 };
19243
19244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19250
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 {
19255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19256 }
19257 return resultobj;
19258 fail:
19259 return NULL;
19260 }
19261
19262
19263 static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19264 PyObject *resultobj;
19265 int arg1 ;
19266 PyObject * obj0 = 0 ;
19267 char *kwnames[] = {
19268 (char *) "mode", NULL
19269 };
19270
19271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19272 arg1 = (wxIdleMode) SWIG_AsInt(obj0);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 wxIdleEvent::SetMode((wxIdleMode )arg1);
19277
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 Py_INCREF(Py_None); resultobj = Py_None;
19282 return resultobj;
19283 fail:
19284 return NULL;
19285 }
19286
19287
19288 static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj;
19290 int result;
19291 char *kwnames[] = {
19292 NULL
19293 };
19294
19295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 result = (int)wxIdleEvent::GetMode();
19299
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_FromInt((int)result);
19304 return resultobj;
19305 fail:
19306 return NULL;
19307 }
19308
19309
19310 static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj;
19312 wxWindow *arg1 = (wxWindow *) 0 ;
19313 bool result;
19314 PyObject * obj0 = 0 ;
19315 char *kwnames[] = {
19316 (char *) "win", NULL
19317 };
19318
19319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 result = (bool)wxIdleEvent::CanSend(arg1);
19325
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 {
19330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19331 }
19332 return resultobj;
19333 fail:
19334 return NULL;
19335 }
19336
19337
19338 static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
19339 PyObject *obj;
19340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19341 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19342 Py_INCREF(obj);
19343 return Py_BuildValue((char *)"");
19344 }
19345 static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 int arg1 = (int) 0 ;
19348 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19349 wxPyEvent *result;
19350 PyObject * obj0 = 0 ;
19351 PyObject * obj1 = 0 ;
19352 char *kwnames[] = {
19353 (char *) "winid",(char *) "commandType", NULL
19354 };
19355
19356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19357 if (obj0) {
19358 arg1 = (int) SWIG_AsInt(obj0);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 if (obj1) {
19362 arg2 = (wxEventType) SWIG_AsInt(obj1);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 }
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19368
19369 wxPyEndAllowThreads(__tstate);
19370 if (PyErr_Occurred()) SWIG_fail;
19371 }
19372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19373 return resultobj;
19374 fail:
19375 return NULL;
19376 }
19377
19378
19379 static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj;
19381 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19382 PyObject * obj0 = 0 ;
19383 char *kwnames[] = {
19384 (char *) "self", NULL
19385 };
19386
19387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19390 {
19391 PyThreadState* __tstate = wxPyBeginAllowThreads();
19392 delete arg1;
19393
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 Py_INCREF(Py_None); resultobj = Py_None;
19398 return resultobj;
19399 fail:
19400 return NULL;
19401 }
19402
19403
19404 static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19405 PyObject *resultobj;
19406 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19407 PyObject *arg2 = (PyObject *) 0 ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 char *kwnames[] = {
19411 (char *) "self",(char *) "self", NULL
19412 };
19413
19414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19417 arg2 = obj1;
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 (arg1)->SetSelf(arg2);
19421
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 Py_INCREF(Py_None); resultobj = Py_None;
19426 return resultobj;
19427 fail:
19428 return NULL;
19429 }
19430
19431
19432 static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj;
19434 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19435 PyObject *result;
19436 PyObject * obj0 = 0 ;
19437 char *kwnames[] = {
19438 (char *) "self", NULL
19439 };
19440
19441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19444 {
19445 PyThreadState* __tstate = wxPyBeginAllowThreads();
19446 result = (PyObject *)(arg1)->GetSelf();
19447
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 resultobj = result;
19452 return resultobj;
19453 fail:
19454 return NULL;
19455 }
19456
19457
19458 static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
19459 PyObject *obj;
19460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19461 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19462 Py_INCREF(obj);
19463 return Py_BuildValue((char *)"");
19464 }
19465 static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19466 PyObject *resultobj;
19467 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19468 int arg2 = (int) 0 ;
19469 wxPyCommandEvent *result;
19470 PyObject * obj0 = 0 ;
19471 PyObject * obj1 = 0 ;
19472 char *kwnames[] = {
19473 (char *) "commandType",(char *) "id", NULL
19474 };
19475
19476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19477 if (obj0) {
19478 arg1 = (wxEventType) SWIG_AsInt(obj0);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 if (obj1) {
19482 arg2 = (int) SWIG_AsInt(obj1);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19488
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
19492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19493 return resultobj;
19494 fail:
19495 return NULL;
19496 }
19497
19498
19499 static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19500 PyObject *resultobj;
19501 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19502 PyObject * obj0 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "self", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 delete arg1;
19513
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 Py_INCREF(Py_None); resultobj = Py_None;
19518 return resultobj;
19519 fail:
19520 return NULL;
19521 }
19522
19523
19524 static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj;
19526 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19527 PyObject *arg2 = (PyObject *) 0 ;
19528 PyObject * obj0 = 0 ;
19529 PyObject * obj1 = 0 ;
19530 char *kwnames[] = {
19531 (char *) "self",(char *) "self", NULL
19532 };
19533
19534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19537 arg2 = obj1;
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 (arg1)->SetSelf(arg2);
19541
19542 wxPyEndAllowThreads(__tstate);
19543 if (PyErr_Occurred()) SWIG_fail;
19544 }
19545 Py_INCREF(Py_None); resultobj = Py_None;
19546 return resultobj;
19547 fail:
19548 return NULL;
19549 }
19550
19551
19552 static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19553 PyObject *resultobj;
19554 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19555 PyObject *result;
19556 PyObject * obj0 = 0 ;
19557 char *kwnames[] = {
19558 (char *) "self", NULL
19559 };
19560
19561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19564 {
19565 PyThreadState* __tstate = wxPyBeginAllowThreads();
19566 result = (PyObject *)(arg1)->GetSelf();
19567
19568 wxPyEndAllowThreads(__tstate);
19569 if (PyErr_Occurred()) SWIG_fail;
19570 }
19571 resultobj = result;
19572 return resultobj;
19573 fail:
19574 return NULL;
19575 }
19576
19577
19578 static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
19579 PyObject *obj;
19580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19581 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19582 Py_INCREF(obj);
19583 return Py_BuildValue((char *)"");
19584 }
19585 static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxPyApp *result;
19588 char *kwnames[] = {
19589 NULL
19590 };
19591
19592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 result = (wxPyApp *)new_wxPyApp();
19596
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1);
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj;
19609 wxPyApp *arg1 = (wxPyApp *) 0 ;
19610 PyObject * obj0 = 0 ;
19611 char *kwnames[] = {
19612 (char *) "self", NULL
19613 };
19614
19615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19618 {
19619 PyThreadState* __tstate = wxPyBeginAllowThreads();
19620 delete arg1;
19621
19622 wxPyEndAllowThreads(__tstate);
19623 if (PyErr_Occurred()) SWIG_fail;
19624 }
19625 Py_INCREF(Py_None); resultobj = Py_None;
19626 return resultobj;
19627 fail:
19628 return NULL;
19629 }
19630
19631
19632 static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19633 PyObject *resultobj;
19634 wxPyApp *arg1 = (wxPyApp *) 0 ;
19635 PyObject *arg2 = (PyObject *) 0 ;
19636 PyObject *arg3 = (PyObject *) 0 ;
19637 PyObject * obj0 = 0 ;
19638 PyObject * obj1 = 0 ;
19639 PyObject * obj2 = 0 ;
19640 char *kwnames[] = {
19641 (char *) "self",(char *) "self",(char *) "_class", NULL
19642 };
19643
19644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19647 arg2 = obj1;
19648 arg3 = obj2;
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 (arg1)->_setCallbackInfo(arg2,arg3);
19652
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 Py_INCREF(Py_None); resultobj = Py_None;
19657 return resultobj;
19658 fail:
19659 return NULL;
19660 }
19661
19662
19663 static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19664 PyObject *resultobj;
19665 wxPyApp *arg1 = (wxPyApp *) 0 ;
19666 wxString result;
19667 PyObject * obj0 = 0 ;
19668 char *kwnames[] = {
19669 (char *) "self", NULL
19670 };
19671
19672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 result = ((wxPyApp const *)arg1)->GetAppName();
19678
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 {
19683 #if wxUSE_UNICODE
19684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19685 #else
19686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19687 #endif
19688 }
19689 return resultobj;
19690 fail:
19691 return NULL;
19692 }
19693
19694
19695 static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19696 PyObject *resultobj;
19697 wxPyApp *arg1 = (wxPyApp *) 0 ;
19698 wxString *arg2 = 0 ;
19699 bool temp2 = False ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 char *kwnames[] = {
19703 (char *) "self",(char *) "name", NULL
19704 };
19705
19706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19709 {
19710 arg2 = wxString_in_helper(obj1);
19711 if (arg2 == NULL) SWIG_fail;
19712 temp2 = True;
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 (arg1)->SetAppName((wxString const &)*arg2);
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 Py_INCREF(Py_None); resultobj = Py_None;
19722 {
19723 if (temp2)
19724 delete arg2;
19725 }
19726 return resultobj;
19727 fail:
19728 {
19729 if (temp2)
19730 delete arg2;
19731 }
19732 return NULL;
19733 }
19734
19735
19736 static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19737 PyObject *resultobj;
19738 wxPyApp *arg1 = (wxPyApp *) 0 ;
19739 wxString result;
19740 PyObject * obj0 = 0 ;
19741 char *kwnames[] = {
19742 (char *) "self", NULL
19743 };
19744
19745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19748 {
19749 PyThreadState* __tstate = wxPyBeginAllowThreads();
19750 result = ((wxPyApp const *)arg1)->GetClassName();
19751
19752 wxPyEndAllowThreads(__tstate);
19753 if (PyErr_Occurred()) SWIG_fail;
19754 }
19755 {
19756 #if wxUSE_UNICODE
19757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19758 #else
19759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19760 #endif
19761 }
19762 return resultobj;
19763 fail:
19764 return NULL;
19765 }
19766
19767
19768 static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19769 PyObject *resultobj;
19770 wxPyApp *arg1 = (wxPyApp *) 0 ;
19771 wxString *arg2 = 0 ;
19772 bool temp2 = False ;
19773 PyObject * obj0 = 0 ;
19774 PyObject * obj1 = 0 ;
19775 char *kwnames[] = {
19776 (char *) "self",(char *) "name", NULL
19777 };
19778
19779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19782 {
19783 arg2 = wxString_in_helper(obj1);
19784 if (arg2 == NULL) SWIG_fail;
19785 temp2 = True;
19786 }
19787 {
19788 PyThreadState* __tstate = wxPyBeginAllowThreads();
19789 (arg1)->SetClassName((wxString const &)*arg2);
19790
19791 wxPyEndAllowThreads(__tstate);
19792 if (PyErr_Occurred()) SWIG_fail;
19793 }
19794 Py_INCREF(Py_None); resultobj = Py_None;
19795 {
19796 if (temp2)
19797 delete arg2;
19798 }
19799 return resultobj;
19800 fail:
19801 {
19802 if (temp2)
19803 delete arg2;
19804 }
19805 return NULL;
19806 }
19807
19808
19809 static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19810 PyObject *resultobj;
19811 wxPyApp *arg1 = (wxPyApp *) 0 ;
19812 wxString *result;
19813 PyObject * obj0 = 0 ;
19814 char *kwnames[] = {
19815 (char *) "self", NULL
19816 };
19817
19818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
19819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 {
19824 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
19825 result = (wxString *) &_result_ref;
19826 }
19827
19828 wxPyEndAllowThreads(__tstate);
19829 if (PyErr_Occurred()) SWIG_fail;
19830 }
19831 {
19832 #if wxUSE_UNICODE
19833 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19834 #else
19835 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19836 #endif
19837 }
19838 return resultobj;
19839 fail:
19840 return NULL;
19841 }
19842
19843
19844 static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19845 PyObject *resultobj;
19846 wxPyApp *arg1 = (wxPyApp *) 0 ;
19847 wxString *arg2 = 0 ;
19848 bool temp2 = False ;
19849 PyObject * obj0 = 0 ;
19850 PyObject * obj1 = 0 ;
19851 char *kwnames[] = {
19852 (char *) "self",(char *) "name", NULL
19853 };
19854
19855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19858 {
19859 arg2 = wxString_in_helper(obj1);
19860 if (arg2 == NULL) SWIG_fail;
19861 temp2 = True;
19862 }
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 (arg1)->SetVendorName((wxString const &)*arg2);
19866
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 Py_INCREF(Py_None); resultobj = Py_None;
19871 {
19872 if (temp2)
19873 delete arg2;
19874 }
19875 return resultobj;
19876 fail:
19877 {
19878 if (temp2)
19879 delete arg2;
19880 }
19881 return NULL;
19882 }
19883
19884
19885 static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19886 PyObject *resultobj;
19887 wxPyApp *arg1 = (wxPyApp *) 0 ;
19888 wxAppTraits *result;
19889 PyObject * obj0 = 0 ;
19890 char *kwnames[] = {
19891 (char *) "self", NULL
19892 };
19893
19894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 result = (wxAppTraits *)(arg1)->GetTraits();
19900
19901 wxPyEndAllowThreads(__tstate);
19902 if (PyErr_Occurred()) SWIG_fail;
19903 }
19904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
19905 return resultobj;
19906 fail:
19907 return NULL;
19908 }
19909
19910
19911 static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19912 PyObject *resultobj;
19913 wxPyApp *arg1 = (wxPyApp *) 0 ;
19914 PyObject * obj0 = 0 ;
19915 char *kwnames[] = {
19916 (char *) "self", NULL
19917 };
19918
19919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19922 {
19923 PyThreadState* __tstate = wxPyBeginAllowThreads();
19924 (arg1)->ProcessPendingEvents();
19925
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 Py_INCREF(Py_None); resultobj = Py_None;
19930 return resultobj;
19931 fail:
19932 return NULL;
19933 }
19934
19935
19936 static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19937 PyObject *resultobj;
19938 wxPyApp *arg1 = (wxPyApp *) 0 ;
19939 bool arg2 = (bool) False ;
19940 bool result;
19941 PyObject * obj0 = 0 ;
19942 PyObject * obj1 = 0 ;
19943 char *kwnames[] = {
19944 (char *) "self",(char *) "onlyIfNeeded", NULL
19945 };
19946
19947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19950 if (obj1) {
19951 arg2 = (bool) SWIG_AsBool(obj1);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = (bool)(arg1)->Yield(arg2);
19957
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 {
19962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19963 }
19964 return resultobj;
19965 fail:
19966 return NULL;
19967 }
19968
19969
19970 static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19971 PyObject *resultobj;
19972 wxPyApp *arg1 = (wxPyApp *) 0 ;
19973 PyObject * obj0 = 0 ;
19974 char *kwnames[] = {
19975 (char *) "self", NULL
19976 };
19977
19978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 (arg1)->WakeUpIdle();
19984
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 Py_INCREF(Py_None); resultobj = Py_None;
19989 return resultobj;
19990 fail:
19991 return NULL;
19992 }
19993
19994
19995 static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19996 PyObject *resultobj;
19997 wxPyApp *arg1 = (wxPyApp *) 0 ;
19998 int result;
19999 PyObject * obj0 = 0 ;
20000 char *kwnames[] = {
20001 (char *) "self", NULL
20002 };
20003
20004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
20005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20007 {
20008 PyThreadState* __tstate = wxPyBeginAllowThreads();
20009 result = (int)(arg1)->MainLoop();
20010
20011 wxPyEndAllowThreads(__tstate);
20012 if (PyErr_Occurred()) SWIG_fail;
20013 }
20014 resultobj = SWIG_FromInt((int)result);
20015 return resultobj;
20016 fail:
20017 return NULL;
20018 }
20019
20020
20021 static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj;
20023 wxPyApp *arg1 = (wxPyApp *) 0 ;
20024 PyObject * obj0 = 0 ;
20025 char *kwnames[] = {
20026 (char *) "self", NULL
20027 };
20028
20029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
20030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20032 {
20033 PyThreadState* __tstate = wxPyBeginAllowThreads();
20034 (arg1)->Exit();
20035
20036 wxPyEndAllowThreads(__tstate);
20037 if (PyErr_Occurred()) SWIG_fail;
20038 }
20039 Py_INCREF(Py_None); resultobj = Py_None;
20040 return resultobj;
20041 fail:
20042 return NULL;
20043 }
20044
20045
20046 static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
20047 PyObject *resultobj;
20048 wxPyApp *arg1 = (wxPyApp *) 0 ;
20049 PyObject * obj0 = 0 ;
20050 char *kwnames[] = {
20051 (char *) "self", NULL
20052 };
20053
20054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
20055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 (arg1)->ExitMainLoop();
20060
20061 wxPyEndAllowThreads(__tstate);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 }
20064 Py_INCREF(Py_None); resultobj = Py_None;
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj;
20073 wxPyApp *arg1 = (wxPyApp *) 0 ;
20074 bool result;
20075 PyObject * obj0 = 0 ;
20076 char *kwnames[] = {
20077 (char *) "self", NULL
20078 };
20079
20080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
20081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20083 {
20084 PyThreadState* __tstate = wxPyBeginAllowThreads();
20085 result = (bool)(arg1)->Pending();
20086
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 {
20091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20092 }
20093 return resultobj;
20094 fail:
20095 return NULL;
20096 }
20097
20098
20099 static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
20100 PyObject *resultobj;
20101 wxPyApp *arg1 = (wxPyApp *) 0 ;
20102 bool result;
20103 PyObject * obj0 = 0 ;
20104 char *kwnames[] = {
20105 (char *) "self", NULL
20106 };
20107
20108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
20109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20111 {
20112 PyThreadState* __tstate = wxPyBeginAllowThreads();
20113 result = (bool)(arg1)->Dispatch();
20114
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 {
20119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20120 }
20121 return resultobj;
20122 fail:
20123 return NULL;
20124 }
20125
20126
20127 static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj;
20129 wxPyApp *arg1 = (wxPyApp *) 0 ;
20130 bool result;
20131 PyObject * obj0 = 0 ;
20132 char *kwnames[] = {
20133 (char *) "self", NULL
20134 };
20135
20136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
20137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 result = (bool)(arg1)->ProcessIdle();
20142
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 {
20147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20148 }
20149 return resultobj;
20150 fail:
20151 return NULL;
20152 }
20153
20154
20155 static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj;
20157 wxPyApp *arg1 = (wxPyApp *) 0 ;
20158 wxWindow *arg2 = (wxWindow *) 0 ;
20159 wxIdleEvent *arg3 = 0 ;
20160 bool result;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 PyObject * obj2 = 0 ;
20164 char *kwnames[] = {
20165 (char *) "self",(char *) "win",(char *) "event", NULL
20166 };
20167
20168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20173 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20174 SWIG_POINTER_EXCEPTION | 0)) == -1)
20175 SWIG_fail;
20176 if (arg3 == NULL) {
20177 PyErr_SetString(PyExc_TypeError,"null reference");
20178 SWIG_fail;
20179 }
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20183
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 {
20188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20189 }
20190 return resultobj;
20191 fail:
20192 return NULL;
20193 }
20194
20195
20196 static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj;
20198 wxPyApp *arg1 = (wxPyApp *) 0 ;
20199 bool result;
20200 PyObject * obj0 = 0 ;
20201 char *kwnames[] = {
20202 (char *) "self", NULL
20203 };
20204
20205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20208 {
20209 PyThreadState* __tstate = wxPyBeginAllowThreads();
20210 result = (bool)((wxPyApp const *)arg1)->IsActive();
20211
20212 wxPyEndAllowThreads(__tstate);
20213 if (PyErr_Occurred()) SWIG_fail;
20214 }
20215 {
20216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20217 }
20218 return resultobj;
20219 fail:
20220 return NULL;
20221 }
20222
20223
20224 static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20225 PyObject *resultobj;
20226 wxPyApp *arg1 = (wxPyApp *) 0 ;
20227 wxWindow *arg2 = (wxWindow *) 0 ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 char *kwnames[] = {
20231 (char *) "self",(char *) "win", NULL
20232 };
20233
20234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20239 {
20240 PyThreadState* __tstate = wxPyBeginAllowThreads();
20241 (arg1)->SetTopWindow(arg2);
20242
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 Py_INCREF(Py_None); resultobj = Py_None;
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj;
20255 wxPyApp *arg1 = (wxPyApp *) 0 ;
20256 wxWindow *result;
20257 PyObject * obj0 = 0 ;
20258 char *kwnames[] = {
20259 (char *) "self", NULL
20260 };
20261
20262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20265 {
20266 PyThreadState* __tstate = wxPyBeginAllowThreads();
20267 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20268
20269 wxPyEndAllowThreads(__tstate);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 }
20272 {
20273 resultobj = wxPyMake_wxObject(result, 0);
20274 }
20275 return resultobj;
20276 fail:
20277 return NULL;
20278 }
20279
20280
20281 static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20282 PyObject *resultobj;
20283 wxPyApp *arg1 = (wxPyApp *) 0 ;
20284 bool arg2 ;
20285 PyObject * obj0 = 0 ;
20286 PyObject * obj1 = 0 ;
20287 char *kwnames[] = {
20288 (char *) "self",(char *) "flag", NULL
20289 };
20290
20291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20294 arg2 = (bool) SWIG_AsBool(obj1);
20295 if (PyErr_Occurred()) SWIG_fail;
20296 {
20297 PyThreadState* __tstate = wxPyBeginAllowThreads();
20298 (arg1)->SetExitOnFrameDelete(arg2);
20299
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 Py_INCREF(Py_None); resultobj = Py_None;
20304 return resultobj;
20305 fail:
20306 return NULL;
20307 }
20308
20309
20310 static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20311 PyObject *resultobj;
20312 wxPyApp *arg1 = (wxPyApp *) 0 ;
20313 bool result;
20314 PyObject * obj0 = 0 ;
20315 char *kwnames[] = {
20316 (char *) "self", NULL
20317 };
20318
20319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20322 {
20323 PyThreadState* __tstate = wxPyBeginAllowThreads();
20324 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20325
20326 wxPyEndAllowThreads(__tstate);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 }
20329 {
20330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20331 }
20332 return resultobj;
20333 fail:
20334 return NULL;
20335 }
20336
20337
20338 static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20339 PyObject *resultobj;
20340 wxPyApp *arg1 = (wxPyApp *) 0 ;
20341 bool arg2 ;
20342 PyObject * obj0 = 0 ;
20343 PyObject * obj1 = 0 ;
20344 char *kwnames[] = {
20345 (char *) "self",(char *) "flag", NULL
20346 };
20347
20348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20351 arg2 = (bool) SWIG_AsBool(obj1);
20352 if (PyErr_Occurred()) SWIG_fail;
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 (arg1)->SetUseBestVisual(arg2);
20356
20357 wxPyEndAllowThreads(__tstate);
20358 if (PyErr_Occurred()) SWIG_fail;
20359 }
20360 Py_INCREF(Py_None); resultobj = Py_None;
20361 return resultobj;
20362 fail:
20363 return NULL;
20364 }
20365
20366
20367 static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20368 PyObject *resultobj;
20369 wxPyApp *arg1 = (wxPyApp *) 0 ;
20370 bool result;
20371 PyObject * obj0 = 0 ;
20372 char *kwnames[] = {
20373 (char *) "self", NULL
20374 };
20375
20376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20379 {
20380 PyThreadState* __tstate = wxPyBeginAllowThreads();
20381 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20382
20383 wxPyEndAllowThreads(__tstate);
20384 if (PyErr_Occurred()) SWIG_fail;
20385 }
20386 {
20387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20388 }
20389 return resultobj;
20390 fail:
20391 return NULL;
20392 }
20393
20394
20395 static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20396 PyObject *resultobj;
20397 wxPyApp *arg1 = (wxPyApp *) 0 ;
20398 int arg2 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 char *kwnames[] = {
20402 (char *) "self",(char *) "mode", NULL
20403 };
20404
20405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20408 arg2 = (int) SWIG_AsInt(obj1);
20409 if (PyErr_Occurred()) SWIG_fail;
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 (arg1)->SetPrintMode(arg2);
20413
20414 wxPyEndAllowThreads(__tstate);
20415 if (PyErr_Occurred()) SWIG_fail;
20416 }
20417 Py_INCREF(Py_None); resultobj = Py_None;
20418 return resultobj;
20419 fail:
20420 return NULL;
20421 }
20422
20423
20424 static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20425 PyObject *resultobj;
20426 wxPyApp *arg1 = (wxPyApp *) 0 ;
20427 int result;
20428 PyObject * obj0 = 0 ;
20429 char *kwnames[] = {
20430 (char *) "self", NULL
20431 };
20432
20433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20436 {
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20439
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_FromInt((int)result);
20444 return resultobj;
20445 fail:
20446 return NULL;
20447 }
20448
20449
20450 static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20451 PyObject *resultobj;
20452 wxPyApp *arg1 = (wxPyApp *) 0 ;
20453 int arg2 ;
20454 PyObject * obj0 = 0 ;
20455 PyObject * obj1 = 0 ;
20456 char *kwnames[] = {
20457 (char *) "self",(char *) "mode", NULL
20458 };
20459
20460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20463 arg2 = (int) SWIG_AsInt(obj1);
20464 if (PyErr_Occurred()) SWIG_fail;
20465 {
20466 PyThreadState* __tstate = wxPyBeginAllowThreads();
20467 (arg1)->SetAssertMode(arg2);
20468
20469 wxPyEndAllowThreads(__tstate);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 }
20472 Py_INCREF(Py_None); resultobj = Py_None;
20473 return resultobj;
20474 fail:
20475 return NULL;
20476 }
20477
20478
20479 static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20480 PyObject *resultobj;
20481 wxPyApp *arg1 = (wxPyApp *) 0 ;
20482 int result;
20483 PyObject * obj0 = 0 ;
20484 char *kwnames[] = {
20485 (char *) "self", NULL
20486 };
20487
20488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 result = (int)(arg1)->GetAssertMode();
20494
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 resultobj = SWIG_FromInt((int)result);
20499 return resultobj;
20500 fail:
20501 return NULL;
20502 }
20503
20504
20505 static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj;
20507 bool result;
20508 char *kwnames[] = {
20509 NULL
20510 };
20511
20512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20513 {
20514 PyThreadState* __tstate = wxPyBeginAllowThreads();
20515 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20516
20517 wxPyEndAllowThreads(__tstate);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 }
20520 {
20521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20522 }
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20530 PyObject *resultobj;
20531 long result;
20532 char *kwnames[] = {
20533 NULL
20534 };
20535
20536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 result = (long)wxPyApp::GetMacAboutMenuItemId();
20540
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_FromLong((long)result);
20545 return resultobj;
20546 fail:
20547 return NULL;
20548 }
20549
20550
20551 static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj;
20553 long result;
20554 char *kwnames[] = {
20555 NULL
20556 };
20557
20558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20559 {
20560 PyThreadState* __tstate = wxPyBeginAllowThreads();
20561 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20562
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 resultobj = SWIG_FromLong((long)result);
20567 return resultobj;
20568 fail:
20569 return NULL;
20570 }
20571
20572
20573 static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj;
20575 long result;
20576 char *kwnames[] = {
20577 NULL
20578 };
20579
20580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20581 {
20582 PyThreadState* __tstate = wxPyBeginAllowThreads();
20583 result = (long)wxPyApp::GetMacExitMenuItemId();
20584
20585 wxPyEndAllowThreads(__tstate);
20586 if (PyErr_Occurred()) SWIG_fail;
20587 }
20588 resultobj = SWIG_FromLong((long)result);
20589 return resultobj;
20590 fail:
20591 return NULL;
20592 }
20593
20594
20595 static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20596 PyObject *resultobj;
20597 wxString result;
20598 char *kwnames[] = {
20599 NULL
20600 };
20601
20602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 result = wxPyApp::GetMacHelpMenuTitleName();
20606
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 {
20611 #if wxUSE_UNICODE
20612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20613 #else
20614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20615 #endif
20616 }
20617 return resultobj;
20618 fail:
20619 return NULL;
20620 }
20621
20622
20623 static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj;
20625 bool arg1 ;
20626 PyObject * obj0 = 0 ;
20627 char *kwnames[] = {
20628 (char *) "val", NULL
20629 };
20630
20631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20632 arg1 = (bool) SWIG_AsBool(obj0);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 {
20635 PyThreadState* __tstate = wxPyBeginAllowThreads();
20636 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20637
20638 wxPyEndAllowThreads(__tstate);
20639 if (PyErr_Occurred()) SWIG_fail;
20640 }
20641 Py_INCREF(Py_None); resultobj = Py_None;
20642 return resultobj;
20643 fail:
20644 return NULL;
20645 }
20646
20647
20648 static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20649 PyObject *resultobj;
20650 long arg1 ;
20651 PyObject * obj0 = 0 ;
20652 char *kwnames[] = {
20653 (char *) "val", NULL
20654 };
20655
20656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
20657 arg1 = (long) SWIG_AsLong(obj0);
20658 if (PyErr_Occurred()) SWIG_fail;
20659 {
20660 PyThreadState* __tstate = wxPyBeginAllowThreads();
20661 wxPyApp::SetMacAboutMenuItemId(arg1);
20662
20663 wxPyEndAllowThreads(__tstate);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 }
20666 Py_INCREF(Py_None); resultobj = Py_None;
20667 return resultobj;
20668 fail:
20669 return NULL;
20670 }
20671
20672
20673 static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20674 PyObject *resultobj;
20675 long arg1 ;
20676 PyObject * obj0 = 0 ;
20677 char *kwnames[] = {
20678 (char *) "val", NULL
20679 };
20680
20681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
20682 arg1 = (long) SWIG_AsLong(obj0);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 {
20685 PyThreadState* __tstate = wxPyBeginAllowThreads();
20686 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20687
20688 wxPyEndAllowThreads(__tstate);
20689 if (PyErr_Occurred()) SWIG_fail;
20690 }
20691 Py_INCREF(Py_None); resultobj = Py_None;
20692 return resultobj;
20693 fail:
20694 return NULL;
20695 }
20696
20697
20698 static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj;
20700 long arg1 ;
20701 PyObject * obj0 = 0 ;
20702 char *kwnames[] = {
20703 (char *) "val", NULL
20704 };
20705
20706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
20707 arg1 = (long) SWIG_AsLong(obj0);
20708 if (PyErr_Occurred()) SWIG_fail;
20709 {
20710 PyThreadState* __tstate = wxPyBeginAllowThreads();
20711 wxPyApp::SetMacExitMenuItemId(arg1);
20712
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 Py_INCREF(Py_None); resultobj = Py_None;
20717 return resultobj;
20718 fail:
20719 return NULL;
20720 }
20721
20722
20723 static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20724 PyObject *resultobj;
20725 wxString *arg1 = 0 ;
20726 bool temp1 = False ;
20727 PyObject * obj0 = 0 ;
20728 char *kwnames[] = {
20729 (char *) "val", NULL
20730 };
20731
20732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20733 {
20734 arg1 = wxString_in_helper(obj0);
20735 if (arg1 == NULL) SWIG_fail;
20736 temp1 = True;
20737 }
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20741
20742 wxPyEndAllowThreads(__tstate);
20743 if (PyErr_Occurred()) SWIG_fail;
20744 }
20745 Py_INCREF(Py_None); resultobj = Py_None;
20746 {
20747 if (temp1)
20748 delete arg1;
20749 }
20750 return resultobj;
20751 fail:
20752 {
20753 if (temp1)
20754 delete arg1;
20755 }
20756 return NULL;
20757 }
20758
20759
20760 static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj;
20762 wxPyApp *arg1 = (wxPyApp *) 0 ;
20763 PyObject * obj0 = 0 ;
20764 char *kwnames[] = {
20765 (char *) "self", NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20771 {
20772 PyThreadState* __tstate = wxPyBeginAllowThreads();
20773 (arg1)->_BootstrapApp();
20774
20775 wxPyEndAllowThreads(__tstate);
20776 if (PyErr_Occurred()) SWIG_fail;
20777 }
20778 Py_INCREF(Py_None); resultobj = Py_None;
20779 return resultobj;
20780 fail:
20781 return NULL;
20782 }
20783
20784
20785 static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
20786 PyObject *resultobj;
20787 int result;
20788 char *kwnames[] = {
20789 NULL
20790 };
20791
20792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20793 {
20794 PyThreadState* __tstate = wxPyBeginAllowThreads();
20795 result = (int)PyApp_GetComCtl32Version();
20796
20797 wxPyEndAllowThreads(__tstate);
20798 if (PyErr_Occurred()) SWIG_fail;
20799 }
20800 resultobj = SWIG_FromInt((int)result);
20801 return resultobj;
20802 fail:
20803 return NULL;
20804 }
20805
20806
20807 static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
20808 PyObject *obj;
20809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20810 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20811 Py_INCREF(obj);
20812 return Py_BuildValue((char *)"");
20813 }
20814 static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 char *kwnames[] = {
20817 NULL
20818 };
20819
20820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
20821 {
20822 PyThreadState* __tstate = wxPyBeginAllowThreads();
20823 wxExit();
20824
20825 wxPyEndAllowThreads(__tstate);
20826 if (PyErr_Occurred()) SWIG_fail;
20827 }
20828 Py_INCREF(Py_None); resultobj = Py_None;
20829 return resultobj;
20830 fail:
20831 return NULL;
20832 }
20833
20834
20835 static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
20836 PyObject *resultobj;
20837 bool result;
20838 char *kwnames[] = {
20839 NULL
20840 };
20841
20842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 result = (bool)wxYield();
20846
20847 wxPyEndAllowThreads(__tstate);
20848 if (PyErr_Occurred()) SWIG_fail;
20849 }
20850 {
20851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20852 }
20853 return resultobj;
20854 fail:
20855 return NULL;
20856 }
20857
20858
20859 static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
20860 PyObject *resultobj;
20861 bool result;
20862 char *kwnames[] = {
20863 NULL
20864 };
20865
20866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
20867 {
20868 PyThreadState* __tstate = wxPyBeginAllowThreads();
20869 result = (bool)wxYieldIfNeeded();
20870
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 {
20875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20876 }
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20884 PyObject *resultobj;
20885 wxWindow *arg1 = (wxWindow *) NULL ;
20886 bool arg2 = (bool) False ;
20887 bool result;
20888 PyObject * obj0 = 0 ;
20889 PyObject * obj1 = 0 ;
20890 char *kwnames[] = {
20891 (char *) "win",(char *) "onlyIfNeeded", NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20895 if (obj0) {
20896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20898 }
20899 if (obj1) {
20900 arg2 = (bool) SWIG_AsBool(obj1);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 {
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 result = (bool)wxSafeYield(arg1,arg2);
20906
20907 wxPyEndAllowThreads(__tstate);
20908 if (PyErr_Occurred()) SWIG_fail;
20909 }
20910 {
20911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20912 }
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj;
20921 char *kwnames[] = {
20922 NULL
20923 };
20924
20925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20926 {
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 wxWakeUpIdle();
20929
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 Py_INCREF(Py_None); resultobj = Py_None;
20934 return resultobj;
20935 fail:
20936 return NULL;
20937 }
20938
20939
20940 static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj;
20942 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20943 wxEvent *arg2 = 0 ;
20944 PyObject * obj0 = 0 ;
20945 PyObject * obj1 = 0 ;
20946 char *kwnames[] = {
20947 (char *) "dest",(char *) "event", NULL
20948 };
20949
20950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
20952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
20954 SWIG_POINTER_EXCEPTION | 0)) == -1)
20955 SWIG_fail;
20956 if (arg2 == NULL) {
20957 PyErr_SetString(PyExc_TypeError,"null reference");
20958 SWIG_fail;
20959 }
20960 {
20961 PyThreadState* __tstate = wxPyBeginAllowThreads();
20962 wxPostEvent(arg1,*arg2);
20963
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 Py_INCREF(Py_None); resultobj = Py_None;
20968 return resultobj;
20969 fail:
20970 return NULL;
20971 }
20972
20973
20974 static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj;
20976 char *kwnames[] = {
20977 NULL
20978 };
20979
20980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 wxApp_CleanUp();
20984
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 Py_INCREF(Py_None); resultobj = Py_None;
20989 return resultobj;
20990 fail:
20991 return NULL;
20992 }
20993
20994
20995 static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20996 PyObject *resultobj;
20997 wxPyApp *result;
20998 char *kwnames[] = {
20999 NULL
21000 };
21001
21002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
21003 {
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 result = (wxPyApp *)wxPyGetApp();
21006
21007 wxPyEndAllowThreads(__tstate);
21008 if (PyErr_Occurred()) SWIG_fail;
21009 }
21010 {
21011 resultobj = wxPyMake_wxObject(result, 0);
21012 }
21013 return resultobj;
21014 fail:
21015 return NULL;
21016 }
21017
21018
21019 static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
21020 PyObject *resultobj;
21021 int arg1 = (int) 0 ;
21022 int arg2 = (int) 0 ;
21023 int arg3 = (int) 0 ;
21024 wxAcceleratorEntry *result;
21025 PyObject * obj0 = 0 ;
21026 PyObject * obj1 = 0 ;
21027 PyObject * obj2 = 0 ;
21028 char *kwnames[] = {
21029 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
21030 };
21031
21032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
21033 if (obj0) {
21034 arg1 = (int) SWIG_AsInt(obj0);
21035 if (PyErr_Occurred()) SWIG_fail;
21036 }
21037 if (obj1) {
21038 arg2 = (int) SWIG_AsInt(obj1);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 if (obj2) {
21042 arg3 = (int) SWIG_AsInt(obj2);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
21048
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
21053 return resultobj;
21054 fail:
21055 return NULL;
21056 }
21057
21058
21059 static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj;
21061 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21062 PyObject * obj0 = 0 ;
21063 char *kwnames[] = {
21064 (char *) "self", NULL
21065 };
21066
21067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
21068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 delete arg1;
21073
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 Py_INCREF(Py_None); resultobj = Py_None;
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj;
21086 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21087 int arg2 ;
21088 int arg3 ;
21089 int arg4 ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 PyObject * obj2 = 0 ;
21093 PyObject * obj3 = 0 ;
21094 char *kwnames[] = {
21095 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
21096 };
21097
21098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21101 arg2 = (int) SWIG_AsInt(obj1);
21102 if (PyErr_Occurred()) SWIG_fail;
21103 arg3 = (int) SWIG_AsInt(obj2);
21104 if (PyErr_Occurred()) SWIG_fail;
21105 arg4 = (int) SWIG_AsInt(obj3);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 (arg1)->Set(arg2,arg3,arg4);
21110
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 Py_INCREF(Py_None); resultobj = Py_None;
21115 return resultobj;
21116 fail:
21117 return NULL;
21118 }
21119
21120
21121 static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
21122 PyObject *resultobj;
21123 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21124 int result;
21125 PyObject * obj0 = 0 ;
21126 char *kwnames[] = {
21127 (char *) "self", NULL
21128 };
21129
21130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
21131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 result = (int)(arg1)->GetFlags();
21136
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 resultobj = SWIG_FromInt((int)result);
21141 return resultobj;
21142 fail:
21143 return NULL;
21144 }
21145
21146
21147 static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
21148 PyObject *resultobj;
21149 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21150 int result;
21151 PyObject * obj0 = 0 ;
21152 char *kwnames[] = {
21153 (char *) "self", NULL
21154 };
21155
21156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
21157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21159 {
21160 PyThreadState* __tstate = wxPyBeginAllowThreads();
21161 result = (int)(arg1)->GetKeyCode();
21162
21163 wxPyEndAllowThreads(__tstate);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
21166 resultobj = SWIG_FromInt((int)result);
21167 return resultobj;
21168 fail:
21169 return NULL;
21170 }
21171
21172
21173 static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
21174 PyObject *resultobj;
21175 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21176 int result;
21177 PyObject * obj0 = 0 ;
21178 char *kwnames[] = {
21179 (char *) "self", NULL
21180 };
21181
21182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21185 {
21186 PyThreadState* __tstate = wxPyBeginAllowThreads();
21187 result = (int)(arg1)->GetCommand();
21188
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 resultobj = SWIG_FromInt((int)result);
21193 return resultobj;
21194 fail:
21195 return NULL;
21196 }
21197
21198
21199 static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
21200 PyObject *obj;
21201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21202 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21203 Py_INCREF(obj);
21204 return Py_BuildValue((char *)"");
21205 }
21206 static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21207 PyObject *resultobj;
21208 int arg1 ;
21209 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21210 wxAcceleratorTable *result;
21211 PyObject * obj0 = 0 ;
21212 char *kwnames[] = {
21213 (char *) "n", NULL
21214 };
21215
21216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21217 {
21218 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21219 if (arg2) arg1 = PyList_Size(obj0);
21220 else arg1 = 0;
21221 }
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21225
21226 wxPyEndAllowThreads(__tstate);
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21230 {
21231 delete [] arg2;
21232 }
21233 return resultobj;
21234 fail:
21235 {
21236 delete [] arg2;
21237 }
21238 return NULL;
21239 }
21240
21241
21242 static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21243 PyObject *resultobj;
21244 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21245 PyObject * obj0 = 0 ;
21246 char *kwnames[] = {
21247 (char *) "self", NULL
21248 };
21249
21250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 delete arg1;
21256
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 Py_INCREF(Py_None); resultobj = Py_None;
21261 return resultobj;
21262 fail:
21263 return NULL;
21264 }
21265
21266
21267 static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
21268 PyObject *resultobj;
21269 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21270 bool result;
21271 PyObject * obj0 = 0 ;
21272 char *kwnames[] = {
21273 (char *) "self", NULL
21274 };
21275
21276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21282
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 {
21287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21288 }
21289 return resultobj;
21290 fail:
21291 return NULL;
21292 }
21293
21294
21295 static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
21296 PyObject *obj;
21297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21298 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21299 Py_INCREF(obj);
21300 return Py_BuildValue((char *)"");
21301 }
21302 static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
21303 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21304 return 1;
21305 }
21306
21307
21308 static PyObject *_wrap_NullAcceleratorTable_get() {
21309 PyObject *pyobj;
21310
21311 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21312 return pyobj;
21313 }
21314
21315
21316 static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj;
21318 wxString *arg1 = 0 ;
21319 wxAcceleratorEntry *result;
21320 bool temp1 = False ;
21321 PyObject * obj0 = 0 ;
21322 char *kwnames[] = {
21323 (char *) "label", NULL
21324 };
21325
21326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21327 {
21328 arg1 = wxString_in_helper(obj0);
21329 if (arg1 == NULL) SWIG_fail;
21330 temp1 = True;
21331 }
21332 {
21333 PyThreadState* __tstate = wxPyBeginAllowThreads();
21334 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21335
21336 wxPyEndAllowThreads(__tstate);
21337 if (PyErr_Occurred()) SWIG_fail;
21338 }
21339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21340 {
21341 if (temp1)
21342 delete arg1;
21343 }
21344 return resultobj;
21345 fail:
21346 {
21347 if (temp1)
21348 delete arg1;
21349 }
21350 return NULL;
21351 }
21352
21353
21354 static int _wrap_PanelNameStr_set(PyObject *_val) {
21355 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21356 return 1;
21357 }
21358
21359
21360 static PyObject *_wrap_PanelNameStr_get() {
21361 PyObject *pyobj;
21362
21363 {
21364 #if wxUSE_UNICODE
21365 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21366 #else
21367 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21368 #endif
21369 }
21370 return pyobj;
21371 }
21372
21373
21374 static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21375 PyObject *resultobj;
21376 wxVisualAttributes *result;
21377 char *kwnames[] = {
21378 NULL
21379 };
21380
21381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 result = (wxVisualAttributes *)new_wxVisualAttributes();
21385
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj;
21398 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21399 PyObject * obj0 = 0 ;
21400 char *kwnames[] = {
21401 (char *) "self", NULL
21402 };
21403
21404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21407 {
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 delete_wxVisualAttributes(arg1);
21410
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 Py_INCREF(Py_None); resultobj = Py_None;
21415 return resultobj;
21416 fail:
21417 return NULL;
21418 }
21419
21420
21421 static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21422 PyObject *resultobj;
21423 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21424 wxFont *arg2 = (wxFont *) 0 ;
21425 PyObject * obj0 = 0 ;
21426 PyObject * obj1 = 0 ;
21427 char *kwnames[] = {
21428 (char *) "self",(char *) "font", NULL
21429 };
21430
21431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21436 if (arg1) (arg1)->font = *arg2;
21437
21438 Py_INCREF(Py_None); resultobj = Py_None;
21439 return resultobj;
21440 fail:
21441 return NULL;
21442 }
21443
21444
21445 static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21446 PyObject *resultobj;
21447 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21448 wxFont *result;
21449 PyObject * obj0 = 0 ;
21450 char *kwnames[] = {
21451 (char *) "self", NULL
21452 };
21453
21454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21457 result = (wxFont *)& ((arg1)->font);
21458
21459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21460 return resultobj;
21461 fail:
21462 return NULL;
21463 }
21464
21465
21466 static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj;
21468 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21469 wxColour *arg2 = (wxColour *) 0 ;
21470 PyObject * obj0 = 0 ;
21471 PyObject * obj1 = 0 ;
21472 char *kwnames[] = {
21473 (char *) "self",(char *) "colFg", NULL
21474 };
21475
21476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21479 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21481 if (arg1) (arg1)->colFg = *arg2;
21482
21483 Py_INCREF(Py_None); resultobj = Py_None;
21484 return resultobj;
21485 fail:
21486 return NULL;
21487 }
21488
21489
21490 static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21491 PyObject *resultobj;
21492 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21493 wxColour *result;
21494 PyObject * obj0 = 0 ;
21495 char *kwnames[] = {
21496 (char *) "self", NULL
21497 };
21498
21499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21502 result = (wxColour *)& ((arg1)->colFg);
21503
21504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj;
21513 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21514 wxColour *arg2 = (wxColour *) 0 ;
21515 PyObject * obj0 = 0 ;
21516 PyObject * obj1 = 0 ;
21517 char *kwnames[] = {
21518 (char *) "self",(char *) "colBg", NULL
21519 };
21520
21521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21524 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21526 if (arg1) (arg1)->colBg = *arg2;
21527
21528 Py_INCREF(Py_None); resultobj = Py_None;
21529 return resultobj;
21530 fail:
21531 return NULL;
21532 }
21533
21534
21535 static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21536 PyObject *resultobj;
21537 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21538 wxColour *result;
21539 PyObject * obj0 = 0 ;
21540 char *kwnames[] = {
21541 (char *) "self", NULL
21542 };
21543
21544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21547 result = (wxColour *)& ((arg1)->colBg);
21548
21549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) {
21557 PyObject *obj;
21558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21559 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21560 Py_INCREF(obj);
21561 return Py_BuildValue((char *)"");
21562 }
21563 static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj;
21565 wxWindow *arg1 = (wxWindow *) 0 ;
21566 int arg2 = (int) (int)-1 ;
21567 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21568 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21569 wxSize const &arg4_defvalue = wxDefaultSize ;
21570 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21571 long arg5 = (long) 0 ;
21572 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21573 wxString *arg6 = (wxString *) &arg6_defvalue ;
21574 wxWindow *result;
21575 wxPoint temp3 ;
21576 wxSize temp4 ;
21577 bool temp6 = False ;
21578 PyObject * obj0 = 0 ;
21579 PyObject * obj1 = 0 ;
21580 PyObject * obj2 = 0 ;
21581 PyObject * obj3 = 0 ;
21582 PyObject * obj4 = 0 ;
21583 PyObject * obj5 = 0 ;
21584 char *kwnames[] = {
21585 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21586 };
21587
21588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21591 if (obj1) {
21592 arg2 = (int const) SWIG_AsInt(obj1);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 if (obj2) {
21596 {
21597 arg3 = &temp3;
21598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21599 }
21600 }
21601 if (obj3) {
21602 {
21603 arg4 = &temp4;
21604 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21605 }
21606 }
21607 if (obj4) {
21608 arg5 = (long) SWIG_AsLong(obj4);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 if (obj5) {
21612 {
21613 arg6 = wxString_in_helper(obj5);
21614 if (arg6 == NULL) SWIG_fail;
21615 temp6 = True;
21616 }
21617 }
21618 {
21619 if (!wxPyCheckForApp()) SWIG_fail;
21620 PyThreadState* __tstate = wxPyBeginAllowThreads();
21621 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21622
21623 wxPyEndAllowThreads(__tstate);
21624 if (PyErr_Occurred()) SWIG_fail;
21625 }
21626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
21627 {
21628 if (temp6)
21629 delete arg6;
21630 }
21631 return resultobj;
21632 fail:
21633 {
21634 if (temp6)
21635 delete arg6;
21636 }
21637 return NULL;
21638 }
21639
21640
21641 static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
21642 PyObject *resultobj;
21643 wxWindow *result;
21644 char *kwnames[] = {
21645 NULL
21646 };
21647
21648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21649 {
21650 if (!wxPyCheckForApp()) SWIG_fail;
21651 PyThreadState* __tstate = wxPyBeginAllowThreads();
21652 result = (wxWindow *)new wxWindow();
21653
21654 wxPyEndAllowThreads(__tstate);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 }
21657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
21658 return resultobj;
21659 fail:
21660 return NULL;
21661 }
21662
21663
21664 static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21665 PyObject *resultobj;
21666 wxWindow *arg1 = (wxWindow *) 0 ;
21667 wxWindow *arg2 = (wxWindow *) 0 ;
21668 int arg3 = (int) (int)-1 ;
21669 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21670 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21671 wxSize const &arg5_defvalue = wxDefaultSize ;
21672 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21673 long arg6 = (long) 0 ;
21674 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21675 wxString *arg7 = (wxString *) &arg7_defvalue ;
21676 bool result;
21677 wxPoint temp4 ;
21678 wxSize temp5 ;
21679 bool temp7 = False ;
21680 PyObject * obj0 = 0 ;
21681 PyObject * obj1 = 0 ;
21682 PyObject * obj2 = 0 ;
21683 PyObject * obj3 = 0 ;
21684 PyObject * obj4 = 0 ;
21685 PyObject * obj5 = 0 ;
21686 PyObject * obj6 = 0 ;
21687 char *kwnames[] = {
21688 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21689 };
21690
21691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21696 if (obj2) {
21697 arg3 = (int const) SWIG_AsInt(obj2);
21698 if (PyErr_Occurred()) SWIG_fail;
21699 }
21700 if (obj3) {
21701 {
21702 arg4 = &temp4;
21703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21704 }
21705 }
21706 if (obj4) {
21707 {
21708 arg5 = &temp5;
21709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21710 }
21711 }
21712 if (obj5) {
21713 arg6 = (long) SWIG_AsLong(obj5);
21714 if (PyErr_Occurred()) SWIG_fail;
21715 }
21716 if (obj6) {
21717 {
21718 arg7 = wxString_in_helper(obj6);
21719 if (arg7 == NULL) SWIG_fail;
21720 temp7 = True;
21721 }
21722 }
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21726
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 {
21731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21732 }
21733 {
21734 if (temp7)
21735 delete arg7;
21736 }
21737 return resultobj;
21738 fail:
21739 {
21740 if (temp7)
21741 delete arg7;
21742 }
21743 return NULL;
21744 }
21745
21746
21747 static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj;
21749 wxWindow *arg1 = (wxWindow *) 0 ;
21750 bool arg2 = (bool) False ;
21751 bool result;
21752 PyObject * obj0 = 0 ;
21753 PyObject * obj1 = 0 ;
21754 char *kwnames[] = {
21755 (char *) "self",(char *) "force", NULL
21756 };
21757
21758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21761 if (obj1) {
21762 arg2 = (bool) SWIG_AsBool(obj1);
21763 if (PyErr_Occurred()) SWIG_fail;
21764 }
21765 {
21766 PyThreadState* __tstate = wxPyBeginAllowThreads();
21767 result = (bool)(arg1)->Close(arg2);
21768
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21774 }
21775 return resultobj;
21776 fail:
21777 return NULL;
21778 }
21779
21780
21781 static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
21782 PyObject *resultobj;
21783 wxWindow *arg1 = (wxWindow *) 0 ;
21784 bool result;
21785 PyObject * obj0 = 0 ;
21786 char *kwnames[] = {
21787 (char *) "self", NULL
21788 };
21789
21790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
21791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 result = (bool)(arg1)->Destroy();
21796
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 {
21801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21802 }
21803 return resultobj;
21804 fail:
21805 return NULL;
21806 }
21807
21808
21809 static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
21810 PyObject *resultobj;
21811 wxWindow *arg1 = (wxWindow *) 0 ;
21812 bool result;
21813 PyObject * obj0 = 0 ;
21814 char *kwnames[] = {
21815 (char *) "self", NULL
21816 };
21817
21818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
21819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (bool)(arg1)->DestroyChildren();
21824
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 {
21829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21830 }
21831 return resultobj;
21832 fail:
21833 return NULL;
21834 }
21835
21836
21837 static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
21838 PyObject *resultobj;
21839 wxWindow *arg1 = (wxWindow *) 0 ;
21840 bool result;
21841 PyObject * obj0 = 0 ;
21842 char *kwnames[] = {
21843 (char *) "self", NULL
21844 };
21845
21846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
21847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21849 {
21850 PyThreadState* __tstate = wxPyBeginAllowThreads();
21851 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
21852
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 {
21857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21858 }
21859 return resultobj;
21860 fail:
21861 return NULL;
21862 }
21863
21864
21865 static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21866 PyObject *resultobj;
21867 wxWindow *arg1 = (wxWindow *) 0 ;
21868 wxString *arg2 = 0 ;
21869 bool temp2 = False ;
21870 PyObject * obj0 = 0 ;
21871 PyObject * obj1 = 0 ;
21872 char *kwnames[] = {
21873 (char *) "self",(char *) "title", NULL
21874 };
21875
21876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
21877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21879 {
21880 arg2 = wxString_in_helper(obj1);
21881 if (arg2 == NULL) SWIG_fail;
21882 temp2 = True;
21883 }
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 (arg1)->SetTitle((wxString const &)*arg2);
21887
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 Py_INCREF(Py_None); resultobj = Py_None;
21892 {
21893 if (temp2)
21894 delete arg2;
21895 }
21896 return resultobj;
21897 fail:
21898 {
21899 if (temp2)
21900 delete arg2;
21901 }
21902 return NULL;
21903 }
21904
21905
21906 static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj;
21908 wxWindow *arg1 = (wxWindow *) 0 ;
21909 wxString result;
21910 PyObject * obj0 = 0 ;
21911 char *kwnames[] = {
21912 (char *) "self", NULL
21913 };
21914
21915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
21916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 result = ((wxWindow const *)arg1)->GetTitle();
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 {
21926 #if wxUSE_UNICODE
21927 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21928 #else
21929 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21930 #endif
21931 }
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21939 PyObject *resultobj;
21940 wxWindow *arg1 = (wxWindow *) 0 ;
21941 wxString *arg2 = 0 ;
21942 bool temp2 = False ;
21943 PyObject * obj0 = 0 ;
21944 PyObject * obj1 = 0 ;
21945 char *kwnames[] = {
21946 (char *) "self",(char *) "label", NULL
21947 };
21948
21949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
21950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21952 {
21953 arg2 = wxString_in_helper(obj1);
21954 if (arg2 == NULL) SWIG_fail;
21955 temp2 = True;
21956 }
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 (arg1)->SetLabel((wxString const &)*arg2);
21960
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 Py_INCREF(Py_None); resultobj = Py_None;
21965 {
21966 if (temp2)
21967 delete arg2;
21968 }
21969 return resultobj;
21970 fail:
21971 {
21972 if (temp2)
21973 delete arg2;
21974 }
21975 return NULL;
21976 }
21977
21978
21979 static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21980 PyObject *resultobj;
21981 wxWindow *arg1 = (wxWindow *) 0 ;
21982 wxString result;
21983 PyObject * obj0 = 0 ;
21984 char *kwnames[] = {
21985 (char *) "self", NULL
21986 };
21987
21988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
21989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 result = ((wxWindow const *)arg1)->GetLabel();
21994
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 {
21999 #if wxUSE_UNICODE
22000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22001 #else
22002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22003 #endif
22004 }
22005 return resultobj;
22006 fail:
22007 return NULL;
22008 }
22009
22010
22011 static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
22012 PyObject *resultobj;
22013 wxWindow *arg1 = (wxWindow *) 0 ;
22014 wxString *arg2 = 0 ;
22015 bool temp2 = False ;
22016 PyObject * obj0 = 0 ;
22017 PyObject * obj1 = 0 ;
22018 char *kwnames[] = {
22019 (char *) "self",(char *) "name", NULL
22020 };
22021
22022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
22023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22025 {
22026 arg2 = wxString_in_helper(obj1);
22027 if (arg2 == NULL) SWIG_fail;
22028 temp2 = True;
22029 }
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 (arg1)->SetName((wxString const &)*arg2);
22033
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 Py_INCREF(Py_None); resultobj = Py_None;
22038 {
22039 if (temp2)
22040 delete arg2;
22041 }
22042 return resultobj;
22043 fail:
22044 {
22045 if (temp2)
22046 delete arg2;
22047 }
22048 return NULL;
22049 }
22050
22051
22052 static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
22053 PyObject *resultobj;
22054 wxWindow *arg1 = (wxWindow *) 0 ;
22055 wxString result;
22056 PyObject * obj0 = 0 ;
22057 char *kwnames[] = {
22058 (char *) "self", NULL
22059 };
22060
22061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
22062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 result = ((wxWindow const *)arg1)->GetName();
22067
22068 wxPyEndAllowThreads(__tstate);
22069 if (PyErr_Occurred()) SWIG_fail;
22070 }
22071 {
22072 #if wxUSE_UNICODE
22073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22074 #else
22075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22076 #endif
22077 }
22078 return resultobj;
22079 fail:
22080 return NULL;
22081 }
22082
22083
22084 static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
22085 PyObject *resultobj;
22086 wxWindow *arg1 = (wxWindow *) 0 ;
22087 int arg2 ;
22088 PyObject * obj0 = 0 ;
22089 PyObject * obj1 = 0 ;
22090 char *kwnames[] = {
22091 (char *) "self",(char *) "variant", NULL
22092 };
22093
22094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
22095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22097 arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
22098 if (PyErr_Occurred()) SWIG_fail;
22099 {
22100 PyThreadState* __tstate = wxPyBeginAllowThreads();
22101 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
22102
22103 wxPyEndAllowThreads(__tstate);
22104 if (PyErr_Occurred()) SWIG_fail;
22105 }
22106 Py_INCREF(Py_None); resultobj = Py_None;
22107 return resultobj;
22108 fail:
22109 return NULL;
22110 }
22111
22112
22113 static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
22114 PyObject *resultobj;
22115 wxWindow *arg1 = (wxWindow *) 0 ;
22116 int result;
22117 PyObject * obj0 = 0 ;
22118 char *kwnames[] = {
22119 (char *) "self", NULL
22120 };
22121
22122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
22123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
22128
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 resultobj = SWIG_FromInt((int)result);
22133 return resultobj;
22134 fail:
22135 return NULL;
22136 }
22137
22138
22139 static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj;
22141 wxWindow *arg1 = (wxWindow *) 0 ;
22142 int arg2 ;
22143 PyObject * obj0 = 0 ;
22144 PyObject * obj1 = 0 ;
22145 char *kwnames[] = {
22146 (char *) "self",(char *) "winid", NULL
22147 };
22148
22149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
22150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22152 arg2 = (int) SWIG_AsInt(obj1);
22153 if (PyErr_Occurred()) SWIG_fail;
22154 {
22155 PyThreadState* __tstate = wxPyBeginAllowThreads();
22156 (arg1)->SetId(arg2);
22157
22158 wxPyEndAllowThreads(__tstate);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 }
22161 Py_INCREF(Py_None); resultobj = Py_None;
22162 return resultobj;
22163 fail:
22164 return NULL;
22165 }
22166
22167
22168 static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22169 PyObject *resultobj;
22170 wxWindow *arg1 = (wxWindow *) 0 ;
22171 int result;
22172 PyObject * obj0 = 0 ;
22173 char *kwnames[] = {
22174 (char *) "self", NULL
22175 };
22176
22177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (int)((wxWindow const *)arg1)->GetId();
22183
22184 wxPyEndAllowThreads(__tstate);
22185 if (PyErr_Occurred()) SWIG_fail;
22186 }
22187 resultobj = SWIG_FromInt((int)result);
22188 return resultobj;
22189 fail:
22190 return NULL;
22191 }
22192
22193
22194 static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22195 PyObject *resultobj;
22196 int result;
22197 char *kwnames[] = {
22198 NULL
22199 };
22200
22201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22202 {
22203 PyThreadState* __tstate = wxPyBeginAllowThreads();
22204 result = (int)wxWindow::NewControlId();
22205
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_FromInt((int)result);
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22217 PyObject *resultobj;
22218 int arg1 ;
22219 int result;
22220 PyObject * obj0 = 0 ;
22221 char *kwnames[] = {
22222 (char *) "winid", NULL
22223 };
22224
22225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
22226 arg1 = (int) SWIG_AsInt(obj0);
22227 if (PyErr_Occurred()) SWIG_fail;
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 result = (int)wxWindow::NextControlId(arg1);
22231
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 resultobj = SWIG_FromInt((int)result);
22236 return resultobj;
22237 fail:
22238 return NULL;
22239 }
22240
22241
22242 static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22243 PyObject *resultobj;
22244 int arg1 ;
22245 int result;
22246 PyObject * obj0 = 0 ;
22247 char *kwnames[] = {
22248 (char *) "winid", NULL
22249 };
22250
22251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22252 arg1 = (int) SWIG_AsInt(obj0);
22253 if (PyErr_Occurred()) SWIG_fail;
22254 {
22255 PyThreadState* __tstate = wxPyBeginAllowThreads();
22256 result = (int)wxWindow::PrevControlId(arg1);
22257
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_FromInt((int)result);
22262 return resultobj;
22263 fail:
22264 return NULL;
22265 }
22266
22267
22268 static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22269 PyObject *resultobj;
22270 wxWindow *arg1 = (wxWindow *) 0 ;
22271 wxSize *arg2 = 0 ;
22272 wxSize temp2 ;
22273 PyObject * obj0 = 0 ;
22274 PyObject * obj1 = 0 ;
22275 char *kwnames[] = {
22276 (char *) "self",(char *) "size", NULL
22277 };
22278
22279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22282 {
22283 arg2 = &temp2;
22284 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22285 }
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 (arg1)->SetSize((wxSize const &)*arg2);
22289
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 Py_INCREF(Py_None); resultobj = Py_None;
22294 return resultobj;
22295 fail:
22296 return NULL;
22297 }
22298
22299
22300 static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
22301 PyObject *resultobj;
22302 wxWindow *arg1 = (wxWindow *) 0 ;
22303 int arg2 ;
22304 int arg3 ;
22305 int arg4 ;
22306 int arg5 ;
22307 int arg6 = (int) wxSIZE_AUTO ;
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 PyObject * obj2 = 0 ;
22311 PyObject * obj3 = 0 ;
22312 PyObject * obj4 = 0 ;
22313 PyObject * obj5 = 0 ;
22314 char *kwnames[] = {
22315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22316 };
22317
22318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22321 arg2 = (int) SWIG_AsInt(obj1);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 arg3 = (int) SWIG_AsInt(obj2);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 arg4 = (int) SWIG_AsInt(obj3);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 arg5 = (int) SWIG_AsInt(obj4);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 if (obj5) {
22330 arg6 = (int) SWIG_AsInt(obj5);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22336
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 Py_INCREF(Py_None); resultobj = Py_None;
22341 return resultobj;
22342 fail:
22343 return NULL;
22344 }
22345
22346
22347 static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22348 PyObject *resultobj;
22349 wxWindow *arg1 = (wxWindow *) 0 ;
22350 wxRect *arg2 = 0 ;
22351 int arg3 = (int) wxSIZE_AUTO ;
22352 wxRect temp2 ;
22353 PyObject * obj0 = 0 ;
22354 PyObject * obj1 = 0 ;
22355 PyObject * obj2 = 0 ;
22356 char *kwnames[] = {
22357 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22358 };
22359
22360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22363 {
22364 arg2 = &temp2;
22365 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22366 }
22367 if (obj2) {
22368 arg3 = (int) SWIG_AsInt(obj2);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 {
22372 PyThreadState* __tstate = wxPyBeginAllowThreads();
22373 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22374
22375 wxPyEndAllowThreads(__tstate);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 }
22378 Py_INCREF(Py_None); resultobj = Py_None;
22379 return resultobj;
22380 fail:
22381 return NULL;
22382 }
22383
22384
22385 static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22386 PyObject *resultobj;
22387 wxWindow *arg1 = (wxWindow *) 0 ;
22388 int arg2 ;
22389 int arg3 ;
22390 PyObject * obj0 = 0 ;
22391 PyObject * obj1 = 0 ;
22392 PyObject * obj2 = 0 ;
22393 char *kwnames[] = {
22394 (char *) "self",(char *) "width",(char *) "height", NULL
22395 };
22396
22397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22400 arg2 = (int) SWIG_AsInt(obj1);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 arg3 = (int) SWIG_AsInt(obj2);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 (arg1)->SetSize(arg2,arg3);
22407
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 Py_INCREF(Py_None); resultobj = Py_None;
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj;
22420 wxWindow *arg1 = (wxWindow *) 0 ;
22421 wxPoint *arg2 = 0 ;
22422 int arg3 = (int) wxSIZE_USE_EXISTING ;
22423 wxPoint temp2 ;
22424 PyObject * obj0 = 0 ;
22425 PyObject * obj1 = 0 ;
22426 PyObject * obj2 = 0 ;
22427 char *kwnames[] = {
22428 (char *) "self",(char *) "pt",(char *) "flags", NULL
22429 };
22430
22431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22434 {
22435 arg2 = &temp2;
22436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22437 }
22438 if (obj2) {
22439 arg3 = (int) SWIG_AsInt(obj2);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 (arg1)->Move((wxPoint const &)*arg2,arg3);
22445
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 Py_INCREF(Py_None); resultobj = Py_None;
22450 return resultobj;
22451 fail:
22452 return NULL;
22453 }
22454
22455
22456 static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
22457 PyObject *resultobj;
22458 wxWindow *arg1 = (wxWindow *) 0 ;
22459 int arg2 ;
22460 int arg3 ;
22461 int arg4 = (int) wxSIZE_USE_EXISTING ;
22462 PyObject * obj0 = 0 ;
22463 PyObject * obj1 = 0 ;
22464 PyObject * obj2 = 0 ;
22465 PyObject * obj3 = 0 ;
22466 char *kwnames[] = {
22467 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22468 };
22469
22470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22473 arg2 = (int) SWIG_AsInt(obj1);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 arg3 = (int) SWIG_AsInt(obj2);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 if (obj3) {
22478 arg4 = (int) SWIG_AsInt(obj3);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 {
22482 PyThreadState* __tstate = wxPyBeginAllowThreads();
22483 (arg1)->Move(arg2,arg3,arg4);
22484
22485 wxPyEndAllowThreads(__tstate);
22486 if (PyErr_Occurred()) SWIG_fail;
22487 }
22488 Py_INCREF(Py_None); resultobj = Py_None;
22489 return resultobj;
22490 fail:
22491 return NULL;
22492 }
22493
22494
22495 static PyObject *_wrap_Window_SetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22496 PyObject *resultobj;
22497 wxWindow *arg1 = (wxWindow *) 0 ;
22498 wxSize const &arg2_defvalue = wxDefaultSize ;
22499 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
22500 wxSize temp2 ;
22501 PyObject * obj0 = 0 ;
22502 PyObject * obj1 = 0 ;
22503 char *kwnames[] = {
22504 (char *) "self",(char *) "size", NULL
22505 };
22506
22507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
22508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22510 if (obj1) {
22511 {
22512 arg2 = &temp2;
22513 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22514 }
22515 }
22516 {
22517 PyThreadState* __tstate = wxPyBeginAllowThreads();
22518 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
22519
22520 wxPyEndAllowThreads(__tstate);
22521 if (PyErr_Occurred()) SWIG_fail;
22522 }
22523 Py_INCREF(Py_None); resultobj = Py_None;
22524 return resultobj;
22525 fail:
22526 return NULL;
22527 }
22528
22529
22530 static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
22531 PyObject *resultobj;
22532 wxWindow *arg1 = (wxWindow *) 0 ;
22533 PyObject * obj0 = 0 ;
22534 char *kwnames[] = {
22535 (char *) "self", NULL
22536 };
22537
22538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 (arg1)->Raise();
22544
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 Py_INCREF(Py_None); resultobj = Py_None;
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
22556 PyObject *resultobj;
22557 wxWindow *arg1 = (wxWindow *) 0 ;
22558 PyObject * obj0 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 (arg1)->Lower();
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 Py_INCREF(Py_None); resultobj = Py_None;
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj;
22582 wxWindow *arg1 = (wxWindow *) 0 ;
22583 wxSize *arg2 = 0 ;
22584 wxSize temp2 ;
22585 PyObject * obj0 = 0 ;
22586 PyObject * obj1 = 0 ;
22587 char *kwnames[] = {
22588 (char *) "self",(char *) "size", NULL
22589 };
22590
22591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22594 {
22595 arg2 = &temp2;
22596 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22597 }
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 (arg1)->SetClientSize((wxSize const &)*arg2);
22601
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 Py_INCREF(Py_None); resultobj = Py_None;
22606 return resultobj;
22607 fail:
22608 return NULL;
22609 }
22610
22611
22612 static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22613 PyObject *resultobj;
22614 wxWindow *arg1 = (wxWindow *) 0 ;
22615 int arg2 ;
22616 int arg3 ;
22617 PyObject * obj0 = 0 ;
22618 PyObject * obj1 = 0 ;
22619 PyObject * obj2 = 0 ;
22620 char *kwnames[] = {
22621 (char *) "self",(char *) "width",(char *) "height", NULL
22622 };
22623
22624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22627 arg2 = (int) SWIG_AsInt(obj1);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 arg3 = (int) SWIG_AsInt(obj2);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 {
22632 PyThreadState* __tstate = wxPyBeginAllowThreads();
22633 (arg1)->SetClientSize(arg2,arg3);
22634
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 Py_INCREF(Py_None); resultobj = Py_None;
22639 return resultobj;
22640 fail:
22641 return NULL;
22642 }
22643
22644
22645 static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22646 PyObject *resultobj;
22647 wxWindow *arg1 = (wxWindow *) 0 ;
22648 wxRect *arg2 = 0 ;
22649 wxRect temp2 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 char *kwnames[] = {
22653 (char *) "self",(char *) "rect", NULL
22654 };
22655
22656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22659 {
22660 arg2 = &temp2;
22661 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22662 }
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 (arg1)->SetClientSize((wxRect const &)*arg2);
22666
22667 wxPyEndAllowThreads(__tstate);
22668 if (PyErr_Occurred()) SWIG_fail;
22669 }
22670 Py_INCREF(Py_None); resultobj = Py_None;
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxWindow *arg1 = (wxWindow *) 0 ;
22680 wxPoint result;
22681 PyObject * obj0 = 0 ;
22682 char *kwnames[] = {
22683 (char *) "self", NULL
22684 };
22685
22686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 result = (arg1)->GetPosition();
22692
22693 wxPyEndAllowThreads(__tstate);
22694 if (PyErr_Occurred()) SWIG_fail;
22695 }
22696 {
22697 wxPoint * resultptr;
22698 resultptr = new wxPoint((wxPoint &) result);
22699 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22700 }
22701 return resultobj;
22702 fail:
22703 return NULL;
22704 }
22705
22706
22707 static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22708 PyObject *resultobj;
22709 wxWindow *arg1 = (wxWindow *) 0 ;
22710 int *arg2 = (int *) 0 ;
22711 int *arg3 = (int *) 0 ;
22712 int temp2 ;
22713 int temp3 ;
22714 PyObject * obj0 = 0 ;
22715 char *kwnames[] = {
22716 (char *) "self", NULL
22717 };
22718
22719 arg2 = &temp2;
22720 arg3 = &temp3;
22721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22724 {
22725 PyThreadState* __tstate = wxPyBeginAllowThreads();
22726 (arg1)->GetPosition(arg2,arg3);
22727
22728 wxPyEndAllowThreads(__tstate);
22729 if (PyErr_Occurred()) SWIG_fail;
22730 }
22731 Py_INCREF(Py_None); resultobj = Py_None;
22732 {
22733 PyObject *o = PyInt_FromLong((long) (*arg2));
22734 resultobj = t_output_helper(resultobj,o);
22735 }
22736 {
22737 PyObject *o = PyInt_FromLong((long) (*arg3));
22738 resultobj = t_output_helper(resultobj,o);
22739 }
22740 return resultobj;
22741 fail:
22742 return NULL;
22743 }
22744
22745
22746 static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22747 PyObject *resultobj;
22748 wxWindow *arg1 = (wxWindow *) 0 ;
22749 wxSize result;
22750 PyObject * obj0 = 0 ;
22751 char *kwnames[] = {
22752 (char *) "self", NULL
22753 };
22754
22755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22758 {
22759 PyThreadState* __tstate = wxPyBeginAllowThreads();
22760 result = ((wxWindow const *)arg1)->GetSize();
22761
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 {
22766 wxSize * resultptr;
22767 resultptr = new wxSize((wxSize &) result);
22768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22769 }
22770 return resultobj;
22771 fail:
22772 return NULL;
22773 }
22774
22775
22776 static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22777 PyObject *resultobj;
22778 wxWindow *arg1 = (wxWindow *) 0 ;
22779 int *arg2 = (int *) 0 ;
22780 int *arg3 = (int *) 0 ;
22781 int temp2 ;
22782 int temp3 ;
22783 PyObject * obj0 = 0 ;
22784 char *kwnames[] = {
22785 (char *) "self", NULL
22786 };
22787
22788 arg2 = &temp2;
22789 arg3 = &temp3;
22790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22793 {
22794 PyThreadState* __tstate = wxPyBeginAllowThreads();
22795 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22796
22797 wxPyEndAllowThreads(__tstate);
22798 if (PyErr_Occurred()) SWIG_fail;
22799 }
22800 Py_INCREF(Py_None); resultobj = Py_None;
22801 {
22802 PyObject *o = PyInt_FromLong((long) (*arg2));
22803 resultobj = t_output_helper(resultobj,o);
22804 }
22805 {
22806 PyObject *o = PyInt_FromLong((long) (*arg3));
22807 resultobj = t_output_helper(resultobj,o);
22808 }
22809 return resultobj;
22810 fail:
22811 return NULL;
22812 }
22813
22814
22815 static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22816 PyObject *resultobj;
22817 wxWindow *arg1 = (wxWindow *) 0 ;
22818 wxRect result;
22819 PyObject * obj0 = 0 ;
22820 char *kwnames[] = {
22821 (char *) "self", NULL
22822 };
22823
22824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
22825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = ((wxWindow const *)arg1)->GetRect();
22830
22831 wxPyEndAllowThreads(__tstate);
22832 if (PyErr_Occurred()) SWIG_fail;
22833 }
22834 {
22835 wxRect * resultptr;
22836 resultptr = new wxRect((wxRect &) result);
22837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22838 }
22839 return resultobj;
22840 fail:
22841 return NULL;
22842 }
22843
22844
22845 static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22846 PyObject *resultobj;
22847 wxWindow *arg1 = (wxWindow *) 0 ;
22848 wxSize result;
22849 PyObject * obj0 = 0 ;
22850 char *kwnames[] = {
22851 (char *) "self", NULL
22852 };
22853
22854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
22855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 result = ((wxWindow const *)arg1)->GetClientSize();
22860
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 {
22865 wxSize * resultptr;
22866 resultptr = new wxSize((wxSize &) result);
22867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22868 }
22869 return resultobj;
22870 fail:
22871 return NULL;
22872 }
22873
22874
22875 static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22876 PyObject *resultobj;
22877 wxWindow *arg1 = (wxWindow *) 0 ;
22878 int *arg2 = (int *) 0 ;
22879 int *arg3 = (int *) 0 ;
22880 int temp2 ;
22881 int temp3 ;
22882 PyObject * obj0 = 0 ;
22883 char *kwnames[] = {
22884 (char *) "self", NULL
22885 };
22886
22887 arg2 = &temp2;
22888 arg3 = &temp3;
22889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
22890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
22895
22896 wxPyEndAllowThreads(__tstate);
22897 if (PyErr_Occurred()) SWIG_fail;
22898 }
22899 Py_INCREF(Py_None); resultobj = Py_None;
22900 {
22901 PyObject *o = PyInt_FromLong((long) (*arg2));
22902 resultobj = t_output_helper(resultobj,o);
22903 }
22904 {
22905 PyObject *o = PyInt_FromLong((long) (*arg3));
22906 resultobj = t_output_helper(resultobj,o);
22907 }
22908 return resultobj;
22909 fail:
22910 return NULL;
22911 }
22912
22913
22914 static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj;
22916 wxWindow *arg1 = (wxWindow *) 0 ;
22917 wxPoint result;
22918 PyObject * obj0 = 0 ;
22919 char *kwnames[] = {
22920 (char *) "self", NULL
22921 };
22922
22923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
22924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
22929
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 {
22934 wxPoint * resultptr;
22935 resultptr = new wxPoint((wxPoint &) result);
22936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22937 }
22938 return resultobj;
22939 fail:
22940 return NULL;
22941 }
22942
22943
22944 static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22945 PyObject *resultobj;
22946 wxWindow *arg1 = (wxWindow *) 0 ;
22947 wxRect result;
22948 PyObject * obj0 = 0 ;
22949 char *kwnames[] = {
22950 (char *) "self", NULL
22951 };
22952
22953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
22954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = ((wxWindow const *)arg1)->GetClientRect();
22959
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 {
22964 wxRect * resultptr;
22965 resultptr = new wxRect((wxRect &) result);
22966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22967 }
22968 return resultobj;
22969 fail:
22970 return NULL;
22971 }
22972
22973
22974 static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj;
22976 wxWindow *arg1 = (wxWindow *) 0 ;
22977 wxSize result;
22978 PyObject * obj0 = 0 ;
22979 char *kwnames[] = {
22980 (char *) "self", NULL
22981 };
22982
22983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
22984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = ((wxWindow const *)arg1)->GetBestSize();
22989
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 {
22994 wxSize * resultptr;
22995 resultptr = new wxSize((wxSize &) result);
22996 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22997 }
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj;
23006 wxWindow *arg1 = (wxWindow *) 0 ;
23007 int *arg2 = (int *) 0 ;
23008 int *arg3 = (int *) 0 ;
23009 int temp2 ;
23010 int temp3 ;
23011 PyObject * obj0 = 0 ;
23012 char *kwnames[] = {
23013 (char *) "self", NULL
23014 };
23015
23016 arg2 = &temp2;
23017 arg3 = &temp3;
23018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
23019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
23024
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 Py_INCREF(Py_None); resultobj = Py_None;
23029 {
23030 PyObject *o = PyInt_FromLong((long) (*arg2));
23031 resultobj = t_output_helper(resultobj,o);
23032 }
23033 {
23034 PyObject *o = PyInt_FromLong((long) (*arg3));
23035 resultobj = t_output_helper(resultobj,o);
23036 }
23037 return resultobj;
23038 fail:
23039 return NULL;
23040 }
23041
23042
23043 static PyObject *_wrap_Window_InvalidateBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23044 PyObject *resultobj;
23045 wxWindow *arg1 = (wxWindow *) 0 ;
23046 PyObject * obj0 = 0 ;
23047 char *kwnames[] = {
23048 (char *) "self", NULL
23049 };
23050
23051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
23052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 (arg1)->InvalidateBestSize();
23057
23058 wxPyEndAllowThreads(__tstate);
23059 if (PyErr_Occurred()) SWIG_fail;
23060 }
23061 Py_INCREF(Py_None); resultobj = Py_None;
23062 return resultobj;
23063 fail:
23064 return NULL;
23065 }
23066
23067
23068 static PyObject *_wrap_Window_GetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23069 PyObject *resultobj;
23070 wxWindow *arg1 = (wxWindow *) 0 ;
23071 wxSize result;
23072 PyObject * obj0 = 0 ;
23073 char *kwnames[] = {
23074 (char *) "self", NULL
23075 };
23076
23077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
23078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23080 {
23081 PyThreadState* __tstate = wxPyBeginAllowThreads();
23082 result = ((wxWindow const *)arg1)->GetBestFittingSize();
23083
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 {
23088 wxSize * resultptr;
23089 resultptr = new wxSize((wxSize &) result);
23090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23091 }
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj;
23100 wxWindow *arg1 = (wxWindow *) 0 ;
23101 wxSize result;
23102 PyObject * obj0 = 0 ;
23103 char *kwnames[] = {
23104 (char *) "self", NULL
23105 };
23106
23107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
23108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
23113
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 {
23118 wxSize * resultptr;
23119 resultptr = new wxSize((wxSize &) result);
23120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23121 }
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj;
23130 wxWindow *arg1 = (wxWindow *) 0 ;
23131 int arg2 = (int) wxBOTH ;
23132 PyObject * obj0 = 0 ;
23133 PyObject * obj1 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "direction", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 if (obj1) {
23142 arg2 = (int) SWIG_AsInt(obj1);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 (arg1)->Center(arg2);
23148
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
23152 Py_INCREF(Py_None); resultobj = Py_None;
23153 return resultobj;
23154 fail:
23155 return NULL;
23156 }
23157
23158
23159 static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj;
23161 wxWindow *arg1 = (wxWindow *) 0 ;
23162 int arg2 = (int) wxBOTH ;
23163 PyObject * obj0 = 0 ;
23164 PyObject * obj1 = 0 ;
23165 char *kwnames[] = {
23166 (char *) "self",(char *) "dir", NULL
23167 };
23168
23169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
23170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23172 if (obj1) {
23173 arg2 = (int) SWIG_AsInt(obj1);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 (arg1)->CenterOnScreen(arg2);
23179
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 Py_INCREF(Py_None); resultobj = Py_None;
23184 return resultobj;
23185 fail:
23186 return NULL;
23187 }
23188
23189
23190 static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23191 PyObject *resultobj;
23192 wxWindow *arg1 = (wxWindow *) 0 ;
23193 int arg2 = (int) wxBOTH ;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 char *kwnames[] = {
23197 (char *) "self",(char *) "dir", NULL
23198 };
23199
23200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
23201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23203 if (obj1) {
23204 arg2 = (int) SWIG_AsInt(obj1);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 {
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 (arg1)->CenterOnParent(arg2);
23210
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 Py_INCREF(Py_None); resultobj = Py_None;
23215 return resultobj;
23216 fail:
23217 return NULL;
23218 }
23219
23220
23221 static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj;
23223 wxWindow *arg1 = (wxWindow *) 0 ;
23224 PyObject * obj0 = 0 ;
23225 char *kwnames[] = {
23226 (char *) "self", NULL
23227 };
23228
23229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
23230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 (arg1)->Fit();
23235
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 Py_INCREF(Py_None); resultobj = Py_None;
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj;
23248 wxWindow *arg1 = (wxWindow *) 0 ;
23249 PyObject * obj0 = 0 ;
23250 char *kwnames[] = {
23251 (char *) "self", NULL
23252 };
23253
23254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 (arg1)->FitInside();
23260
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 Py_INCREF(Py_None); resultobj = Py_None;
23265 return resultobj;
23266 fail:
23267 return NULL;
23268 }
23269
23270
23271 static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
23272 PyObject *resultobj;
23273 wxWindow *arg1 = (wxWindow *) 0 ;
23274 int arg2 ;
23275 int arg3 ;
23276 int arg4 = (int) -1 ;
23277 int arg5 = (int) -1 ;
23278 int arg6 = (int) -1 ;
23279 int arg7 = (int) -1 ;
23280 PyObject * obj0 = 0 ;
23281 PyObject * obj1 = 0 ;
23282 PyObject * obj2 = 0 ;
23283 PyObject * obj3 = 0 ;
23284 PyObject * obj4 = 0 ;
23285 PyObject * obj5 = 0 ;
23286 PyObject * obj6 = 0 ;
23287 char *kwnames[] = {
23288 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
23289 };
23290
23291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23294 arg2 = (int) SWIG_AsInt(obj1);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 arg3 = (int) SWIG_AsInt(obj2);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 if (obj3) {
23299 arg4 = (int) SWIG_AsInt(obj3);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 if (obj4) {
23303 arg5 = (int) SWIG_AsInt(obj4);
23304 if (PyErr_Occurred()) SWIG_fail;
23305 }
23306 if (obj5) {
23307 arg6 = (int) SWIG_AsInt(obj5);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 if (obj6) {
23311 arg7 = (int) SWIG_AsInt(obj6);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23317
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 Py_INCREF(Py_None); resultobj = Py_None;
23322 return resultobj;
23323 fail:
23324 return NULL;
23325 }
23326
23327
23328 static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) {
23329 PyObject *resultobj;
23330 wxWindow *arg1 = (wxWindow *) 0 ;
23331 wxSize *arg2 = 0 ;
23332 wxSize const &arg3_defvalue = wxDefaultSize ;
23333 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23334 wxSize const &arg4_defvalue = wxDefaultSize ;
23335 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23336 wxSize temp2 ;
23337 wxSize temp3 ;
23338 wxSize temp4 ;
23339 PyObject * obj0 = 0 ;
23340 PyObject * obj1 = 0 ;
23341 PyObject * obj2 = 0 ;
23342 PyObject * obj3 = 0 ;
23343 char *kwnames[] = {
23344 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
23345 };
23346
23347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23350 {
23351 arg2 = &temp2;
23352 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23353 }
23354 if (obj2) {
23355 {
23356 arg3 = &temp3;
23357 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23358 }
23359 }
23360 if (obj3) {
23361 {
23362 arg4 = &temp4;
23363 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23364 }
23365 }
23366 {
23367 PyThreadState* __tstate = wxPyBeginAllowThreads();
23368 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
23369
23370 wxPyEndAllowThreads(__tstate);
23371 if (PyErr_Occurred()) SWIG_fail;
23372 }
23373 Py_INCREF(Py_None); resultobj = Py_None;
23374 return resultobj;
23375 fail:
23376 return NULL;
23377 }
23378
23379
23380 static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
23381 PyObject *resultobj;
23382 wxWindow *arg1 = (wxWindow *) 0 ;
23383 int arg2 ;
23384 int arg3 ;
23385 int arg4 = (int) -1 ;
23386 int arg5 = (int) -1 ;
23387 PyObject * obj0 = 0 ;
23388 PyObject * obj1 = 0 ;
23389 PyObject * obj2 = 0 ;
23390 PyObject * obj3 = 0 ;
23391 PyObject * obj4 = 0 ;
23392 char *kwnames[] = {
23393 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
23394 };
23395
23396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23399 arg2 = (int) SWIG_AsInt(obj1);
23400 if (PyErr_Occurred()) SWIG_fail;
23401 arg3 = (int) SWIG_AsInt(obj2);
23402 if (PyErr_Occurred()) SWIG_fail;
23403 if (obj3) {
23404 arg4 = (int) SWIG_AsInt(obj3);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 if (obj4) {
23408 arg5 = (int) SWIG_AsInt(obj4);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 {
23412 PyThreadState* __tstate = wxPyBeginAllowThreads();
23413 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
23414
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 Py_INCREF(Py_None); resultobj = Py_None;
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj;
23427 wxWindow *arg1 = (wxWindow *) 0 ;
23428 wxSize *arg2 = 0 ;
23429 wxSize const &arg3_defvalue = wxDefaultSize ;
23430 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23431 wxSize temp2 ;
23432 wxSize temp3 ;
23433 PyObject * obj0 = 0 ;
23434 PyObject * obj1 = 0 ;
23435 PyObject * obj2 = 0 ;
23436 char *kwnames[] = {
23437 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
23438 };
23439
23440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail;
23441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23443 {
23444 arg2 = &temp2;
23445 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23446 }
23447 if (obj2) {
23448 {
23449 arg3 = &temp3;
23450 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23451 }
23452 }
23453 {
23454 PyThreadState* __tstate = wxPyBeginAllowThreads();
23455 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
23456
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 Py_INCREF(Py_None); resultobj = Py_None;
23461 return resultobj;
23462 fail:
23463 return NULL;
23464 }
23465
23466
23467 static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23468 PyObject *resultobj;
23469 wxWindow *arg1 = (wxWindow *) 0 ;
23470 wxSize result;
23471 PyObject * obj0 = 0 ;
23472 char *kwnames[] = {
23473 (char *) "self", NULL
23474 };
23475
23476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
23477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = ((wxWindow const *)arg1)->GetMaxSize();
23482
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 {
23487 wxSize * resultptr;
23488 resultptr = new wxSize((wxSize &) result);
23489 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23490 }
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23498 PyObject *resultobj;
23499 wxWindow *arg1 = (wxWindow *) 0 ;
23500 wxSize result;
23501 PyObject * obj0 = 0 ;
23502 char *kwnames[] = {
23503 (char *) "self", NULL
23504 };
23505
23506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
23507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 result = ((wxWindow const *)arg1)->GetMinSize();
23512
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 {
23517 wxSize * resultptr;
23518 resultptr = new wxSize((wxSize &) result);
23519 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23520 }
23521 return resultobj;
23522 fail:
23523 return NULL;
23524 }
23525
23526
23527 static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23528 PyObject *resultobj;
23529 wxWindow *arg1 = (wxWindow *) 0 ;
23530 wxSize *arg2 = 0 ;
23531 wxSize temp2 ;
23532 PyObject * obj0 = 0 ;
23533 PyObject * obj1 = 0 ;
23534 char *kwnames[] = {
23535 (char *) "self",(char *) "minSize", NULL
23536 };
23537
23538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
23539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23541 {
23542 arg2 = &temp2;
23543 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23544 }
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 (arg1)->SetMinSize((wxSize const &)*arg2);
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 Py_INCREF(Py_None); resultobj = Py_None;
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 wxWindow *arg1 = (wxWindow *) 0 ;
23562 wxSize *arg2 = 0 ;
23563 wxSize temp2 ;
23564 PyObject * obj0 = 0 ;
23565 PyObject * obj1 = 0 ;
23566 char *kwnames[] = {
23567 (char *) "self",(char *) "maxSize", NULL
23568 };
23569
23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
23571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23573 {
23574 arg2 = &temp2;
23575 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23576 }
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 (arg1)->SetMaxSize((wxSize const &)*arg2);
23580
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 Py_INCREF(Py_None); resultobj = Py_None;
23585 return resultobj;
23586 fail:
23587 return NULL;
23588 }
23589
23590
23591 static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
23592 PyObject *resultobj;
23593 wxWindow *arg1 = (wxWindow *) 0 ;
23594 int result;
23595 PyObject * obj0 = 0 ;
23596 char *kwnames[] = {
23597 (char *) "self", NULL
23598 };
23599
23600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
23601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 result = (int)((wxWindow const *)arg1)->GetMinWidth();
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 resultobj = SWIG_FromInt((int)result);
23611 return resultobj;
23612 fail:
23613 return NULL;
23614 }
23615
23616
23617 static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
23618 PyObject *resultobj;
23619 wxWindow *arg1 = (wxWindow *) 0 ;
23620 int result;
23621 PyObject * obj0 = 0 ;
23622 char *kwnames[] = {
23623 (char *) "self", NULL
23624 };
23625
23626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
23627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23629 {
23630 PyThreadState* __tstate = wxPyBeginAllowThreads();
23631 result = (int)((wxWindow const *)arg1)->GetMinHeight();
23632
23633 wxPyEndAllowThreads(__tstate);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 }
23636 resultobj = SWIG_FromInt((int)result);
23637 return resultobj;
23638 fail:
23639 return NULL;
23640 }
23641
23642
23643 static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
23644 PyObject *resultobj;
23645 wxWindow *arg1 = (wxWindow *) 0 ;
23646 int result;
23647 PyObject * obj0 = 0 ;
23648 char *kwnames[] = {
23649 (char *) "self", NULL
23650 };
23651
23652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
23653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
23658
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 resultobj = SWIG_FromInt((int)result);
23663 return resultobj;
23664 fail:
23665 return NULL;
23666 }
23667
23668
23669 static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj;
23671 wxWindow *arg1 = (wxWindow *) 0 ;
23672 int result;
23673 PyObject * obj0 = 0 ;
23674 char *kwnames[] = {
23675 (char *) "self", NULL
23676 };
23677
23678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
23679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_FromInt((int)result);
23689 return resultobj;
23690 fail:
23691 return NULL;
23692 }
23693
23694
23695 static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj;
23697 wxWindow *arg1 = (wxWindow *) 0 ;
23698 wxSize *arg2 = 0 ;
23699 wxSize temp2 ;
23700 PyObject * obj0 = 0 ;
23701 PyObject * obj1 = 0 ;
23702 char *kwnames[] = {
23703 (char *) "self",(char *) "size", NULL
23704 };
23705
23706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23709 {
23710 arg2 = &temp2;
23711 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23712 }
23713 {
23714 PyThreadState* __tstate = wxPyBeginAllowThreads();
23715 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23716
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 Py_INCREF(Py_None); resultobj = Py_None;
23721 return resultobj;
23722 fail:
23723 return NULL;
23724 }
23725
23726
23727 static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj;
23729 wxWindow *arg1 = (wxWindow *) 0 ;
23730 int arg2 ;
23731 int arg3 ;
23732 PyObject * obj0 = 0 ;
23733 PyObject * obj1 = 0 ;
23734 PyObject * obj2 = 0 ;
23735 char *kwnames[] = {
23736 (char *) "self",(char *) "w",(char *) "h", NULL
23737 };
23738
23739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23742 arg2 = (int) SWIG_AsInt(obj1);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 arg3 = (int) SWIG_AsInt(obj2);
23745 if (PyErr_Occurred()) SWIG_fail;
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 (arg1)->SetVirtualSize(arg2,arg3);
23749
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 Py_INCREF(Py_None); resultobj = Py_None;
23754 return resultobj;
23755 fail:
23756 return NULL;
23757 }
23758
23759
23760 static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj;
23762 wxWindow *arg1 = (wxWindow *) 0 ;
23763 wxSize result;
23764 PyObject * obj0 = 0 ;
23765 char *kwnames[] = {
23766 (char *) "self", NULL
23767 };
23768
23769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 result = ((wxWindow const *)arg1)->GetVirtualSize();
23775
23776 wxPyEndAllowThreads(__tstate);
23777 if (PyErr_Occurred()) SWIG_fail;
23778 }
23779 {
23780 wxSize * resultptr;
23781 resultptr = new wxSize((wxSize &) result);
23782 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23783 }
23784 return resultobj;
23785 fail:
23786 return NULL;
23787 }
23788
23789
23790 static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23791 PyObject *resultobj;
23792 wxWindow *arg1 = (wxWindow *) 0 ;
23793 int *arg2 = (int *) 0 ;
23794 int *arg3 = (int *) 0 ;
23795 int temp2 ;
23796 int temp3 ;
23797 PyObject * obj0 = 0 ;
23798 char *kwnames[] = {
23799 (char *) "self", NULL
23800 };
23801
23802 arg2 = &temp2;
23803 arg3 = &temp3;
23804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23807 {
23808 PyThreadState* __tstate = wxPyBeginAllowThreads();
23809 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23810
23811 wxPyEndAllowThreads(__tstate);
23812 if (PyErr_Occurred()) SWIG_fail;
23813 }
23814 Py_INCREF(Py_None); resultobj = Py_None;
23815 {
23816 PyObject *o = PyInt_FromLong((long) (*arg2));
23817 resultobj = t_output_helper(resultobj,o);
23818 }
23819 {
23820 PyObject *o = PyInt_FromLong((long) (*arg3));
23821 resultobj = t_output_helper(resultobj,o);
23822 }
23823 return resultobj;
23824 fail:
23825 return NULL;
23826 }
23827
23828
23829 static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj;
23831 wxWindow *arg1 = (wxWindow *) 0 ;
23832 wxSize result;
23833 PyObject * obj0 = 0 ;
23834 char *kwnames[] = {
23835 (char *) "self", NULL
23836 };
23837
23838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
23839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23841 {
23842 PyThreadState* __tstate = wxPyBeginAllowThreads();
23843 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
23844
23845 wxPyEndAllowThreads(__tstate);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 }
23848 {
23849 wxSize * resultptr;
23850 resultptr = new wxSize((wxSize &) result);
23851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23852 }
23853 return resultobj;
23854 fail:
23855 return NULL;
23856 }
23857
23858
23859 static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
23860 PyObject *resultobj;
23861 wxWindow *arg1 = (wxWindow *) 0 ;
23862 bool arg2 = (bool) True ;
23863 bool result;
23864 PyObject * obj0 = 0 ;
23865 PyObject * obj1 = 0 ;
23866 char *kwnames[] = {
23867 (char *) "self",(char *) "show", NULL
23868 };
23869
23870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
23871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23873 if (obj1) {
23874 arg2 = (bool) SWIG_AsBool(obj1);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (bool)(arg1)->Show(arg2);
23880
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 {
23885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23886 }
23887 return resultobj;
23888 fail:
23889 return NULL;
23890 }
23891
23892
23893 static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj;
23895 wxWindow *arg1 = (wxWindow *) 0 ;
23896 bool result;
23897 PyObject * obj0 = 0 ;
23898 char *kwnames[] = {
23899 (char *) "self", NULL
23900 };
23901
23902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
23903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 result = (bool)(arg1)->Hide();
23908
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 {
23913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23914 }
23915 return resultobj;
23916 fail:
23917 return NULL;
23918 }
23919
23920
23921 static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
23922 PyObject *resultobj;
23923 wxWindow *arg1 = (wxWindow *) 0 ;
23924 bool arg2 = (bool) True ;
23925 bool result;
23926 PyObject * obj0 = 0 ;
23927 PyObject * obj1 = 0 ;
23928 char *kwnames[] = {
23929 (char *) "self",(char *) "enable", NULL
23930 };
23931
23932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
23933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23935 if (obj1) {
23936 arg2 = (bool) SWIG_AsBool(obj1);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 result = (bool)(arg1)->Enable(arg2);
23942
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 {
23947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23948 }
23949 return resultobj;
23950 fail:
23951 return NULL;
23952 }
23953
23954
23955 static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
23956 PyObject *resultobj;
23957 wxWindow *arg1 = (wxWindow *) 0 ;
23958 bool result;
23959 PyObject * obj0 = 0 ;
23960 char *kwnames[] = {
23961 (char *) "self", NULL
23962 };
23963
23964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
23965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 result = (bool)(arg1)->Disable();
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 {
23975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23976 }
23977 return resultobj;
23978 fail:
23979 return NULL;
23980 }
23981
23982
23983 static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
23984 PyObject *resultobj;
23985 wxWindow *arg1 = (wxWindow *) 0 ;
23986 bool result;
23987 PyObject * obj0 = 0 ;
23988 char *kwnames[] = {
23989 (char *) "self", NULL
23990 };
23991
23992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
23993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (bool)((wxWindow const *)arg1)->IsShown();
23998
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj;
24013 wxWindow *arg1 = (wxWindow *) 0 ;
24014 bool result;
24015 PyObject * obj0 = 0 ;
24016 char *kwnames[] = {
24017 (char *) "self", NULL
24018 };
24019
24020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
24021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (bool)((wxWindow const *)arg1)->IsEnabled();
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 {
24031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24032 }
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxWindow *arg1 = (wxWindow *) 0 ;
24042 long arg2 ;
24043 PyObject * obj0 = 0 ;
24044 PyObject * obj1 = 0 ;
24045 char *kwnames[] = {
24046 (char *) "self",(char *) "style", NULL
24047 };
24048
24049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
24050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24052 arg2 = (long) SWIG_AsLong(obj1);
24053 if (PyErr_Occurred()) SWIG_fail;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 (arg1)->SetWindowStyleFlag(arg2);
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 Py_INCREF(Py_None); resultobj = Py_None;
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24069 PyObject *resultobj;
24070 wxWindow *arg1 = (wxWindow *) 0 ;
24071 long result;
24072 PyObject * obj0 = 0 ;
24073 char *kwnames[] = {
24074 (char *) "self", NULL
24075 };
24076
24077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
24078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
24083
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
24087 resultobj = SWIG_FromLong((long)result);
24088 return resultobj;
24089 fail:
24090 return NULL;
24091 }
24092
24093
24094 static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj;
24096 wxWindow *arg1 = (wxWindow *) 0 ;
24097 int arg2 ;
24098 bool result;
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101 char *kwnames[] = {
24102 (char *) "self",(char *) "flag", NULL
24103 };
24104
24105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
24106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24108 arg2 = (int) SWIG_AsInt(obj1);
24109 if (PyErr_Occurred()) SWIG_fail;
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24113
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 {
24118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24119 }
24120 return resultobj;
24121 fail:
24122 return NULL;
24123 }
24124
24125
24126 static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
24127 PyObject *resultobj;
24128 wxWindow *arg1 = (wxWindow *) 0 ;
24129 bool result;
24130 PyObject * obj0 = 0 ;
24131 char *kwnames[] = {
24132 (char *) "self", NULL
24133 };
24134
24135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24138 {
24139 PyThreadState* __tstate = wxPyBeginAllowThreads();
24140 result = (bool)((wxWindow const *)arg1)->IsRetained();
24141
24142 wxPyEndAllowThreads(__tstate);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 }
24145 {
24146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24147 }
24148 return resultobj;
24149 fail:
24150 return NULL;
24151 }
24152
24153
24154 static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24155 PyObject *resultobj;
24156 wxWindow *arg1 = (wxWindow *) 0 ;
24157 long arg2 ;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 char *kwnames[] = {
24161 (char *) "self",(char *) "exStyle", NULL
24162 };
24163
24164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24167 arg2 = (long) SWIG_AsLong(obj1);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 {
24170 PyThreadState* __tstate = wxPyBeginAllowThreads();
24171 (arg1)->SetExtraStyle(arg2);
24172
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 Py_INCREF(Py_None); resultobj = Py_None;
24177 return resultobj;
24178 fail:
24179 return NULL;
24180 }
24181
24182
24183 static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24184 PyObject *resultobj;
24185 wxWindow *arg1 = (wxWindow *) 0 ;
24186 long result;
24187 PyObject * obj0 = 0 ;
24188 char *kwnames[] = {
24189 (char *) "self", NULL
24190 };
24191
24192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24195 {
24196 PyThreadState* __tstate = wxPyBeginAllowThreads();
24197 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24198
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 resultobj = SWIG_FromLong((long)result);
24203 return resultobj;
24204 fail:
24205 return NULL;
24206 }
24207
24208
24209 static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
24210 PyObject *resultobj;
24211 wxWindow *arg1 = (wxWindow *) 0 ;
24212 bool arg2 = (bool) True ;
24213 PyObject * obj0 = 0 ;
24214 PyObject * obj1 = 0 ;
24215 char *kwnames[] = {
24216 (char *) "self",(char *) "modal", NULL
24217 };
24218
24219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24222 if (obj1) {
24223 arg2 = (bool) SWIG_AsBool(obj1);
24224 if (PyErr_Occurred()) SWIG_fail;
24225 }
24226 {
24227 PyThreadState* __tstate = wxPyBeginAllowThreads();
24228 (arg1)->MakeModal(arg2);
24229
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 Py_INCREF(Py_None); resultobj = Py_None;
24234 return resultobj;
24235 fail:
24236 return NULL;
24237 }
24238
24239
24240 static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24241 PyObject *resultobj;
24242 wxWindow *arg1 = (wxWindow *) 0 ;
24243 bool arg2 ;
24244 PyObject * obj0 = 0 ;
24245 PyObject * obj1 = 0 ;
24246 char *kwnames[] = {
24247 (char *) "self",(char *) "enableTheme", NULL
24248 };
24249
24250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24253 arg2 = (bool) SWIG_AsBool(obj1);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 (arg1)->SetThemeEnabled(arg2);
24258
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 Py_INCREF(Py_None); resultobj = Py_None;
24263 return resultobj;
24264 fail:
24265 return NULL;
24266 }
24267
24268
24269 static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24270 PyObject *resultobj;
24271 wxWindow *arg1 = (wxWindow *) 0 ;
24272 bool result;
24273 PyObject * obj0 = 0 ;
24274 char *kwnames[] = {
24275 (char *) "self", NULL
24276 };
24277
24278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24284
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 {
24289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24290 }
24291 return resultobj;
24292 fail:
24293 return NULL;
24294 }
24295
24296
24297 static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj;
24299 wxWindow *arg1 = (wxWindow *) 0 ;
24300 PyObject * obj0 = 0 ;
24301 char *kwnames[] = {
24302 (char *) "self", NULL
24303 };
24304
24305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24308 {
24309 PyThreadState* __tstate = wxPyBeginAllowThreads();
24310 (arg1)->SetFocus();
24311
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 Py_INCREF(Py_None); resultobj = Py_None;
24316 return resultobj;
24317 fail:
24318 return NULL;
24319 }
24320
24321
24322 static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
24323 PyObject *resultobj;
24324 wxWindow *arg1 = (wxWindow *) 0 ;
24325 PyObject * obj0 = 0 ;
24326 char *kwnames[] = {
24327 (char *) "self", NULL
24328 };
24329
24330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 (arg1)->SetFocusFromKbd();
24336
24337 wxPyEndAllowThreads(__tstate);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 Py_INCREF(Py_None); resultobj = Py_None;
24341 return resultobj;
24342 fail:
24343 return NULL;
24344 }
24345
24346
24347 static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj;
24349 wxWindow *result;
24350 char *kwnames[] = {
24351 NULL
24352 };
24353
24354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24355 {
24356 if (!wxPyCheckForApp()) SWIG_fail;
24357 PyThreadState* __tstate = wxPyBeginAllowThreads();
24358 result = (wxWindow *)wxWindow::FindFocus();
24359
24360 wxPyEndAllowThreads(__tstate);
24361 if (PyErr_Occurred()) SWIG_fail;
24362 }
24363 {
24364 resultobj = wxPyMake_wxObject(result, 0);
24365 }
24366 return resultobj;
24367 fail:
24368 return NULL;
24369 }
24370
24371
24372 static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24373 PyObject *resultobj;
24374 wxWindow *arg1 = (wxWindow *) 0 ;
24375 bool result;
24376 PyObject * obj0 = 0 ;
24377 char *kwnames[] = {
24378 (char *) "self", NULL
24379 };
24380
24381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24384 {
24385 PyThreadState* __tstate = wxPyBeginAllowThreads();
24386 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24387
24388 wxPyEndAllowThreads(__tstate);
24389 if (PyErr_Occurred()) SWIG_fail;
24390 }
24391 {
24392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24393 }
24394 return resultobj;
24395 fail:
24396 return NULL;
24397 }
24398
24399
24400 static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24401 PyObject *resultobj;
24402 wxWindow *arg1 = (wxWindow *) 0 ;
24403 bool result;
24404 PyObject * obj0 = 0 ;
24405 char *kwnames[] = {
24406 (char *) "self", NULL
24407 };
24408
24409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 {
24420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24421 }
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj;
24430 wxWindow *arg1 = (wxWindow *) 0 ;
24431 wxWindow *result;
24432 PyObject * obj0 = 0 ;
24433 char *kwnames[] = {
24434 (char *) "self", NULL
24435 };
24436
24437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24440 {
24441 PyThreadState* __tstate = wxPyBeginAllowThreads();
24442 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24443
24444 wxPyEndAllowThreads(__tstate);
24445 if (PyErr_Occurred()) SWIG_fail;
24446 }
24447 {
24448 resultobj = wxPyMake_wxObject(result, 0);
24449 }
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24457 PyObject *resultobj;
24458 wxWindow *arg1 = (wxWindow *) 0 ;
24459 wxWindow *arg2 = (wxWindow *) 0 ;
24460 wxWindow *result;
24461 PyObject * obj0 = 0 ;
24462 PyObject * obj1 = 0 ;
24463 char *kwnames[] = {
24464 (char *) "self",(char *) "child", NULL
24465 };
24466
24467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24472 {
24473 PyThreadState* __tstate = wxPyBeginAllowThreads();
24474 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24475
24476 wxPyEndAllowThreads(__tstate);
24477 if (PyErr_Occurred()) SWIG_fail;
24478 }
24479 {
24480 resultobj = wxPyMake_wxObject(result, 0);
24481 }
24482 return resultobj;
24483 fail:
24484 return NULL;
24485 }
24486
24487
24488 static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj;
24490 wxWindow *arg1 = (wxWindow *) 0 ;
24491 wxWindow *arg2 = (wxWindow *) 0 ;
24492 PyObject * obj0 = 0 ;
24493 PyObject * obj1 = 0 ;
24494 char *kwnames[] = {
24495 (char *) "self",(char *) "win", NULL
24496 };
24497
24498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 (arg1)->SetTmpDefaultItem(arg2);
24506
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 Py_INCREF(Py_None); resultobj = Py_None;
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj;
24519 wxWindow *arg1 = (wxWindow *) 0 ;
24520 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
24521 bool result;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 char *kwnames[] = {
24525 (char *) "self",(char *) "flags", NULL
24526 };
24527
24528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
24529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24531 if (obj1) {
24532 arg2 = (int) SWIG_AsInt(obj1);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 {
24536 PyThreadState* __tstate = wxPyBeginAllowThreads();
24537 result = (bool)(arg1)->Navigate(arg2);
24538
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 {
24543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24544 }
24545 return resultobj;
24546 fail:
24547 return NULL;
24548 }
24549
24550
24551 static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj;
24553 wxWindow *arg1 = (wxWindow *) 0 ;
24554 wxWindow *arg2 = (wxWindow *) 0 ;
24555 PyObject * obj0 = 0 ;
24556 PyObject * obj1 = 0 ;
24557 char *kwnames[] = {
24558 (char *) "self",(char *) "win", NULL
24559 };
24560
24561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 (arg1)->MoveAfterInTabOrder(arg2);
24569
24570 wxPyEndAllowThreads(__tstate);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 }
24573 Py_INCREF(Py_None); resultobj = Py_None;
24574 return resultobj;
24575 fail:
24576 return NULL;
24577 }
24578
24579
24580 static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj;
24582 wxWindow *arg1 = (wxWindow *) 0 ;
24583 wxWindow *arg2 = (wxWindow *) 0 ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 char *kwnames[] = {
24587 (char *) "self",(char *) "win", NULL
24588 };
24589
24590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 (arg1)->MoveBeforeInTabOrder(arg2);
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 Py_INCREF(Py_None); resultobj = Py_None;
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxWindow *arg1 = (wxWindow *) 0 ;
24612 PyObject *result;
24613 PyObject * obj0 = 0 ;
24614 char *kwnames[] = {
24615 (char *) "self", NULL
24616 };
24617
24618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 result = (PyObject *)wxWindow_GetChildren(arg1);
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 resultobj = result;
24629 return resultobj;
24630 fail:
24631 return NULL;
24632 }
24633
24634
24635 static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj;
24637 wxWindow *arg1 = (wxWindow *) 0 ;
24638 wxWindow *result;
24639 PyObject * obj0 = 0 ;
24640 char *kwnames[] = {
24641 (char *) "self", NULL
24642 };
24643
24644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24650
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 {
24655 resultobj = wxPyMake_wxObject(result, 0);
24656 }
24657 return resultobj;
24658 fail:
24659 return NULL;
24660 }
24661
24662
24663 static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj;
24665 wxWindow *arg1 = (wxWindow *) 0 ;
24666 wxWindow *result;
24667 PyObject * obj0 = 0 ;
24668 char *kwnames[] = {
24669 (char *) "self", NULL
24670 };
24671
24672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24675 {
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
24677 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24678
24679 wxPyEndAllowThreads(__tstate);
24680 if (PyErr_Occurred()) SWIG_fail;
24681 }
24682 {
24683 resultobj = wxPyMake_wxObject(result, 0);
24684 }
24685 return resultobj;
24686 fail:
24687 return NULL;
24688 }
24689
24690
24691 static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
24692 PyObject *resultobj;
24693 wxWindow *arg1 = (wxWindow *) 0 ;
24694 bool result;
24695 PyObject * obj0 = 0 ;
24696 char *kwnames[] = {
24697 (char *) "self", NULL
24698 };
24699
24700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24706
24707 wxPyEndAllowThreads(__tstate);
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 {
24711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24712 }
24713 return resultobj;
24714 fail:
24715 return NULL;
24716 }
24717
24718
24719 static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
24720 PyObject *resultobj;
24721 wxWindow *arg1 = (wxWindow *) 0 ;
24722 wxWindow *arg2 = (wxWindow *) 0 ;
24723 bool result;
24724 PyObject * obj0 = 0 ;
24725 PyObject * obj1 = 0 ;
24726 char *kwnames[] = {
24727 (char *) "self",(char *) "newParent", NULL
24728 };
24729
24730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 result = (bool)(arg1)->Reparent(arg2);
24738
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 {
24743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24744 }
24745 return resultobj;
24746 fail:
24747 return NULL;
24748 }
24749
24750
24751 static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24752 PyObject *resultobj;
24753 wxWindow *arg1 = (wxWindow *) 0 ;
24754 wxWindow *arg2 = (wxWindow *) 0 ;
24755 PyObject * obj0 = 0 ;
24756 PyObject * obj1 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "self",(char *) "child", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24764 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
24768 (arg1)->AddChild(arg2);
24769
24770 wxPyEndAllowThreads(__tstate);
24771 if (PyErr_Occurred()) SWIG_fail;
24772 }
24773 Py_INCREF(Py_None); resultobj = Py_None;
24774 return resultobj;
24775 fail:
24776 return NULL;
24777 }
24778
24779
24780 static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24781 PyObject *resultobj;
24782 wxWindow *arg1 = (wxWindow *) 0 ;
24783 wxWindow *arg2 = (wxWindow *) 0 ;
24784 PyObject * obj0 = 0 ;
24785 PyObject * obj1 = 0 ;
24786 char *kwnames[] = {
24787 (char *) "self",(char *) "child", NULL
24788 };
24789
24790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
24791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 (arg1)->RemoveChild(arg2);
24798
24799 wxPyEndAllowThreads(__tstate);
24800 if (PyErr_Occurred()) SWIG_fail;
24801 }
24802 Py_INCREF(Py_None); resultobj = Py_None;
24803 return resultobj;
24804 fail:
24805 return NULL;
24806 }
24807
24808
24809 static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
24810 PyObject *resultobj;
24811 wxWindow *arg1 = (wxWindow *) 0 ;
24812 long arg2 ;
24813 wxWindow *result;
24814 PyObject * obj0 = 0 ;
24815 PyObject * obj1 = 0 ;
24816 char *kwnames[] = {
24817 (char *) "self",(char *) "winid", NULL
24818 };
24819
24820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24823 arg2 = (long) SWIG_AsLong(obj1);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 result = (wxWindow *)(arg1)->FindWindow(arg2);
24828
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 {
24833 resultobj = wxPyMake_wxObject(result, 0);
24834 }
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj;
24843 wxWindow *arg1 = (wxWindow *) 0 ;
24844 wxString *arg2 = 0 ;
24845 wxWindow *result;
24846 bool temp2 = False ;
24847 PyObject * obj0 = 0 ;
24848 PyObject * obj1 = 0 ;
24849 char *kwnames[] = {
24850 (char *) "self",(char *) "name", NULL
24851 };
24852
24853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
24854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24856 {
24857 arg2 = wxString_in_helper(obj1);
24858 if (arg2 == NULL) SWIG_fail;
24859 temp2 = True;
24860 }
24861 {
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
24864
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 {
24869 resultobj = wxPyMake_wxObject(result, 0);
24870 }
24871 {
24872 if (temp2)
24873 delete arg2;
24874 }
24875 return resultobj;
24876 fail:
24877 {
24878 if (temp2)
24879 delete arg2;
24880 }
24881 return NULL;
24882 }
24883
24884
24885 static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24886 PyObject *resultobj;
24887 wxWindow *arg1 = (wxWindow *) 0 ;
24888 wxEvtHandler *result;
24889 PyObject * obj0 = 0 ;
24890 char *kwnames[] = {
24891 (char *) "self", NULL
24892 };
24893
24894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
24895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24897 {
24898 PyThreadState* __tstate = wxPyBeginAllowThreads();
24899 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
24900
24901 wxPyEndAllowThreads(__tstate);
24902 if (PyErr_Occurred()) SWIG_fail;
24903 }
24904 {
24905 resultobj = wxPyMake_wxObject(result, 0);
24906 }
24907 return resultobj;
24908 fail:
24909 return NULL;
24910 }
24911
24912
24913 static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24914 PyObject *resultobj;
24915 wxWindow *arg1 = (wxWindow *) 0 ;
24916 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24917 PyObject * obj0 = 0 ;
24918 PyObject * obj1 = 0 ;
24919 char *kwnames[] = {
24920 (char *) "self",(char *) "handler", NULL
24921 };
24922
24923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
24924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24928 {
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 (arg1)->SetEventHandler(arg2);
24931
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 Py_INCREF(Py_None); resultobj = Py_None;
24936 return resultobj;
24937 fail:
24938 return NULL;
24939 }
24940
24941
24942 static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj;
24944 wxWindow *arg1 = (wxWindow *) 0 ;
24945 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24946 PyObject * obj0 = 0 ;
24947 PyObject * obj1 = 0 ;
24948 char *kwnames[] = {
24949 (char *) "self",(char *) "handler", NULL
24950 };
24951
24952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
24953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 (arg1)->PushEventHandler(arg2);
24960
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 Py_INCREF(Py_None); resultobj = Py_None;
24965 return resultobj;
24966 fail:
24967 return NULL;
24968 }
24969
24970
24971 static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24972 PyObject *resultobj;
24973 wxWindow *arg1 = (wxWindow *) 0 ;
24974 bool arg2 = (bool) False ;
24975 wxEvtHandler *result;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char *kwnames[] = {
24979 (char *) "self",(char *) "deleteHandler", NULL
24980 };
24981
24982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
24983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24985 if (obj1) {
24986 arg2 = (bool) SWIG_AsBool(obj1);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 {
24990 PyThreadState* __tstate = wxPyBeginAllowThreads();
24991 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
24992
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 {
24997 resultobj = wxPyMake_wxObject(result, 0);
24998 }
24999 return resultobj;
25000 fail:
25001 return NULL;
25002 }
25003
25004
25005 static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
25006 PyObject *resultobj;
25007 wxWindow *arg1 = (wxWindow *) 0 ;
25008 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25009 bool result;
25010 PyObject * obj0 = 0 ;
25011 PyObject * obj1 = 0 ;
25012 char *kwnames[] = {
25013 (char *) "self",(char *) "handler", NULL
25014 };
25015
25016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
25017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25021 {
25022 PyThreadState* __tstate = wxPyBeginAllowThreads();
25023 result = (bool)(arg1)->RemoveEventHandler(arg2);
25024
25025 wxPyEndAllowThreads(__tstate);
25026 if (PyErr_Occurred()) SWIG_fail;
25027 }
25028 {
25029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25030 }
25031 return resultobj;
25032 fail:
25033 return NULL;
25034 }
25035
25036
25037 static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj;
25039 wxWindow *arg1 = (wxWindow *) 0 ;
25040 wxValidator *arg2 = 0 ;
25041 PyObject * obj0 = 0 ;
25042 PyObject * obj1 = 0 ;
25043 char *kwnames[] = {
25044 (char *) "self",(char *) "validator", NULL
25045 };
25046
25047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
25048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
25051 SWIG_POINTER_EXCEPTION | 0)) == -1)
25052 SWIG_fail;
25053 if (arg2 == NULL) {
25054 PyErr_SetString(PyExc_TypeError,"null reference");
25055 SWIG_fail;
25056 }
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 (arg1)->SetValidator((wxValidator const &)*arg2);
25060
25061 wxPyEndAllowThreads(__tstate);
25062 if (PyErr_Occurred()) SWIG_fail;
25063 }
25064 Py_INCREF(Py_None); resultobj = Py_None;
25065 return resultobj;
25066 fail:
25067 return NULL;
25068 }
25069
25070
25071 static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
25072 PyObject *resultobj;
25073 wxWindow *arg1 = (wxWindow *) 0 ;
25074 wxValidator *result;
25075 PyObject * obj0 = 0 ;
25076 char *kwnames[] = {
25077 (char *) "self", NULL
25078 };
25079
25080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
25081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25083 {
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 result = (wxValidator *)(arg1)->GetValidator();
25086
25087 wxPyEndAllowThreads(__tstate);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 {
25091 resultobj = wxPyMake_wxObject(result, 0);
25092 }
25093 return resultobj;
25094 fail:
25095 return NULL;
25096 }
25097
25098
25099 static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
25100 PyObject *resultobj;
25101 wxWindow *arg1 = (wxWindow *) 0 ;
25102 bool result;
25103 PyObject * obj0 = 0 ;
25104 char *kwnames[] = {
25105 (char *) "self", NULL
25106 };
25107
25108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
25109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25111 {
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = (bool)(arg1)->Validate();
25114
25115 wxPyEndAllowThreads(__tstate);
25116 if (PyErr_Occurred()) SWIG_fail;
25117 }
25118 {
25119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25120 }
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25128 PyObject *resultobj;
25129 wxWindow *arg1 = (wxWindow *) 0 ;
25130 bool result;
25131 PyObject * obj0 = 0 ;
25132 char *kwnames[] = {
25133 (char *) "self", NULL
25134 };
25135
25136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
25137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 result = (bool)(arg1)->TransferDataToWindow();
25142
25143 wxPyEndAllowThreads(__tstate);
25144 if (PyErr_Occurred()) SWIG_fail;
25145 }
25146 {
25147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25148 }
25149 return resultobj;
25150 fail:
25151 return NULL;
25152 }
25153
25154
25155 static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj;
25157 wxWindow *arg1 = (wxWindow *) 0 ;
25158 bool result;
25159 PyObject * obj0 = 0 ;
25160 char *kwnames[] = {
25161 (char *) "self", NULL
25162 };
25163
25164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25167 {
25168 PyThreadState* __tstate = wxPyBeginAllowThreads();
25169 result = (bool)(arg1)->TransferDataFromWindow();
25170
25171 wxPyEndAllowThreads(__tstate);
25172 if (PyErr_Occurred()) SWIG_fail;
25173 }
25174 {
25175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25176 }
25177 return resultobj;
25178 fail:
25179 return NULL;
25180 }
25181
25182
25183 static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25184 PyObject *resultobj;
25185 wxWindow *arg1 = (wxWindow *) 0 ;
25186 PyObject * obj0 = 0 ;
25187 char *kwnames[] = {
25188 (char *) "self", NULL
25189 };
25190
25191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
25196 (arg1)->InitDialog();
25197
25198 wxPyEndAllowThreads(__tstate);
25199 if (PyErr_Occurred()) SWIG_fail;
25200 }
25201 Py_INCREF(Py_None); resultobj = Py_None;
25202 return resultobj;
25203 fail:
25204 return NULL;
25205 }
25206
25207
25208 static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25209 PyObject *resultobj;
25210 wxWindow *arg1 = (wxWindow *) 0 ;
25211 wxAcceleratorTable *arg2 = 0 ;
25212 PyObject * obj0 = 0 ;
25213 PyObject * obj1 = 0 ;
25214 char *kwnames[] = {
25215 (char *) "self",(char *) "accel", NULL
25216 };
25217
25218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25222 SWIG_POINTER_EXCEPTION | 0)) == -1)
25223 SWIG_fail;
25224 if (arg2 == NULL) {
25225 PyErr_SetString(PyExc_TypeError,"null reference");
25226 SWIG_fail;
25227 }
25228 {
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25231
25232 wxPyEndAllowThreads(__tstate);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 Py_INCREF(Py_None); resultobj = Py_None;
25236 return resultobj;
25237 fail:
25238 return NULL;
25239 }
25240
25241
25242 static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25243 PyObject *resultobj;
25244 wxWindow *arg1 = (wxWindow *) 0 ;
25245 wxAcceleratorTable *result;
25246 PyObject * obj0 = 0 ;
25247 char *kwnames[] = {
25248 (char *) "self", NULL
25249 };
25250
25251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25257
25258 wxPyEndAllowThreads(__tstate);
25259 if (PyErr_Occurred()) SWIG_fail;
25260 }
25261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25262 return resultobj;
25263 fail:
25264 return NULL;
25265 }
25266
25267
25268 static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25269 PyObject *resultobj;
25270 wxWindow *arg1 = (wxWindow *) 0 ;
25271 int arg2 ;
25272 int arg3 ;
25273 int arg4 ;
25274 bool result;
25275 PyObject * obj0 = 0 ;
25276 PyObject * obj1 = 0 ;
25277 PyObject * obj2 = 0 ;
25278 PyObject * obj3 = 0 ;
25279 char *kwnames[] = {
25280 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25281 };
25282
25283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25286 arg2 = (int) SWIG_AsInt(obj1);
25287 if (PyErr_Occurred()) SWIG_fail;
25288 arg3 = (int) SWIG_AsInt(obj2);
25289 if (PyErr_Occurred()) SWIG_fail;
25290 arg4 = (int) SWIG_AsInt(obj3);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25295
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 {
25300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25301 }
25302 return resultobj;
25303 fail:
25304 return NULL;
25305 }
25306
25307
25308 static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj;
25310 wxWindow *arg1 = (wxWindow *) 0 ;
25311 int arg2 ;
25312 bool result;
25313 PyObject * obj0 = 0 ;
25314 PyObject * obj1 = 0 ;
25315 char *kwnames[] = {
25316 (char *) "self",(char *) "hotkeyId", NULL
25317 };
25318
25319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25322 arg2 = (int) SWIG_AsInt(obj1);
25323 if (PyErr_Occurred()) SWIG_fail;
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25327
25328 wxPyEndAllowThreads(__tstate);
25329 if (PyErr_Occurred()) SWIG_fail;
25330 }
25331 {
25332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25333 }
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25341 PyObject *resultobj;
25342 wxWindow *arg1 = (wxWindow *) 0 ;
25343 wxPoint *arg2 = 0 ;
25344 wxPoint result;
25345 wxPoint temp2 ;
25346 PyObject * obj0 = 0 ;
25347 PyObject * obj1 = 0 ;
25348 char *kwnames[] = {
25349 (char *) "self",(char *) "pt", NULL
25350 };
25351
25352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25355 {
25356 arg2 = &temp2;
25357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25358 }
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 {
25367 wxPoint * resultptr;
25368 resultptr = new wxPoint((wxPoint &) result);
25369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25370 }
25371 return resultobj;
25372 fail:
25373 return NULL;
25374 }
25375
25376
25377 static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25378 PyObject *resultobj;
25379 wxWindow *arg1 = (wxWindow *) 0 ;
25380 wxSize *arg2 = 0 ;
25381 wxSize result;
25382 wxSize temp2 ;
25383 PyObject * obj0 = 0 ;
25384 PyObject * obj1 = 0 ;
25385 char *kwnames[] = {
25386 (char *) "self",(char *) "sz", NULL
25387 };
25388
25389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25392 {
25393 arg2 = &temp2;
25394 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25395 }
25396 {
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25399
25400 wxPyEndAllowThreads(__tstate);
25401 if (PyErr_Occurred()) SWIG_fail;
25402 }
25403 {
25404 wxSize * resultptr;
25405 resultptr = new wxSize((wxSize &) result);
25406 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25407 }
25408 return resultobj;
25409 fail:
25410 return NULL;
25411 }
25412
25413
25414 static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
25415 PyObject *resultobj;
25416 wxWindow *arg1 = (wxWindow *) 0 ;
25417 wxPoint *arg2 = 0 ;
25418 wxPoint result;
25419 wxPoint temp2 ;
25420 PyObject * obj0 = 0 ;
25421 PyObject * obj1 = 0 ;
25422 char *kwnames[] = {
25423 (char *) "self",(char *) "pt", NULL
25424 };
25425
25426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25429 {
25430 arg2 = &temp2;
25431 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25432 }
25433 {
25434 PyThreadState* __tstate = wxPyBeginAllowThreads();
25435 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25436
25437 wxPyEndAllowThreads(__tstate);
25438 if (PyErr_Occurred()) SWIG_fail;
25439 }
25440 {
25441 wxPoint * resultptr;
25442 resultptr = new wxPoint((wxPoint &) result);
25443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25444 }
25445 return resultobj;
25446 fail:
25447 return NULL;
25448 }
25449
25450
25451 static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
25452 PyObject *resultobj;
25453 wxWindow *arg1 = (wxWindow *) 0 ;
25454 wxSize *arg2 = 0 ;
25455 wxSize result;
25456 wxSize temp2 ;
25457 PyObject * obj0 = 0 ;
25458 PyObject * obj1 = 0 ;
25459 char *kwnames[] = {
25460 (char *) "self",(char *) "sz", NULL
25461 };
25462
25463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25466 {
25467 arg2 = &temp2;
25468 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25469 }
25470 {
25471 PyThreadState* __tstate = wxPyBeginAllowThreads();
25472 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25473
25474 wxPyEndAllowThreads(__tstate);
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 {
25478 wxSize * resultptr;
25479 resultptr = new wxSize((wxSize &) result);
25480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25481 }
25482 return resultobj;
25483 fail:
25484 return NULL;
25485 }
25486
25487
25488 static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25489 PyObject *resultobj;
25490 wxWindow *arg1 = (wxWindow *) 0 ;
25491 wxPoint *arg2 = 0 ;
25492 wxPoint result;
25493 wxPoint temp2 ;
25494 PyObject * obj0 = 0 ;
25495 PyObject * obj1 = 0 ;
25496 char *kwnames[] = {
25497 (char *) "self",(char *) "pt", NULL
25498 };
25499
25500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25503 {
25504 arg2 = &temp2;
25505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25506 }
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25510
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 {
25515 wxPoint * resultptr;
25516 resultptr = new wxPoint((wxPoint &) result);
25517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25518 }
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj;
25527 wxWindow *arg1 = (wxWindow *) 0 ;
25528 wxSize *arg2 = 0 ;
25529 wxSize result;
25530 wxSize temp2 ;
25531 PyObject * obj0 = 0 ;
25532 PyObject * obj1 = 0 ;
25533 char *kwnames[] = {
25534 (char *) "self",(char *) "sz", NULL
25535 };
25536
25537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25540 {
25541 arg2 = &temp2;
25542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25543 }
25544 {
25545 PyThreadState* __tstate = wxPyBeginAllowThreads();
25546 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25547
25548 wxPyEndAllowThreads(__tstate);
25549 if (PyErr_Occurred()) SWIG_fail;
25550 }
25551 {
25552 wxSize * resultptr;
25553 resultptr = new wxSize((wxSize &) result);
25554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25555 }
25556 return resultobj;
25557 fail:
25558 return NULL;
25559 }
25560
25561
25562 static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
25563 PyObject *resultobj;
25564 wxWindow *arg1 = (wxWindow *) 0 ;
25565 int arg2 ;
25566 int arg3 ;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 PyObject * obj2 = 0 ;
25570 char *kwnames[] = {
25571 (char *) "self",(char *) "x",(char *) "y", NULL
25572 };
25573
25574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25577 arg2 = (int) SWIG_AsInt(obj1);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 arg3 = (int) SWIG_AsInt(obj2);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 {
25582 PyThreadState* __tstate = wxPyBeginAllowThreads();
25583 (arg1)->WarpPointer(arg2,arg3);
25584
25585 wxPyEndAllowThreads(__tstate);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 Py_INCREF(Py_None); resultobj = Py_None;
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25596 PyObject *resultobj;
25597 wxWindow *arg1 = (wxWindow *) 0 ;
25598 PyObject * obj0 = 0 ;
25599 char *kwnames[] = {
25600 (char *) "self", NULL
25601 };
25602
25603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25606 {
25607 PyThreadState* __tstate = wxPyBeginAllowThreads();
25608 (arg1)->CaptureMouse();
25609
25610 wxPyEndAllowThreads(__tstate);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 Py_INCREF(Py_None); resultobj = Py_None;
25614 return resultobj;
25615 fail:
25616 return NULL;
25617 }
25618
25619
25620 static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25621 PyObject *resultobj;
25622 wxWindow *arg1 = (wxWindow *) 0 ;
25623 PyObject * obj0 = 0 ;
25624 char *kwnames[] = {
25625 (char *) "self", NULL
25626 };
25627
25628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25631 {
25632 PyThreadState* __tstate = wxPyBeginAllowThreads();
25633 (arg1)->ReleaseMouse();
25634
25635 wxPyEndAllowThreads(__tstate);
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 Py_INCREF(Py_None); resultobj = Py_None;
25639 return resultobj;
25640 fail:
25641 return NULL;
25642 }
25643
25644
25645 static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25646 PyObject *resultobj;
25647 wxWindow *result;
25648 char *kwnames[] = {
25649 NULL
25650 };
25651
25652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25653 {
25654 if (!wxPyCheckForApp()) SWIG_fail;
25655 PyThreadState* __tstate = wxPyBeginAllowThreads();
25656 result = (wxWindow *)wxWindow::GetCapture();
25657
25658 wxPyEndAllowThreads(__tstate);
25659 if (PyErr_Occurred()) SWIG_fail;
25660 }
25661 {
25662 resultobj = wxPyMake_wxObject(result, 0);
25663 }
25664 return resultobj;
25665 fail:
25666 return NULL;
25667 }
25668
25669
25670 static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj;
25672 wxWindow *arg1 = (wxWindow *) 0 ;
25673 bool result;
25674 PyObject * obj0 = 0 ;
25675 char *kwnames[] = {
25676 (char *) "self", NULL
25677 };
25678
25679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 result = (bool)((wxWindow const *)arg1)->HasCapture();
25685
25686 wxPyEndAllowThreads(__tstate);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 {
25690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25691 }
25692 return resultobj;
25693 fail:
25694 return NULL;
25695 }
25696
25697
25698 static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
25699 PyObject *resultobj;
25700 wxWindow *arg1 = (wxWindow *) 0 ;
25701 bool arg2 = (bool) True ;
25702 wxRect *arg3 = (wxRect *) NULL ;
25703 PyObject * obj0 = 0 ;
25704 PyObject * obj1 = 0 ;
25705 PyObject * obj2 = 0 ;
25706 char *kwnames[] = {
25707 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25708 };
25709
25710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25713 if (obj1) {
25714 arg2 = (bool) SWIG_AsBool(obj1);
25715 if (PyErr_Occurred()) SWIG_fail;
25716 }
25717 if (obj2) {
25718 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25720 }
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25724
25725 wxPyEndAllowThreads(__tstate);
25726 if (PyErr_Occurred()) SWIG_fail;
25727 }
25728 Py_INCREF(Py_None); resultobj = Py_None;
25729 return resultobj;
25730 fail:
25731 return NULL;
25732 }
25733
25734
25735 static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj;
25737 wxWindow *arg1 = (wxWindow *) 0 ;
25738 wxRect *arg2 = 0 ;
25739 wxRect temp2 ;
25740 PyObject * obj0 = 0 ;
25741 PyObject * obj1 = 0 ;
25742 char *kwnames[] = {
25743 (char *) "self",(char *) "rect", NULL
25744 };
25745
25746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25749 {
25750 arg2 = &temp2;
25751 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 (arg1)->RefreshRect((wxRect const &)*arg2);
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 Py_INCREF(Py_None); resultobj = Py_None;
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj;
25769 wxWindow *arg1 = (wxWindow *) 0 ;
25770 PyObject * obj0 = 0 ;
25771 char *kwnames[] = {
25772 (char *) "self", NULL
25773 };
25774
25775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25778 {
25779 PyThreadState* __tstate = wxPyBeginAllowThreads();
25780 (arg1)->Update();
25781
25782 wxPyEndAllowThreads(__tstate);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 Py_INCREF(Py_None); resultobj = Py_None;
25786 return resultobj;
25787 fail:
25788 return NULL;
25789 }
25790
25791
25792 static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
25793 PyObject *resultobj;
25794 wxWindow *arg1 = (wxWindow *) 0 ;
25795 PyObject * obj0 = 0 ;
25796 char *kwnames[] = {
25797 (char *) "self", NULL
25798 };
25799
25800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25803 {
25804 PyThreadState* __tstate = wxPyBeginAllowThreads();
25805 (arg1)->ClearBackground();
25806
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 Py_INCREF(Py_None); resultobj = Py_None;
25811 return resultobj;
25812 fail:
25813 return NULL;
25814 }
25815
25816
25817 static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
25818 PyObject *resultobj;
25819 wxWindow *arg1 = (wxWindow *) 0 ;
25820 PyObject * obj0 = 0 ;
25821 char *kwnames[] = {
25822 (char *) "self", NULL
25823 };
25824
25825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
25826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25828 {
25829 PyThreadState* __tstate = wxPyBeginAllowThreads();
25830 (arg1)->Freeze();
25831
25832 wxPyEndAllowThreads(__tstate);
25833 if (PyErr_Occurred()) SWIG_fail;
25834 }
25835 Py_INCREF(Py_None); resultobj = Py_None;
25836 return resultobj;
25837 fail:
25838 return NULL;
25839 }
25840
25841
25842 static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
25843 PyObject *resultobj;
25844 wxWindow *arg1 = (wxWindow *) 0 ;
25845 PyObject * obj0 = 0 ;
25846 char *kwnames[] = {
25847 (char *) "self", NULL
25848 };
25849
25850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
25851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25853 {
25854 PyThreadState* __tstate = wxPyBeginAllowThreads();
25855 (arg1)->Thaw();
25856
25857 wxPyEndAllowThreads(__tstate);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 Py_INCREF(Py_None); resultobj = Py_None;
25861 return resultobj;
25862 fail:
25863 return NULL;
25864 }
25865
25866
25867 static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj;
25869 wxWindow *arg1 = (wxWindow *) 0 ;
25870 wxDC *arg2 = 0 ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 char *kwnames[] = {
25874 (char *) "self",(char *) "dc", NULL
25875 };
25876
25877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
25878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
25881 SWIG_POINTER_EXCEPTION | 0)) == -1)
25882 SWIG_fail;
25883 if (arg2 == NULL) {
25884 PyErr_SetString(PyExc_TypeError,"null reference");
25885 SWIG_fail;
25886 }
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 (arg1)->PrepareDC(*arg2);
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 Py_INCREF(Py_None); resultobj = Py_None;
25895 return resultobj;
25896 fail:
25897 return NULL;
25898 }
25899
25900
25901 static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj;
25903 wxWindow *arg1 = (wxWindow *) 0 ;
25904 wxRegion *result;
25905 PyObject * obj0 = 0 ;
25906 char *kwnames[] = {
25907 (char *) "self", NULL
25908 };
25909
25910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
25911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25913 {
25914 PyThreadState* __tstate = wxPyBeginAllowThreads();
25915 {
25916 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
25917 result = (wxRegion *) &_result_ref;
25918 }
25919
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
25924 return resultobj;
25925 fail:
25926 return NULL;
25927 }
25928
25929
25930 static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25931 PyObject *resultobj;
25932 wxWindow *arg1 = (wxWindow *) 0 ;
25933 wxRect result;
25934 PyObject * obj0 = 0 ;
25935 char *kwnames[] = {
25936 (char *) "self", NULL
25937 };
25938
25939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
25940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
25945
25946 wxPyEndAllowThreads(__tstate);
25947 if (PyErr_Occurred()) SWIG_fail;
25948 }
25949 {
25950 wxRect * resultptr;
25951 resultptr = new wxRect((wxRect &) result);
25952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
25953 }
25954 return resultobj;
25955 fail:
25956 return NULL;
25957 }
25958
25959
25960 static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
25961 PyObject *resultobj;
25962 wxWindow *arg1 = (wxWindow *) 0 ;
25963 int arg2 ;
25964 int arg3 ;
25965 int arg4 = (int) 1 ;
25966 int arg5 = (int) 1 ;
25967 bool result;
25968 PyObject * obj0 = 0 ;
25969 PyObject * obj1 = 0 ;
25970 PyObject * obj2 = 0 ;
25971 PyObject * obj3 = 0 ;
25972 PyObject * obj4 = 0 ;
25973 char *kwnames[] = {
25974 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25975 };
25976
25977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25980 arg2 = (int) SWIG_AsInt(obj1);
25981 if (PyErr_Occurred()) SWIG_fail;
25982 arg3 = (int) SWIG_AsInt(obj2);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 if (obj3) {
25985 arg4 = (int) SWIG_AsInt(obj3);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 if (obj4) {
25989 arg5 = (int) SWIG_AsInt(obj4);
25990 if (PyErr_Occurred()) SWIG_fail;
25991 }
25992 {
25993 PyThreadState* __tstate = wxPyBeginAllowThreads();
25994 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
25995
25996 wxPyEndAllowThreads(__tstate);
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
25999 {
26000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26001 }
26002 return resultobj;
26003 fail:
26004 return NULL;
26005 }
26006
26007
26008 static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
26009 PyObject *resultobj;
26010 wxWindow *arg1 = (wxWindow *) 0 ;
26011 wxPoint *arg2 = 0 ;
26012 bool result;
26013 wxPoint temp2 ;
26014 PyObject * obj0 = 0 ;
26015 PyObject * obj1 = 0 ;
26016 char *kwnames[] = {
26017 (char *) "self",(char *) "pt", NULL
26018 };
26019
26020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
26021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26023 {
26024 arg2 = &temp2;
26025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26026 }
26027 {
26028 PyThreadState* __tstate = wxPyBeginAllowThreads();
26029 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
26030
26031 wxPyEndAllowThreads(__tstate);
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 {
26035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26036 }
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26044 PyObject *resultobj;
26045 wxWindow *arg1 = (wxWindow *) 0 ;
26046 wxRect *arg2 = 0 ;
26047 bool result;
26048 wxRect temp2 ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 char *kwnames[] = {
26052 (char *) "self",(char *) "rect", NULL
26053 };
26054
26055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",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 ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26061 }
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 {
26070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26071 }
26072 return resultobj;
26073 fail:
26074 return NULL;
26075 }
26076
26077
26078 static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
26079 PyObject *resultobj;
26080 wxWindow *arg1 = (wxWindow *) 0 ;
26081 wxVisualAttributes result;
26082 PyObject * obj0 = 0 ;
26083 char *kwnames[] = {
26084 (char *) "self", NULL
26085 };
26086
26087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
26088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26090 {
26091 PyThreadState* __tstate = wxPyBeginAllowThreads();
26092 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
26093
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
26097 {
26098 wxVisualAttributes * resultptr;
26099 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26100 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26101 }
26102 return resultobj;
26103 fail:
26104 return NULL;
26105 }
26106
26107
26108 static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
26109 PyObject *resultobj;
26110 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
26111 wxVisualAttributes result;
26112 PyObject * obj0 = 0 ;
26113 char *kwnames[] = {
26114 (char *) "variant", NULL
26115 };
26116
26117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
26118 if (obj0) {
26119 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 {
26123 if (!wxPyCheckForApp()) SWIG_fail;
26124 PyThreadState* __tstate = wxPyBeginAllowThreads();
26125 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
26126
26127 wxPyEndAllowThreads(__tstate);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 {
26131 wxVisualAttributes * resultptr;
26132 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26134 }
26135 return resultobj;
26136 fail:
26137 return NULL;
26138 }
26139
26140
26141 static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26142 PyObject *resultobj;
26143 wxWindow *arg1 = (wxWindow *) 0 ;
26144 wxColour *arg2 = 0 ;
26145 bool result;
26146 wxColour temp2 ;
26147 PyObject * obj0 = 0 ;
26148 PyObject * obj1 = 0 ;
26149 char *kwnames[] = {
26150 (char *) "self",(char *) "colour", NULL
26151 };
26152
26153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26156 {
26157 arg2 = &temp2;
26158 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26159 }
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26163
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 {
26168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26169 }
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj;
26178 wxWindow *arg1 = (wxWindow *) 0 ;
26179 wxColour *arg2 = 0 ;
26180 wxColour temp2 ;
26181 PyObject * obj0 = 0 ;
26182 PyObject * obj1 = 0 ;
26183 char *kwnames[] = {
26184 (char *) "self",(char *) "colour", NULL
26185 };
26186
26187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26190 {
26191 arg2 = &temp2;
26192 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26193 }
26194 {
26195 PyThreadState* __tstate = wxPyBeginAllowThreads();
26196 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
26197
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 Py_INCREF(Py_None); resultobj = Py_None;
26202 return resultobj;
26203 fail:
26204 return NULL;
26205 }
26206
26207
26208 static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26209 PyObject *resultobj;
26210 wxWindow *arg1 = (wxWindow *) 0 ;
26211 wxColour *arg2 = 0 ;
26212 bool result;
26213 wxColour temp2 ;
26214 PyObject * obj0 = 0 ;
26215 PyObject * obj1 = 0 ;
26216 char *kwnames[] = {
26217 (char *) "self",(char *) "colour", NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26223 {
26224 arg2 = &temp2;
26225 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26226 }
26227 {
26228 PyThreadState* __tstate = wxPyBeginAllowThreads();
26229 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26230
26231 wxPyEndAllowThreads(__tstate);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 {
26235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26236 }
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj;
26245 wxWindow *arg1 = (wxWindow *) 0 ;
26246 wxColour *arg2 = 0 ;
26247 wxColour temp2 ;
26248 PyObject * obj0 = 0 ;
26249 PyObject * obj1 = 0 ;
26250 char *kwnames[] = {
26251 (char *) "self",(char *) "colour", NULL
26252 };
26253
26254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26257 {
26258 arg2 = &temp2;
26259 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26260 }
26261 {
26262 PyThreadState* __tstate = wxPyBeginAllowThreads();
26263 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
26264
26265 wxPyEndAllowThreads(__tstate);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 }
26268 Py_INCREF(Py_None); resultobj = Py_None;
26269 return resultobj;
26270 fail:
26271 return NULL;
26272 }
26273
26274
26275 static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26276 PyObject *resultobj;
26277 wxWindow *arg1 = (wxWindow *) 0 ;
26278 wxColour result;
26279 PyObject * obj0 = 0 ;
26280 char *kwnames[] = {
26281 (char *) "self", NULL
26282 };
26283
26284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26287 {
26288 PyThreadState* __tstate = wxPyBeginAllowThreads();
26289 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26290
26291 wxPyEndAllowThreads(__tstate);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 }
26294 {
26295 wxColour * resultptr;
26296 resultptr = new wxColour((wxColour &) result);
26297 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26298 }
26299 return resultobj;
26300 fail:
26301 return NULL;
26302 }
26303
26304
26305 static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26306 PyObject *resultobj;
26307 wxWindow *arg1 = (wxWindow *) 0 ;
26308 wxColour result;
26309 PyObject * obj0 = 0 ;
26310 char *kwnames[] = {
26311 (char *) "self", NULL
26312 };
26313
26314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26317 {
26318 PyThreadState* __tstate = wxPyBeginAllowThreads();
26319 result = ((wxWindow const *)arg1)->GetForegroundColour();
26320
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 {
26325 wxColour * resultptr;
26326 resultptr = new wxColour((wxColour &) result);
26327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26328 }
26329 return resultobj;
26330 fail:
26331 return NULL;
26332 }
26333
26334
26335 static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
26336 PyObject *resultobj;
26337 wxWindow *arg1 = (wxWindow *) 0 ;
26338 int arg2 ;
26339 bool result;
26340 PyObject * obj0 = 0 ;
26341 PyObject * obj1 = 0 ;
26342 char *kwnames[] = {
26343 (char *) "self",(char *) "style", NULL
26344 };
26345
26346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail;
26347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26349 arg2 = (wxBackgroundStyle) SWIG_AsInt(obj1);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
26353 result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2);
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 {
26359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26360 }
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj;
26369 wxWindow *arg1 = (wxWindow *) 0 ;
26370 int result;
26371 PyObject * obj0 = 0 ;
26372 char *kwnames[] = {
26373 (char *) "self", NULL
26374 };
26375
26376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail;
26377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26379 {
26380 PyThreadState* __tstate = wxPyBeginAllowThreads();
26381 result = (int)((wxWindow const *)arg1)->GetBackgroundStyle();
26382
26383 wxPyEndAllowThreads(__tstate);
26384 if (PyErr_Occurred()) SWIG_fail;
26385 }
26386 resultobj = SWIG_FromInt((int)result);
26387 return resultobj;
26388 fail:
26389 return NULL;
26390 }
26391
26392
26393 static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26394 PyObject *resultobj;
26395 wxWindow *arg1 = (wxWindow *) 0 ;
26396 wxCursor *arg2 = 0 ;
26397 bool result;
26398 PyObject * obj0 = 0 ;
26399 PyObject * obj1 = 0 ;
26400 char *kwnames[] = {
26401 (char *) "self",(char *) "cursor", NULL
26402 };
26403
26404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26408 SWIG_POINTER_EXCEPTION | 0)) == -1)
26409 SWIG_fail;
26410 if (arg2 == NULL) {
26411 PyErr_SetString(PyExc_TypeError,"null reference");
26412 SWIG_fail;
26413 }
26414 {
26415 PyThreadState* __tstate = wxPyBeginAllowThreads();
26416 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26417
26418 wxPyEndAllowThreads(__tstate);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 {
26422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26423 }
26424 return resultobj;
26425 fail:
26426 return NULL;
26427 }
26428
26429
26430 static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26431 PyObject *resultobj;
26432 wxWindow *arg1 = (wxWindow *) 0 ;
26433 wxCursor result;
26434 PyObject * obj0 = 0 ;
26435 char *kwnames[] = {
26436 (char *) "self", NULL
26437 };
26438
26439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26442 {
26443 PyThreadState* __tstate = wxPyBeginAllowThreads();
26444 result = (arg1)->GetCursor();
26445
26446 wxPyEndAllowThreads(__tstate);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 }
26449 {
26450 wxCursor * resultptr;
26451 resultptr = new wxCursor((wxCursor &) result);
26452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
26453 }
26454 return resultobj;
26455 fail:
26456 return NULL;
26457 }
26458
26459
26460 static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26461 PyObject *resultobj;
26462 wxWindow *arg1 = (wxWindow *) 0 ;
26463 wxFont *arg2 = 0 ;
26464 bool result;
26465 PyObject * obj0 = 0 ;
26466 PyObject * obj1 = 0 ;
26467 char *kwnames[] = {
26468 (char *) "self",(char *) "font", NULL
26469 };
26470
26471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26474 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26475 SWIG_POINTER_EXCEPTION | 0)) == -1)
26476 SWIG_fail;
26477 if (arg2 == NULL) {
26478 PyErr_SetString(PyExc_TypeError,"null reference");
26479 SWIG_fail;
26480 }
26481 {
26482 PyThreadState* __tstate = wxPyBeginAllowThreads();
26483 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26484
26485 wxPyEndAllowThreads(__tstate);
26486 if (PyErr_Occurred()) SWIG_fail;
26487 }
26488 {
26489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26490 }
26491 return resultobj;
26492 fail:
26493 return NULL;
26494 }
26495
26496
26497 static PyObject *_wrap_Window_SetOwnFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26498 PyObject *resultobj;
26499 wxWindow *arg1 = (wxWindow *) 0 ;
26500 wxFont *arg2 = 0 ;
26501 PyObject * obj0 = 0 ;
26502 PyObject * obj1 = 0 ;
26503 char *kwnames[] = {
26504 (char *) "self",(char *) "font", NULL
26505 };
26506
26507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
26508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26511 SWIG_POINTER_EXCEPTION | 0)) == -1)
26512 SWIG_fail;
26513 if (arg2 == NULL) {
26514 PyErr_SetString(PyExc_TypeError,"null reference");
26515 SWIG_fail;
26516 }
26517 {
26518 PyThreadState* __tstate = wxPyBeginAllowThreads();
26519 (arg1)->SetOwnFont((wxFont const &)*arg2);
26520
26521 wxPyEndAllowThreads(__tstate);
26522 if (PyErr_Occurred()) SWIG_fail;
26523 }
26524 Py_INCREF(Py_None); resultobj = Py_None;
26525 return resultobj;
26526 fail:
26527 return NULL;
26528 }
26529
26530
26531 static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26532 PyObject *resultobj;
26533 wxWindow *arg1 = (wxWindow *) 0 ;
26534 wxFont result;
26535 PyObject * obj0 = 0 ;
26536 char *kwnames[] = {
26537 (char *) "self", NULL
26538 };
26539
26540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26543 {
26544 PyThreadState* __tstate = wxPyBeginAllowThreads();
26545 result = (arg1)->GetFont();
26546
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 {
26551 wxFont * resultptr;
26552 resultptr = new wxFont((wxFont &) result);
26553 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26554 }
26555 return resultobj;
26556 fail:
26557 return NULL;
26558 }
26559
26560
26561 static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26562 PyObject *resultobj;
26563 wxWindow *arg1 = (wxWindow *) 0 ;
26564 wxCaret *arg2 = (wxCaret *) 0 ;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char *kwnames[] = {
26568 (char *) "self",(char *) "caret", NULL
26569 };
26570
26571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
26572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
26575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26576 {
26577 PyThreadState* __tstate = wxPyBeginAllowThreads();
26578 (arg1)->SetCaret(arg2);
26579
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 Py_INCREF(Py_None); resultobj = Py_None;
26584 return resultobj;
26585 fail:
26586 return NULL;
26587 }
26588
26589
26590 static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26591 PyObject *resultobj;
26592 wxWindow *arg1 = (wxWindow *) 0 ;
26593 wxCaret *result;
26594 PyObject * obj0 = 0 ;
26595 char *kwnames[] = {
26596 (char *) "self", NULL
26597 };
26598
26599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26602 {
26603 PyThreadState* __tstate = wxPyBeginAllowThreads();
26604 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26605
26606 wxPyEndAllowThreads(__tstate);
26607 if (PyErr_Occurred()) SWIG_fail;
26608 }
26609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26610 return resultobj;
26611 fail:
26612 return NULL;
26613 }
26614
26615
26616 static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
26617 PyObject *resultobj;
26618 wxWindow *arg1 = (wxWindow *) 0 ;
26619 int result;
26620 PyObject * obj0 = 0 ;
26621 char *kwnames[] = {
26622 (char *) "self", NULL
26623 };
26624
26625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26628 {
26629 PyThreadState* __tstate = wxPyBeginAllowThreads();
26630 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26631
26632 wxPyEndAllowThreads(__tstate);
26633 if (PyErr_Occurred()) SWIG_fail;
26634 }
26635 resultobj = SWIG_FromInt((int)result);
26636 return resultobj;
26637 fail:
26638 return NULL;
26639 }
26640
26641
26642 static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26643 PyObject *resultobj;
26644 wxWindow *arg1 = (wxWindow *) 0 ;
26645 int result;
26646 PyObject * obj0 = 0 ;
26647 char *kwnames[] = {
26648 (char *) "self", NULL
26649 };
26650
26651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26654 {
26655 PyThreadState* __tstate = wxPyBeginAllowThreads();
26656 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26657
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_FromInt((int)result);
26662 return resultobj;
26663 fail:
26664 return NULL;
26665 }
26666
26667
26668 static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26669 PyObject *resultobj;
26670 wxWindow *arg1 = (wxWindow *) 0 ;
26671 wxString *arg2 = 0 ;
26672 int *arg3 = (int *) 0 ;
26673 int *arg4 = (int *) 0 ;
26674 bool temp2 = False ;
26675 int temp3 ;
26676 int temp4 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 char *kwnames[] = {
26680 (char *) "self",(char *) "string", NULL
26681 };
26682
26683 arg3 = &temp3;
26684 arg4 = &temp4;
26685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26688 {
26689 arg2 = wxString_in_helper(obj1);
26690 if (arg2 == NULL) SWIG_fail;
26691 temp2 = True;
26692 }
26693 {
26694 PyThreadState* __tstate = wxPyBeginAllowThreads();
26695 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26696
26697 wxPyEndAllowThreads(__tstate);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 Py_INCREF(Py_None); resultobj = Py_None;
26701 {
26702 PyObject *o = PyInt_FromLong((long) (*arg3));
26703 resultobj = t_output_helper(resultobj,o);
26704 }
26705 {
26706 PyObject *o = PyInt_FromLong((long) (*arg4));
26707 resultobj = t_output_helper(resultobj,o);
26708 }
26709 {
26710 if (temp2)
26711 delete arg2;
26712 }
26713 return resultobj;
26714 fail:
26715 {
26716 if (temp2)
26717 delete arg2;
26718 }
26719 return NULL;
26720 }
26721
26722
26723 static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26724 PyObject *resultobj;
26725 wxWindow *arg1 = (wxWindow *) 0 ;
26726 wxString *arg2 = 0 ;
26727 int *arg3 = (int *) 0 ;
26728 int *arg4 = (int *) 0 ;
26729 int *arg5 = (int *) 0 ;
26730 int *arg6 = (int *) 0 ;
26731 wxFont *arg7 = (wxFont *) NULL ;
26732 bool temp2 = False ;
26733 int temp3 ;
26734 int temp4 ;
26735 int temp5 ;
26736 int temp6 ;
26737 PyObject * obj0 = 0 ;
26738 PyObject * obj1 = 0 ;
26739 PyObject * obj2 = 0 ;
26740 char *kwnames[] = {
26741 (char *) "self",(char *) "string",(char *) "font", NULL
26742 };
26743
26744 arg3 = &temp3;
26745 arg4 = &temp4;
26746 arg5 = &temp5;
26747 arg6 = &temp6;
26748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26751 {
26752 arg2 = wxString_in_helper(obj1);
26753 if (arg2 == NULL) SWIG_fail;
26754 temp2 = True;
26755 }
26756 if (obj2) {
26757 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26759 }
26760 {
26761 PyThreadState* __tstate = wxPyBeginAllowThreads();
26762 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26763
26764 wxPyEndAllowThreads(__tstate);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 Py_INCREF(Py_None); resultobj = Py_None;
26768 {
26769 PyObject *o = PyInt_FromLong((long) (*arg3));
26770 resultobj = t_output_helper(resultobj,o);
26771 }
26772 {
26773 PyObject *o = PyInt_FromLong((long) (*arg4));
26774 resultobj = t_output_helper(resultobj,o);
26775 }
26776 {
26777 PyObject *o = PyInt_FromLong((long) (*arg5));
26778 resultobj = t_output_helper(resultobj,o);
26779 }
26780 {
26781 PyObject *o = PyInt_FromLong((long) (*arg6));
26782 resultobj = t_output_helper(resultobj,o);
26783 }
26784 {
26785 if (temp2)
26786 delete arg2;
26787 }
26788 return resultobj;
26789 fail:
26790 {
26791 if (temp2)
26792 delete arg2;
26793 }
26794 return NULL;
26795 }
26796
26797
26798 static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26799 PyObject *resultobj;
26800 wxWindow *arg1 = (wxWindow *) 0 ;
26801 int *arg2 = (int *) 0 ;
26802 int *arg3 = (int *) 0 ;
26803 int temp2 ;
26804 int temp3 ;
26805 PyObject * obj0 = 0 ;
26806 PyObject * obj1 = 0 ;
26807 PyObject * obj2 = 0 ;
26808 char *kwnames[] = {
26809 (char *) "self",(char *) "x",(char *) "y", NULL
26810 };
26811
26812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26815 {
26816 temp2 = PyInt_AsLong(obj1);
26817 if (PyErr_Occurred()) SWIG_fail;
26818 arg2 = &temp2;
26819 }
26820 {
26821 temp3 = PyInt_AsLong(obj2);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 arg3 = &temp3;
26824 }
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
26828
26829 wxPyEndAllowThreads(__tstate);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 Py_INCREF(Py_None); resultobj = Py_None;
26833 {
26834 PyObject *o = PyInt_FromLong((long) (*arg2));
26835 resultobj = t_output_helper(resultobj,o);
26836 }
26837 {
26838 PyObject *o = PyInt_FromLong((long) (*arg3));
26839 resultobj = t_output_helper(resultobj,o);
26840 }
26841 return resultobj;
26842 fail:
26843 return NULL;
26844 }
26845
26846
26847 static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26848 PyObject *resultobj;
26849 wxWindow *arg1 = (wxWindow *) 0 ;
26850 int *arg2 = (int *) 0 ;
26851 int *arg3 = (int *) 0 ;
26852 int temp2 ;
26853 int temp3 ;
26854 PyObject * obj0 = 0 ;
26855 PyObject * obj1 = 0 ;
26856 PyObject * obj2 = 0 ;
26857 char *kwnames[] = {
26858 (char *) "self",(char *) "x",(char *) "y", NULL
26859 };
26860
26861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26864 {
26865 temp2 = PyInt_AsLong(obj1);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 arg2 = &temp2;
26868 }
26869 {
26870 temp3 = PyInt_AsLong(obj2);
26871 if (PyErr_Occurred()) SWIG_fail;
26872 arg3 = &temp3;
26873 }
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
26877
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 Py_INCREF(Py_None); resultobj = Py_None;
26882 {
26883 PyObject *o = PyInt_FromLong((long) (*arg2));
26884 resultobj = t_output_helper(resultobj,o);
26885 }
26886 {
26887 PyObject *o = PyInt_FromLong((long) (*arg3));
26888 resultobj = t_output_helper(resultobj,o);
26889 }
26890 return resultobj;
26891 fail:
26892 return NULL;
26893 }
26894
26895
26896 static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
26897 PyObject *resultobj;
26898 wxWindow *arg1 = (wxWindow *) 0 ;
26899 wxPoint *arg2 = 0 ;
26900 wxPoint result;
26901 wxPoint temp2 ;
26902 PyObject * obj0 = 0 ;
26903 PyObject * obj1 = 0 ;
26904 char *kwnames[] = {
26905 (char *) "self",(char *) "pt", NULL
26906 };
26907
26908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
26909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26911 {
26912 arg2 = &temp2;
26913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26914 }
26915 {
26916 PyThreadState* __tstate = wxPyBeginAllowThreads();
26917 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
26918
26919 wxPyEndAllowThreads(__tstate);
26920 if (PyErr_Occurred()) SWIG_fail;
26921 }
26922 {
26923 wxPoint * resultptr;
26924 resultptr = new wxPoint((wxPoint &) result);
26925 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26926 }
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxWindow *arg1 = (wxWindow *) 0 ;
26936 wxPoint *arg2 = 0 ;
26937 wxPoint result;
26938 wxPoint temp2 ;
26939 PyObject * obj0 = 0 ;
26940 PyObject * obj1 = 0 ;
26941 char *kwnames[] = {
26942 (char *) "self",(char *) "pt", NULL
26943 };
26944
26945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
26946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26948 {
26949 arg2 = &temp2;
26950 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26951 }
26952 {
26953 PyThreadState* __tstate = wxPyBeginAllowThreads();
26954 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
26955
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 {
26960 wxPoint * resultptr;
26961 resultptr = new wxPoint((wxPoint &) result);
26962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26963 }
26964 return resultobj;
26965 fail:
26966 return NULL;
26967 }
26968
26969
26970 static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26971 PyObject *resultobj;
26972 wxWindow *arg1 = (wxWindow *) 0 ;
26973 int arg2 ;
26974 int arg3 ;
26975 int result;
26976 PyObject * obj0 = 0 ;
26977 PyObject * obj1 = 0 ;
26978 PyObject * obj2 = 0 ;
26979 char *kwnames[] = {
26980 (char *) "self",(char *) "x",(char *) "y", NULL
26981 };
26982
26983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26986 arg2 = (int) SWIG_AsInt(obj1);
26987 if (PyErr_Occurred()) SWIG_fail;
26988 arg3 = (int) SWIG_AsInt(obj2);
26989 if (PyErr_Occurred()) SWIG_fail;
26990 {
26991 PyThreadState* __tstate = wxPyBeginAllowThreads();
26992 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
26993
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_FromInt((int)result);
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27005 PyObject *resultobj;
27006 wxWindow *arg1 = (wxWindow *) 0 ;
27007 wxPoint *arg2 = 0 ;
27008 int result;
27009 wxPoint temp2 ;
27010 PyObject * obj0 = 0 ;
27011 PyObject * obj1 = 0 ;
27012 char *kwnames[] = {
27013 (char *) "self",(char *) "pt", NULL
27014 };
27015
27016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
27017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27019 {
27020 arg2 = &temp2;
27021 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27022 }
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
27026
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 resultobj = SWIG_FromInt((int)result);
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) {
27038 PyObject *resultobj;
27039 wxWindow *arg1 = (wxWindow *) 0 ;
27040 long arg2 ;
27041 int result;
27042 PyObject * obj0 = 0 ;
27043 PyObject * obj1 = 0 ;
27044
27045 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
27046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27048 arg2 = (long) SWIG_AsLong(obj1);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
27053
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_FromInt((int)result);
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) {
27065 PyObject *resultobj;
27066 wxWindow *arg1 = (wxWindow *) 0 ;
27067 int result;
27068 PyObject * obj0 = 0 ;
27069
27070 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
27071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (int)((wxWindow const *)arg1)->GetBorder();
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 resultobj = SWIG_FromInt((int)result);
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
27088 int argc;
27089 PyObject *argv[3];
27090 int ii;
27091
27092 argc = PyObject_Length(args);
27093 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27094 argv[ii] = PyTuple_GetItem(args,ii);
27095 }
27096 if (argc == 1) {
27097 int _v;
27098 {
27099 void *ptr;
27100 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27101 _v = 0;
27102 PyErr_Clear();
27103 } else {
27104 _v = 1;
27105 }
27106 }
27107 if (_v) {
27108 return _wrap_Window_GetBorder__SWIG_1(self,args);
27109 }
27110 }
27111 if (argc == 2) {
27112 int _v;
27113 {
27114 void *ptr;
27115 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27116 _v = 0;
27117 PyErr_Clear();
27118 } else {
27119 _v = 1;
27120 }
27121 }
27122 if (_v) {
27123 _v = SWIG_CheckLong(argv[1]);
27124 if (_v) {
27125 return _wrap_Window_GetBorder__SWIG_0(self,args);
27126 }
27127 }
27128 }
27129
27130 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
27131 return NULL;
27132 }
27133
27134
27135 static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
27136 PyObject *resultobj;
27137 wxWindow *arg1 = (wxWindow *) 0 ;
27138 long arg2 = (long) wxUPDATE_UI_NONE ;
27139 PyObject * obj0 = 0 ;
27140 PyObject * obj1 = 0 ;
27141 char *kwnames[] = {
27142 (char *) "self",(char *) "flags", NULL
27143 };
27144
27145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
27146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27148 if (obj1) {
27149 arg2 = (long) SWIG_AsLong(obj1);
27150 if (PyErr_Occurred()) SWIG_fail;
27151 }
27152 {
27153 PyThreadState* __tstate = wxPyBeginAllowThreads();
27154 (arg1)->UpdateWindowUI(arg2);
27155
27156 wxPyEndAllowThreads(__tstate);
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 Py_INCREF(Py_None); resultobj = Py_None;
27160 return resultobj;
27161 fail:
27162 return NULL;
27163 }
27164
27165
27166 static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
27167 PyObject *resultobj;
27168 wxWindow *arg1 = (wxWindow *) 0 ;
27169 wxMenu *arg2 = (wxMenu *) 0 ;
27170 int arg3 = (int) -1 ;
27171 int arg4 = (int) -1 ;
27172 bool result;
27173 PyObject * obj0 = 0 ;
27174 PyObject * obj1 = 0 ;
27175 PyObject * obj2 = 0 ;
27176 PyObject * obj3 = 0 ;
27177 char *kwnames[] = {
27178 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
27179 };
27180
27181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27186 if (obj2) {
27187 arg3 = (int) SWIG_AsInt(obj2);
27188 if (PyErr_Occurred()) SWIG_fail;
27189 }
27190 if (obj3) {
27191 arg4 = (int) SWIG_AsInt(obj3);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 }
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
27197
27198 wxPyEndAllowThreads(__tstate);
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 {
27202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27203 }
27204 return resultobj;
27205 fail:
27206 return NULL;
27207 }
27208
27209
27210 static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27211 PyObject *resultobj;
27212 wxWindow *arg1 = (wxWindow *) 0 ;
27213 wxMenu *arg2 = (wxMenu *) 0 ;
27214 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27215 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27216 bool result;
27217 wxPoint temp3 ;
27218 PyObject * obj0 = 0 ;
27219 PyObject * obj1 = 0 ;
27220 PyObject * obj2 = 0 ;
27221 char *kwnames[] = {
27222 (char *) "self",(char *) "menu",(char *) "pos", NULL
27223 };
27224
27225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
27226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27230 if (obj2) {
27231 {
27232 arg3 = &temp3;
27233 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27234 }
27235 }
27236 {
27237 PyThreadState* __tstate = wxPyBeginAllowThreads();
27238 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27239
27240 wxPyEndAllowThreads(__tstate);
27241 if (PyErr_Occurred()) SWIG_fail;
27242 }
27243 {
27244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27245 }
27246 return resultobj;
27247 fail:
27248 return NULL;
27249 }
27250
27251
27252 static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
27253 PyObject *resultobj;
27254 wxWindow *arg1 = (wxWindow *) 0 ;
27255 long result;
27256 PyObject * obj0 = 0 ;
27257 char *kwnames[] = {
27258 (char *) "self", NULL
27259 };
27260
27261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27264 {
27265 PyThreadState* __tstate = wxPyBeginAllowThreads();
27266 result = (long)wxWindow_GetHandle(arg1);
27267
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_FromLong((long)result);
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj;
27280 wxWindow *arg1 = (wxWindow *) 0 ;
27281 int arg2 ;
27282 bool result;
27283 PyObject * obj0 = 0 ;
27284 PyObject * obj1 = 0 ;
27285 char *kwnames[] = {
27286 (char *) "self",(char *) "orient", NULL
27287 };
27288
27289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27292 arg2 = (int) SWIG_AsInt(obj1);
27293 if (PyErr_Occurred()) SWIG_fail;
27294 {
27295 PyThreadState* __tstate = wxPyBeginAllowThreads();
27296 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27297
27298 wxPyEndAllowThreads(__tstate);
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
27301 {
27302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27303 }
27304 return resultobj;
27305 fail:
27306 return NULL;
27307 }
27308
27309
27310 static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj;
27312 wxWindow *arg1 = (wxWindow *) 0 ;
27313 int arg2 ;
27314 int arg3 ;
27315 int arg4 ;
27316 int arg5 ;
27317 bool arg6 = (bool) True ;
27318 PyObject * obj0 = 0 ;
27319 PyObject * obj1 = 0 ;
27320 PyObject * obj2 = 0 ;
27321 PyObject * obj3 = 0 ;
27322 PyObject * obj4 = 0 ;
27323 PyObject * obj5 = 0 ;
27324 char *kwnames[] = {
27325 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
27326 };
27327
27328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27331 arg2 = (int) SWIG_AsInt(obj1);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 arg3 = (int) SWIG_AsInt(obj2);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 arg4 = (int) SWIG_AsInt(obj3);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 arg5 = (int) SWIG_AsInt(obj4);
27338 if (PyErr_Occurred()) SWIG_fail;
27339 if (obj5) {
27340 arg6 = (bool) SWIG_AsBool(obj5);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27346
27347 wxPyEndAllowThreads(__tstate);
27348 if (PyErr_Occurred()) SWIG_fail;
27349 }
27350 Py_INCREF(Py_None); resultobj = Py_None;
27351 return resultobj;
27352 fail:
27353 return NULL;
27354 }
27355
27356
27357 static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27358 PyObject *resultobj;
27359 wxWindow *arg1 = (wxWindow *) 0 ;
27360 int arg2 ;
27361 int arg3 ;
27362 bool arg4 = (bool) True ;
27363 PyObject * obj0 = 0 ;
27364 PyObject * obj1 = 0 ;
27365 PyObject * obj2 = 0 ;
27366 PyObject * obj3 = 0 ;
27367 char *kwnames[] = {
27368 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
27369 };
27370
27371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27374 arg2 = (int) SWIG_AsInt(obj1);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 arg3 = (int) SWIG_AsInt(obj2);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 if (obj3) {
27379 arg4 = (bool) SWIG_AsBool(obj3);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 {
27383 PyThreadState* __tstate = wxPyBeginAllowThreads();
27384 (arg1)->SetScrollPos(arg2,arg3,arg4);
27385
27386 wxPyEndAllowThreads(__tstate);
27387 if (PyErr_Occurred()) SWIG_fail;
27388 }
27389 Py_INCREF(Py_None); resultobj = Py_None;
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27397 PyObject *resultobj;
27398 wxWindow *arg1 = (wxWindow *) 0 ;
27399 int arg2 ;
27400 int result;
27401 PyObject * obj0 = 0 ;
27402 PyObject * obj1 = 0 ;
27403 char *kwnames[] = {
27404 (char *) "self",(char *) "orientation", NULL
27405 };
27406
27407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27410 arg2 = (int) SWIG_AsInt(obj1);
27411 if (PyErr_Occurred()) SWIG_fail;
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27415
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 resultobj = SWIG_FromInt((int)result);
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
27427 PyObject *resultobj;
27428 wxWindow *arg1 = (wxWindow *) 0 ;
27429 int arg2 ;
27430 int result;
27431 PyObject * obj0 = 0 ;
27432 PyObject * obj1 = 0 ;
27433 char *kwnames[] = {
27434 (char *) "self",(char *) "orientation", NULL
27435 };
27436
27437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27440 arg2 = (int) SWIG_AsInt(obj1);
27441 if (PyErr_Occurred()) SWIG_fail;
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 resultobj = SWIG_FromInt((int)result);
27450 return resultobj;
27451 fail:
27452 return NULL;
27453 }
27454
27455
27456 static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
27457 PyObject *resultobj;
27458 wxWindow *arg1 = (wxWindow *) 0 ;
27459 int arg2 ;
27460 int result;
27461 PyObject * obj0 = 0 ;
27462 PyObject * obj1 = 0 ;
27463 char *kwnames[] = {
27464 (char *) "self",(char *) "orientation", NULL
27465 };
27466
27467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27470 arg2 = (int) SWIG_AsInt(obj1);
27471 if (PyErr_Occurred()) SWIG_fail;
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
27474 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27475
27476 wxPyEndAllowThreads(__tstate);
27477 if (PyErr_Occurred()) SWIG_fail;
27478 }
27479 resultobj = SWIG_FromInt((int)result);
27480 return resultobj;
27481 fail:
27482 return NULL;
27483 }
27484
27485
27486 static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27487 PyObject *resultobj;
27488 wxWindow *arg1 = (wxWindow *) 0 ;
27489 int arg2 ;
27490 int arg3 ;
27491 wxRect *arg4 = (wxRect *) NULL ;
27492 PyObject * obj0 = 0 ;
27493 PyObject * obj1 = 0 ;
27494 PyObject * obj2 = 0 ;
27495 PyObject * obj3 = 0 ;
27496 char *kwnames[] = {
27497 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27498 };
27499
27500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27503 arg2 = (int) SWIG_AsInt(obj1);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 arg3 = (int) SWIG_AsInt(obj2);
27506 if (PyErr_Occurred()) SWIG_fail;
27507 if (obj3) {
27508 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27510 }
27511 {
27512 PyThreadState* __tstate = wxPyBeginAllowThreads();
27513 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27514
27515 wxPyEndAllowThreads(__tstate);
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 Py_INCREF(Py_None); resultobj = Py_None;
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
27526 PyObject *resultobj;
27527 wxWindow *arg1 = (wxWindow *) 0 ;
27528 int arg2 ;
27529 bool result;
27530 PyObject * obj0 = 0 ;
27531 PyObject * obj1 = 0 ;
27532 char *kwnames[] = {
27533 (char *) "self",(char *) "lines", NULL
27534 };
27535
27536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27539 arg2 = (int) SWIG_AsInt(obj1);
27540 if (PyErr_Occurred()) SWIG_fail;
27541 {
27542 PyThreadState* __tstate = wxPyBeginAllowThreads();
27543 result = (bool)(arg1)->ScrollLines(arg2);
27544
27545 wxPyEndAllowThreads(__tstate);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 {
27549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27550 }
27551 return resultobj;
27552 fail:
27553 return NULL;
27554 }
27555
27556
27557 static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
27558 PyObject *resultobj;
27559 wxWindow *arg1 = (wxWindow *) 0 ;
27560 int arg2 ;
27561 bool result;
27562 PyObject * obj0 = 0 ;
27563 PyObject * obj1 = 0 ;
27564 char *kwnames[] = {
27565 (char *) "self",(char *) "pages", NULL
27566 };
27567
27568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27571 arg2 = (int) SWIG_AsInt(obj1);
27572 if (PyErr_Occurred()) SWIG_fail;
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 result = (bool)(arg1)->ScrollPages(arg2);
27576
27577 wxPyEndAllowThreads(__tstate);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 {
27581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27582 }
27583 return resultobj;
27584 fail:
27585 return NULL;
27586 }
27587
27588
27589 static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27590 PyObject *resultobj;
27591 wxWindow *arg1 = (wxWindow *) 0 ;
27592 bool result;
27593 PyObject * obj0 = 0 ;
27594 char *kwnames[] = {
27595 (char *) "self", NULL
27596 };
27597
27598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27601 {
27602 PyThreadState* __tstate = wxPyBeginAllowThreads();
27603 result = (bool)(arg1)->LineUp();
27604
27605 wxPyEndAllowThreads(__tstate);
27606 if (PyErr_Occurred()) SWIG_fail;
27607 }
27608 {
27609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27610 }
27611 return resultobj;
27612 fail:
27613 return NULL;
27614 }
27615
27616
27617 static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27618 PyObject *resultobj;
27619 wxWindow *arg1 = (wxWindow *) 0 ;
27620 bool result;
27621 PyObject * obj0 = 0 ;
27622 char *kwnames[] = {
27623 (char *) "self", NULL
27624 };
27625
27626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 result = (bool)(arg1)->LineDown();
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 {
27637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27638 }
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27646 PyObject *resultobj;
27647 wxWindow *arg1 = (wxWindow *) 0 ;
27648 bool result;
27649 PyObject * obj0 = 0 ;
27650 char *kwnames[] = {
27651 (char *) "self", NULL
27652 };
27653
27654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27657 {
27658 PyThreadState* __tstate = wxPyBeginAllowThreads();
27659 result = (bool)(arg1)->PageUp();
27660
27661 wxPyEndAllowThreads(__tstate);
27662 if (PyErr_Occurred()) SWIG_fail;
27663 }
27664 {
27665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27666 }
27667 return resultobj;
27668 fail:
27669 return NULL;
27670 }
27671
27672
27673 static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27674 PyObject *resultobj;
27675 wxWindow *arg1 = (wxWindow *) 0 ;
27676 bool result;
27677 PyObject * obj0 = 0 ;
27678 char *kwnames[] = {
27679 (char *) "self", NULL
27680 };
27681
27682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27685 {
27686 PyThreadState* __tstate = wxPyBeginAllowThreads();
27687 result = (bool)(arg1)->PageDown();
27688
27689 wxPyEndAllowThreads(__tstate);
27690 if (PyErr_Occurred()) SWIG_fail;
27691 }
27692 {
27693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27694 }
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxWindow *arg1 = (wxWindow *) 0 ;
27704 wxString *arg2 = 0 ;
27705 bool temp2 = False ;
27706 PyObject * obj0 = 0 ;
27707 PyObject * obj1 = 0 ;
27708 char *kwnames[] = {
27709 (char *) "self",(char *) "text", NULL
27710 };
27711
27712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27715 {
27716 arg2 = wxString_in_helper(obj1);
27717 if (arg2 == NULL) SWIG_fail;
27718 temp2 = True;
27719 }
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 (arg1)->SetHelpText((wxString const &)*arg2);
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 Py_INCREF(Py_None); resultobj = Py_None;
27728 {
27729 if (temp2)
27730 delete arg2;
27731 }
27732 return resultobj;
27733 fail:
27734 {
27735 if (temp2)
27736 delete arg2;
27737 }
27738 return NULL;
27739 }
27740
27741
27742 static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
27743 PyObject *resultobj;
27744 wxWindow *arg1 = (wxWindow *) 0 ;
27745 wxString *arg2 = 0 ;
27746 bool temp2 = False ;
27747 PyObject * obj0 = 0 ;
27748 PyObject * obj1 = 0 ;
27749 char *kwnames[] = {
27750 (char *) "self",(char *) "text", NULL
27751 };
27752
27753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
27754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27756 {
27757 arg2 = wxString_in_helper(obj1);
27758 if (arg2 == NULL) SWIG_fail;
27759 temp2 = True;
27760 }
27761 {
27762 PyThreadState* __tstate = wxPyBeginAllowThreads();
27763 (arg1)->SetHelpTextForId((wxString const &)*arg2);
27764
27765 wxPyEndAllowThreads(__tstate);
27766 if (PyErr_Occurred()) SWIG_fail;
27767 }
27768 Py_INCREF(Py_None); resultobj = Py_None;
27769 {
27770 if (temp2)
27771 delete arg2;
27772 }
27773 return resultobj;
27774 fail:
27775 {
27776 if (temp2)
27777 delete arg2;
27778 }
27779 return NULL;
27780 }
27781
27782
27783 static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27784 PyObject *resultobj;
27785 wxWindow *arg1 = (wxWindow *) 0 ;
27786 wxString result;
27787 PyObject * obj0 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "self", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27795 {
27796 PyThreadState* __tstate = wxPyBeginAllowThreads();
27797 result = ((wxWindow const *)arg1)->GetHelpText();
27798
27799 wxPyEndAllowThreads(__tstate);
27800 if (PyErr_Occurred()) SWIG_fail;
27801 }
27802 {
27803 #if wxUSE_UNICODE
27804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27805 #else
27806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27807 #endif
27808 }
27809 return resultobj;
27810 fail:
27811 return NULL;
27812 }
27813
27814
27815 static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
27816 PyObject *resultobj;
27817 wxWindow *arg1 = (wxWindow *) 0 ;
27818 wxString *arg2 = 0 ;
27819 bool temp2 = False ;
27820 PyObject * obj0 = 0 ;
27821 PyObject * obj1 = 0 ;
27822 char *kwnames[] = {
27823 (char *) "self",(char *) "tip", NULL
27824 };
27825
27826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
27827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27829 {
27830 arg2 = wxString_in_helper(obj1);
27831 if (arg2 == NULL) SWIG_fail;
27832 temp2 = True;
27833 }
27834 {
27835 PyThreadState* __tstate = wxPyBeginAllowThreads();
27836 (arg1)->SetToolTip((wxString const &)*arg2);
27837
27838 wxPyEndAllowThreads(__tstate);
27839 if (PyErr_Occurred()) SWIG_fail;
27840 }
27841 Py_INCREF(Py_None); resultobj = Py_None;
27842 {
27843 if (temp2)
27844 delete arg2;
27845 }
27846 return resultobj;
27847 fail:
27848 {
27849 if (temp2)
27850 delete arg2;
27851 }
27852 return NULL;
27853 }
27854
27855
27856 static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27857 PyObject *resultobj;
27858 wxWindow *arg1 = (wxWindow *) 0 ;
27859 wxToolTip *arg2 = (wxToolTip *) 0 ;
27860 PyObject * obj0 = 0 ;
27861 PyObject * obj1 = 0 ;
27862 char *kwnames[] = {
27863 (char *) "self",(char *) "tip", NULL
27864 };
27865
27866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
27867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
27870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27871 {
27872 PyThreadState* __tstate = wxPyBeginAllowThreads();
27873 (arg1)->SetToolTip(arg2);
27874
27875 wxPyEndAllowThreads(__tstate);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
27878 Py_INCREF(Py_None); resultobj = Py_None;
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27886 PyObject *resultobj;
27887 wxWindow *arg1 = (wxWindow *) 0 ;
27888 wxToolTip *result;
27889 PyObject * obj0 = 0 ;
27890 char *kwnames[] = {
27891 (char *) "self", NULL
27892 };
27893
27894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
27895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27897 {
27898 PyThreadState* __tstate = wxPyBeginAllowThreads();
27899 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
27900
27901 wxPyEndAllowThreads(__tstate);
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 {
27905 resultobj = wxPyMake_wxObject(result, 0);
27906 }
27907 return resultobj;
27908 fail:
27909 return NULL;
27910 }
27911
27912
27913 static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27914 PyObject *resultobj;
27915 wxWindow *arg1 = (wxWindow *) 0 ;
27916 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
27917 PyObject * obj0 = 0 ;
27918 PyObject * obj1 = 0 ;
27919 char *kwnames[] = {
27920 (char *) "self",(char *) "dropTarget", NULL
27921 };
27922
27923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
27924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
27927 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27928 {
27929 PyThreadState* __tstate = wxPyBeginAllowThreads();
27930 (arg1)->SetDropTarget(arg2);
27931
27932 wxPyEndAllowThreads(__tstate);
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
27935 Py_INCREF(Py_None); resultobj = Py_None;
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27943 PyObject *resultobj;
27944 wxWindow *arg1 = (wxWindow *) 0 ;
27945 wxPyDropTarget *result;
27946 PyObject * obj0 = 0 ;
27947 char *kwnames[] = {
27948 (char *) "self", NULL
27949 };
27950
27951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
27952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27954 {
27955 PyThreadState* __tstate = wxPyBeginAllowThreads();
27956 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
27957
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27969 PyObject *resultobj;
27970 wxWindow *arg1 = (wxWindow *) 0 ;
27971 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
27972 PyObject * obj0 = 0 ;
27973 PyObject * obj1 = 0 ;
27974 char *kwnames[] = {
27975 (char *) "self",(char *) "constraints", NULL
27976 };
27977
27978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
27979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27983 {
27984 PyThreadState* __tstate = wxPyBeginAllowThreads();
27985 (arg1)->SetConstraints(arg2);
27986
27987 wxPyEndAllowThreads(__tstate);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 }
27990 Py_INCREF(Py_None); resultobj = Py_None;
27991 return resultobj;
27992 fail:
27993 return NULL;
27994 }
27995
27996
27997 static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27998 PyObject *resultobj;
27999 wxWindow *arg1 = (wxWindow *) 0 ;
28000 wxLayoutConstraints *result;
28001 PyObject * obj0 = 0 ;
28002 char *kwnames[] = {
28003 (char *) "self", NULL
28004 };
28005
28006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
28007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28009 {
28010 PyThreadState* __tstate = wxPyBeginAllowThreads();
28011 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
28012
28013 wxPyEndAllowThreads(__tstate);
28014 if (PyErr_Occurred()) SWIG_fail;
28015 }
28016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
28017 return resultobj;
28018 fail:
28019 return NULL;
28020 }
28021
28022
28023 static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
28024 PyObject *resultobj;
28025 wxWindow *arg1 = (wxWindow *) 0 ;
28026 bool arg2 ;
28027 PyObject * obj0 = 0 ;
28028 PyObject * obj1 = 0 ;
28029 char *kwnames[] = {
28030 (char *) "self",(char *) "autoLayout", NULL
28031 };
28032
28033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
28034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28036 arg2 = (bool) SWIG_AsBool(obj1);
28037 if (PyErr_Occurred()) SWIG_fail;
28038 {
28039 PyThreadState* __tstate = wxPyBeginAllowThreads();
28040 (arg1)->SetAutoLayout(arg2);
28041
28042 wxPyEndAllowThreads(__tstate);
28043 if (PyErr_Occurred()) SWIG_fail;
28044 }
28045 Py_INCREF(Py_None); resultobj = Py_None;
28046 return resultobj;
28047 fail:
28048 return NULL;
28049 }
28050
28051
28052 static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
28053 PyObject *resultobj;
28054 wxWindow *arg1 = (wxWindow *) 0 ;
28055 bool result;
28056 PyObject * obj0 = 0 ;
28057 char *kwnames[] = {
28058 (char *) "self", NULL
28059 };
28060
28061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
28062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28064 {
28065 PyThreadState* __tstate = wxPyBeginAllowThreads();
28066 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
28067
28068 wxPyEndAllowThreads(__tstate);
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 {
28072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28073 }
28074 return resultobj;
28075 fail:
28076 return NULL;
28077 }
28078
28079
28080 static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
28081 PyObject *resultobj;
28082 wxWindow *arg1 = (wxWindow *) 0 ;
28083 bool result;
28084 PyObject * obj0 = 0 ;
28085 char *kwnames[] = {
28086 (char *) "self", NULL
28087 };
28088
28089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
28090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28092 {
28093 PyThreadState* __tstate = wxPyBeginAllowThreads();
28094 result = (bool)(arg1)->Layout();
28095
28096 wxPyEndAllowThreads(__tstate);
28097 if (PyErr_Occurred()) SWIG_fail;
28098 }
28099 {
28100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28101 }
28102 return resultobj;
28103 fail:
28104 return NULL;
28105 }
28106
28107
28108 static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28109 PyObject *resultobj;
28110 wxWindow *arg1 = (wxWindow *) 0 ;
28111 wxSizer *arg2 = (wxSizer *) 0 ;
28112 bool arg3 = (bool) True ;
28113 PyObject * obj0 = 0 ;
28114 PyObject * obj1 = 0 ;
28115 PyObject * obj2 = 0 ;
28116 char *kwnames[] = {
28117 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28118 };
28119
28120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
28121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28125 if (obj2) {
28126 arg3 = (bool) SWIG_AsBool(obj2);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 {
28130 PyThreadState* __tstate = wxPyBeginAllowThreads();
28131 (arg1)->SetSizer(arg2,arg3);
28132
28133 wxPyEndAllowThreads(__tstate);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 Py_INCREF(Py_None); resultobj = Py_None;
28137 return resultobj;
28138 fail:
28139 return NULL;
28140 }
28141
28142
28143 static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
28144 PyObject *resultobj;
28145 wxWindow *arg1 = (wxWindow *) 0 ;
28146 wxSizer *arg2 = (wxSizer *) 0 ;
28147 bool arg3 = (bool) True ;
28148 PyObject * obj0 = 0 ;
28149 PyObject * obj1 = 0 ;
28150 PyObject * obj2 = 0 ;
28151 char *kwnames[] = {
28152 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28153 };
28154
28155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28160 if (obj2) {
28161 arg3 = (bool) SWIG_AsBool(obj2);
28162 if (PyErr_Occurred()) SWIG_fail;
28163 }
28164 {
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
28166 (arg1)->SetSizerAndFit(arg2,arg3);
28167
28168 wxPyEndAllowThreads(__tstate);
28169 if (PyErr_Occurred()) SWIG_fail;
28170 }
28171 Py_INCREF(Py_None); resultobj = Py_None;
28172 return resultobj;
28173 fail:
28174 return NULL;
28175 }
28176
28177
28178 static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28179 PyObject *resultobj;
28180 wxWindow *arg1 = (wxWindow *) 0 ;
28181 wxSizer *result;
28182 PyObject * obj0 = 0 ;
28183 char *kwnames[] = {
28184 (char *) "self", NULL
28185 };
28186
28187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28190 {
28191 PyThreadState* __tstate = wxPyBeginAllowThreads();
28192 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28193
28194 wxPyEndAllowThreads(__tstate);
28195 if (PyErr_Occurred()) SWIG_fail;
28196 }
28197 {
28198 resultobj = wxPyMake_wxSizer(result, 0);
28199 }
28200 return resultobj;
28201 fail:
28202 return NULL;
28203 }
28204
28205
28206 static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28207 PyObject *resultobj;
28208 wxWindow *arg1 = (wxWindow *) 0 ;
28209 wxSizer *arg2 = (wxSizer *) 0 ;
28210 PyObject * obj0 = 0 ;
28211 PyObject * obj1 = 0 ;
28212 char *kwnames[] = {
28213 (char *) "self",(char *) "sizer", NULL
28214 };
28215
28216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28221 {
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 (arg1)->SetContainingSizer(arg2);
28224
28225 wxPyEndAllowThreads(__tstate);
28226 if (PyErr_Occurred()) SWIG_fail;
28227 }
28228 Py_INCREF(Py_None); resultobj = Py_None;
28229 return resultobj;
28230 fail:
28231 return NULL;
28232 }
28233
28234
28235 static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28236 PyObject *resultobj;
28237 wxWindow *arg1 = (wxWindow *) 0 ;
28238 wxSizer *result;
28239 PyObject * obj0 = 0 ;
28240 char *kwnames[] = {
28241 (char *) "self", NULL
28242 };
28243
28244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28247 {
28248 PyThreadState* __tstate = wxPyBeginAllowThreads();
28249 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28250
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 {
28255 resultobj = wxPyMake_wxSizer(result, 0);
28256 }
28257 return resultobj;
28258 fail:
28259 return NULL;
28260 }
28261
28262
28263 static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj;
28265 wxWindow *arg1 = (wxWindow *) 0 ;
28266 PyObject * obj0 = 0 ;
28267 char *kwnames[] = {
28268 (char *) "self", NULL
28269 };
28270
28271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28274 {
28275 PyThreadState* __tstate = wxPyBeginAllowThreads();
28276 (arg1)->InheritAttributes();
28277
28278 wxPyEndAllowThreads(__tstate);
28279 if (PyErr_Occurred()) SWIG_fail;
28280 }
28281 Py_INCREF(Py_None); resultobj = Py_None;
28282 return resultobj;
28283 fail:
28284 return NULL;
28285 }
28286
28287
28288 static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
28289 PyObject *resultobj;
28290 wxWindow *arg1 = (wxWindow *) 0 ;
28291 bool result;
28292 PyObject * obj0 = 0 ;
28293 char *kwnames[] = {
28294 (char *) "self", NULL
28295 };
28296
28297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28300 {
28301 PyThreadState* __tstate = wxPyBeginAllowThreads();
28302 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28303
28304 wxPyEndAllowThreads(__tstate);
28305 if (PyErr_Occurred()) SWIG_fail;
28306 }
28307 {
28308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28309 }
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
28317 PyObject *obj;
28318 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28319 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28320 Py_INCREF(obj);
28321 return Py_BuildValue((char *)"");
28322 }
28323 static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
28324 PyObject *resultobj;
28325 long arg1 ;
28326 wxWindow *arg2 = (wxWindow *) NULL ;
28327 wxWindow *result;
28328 PyObject * obj0 = 0 ;
28329 PyObject * obj1 = 0 ;
28330 char *kwnames[] = {
28331 (char *) "id",(char *) "parent", NULL
28332 };
28333
28334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28335 arg1 = (long) SWIG_AsLong(obj0);
28336 if (PyErr_Occurred()) SWIG_fail;
28337 if (obj1) {
28338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28340 }
28341 {
28342 if (!wxPyCheckForApp()) SWIG_fail;
28343 PyThreadState* __tstate = wxPyBeginAllowThreads();
28344 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28345
28346 wxPyEndAllowThreads(__tstate);
28347 if (PyErr_Occurred()) SWIG_fail;
28348 }
28349 {
28350 resultobj = wxPyMake_wxObject(result, 0);
28351 }
28352 return resultobj;
28353 fail:
28354 return NULL;
28355 }
28356
28357
28358 static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj;
28360 wxString *arg1 = 0 ;
28361 wxWindow *arg2 = (wxWindow *) NULL ;
28362 wxWindow *result;
28363 bool temp1 = False ;
28364 PyObject * obj0 = 0 ;
28365 PyObject * obj1 = 0 ;
28366 char *kwnames[] = {
28367 (char *) "name",(char *) "parent", NULL
28368 };
28369
28370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28371 {
28372 arg1 = wxString_in_helper(obj0);
28373 if (arg1 == NULL) SWIG_fail;
28374 temp1 = True;
28375 }
28376 if (obj1) {
28377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28379 }
28380 {
28381 if (!wxPyCheckForApp()) SWIG_fail;
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
28384
28385 wxPyEndAllowThreads(__tstate);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 {
28389 resultobj = wxPyMake_wxObject(result, 0);
28390 }
28391 {
28392 if (temp1)
28393 delete arg1;
28394 }
28395 return resultobj;
28396 fail:
28397 {
28398 if (temp1)
28399 delete arg1;
28400 }
28401 return NULL;
28402 }
28403
28404
28405 static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj;
28407 wxString *arg1 = 0 ;
28408 wxWindow *arg2 = (wxWindow *) NULL ;
28409 wxWindow *result;
28410 bool temp1 = False ;
28411 PyObject * obj0 = 0 ;
28412 PyObject * obj1 = 0 ;
28413 char *kwnames[] = {
28414 (char *) "label",(char *) "parent", NULL
28415 };
28416
28417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28418 {
28419 arg1 = wxString_in_helper(obj0);
28420 if (arg1 == NULL) SWIG_fail;
28421 temp1 = True;
28422 }
28423 if (obj1) {
28424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28426 }
28427 {
28428 if (!wxPyCheckForApp()) SWIG_fail;
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28431
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 {
28436 resultobj = wxPyMake_wxObject(result, 0);
28437 }
28438 {
28439 if (temp1)
28440 delete arg1;
28441 }
28442 return resultobj;
28443 fail:
28444 {
28445 if (temp1)
28446 delete arg1;
28447 }
28448 return NULL;
28449 }
28450
28451
28452 static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
28453 PyObject *resultobj;
28454 wxWindow *arg1 = (wxWindow *) 0 ;
28455 unsigned long arg2 ;
28456 wxWindow *result;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 char *kwnames[] = {
28460 (char *) "parent",(char *) "_hWnd", NULL
28461 };
28462
28463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28466 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28471
28472 wxPyEndAllowThreads(__tstate);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 {
28476 resultobj = wxPyMake_wxObject(result, 0);
28477 }
28478 return resultobj;
28479 fail:
28480 return NULL;
28481 }
28482
28483
28484 static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
28485 PyObject *resultobj;
28486 wxValidator *result;
28487 char *kwnames[] = {
28488 NULL
28489 };
28490
28491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28492 {
28493 PyThreadState* __tstate = wxPyBeginAllowThreads();
28494 result = (wxValidator *)new wxValidator();
28495
28496 wxPyEndAllowThreads(__tstate);
28497 if (PyErr_Occurred()) SWIG_fail;
28498 }
28499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1);
28500 return resultobj;
28501 fail:
28502 return NULL;
28503 }
28504
28505
28506 static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
28507 PyObject *resultobj;
28508 wxValidator *arg1 = (wxValidator *) 0 ;
28509 wxValidator *result;
28510 PyObject * obj0 = 0 ;
28511 char *kwnames[] = {
28512 (char *) "self", NULL
28513 };
28514
28515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28518 {
28519 PyThreadState* __tstate = wxPyBeginAllowThreads();
28520 result = (wxValidator *)(arg1)->Clone();
28521
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 {
28526 resultobj = wxPyMake_wxObject(result, 0);
28527 }
28528 return resultobj;
28529 fail:
28530 return NULL;
28531 }
28532
28533
28534 static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28535 PyObject *resultobj;
28536 wxValidator *arg1 = (wxValidator *) 0 ;
28537 wxWindow *arg2 = (wxWindow *) 0 ;
28538 bool result;
28539 PyObject * obj0 = 0 ;
28540 PyObject * obj1 = 0 ;
28541 char *kwnames[] = {
28542 (char *) "self",(char *) "parent", NULL
28543 };
28544
28545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28550 {
28551 PyThreadState* __tstate = wxPyBeginAllowThreads();
28552 result = (bool)(arg1)->Validate(arg2);
28553
28554 wxPyEndAllowThreads(__tstate);
28555 if (PyErr_Occurred()) SWIG_fail;
28556 }
28557 {
28558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28559 }
28560 return resultobj;
28561 fail:
28562 return NULL;
28563 }
28564
28565
28566 static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28567 PyObject *resultobj;
28568 wxValidator *arg1 = (wxValidator *) 0 ;
28569 bool result;
28570 PyObject * obj0 = 0 ;
28571 char *kwnames[] = {
28572 (char *) "self", NULL
28573 };
28574
28575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28578 {
28579 PyThreadState* __tstate = wxPyBeginAllowThreads();
28580 result = (bool)(arg1)->TransferToWindow();
28581
28582 wxPyEndAllowThreads(__tstate);
28583 if (PyErr_Occurred()) SWIG_fail;
28584 }
28585 {
28586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28587 }
28588 return resultobj;
28589 fail:
28590 return NULL;
28591 }
28592
28593
28594 static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj;
28596 wxValidator *arg1 = (wxValidator *) 0 ;
28597 bool result;
28598 PyObject * obj0 = 0 ;
28599 char *kwnames[] = {
28600 (char *) "self", NULL
28601 };
28602
28603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 result = (bool)(arg1)->TransferFromWindow();
28609
28610 wxPyEndAllowThreads(__tstate);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 {
28614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28615 }
28616 return resultobj;
28617 fail:
28618 return NULL;
28619 }
28620
28621
28622 static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28623 PyObject *resultobj;
28624 wxValidator *arg1 = (wxValidator *) 0 ;
28625 wxWindow *result;
28626 PyObject * obj0 = 0 ;
28627 char *kwnames[] = {
28628 (char *) "self", NULL
28629 };
28630
28631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28634 {
28635 PyThreadState* __tstate = wxPyBeginAllowThreads();
28636 result = (wxWindow *)(arg1)->GetWindow();
28637
28638 wxPyEndAllowThreads(__tstate);
28639 if (PyErr_Occurred()) SWIG_fail;
28640 }
28641 {
28642 resultobj = wxPyMake_wxObject(result, 0);
28643 }
28644 return resultobj;
28645 fail:
28646 return NULL;
28647 }
28648
28649
28650 static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28651 PyObject *resultobj;
28652 wxValidator *arg1 = (wxValidator *) 0 ;
28653 wxWindow *arg2 = (wxWindow *) 0 ;
28654 PyObject * obj0 = 0 ;
28655 PyObject * obj1 = 0 ;
28656 char *kwnames[] = {
28657 (char *) "self",(char *) "window", NULL
28658 };
28659
28660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28665 {
28666 PyThreadState* __tstate = wxPyBeginAllowThreads();
28667 (arg1)->SetWindow(arg2);
28668
28669 wxPyEndAllowThreads(__tstate);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 }
28672 Py_INCREF(Py_None); resultobj = Py_None;
28673 return resultobj;
28674 fail:
28675 return NULL;
28676 }
28677
28678
28679 static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
28680 PyObject *resultobj;
28681 bool result;
28682 char *kwnames[] = {
28683 NULL
28684 };
28685
28686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 result = (bool)wxValidator::IsSilent();
28690
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 {
28695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28696 }
28697 return resultobj;
28698 fail:
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 int arg1 = (int) True ;
28706 PyObject * obj0 = 0 ;
28707 char *kwnames[] = {
28708 (char *) "doIt", NULL
28709 };
28710
28711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
28712 if (obj0) {
28713 arg1 = (int) SWIG_AsInt(obj0);
28714 if (PyErr_Occurred()) SWIG_fail;
28715 }
28716 {
28717 PyThreadState* __tstate = wxPyBeginAllowThreads();
28718 wxValidator::SetBellOnError(arg1);
28719
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 Py_INCREF(Py_None); resultobj = Py_None;
28724 return resultobj;
28725 fail:
28726 return NULL;
28727 }
28728
28729
28730 static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
28731 PyObject *obj;
28732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28733 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
28734 Py_INCREF(obj);
28735 return Py_BuildValue((char *)"");
28736 }
28737 static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
28738 PyObject *resultobj;
28739 wxPyValidator *result;
28740 char *kwnames[] = {
28741 NULL
28742 };
28743
28744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
28745 {
28746 PyThreadState* __tstate = wxPyBeginAllowThreads();
28747 result = (wxPyValidator *)new wxPyValidator();
28748
28749 wxPyEndAllowThreads(__tstate);
28750 if (PyErr_Occurred()) SWIG_fail;
28751 }
28752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
28753 return resultobj;
28754 fail:
28755 return NULL;
28756 }
28757
28758
28759 static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28760 PyObject *resultobj;
28761 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
28762 PyObject *arg2 = (PyObject *) 0 ;
28763 PyObject *arg3 = (PyObject *) 0 ;
28764 int arg4 = (int) True ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 PyObject * obj2 = 0 ;
28768 PyObject * obj3 = 0 ;
28769 char *kwnames[] = {
28770 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
28771 };
28772
28773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
28775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28776 arg2 = obj1;
28777 arg3 = obj2;
28778 if (obj3) {
28779 arg4 = (int) SWIG_AsInt(obj3);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
28785
28786 wxPyEndAllowThreads(__tstate);
28787 if (PyErr_Occurred()) SWIG_fail;
28788 }
28789 Py_INCREF(Py_None); resultobj = Py_None;
28790 return resultobj;
28791 fail:
28792 return NULL;
28793 }
28794
28795
28796 static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
28797 PyObject *obj;
28798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28799 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
28800 Py_INCREF(obj);
28801 return Py_BuildValue((char *)"");
28802 }
28803 static int _wrap_DefaultValidator_set(PyObject *_val) {
28804 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
28805 return 1;
28806 }
28807
28808
28809 static PyObject *_wrap_DefaultValidator_get() {
28810 PyObject *pyobj;
28811
28812 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
28813 return pyobj;
28814 }
28815
28816
28817 static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
28818 PyObject *resultobj;
28819 wxString const &arg1_defvalue = wxPyEmptyString ;
28820 wxString *arg1 = (wxString *) &arg1_defvalue ;
28821 long arg2 = (long) 0 ;
28822 wxMenu *result;
28823 bool temp1 = False ;
28824 PyObject * obj0 = 0 ;
28825 PyObject * obj1 = 0 ;
28826 char *kwnames[] = {
28827 (char *) "title",(char *) "style", NULL
28828 };
28829
28830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
28831 if (obj0) {
28832 {
28833 arg1 = wxString_in_helper(obj0);
28834 if (arg1 == NULL) SWIG_fail;
28835 temp1 = True;
28836 }
28837 }
28838 if (obj1) {
28839 arg2 = (long) SWIG_AsLong(obj1);
28840 if (PyErr_Occurred()) SWIG_fail;
28841 }
28842 {
28843 if (!wxPyCheckForApp()) SWIG_fail;
28844 PyThreadState* __tstate = wxPyBeginAllowThreads();
28845 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
28846
28847 wxPyEndAllowThreads(__tstate);
28848 if (PyErr_Occurred()) SWIG_fail;
28849 }
28850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1);
28851 {
28852 if (temp1)
28853 delete arg1;
28854 }
28855 return resultobj;
28856 fail:
28857 {
28858 if (temp1)
28859 delete arg1;
28860 }
28861 return NULL;
28862 }
28863
28864
28865 static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
28866 PyObject *resultobj;
28867 wxMenu *arg1 = (wxMenu *) 0 ;
28868 int arg2 ;
28869 wxString *arg3 = 0 ;
28870 wxString const &arg4_defvalue = wxPyEmptyString ;
28871 wxString *arg4 = (wxString *) &arg4_defvalue ;
28872 int arg5 = (int) wxITEM_NORMAL ;
28873 wxMenuItem *result;
28874 bool temp3 = False ;
28875 bool temp4 = False ;
28876 PyObject * obj0 = 0 ;
28877 PyObject * obj1 = 0 ;
28878 PyObject * obj2 = 0 ;
28879 PyObject * obj3 = 0 ;
28880 PyObject * obj4 = 0 ;
28881 char *kwnames[] = {
28882 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28883 };
28884
28885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28888 arg2 = (int) SWIG_AsInt(obj1);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 {
28891 arg3 = wxString_in_helper(obj2);
28892 if (arg3 == NULL) SWIG_fail;
28893 temp3 = True;
28894 }
28895 if (obj3) {
28896 {
28897 arg4 = wxString_in_helper(obj3);
28898 if (arg4 == NULL) SWIG_fail;
28899 temp4 = True;
28900 }
28901 }
28902 if (obj4) {
28903 arg5 = (wxItemKind) SWIG_AsInt(obj4);
28904 if (PyErr_Occurred()) SWIG_fail;
28905 }
28906 {
28907 PyThreadState* __tstate = wxPyBeginAllowThreads();
28908 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
28909
28910 wxPyEndAllowThreads(__tstate);
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 {
28914 resultobj = wxPyMake_wxObject(result, 0);
28915 }
28916 {
28917 if (temp3)
28918 delete arg3;
28919 }
28920 {
28921 if (temp4)
28922 delete arg4;
28923 }
28924 return resultobj;
28925 fail:
28926 {
28927 if (temp3)
28928 delete arg3;
28929 }
28930 {
28931 if (temp4)
28932 delete arg4;
28933 }
28934 return NULL;
28935 }
28936
28937
28938 static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
28939 PyObject *resultobj;
28940 wxMenu *arg1 = (wxMenu *) 0 ;
28941 wxMenuItem *result;
28942 PyObject * obj0 = 0 ;
28943 char *kwnames[] = {
28944 (char *) "self", NULL
28945 };
28946
28947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
28948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28950 {
28951 PyThreadState* __tstate = wxPyBeginAllowThreads();
28952 result = (wxMenuItem *)(arg1)->AppendSeparator();
28953
28954 wxPyEndAllowThreads(__tstate);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 {
28958 resultobj = wxPyMake_wxObject(result, 0);
28959 }
28960 return resultobj;
28961 fail:
28962 return NULL;
28963 }
28964
28965
28966 static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28967 PyObject *resultobj;
28968 wxMenu *arg1 = (wxMenu *) 0 ;
28969 int arg2 ;
28970 wxString *arg3 = 0 ;
28971 wxString const &arg4_defvalue = wxPyEmptyString ;
28972 wxString *arg4 = (wxString *) &arg4_defvalue ;
28973 wxMenuItem *result;
28974 bool temp3 = False ;
28975 bool temp4 = False ;
28976 PyObject * obj0 = 0 ;
28977 PyObject * obj1 = 0 ;
28978 PyObject * obj2 = 0 ;
28979 PyObject * obj3 = 0 ;
28980 char *kwnames[] = {
28981 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28982 };
28983
28984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28987 arg2 = (int) SWIG_AsInt(obj1);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 {
28990 arg3 = wxString_in_helper(obj2);
28991 if (arg3 == NULL) SWIG_fail;
28992 temp3 = True;
28993 }
28994 if (obj3) {
28995 {
28996 arg4 = wxString_in_helper(obj3);
28997 if (arg4 == NULL) SWIG_fail;
28998 temp4 = True;
28999 }
29000 }
29001 {
29002 PyThreadState* __tstate = wxPyBeginAllowThreads();
29003 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29004
29005 wxPyEndAllowThreads(__tstate);
29006 if (PyErr_Occurred()) SWIG_fail;
29007 }
29008 {
29009 resultobj = wxPyMake_wxObject(result, 0);
29010 }
29011 {
29012 if (temp3)
29013 delete arg3;
29014 }
29015 {
29016 if (temp4)
29017 delete arg4;
29018 }
29019 return resultobj;
29020 fail:
29021 {
29022 if (temp3)
29023 delete arg3;
29024 }
29025 {
29026 if (temp4)
29027 delete arg4;
29028 }
29029 return NULL;
29030 }
29031
29032
29033 static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29034 PyObject *resultobj;
29035 wxMenu *arg1 = (wxMenu *) 0 ;
29036 int arg2 ;
29037 wxString *arg3 = 0 ;
29038 wxString const &arg4_defvalue = wxPyEmptyString ;
29039 wxString *arg4 = (wxString *) &arg4_defvalue ;
29040 wxMenuItem *result;
29041 bool temp3 = False ;
29042 bool temp4 = False ;
29043 PyObject * obj0 = 0 ;
29044 PyObject * obj1 = 0 ;
29045 PyObject * obj2 = 0 ;
29046 PyObject * obj3 = 0 ;
29047 char *kwnames[] = {
29048 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29049 };
29050
29051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29054 arg2 = (int) SWIG_AsInt(obj1);
29055 if (PyErr_Occurred()) SWIG_fail;
29056 {
29057 arg3 = wxString_in_helper(obj2);
29058 if (arg3 == NULL) SWIG_fail;
29059 temp3 = True;
29060 }
29061 if (obj3) {
29062 {
29063 arg4 = wxString_in_helper(obj3);
29064 if (arg4 == NULL) SWIG_fail;
29065 temp4 = True;
29066 }
29067 }
29068 {
29069 PyThreadState* __tstate = wxPyBeginAllowThreads();
29070 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29071
29072 wxPyEndAllowThreads(__tstate);
29073 if (PyErr_Occurred()) SWIG_fail;
29074 }
29075 {
29076 resultobj = wxPyMake_wxObject(result, 0);
29077 }
29078 {
29079 if (temp3)
29080 delete arg3;
29081 }
29082 {
29083 if (temp4)
29084 delete arg4;
29085 }
29086 return resultobj;
29087 fail:
29088 {
29089 if (temp3)
29090 delete arg3;
29091 }
29092 {
29093 if (temp4)
29094 delete arg4;
29095 }
29096 return NULL;
29097 }
29098
29099
29100 static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29101 PyObject *resultobj;
29102 wxMenu *arg1 = (wxMenu *) 0 ;
29103 int arg2 ;
29104 wxString *arg3 = 0 ;
29105 wxMenu *arg4 = (wxMenu *) 0 ;
29106 wxString const &arg5_defvalue = wxPyEmptyString ;
29107 wxString *arg5 = (wxString *) &arg5_defvalue ;
29108 wxMenuItem *result;
29109 bool temp3 = False ;
29110 bool temp5 = False ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 PyObject * obj2 = 0 ;
29114 PyObject * obj3 = 0 ;
29115 PyObject * obj4 = 0 ;
29116 char *kwnames[] = {
29117 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29118 };
29119
29120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29123 arg2 = (int) SWIG_AsInt(obj1);
29124 if (PyErr_Occurred()) SWIG_fail;
29125 {
29126 arg3 = wxString_in_helper(obj2);
29127 if (arg3 == NULL) SWIG_fail;
29128 temp3 = True;
29129 }
29130 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29132 if (obj4) {
29133 {
29134 arg5 = wxString_in_helper(obj4);
29135 if (arg5 == NULL) SWIG_fail;
29136 temp5 = True;
29137 }
29138 }
29139 {
29140 PyThreadState* __tstate = wxPyBeginAllowThreads();
29141 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29142
29143 wxPyEndAllowThreads(__tstate);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 }
29146 {
29147 resultobj = wxPyMake_wxObject(result, 0);
29148 }
29149 {
29150 if (temp3)
29151 delete arg3;
29152 }
29153 {
29154 if (temp5)
29155 delete arg5;
29156 }
29157 return resultobj;
29158 fail:
29159 {
29160 if (temp3)
29161 delete arg3;
29162 }
29163 {
29164 if (temp5)
29165 delete arg5;
29166 }
29167 return NULL;
29168 }
29169
29170
29171 static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29172 PyObject *resultobj;
29173 wxMenu *arg1 = (wxMenu *) 0 ;
29174 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29175 wxMenuItem *result;
29176 PyObject * obj0 = 0 ;
29177 PyObject * obj1 = 0 ;
29178 char *kwnames[] = {
29179 (char *) "self",(char *) "item", NULL
29180 };
29181
29182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29187 {
29188 PyThreadState* __tstate = wxPyBeginAllowThreads();
29189 result = (wxMenuItem *)(arg1)->Append(arg2);
29190
29191 wxPyEndAllowThreads(__tstate);
29192 if (PyErr_Occurred()) SWIG_fail;
29193 }
29194 {
29195 resultobj = wxPyMake_wxObject(result, 0);
29196 }
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj;
29205 wxMenu *arg1 = (wxMenu *) 0 ;
29206 PyObject * obj0 = 0 ;
29207 char *kwnames[] = {
29208 (char *) "self", NULL
29209 };
29210
29211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29214 {
29215 PyThreadState* __tstate = wxPyBeginAllowThreads();
29216 (arg1)->Break();
29217
29218 wxPyEndAllowThreads(__tstate);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 Py_INCREF(Py_None); resultobj = Py_None;
29222 return resultobj;
29223 fail:
29224 return NULL;
29225 }
29226
29227
29228 static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29229 PyObject *resultobj;
29230 wxMenu *arg1 = (wxMenu *) 0 ;
29231 size_t arg2 ;
29232 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29233 wxMenuItem *result;
29234 PyObject * obj0 = 0 ;
29235 PyObject * obj1 = 0 ;
29236 PyObject * obj2 = 0 ;
29237 char *kwnames[] = {
29238 (char *) "self",(char *) "pos",(char *) "item", NULL
29239 };
29240
29241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29244 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29248 {
29249 PyThreadState* __tstate = wxPyBeginAllowThreads();
29250 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29251
29252 wxPyEndAllowThreads(__tstate);
29253 if (PyErr_Occurred()) SWIG_fail;
29254 }
29255 {
29256 resultobj = wxPyMake_wxObject(result, 0);
29257 }
29258 return resultobj;
29259 fail:
29260 return NULL;
29261 }
29262
29263
29264 static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29265 PyObject *resultobj;
29266 wxMenu *arg1 = (wxMenu *) 0 ;
29267 size_t arg2 ;
29268 int arg3 ;
29269 wxString *arg4 = 0 ;
29270 wxString const &arg5_defvalue = wxPyEmptyString ;
29271 wxString *arg5 = (wxString *) &arg5_defvalue ;
29272 int arg6 = (int) wxITEM_NORMAL ;
29273 wxMenuItem *result;
29274 bool temp4 = False ;
29275 bool temp5 = False ;
29276 PyObject * obj0 = 0 ;
29277 PyObject * obj1 = 0 ;
29278 PyObject * obj2 = 0 ;
29279 PyObject * obj3 = 0 ;
29280 PyObject * obj4 = 0 ;
29281 PyObject * obj5 = 0 ;
29282 char *kwnames[] = {
29283 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29284 };
29285
29286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29289 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29290 if (PyErr_Occurred()) SWIG_fail;
29291 arg3 = (int) SWIG_AsInt(obj2);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 {
29294 arg4 = wxString_in_helper(obj3);
29295 if (arg4 == NULL) SWIG_fail;
29296 temp4 = True;
29297 }
29298 if (obj4) {
29299 {
29300 arg5 = wxString_in_helper(obj4);
29301 if (arg5 == NULL) SWIG_fail;
29302 temp5 = True;
29303 }
29304 }
29305 if (obj5) {
29306 arg6 = (wxItemKind) SWIG_AsInt(obj5);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29312
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 {
29317 resultobj = wxPyMake_wxObject(result, 0);
29318 }
29319 {
29320 if (temp4)
29321 delete arg4;
29322 }
29323 {
29324 if (temp5)
29325 delete arg5;
29326 }
29327 return resultobj;
29328 fail:
29329 {
29330 if (temp4)
29331 delete arg4;
29332 }
29333 {
29334 if (temp5)
29335 delete arg5;
29336 }
29337 return NULL;
29338 }
29339
29340
29341 static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29342 PyObject *resultobj;
29343 wxMenu *arg1 = (wxMenu *) 0 ;
29344 size_t arg2 ;
29345 wxMenuItem *result;
29346 PyObject * obj0 = 0 ;
29347 PyObject * obj1 = 0 ;
29348 char *kwnames[] = {
29349 (char *) "self",(char *) "pos", NULL
29350 };
29351
29352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
29353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29355 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29356 if (PyErr_Occurred()) SWIG_fail;
29357 {
29358 PyThreadState* __tstate = wxPyBeginAllowThreads();
29359 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
29360
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 {
29365 resultobj = wxPyMake_wxObject(result, 0);
29366 }
29367 return resultobj;
29368 fail:
29369 return NULL;
29370 }
29371
29372
29373 static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29374 PyObject *resultobj;
29375 wxMenu *arg1 = (wxMenu *) 0 ;
29376 size_t arg2 ;
29377 int arg3 ;
29378 wxString *arg4 = 0 ;
29379 wxString const &arg5_defvalue = wxPyEmptyString ;
29380 wxString *arg5 = (wxString *) &arg5_defvalue ;
29381 wxMenuItem *result;
29382 bool temp4 = False ;
29383 bool temp5 = False ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 PyObject * obj2 = 0 ;
29387 PyObject * obj3 = 0 ;
29388 PyObject * obj4 = 0 ;
29389 char *kwnames[] = {
29390 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29391 };
29392
29393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29396 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 arg3 = (int) SWIG_AsInt(obj2);
29399 if (PyErr_Occurred()) SWIG_fail;
29400 {
29401 arg4 = wxString_in_helper(obj3);
29402 if (arg4 == NULL) SWIG_fail;
29403 temp4 = True;
29404 }
29405 if (obj4) {
29406 {
29407 arg5 = wxString_in_helper(obj4);
29408 if (arg5 == NULL) SWIG_fail;
29409 temp5 = True;
29410 }
29411 }
29412 {
29413 PyThreadState* __tstate = wxPyBeginAllowThreads();
29414 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29415
29416 wxPyEndAllowThreads(__tstate);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 {
29420 resultobj = wxPyMake_wxObject(result, 0);
29421 }
29422 {
29423 if (temp4)
29424 delete arg4;
29425 }
29426 {
29427 if (temp5)
29428 delete arg5;
29429 }
29430 return resultobj;
29431 fail:
29432 {
29433 if (temp4)
29434 delete arg4;
29435 }
29436 {
29437 if (temp5)
29438 delete arg5;
29439 }
29440 return NULL;
29441 }
29442
29443
29444 static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29445 PyObject *resultobj;
29446 wxMenu *arg1 = (wxMenu *) 0 ;
29447 size_t arg2 ;
29448 int arg3 ;
29449 wxString *arg4 = 0 ;
29450 wxString const &arg5_defvalue = wxPyEmptyString ;
29451 wxString *arg5 = (wxString *) &arg5_defvalue ;
29452 wxMenuItem *result;
29453 bool temp4 = False ;
29454 bool temp5 = False ;
29455 PyObject * obj0 = 0 ;
29456 PyObject * obj1 = 0 ;
29457 PyObject * obj2 = 0 ;
29458 PyObject * obj3 = 0 ;
29459 PyObject * obj4 = 0 ;
29460 char *kwnames[] = {
29461 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29462 };
29463
29464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29467 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29468 if (PyErr_Occurred()) SWIG_fail;
29469 arg3 = (int) SWIG_AsInt(obj2);
29470 if (PyErr_Occurred()) SWIG_fail;
29471 {
29472 arg4 = wxString_in_helper(obj3);
29473 if (arg4 == NULL) SWIG_fail;
29474 temp4 = True;
29475 }
29476 if (obj4) {
29477 {
29478 arg5 = wxString_in_helper(obj4);
29479 if (arg5 == NULL) SWIG_fail;
29480 temp5 = True;
29481 }
29482 }
29483 {
29484 PyThreadState* __tstate = wxPyBeginAllowThreads();
29485 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29486
29487 wxPyEndAllowThreads(__tstate);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 {
29491 resultobj = wxPyMake_wxObject(result, 0);
29492 }
29493 {
29494 if (temp4)
29495 delete arg4;
29496 }
29497 {
29498 if (temp5)
29499 delete arg5;
29500 }
29501 return resultobj;
29502 fail:
29503 {
29504 if (temp4)
29505 delete arg4;
29506 }
29507 {
29508 if (temp5)
29509 delete arg5;
29510 }
29511 return NULL;
29512 }
29513
29514
29515 static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29516 PyObject *resultobj;
29517 wxMenu *arg1 = (wxMenu *) 0 ;
29518 size_t arg2 ;
29519 int arg3 ;
29520 wxString *arg4 = 0 ;
29521 wxMenu *arg5 = (wxMenu *) 0 ;
29522 wxString const &arg6_defvalue = wxPyEmptyString ;
29523 wxString *arg6 = (wxString *) &arg6_defvalue ;
29524 wxMenuItem *result;
29525 bool temp4 = False ;
29526 bool temp6 = False ;
29527 PyObject * obj0 = 0 ;
29528 PyObject * obj1 = 0 ;
29529 PyObject * obj2 = 0 ;
29530 PyObject * obj3 = 0 ;
29531 PyObject * obj4 = 0 ;
29532 PyObject * obj5 = 0 ;
29533 char *kwnames[] = {
29534 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29535 };
29536
29537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29540 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29541 if (PyErr_Occurred()) SWIG_fail;
29542 arg3 = (int) SWIG_AsInt(obj2);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 {
29545 arg4 = wxString_in_helper(obj3);
29546 if (arg4 == NULL) SWIG_fail;
29547 temp4 = True;
29548 }
29549 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29551 if (obj5) {
29552 {
29553 arg6 = wxString_in_helper(obj5);
29554 if (arg6 == NULL) SWIG_fail;
29555 temp6 = True;
29556 }
29557 }
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29561
29562 wxPyEndAllowThreads(__tstate);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 {
29566 resultobj = wxPyMake_wxObject(result, 0);
29567 }
29568 {
29569 if (temp4)
29570 delete arg4;
29571 }
29572 {
29573 if (temp6)
29574 delete arg6;
29575 }
29576 return resultobj;
29577 fail:
29578 {
29579 if (temp4)
29580 delete arg4;
29581 }
29582 {
29583 if (temp6)
29584 delete arg6;
29585 }
29586 return NULL;
29587 }
29588
29589
29590 static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29591 PyObject *resultobj;
29592 wxMenu *arg1 = (wxMenu *) 0 ;
29593 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29594 wxMenuItem *result;
29595 PyObject * obj0 = 0 ;
29596 PyObject * obj1 = 0 ;
29597 char *kwnames[] = {
29598 (char *) "self",(char *) "item", NULL
29599 };
29600
29601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29606 {
29607 PyThreadState* __tstate = wxPyBeginAllowThreads();
29608 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29609
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 {
29614 resultobj = wxPyMake_wxObject(result, 0);
29615 }
29616 return resultobj;
29617 fail:
29618 return NULL;
29619 }
29620
29621
29622 static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
29623 PyObject *resultobj;
29624 wxMenu *arg1 = (wxMenu *) 0 ;
29625 int arg2 ;
29626 wxString *arg3 = 0 ;
29627 wxString const &arg4_defvalue = wxPyEmptyString ;
29628 wxString *arg4 = (wxString *) &arg4_defvalue ;
29629 int arg5 = (int) wxITEM_NORMAL ;
29630 wxMenuItem *result;
29631 bool temp3 = False ;
29632 bool temp4 = False ;
29633 PyObject * obj0 = 0 ;
29634 PyObject * obj1 = 0 ;
29635 PyObject * obj2 = 0 ;
29636 PyObject * obj3 = 0 ;
29637 PyObject * obj4 = 0 ;
29638 char *kwnames[] = {
29639 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29640 };
29641
29642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29645 arg2 = (int) SWIG_AsInt(obj1);
29646 if (PyErr_Occurred()) SWIG_fail;
29647 {
29648 arg3 = wxString_in_helper(obj2);
29649 if (arg3 == NULL) SWIG_fail;
29650 temp3 = True;
29651 }
29652 if (obj3) {
29653 {
29654 arg4 = wxString_in_helper(obj3);
29655 if (arg4 == NULL) SWIG_fail;
29656 temp4 = True;
29657 }
29658 }
29659 if (obj4) {
29660 arg5 = (wxItemKind) SWIG_AsInt(obj4);
29661 if (PyErr_Occurred()) SWIG_fail;
29662 }
29663 {
29664 PyThreadState* __tstate = wxPyBeginAllowThreads();
29665 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29666
29667 wxPyEndAllowThreads(__tstate);
29668 if (PyErr_Occurred()) SWIG_fail;
29669 }
29670 {
29671 resultobj = wxPyMake_wxObject(result, 0);
29672 }
29673 {
29674 if (temp3)
29675 delete arg3;
29676 }
29677 {
29678 if (temp4)
29679 delete arg4;
29680 }
29681 return resultobj;
29682 fail:
29683 {
29684 if (temp3)
29685 delete arg3;
29686 }
29687 {
29688 if (temp4)
29689 delete arg4;
29690 }
29691 return NULL;
29692 }
29693
29694
29695 static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29696 PyObject *resultobj;
29697 wxMenu *arg1 = (wxMenu *) 0 ;
29698 wxMenuItem *result;
29699 PyObject * obj0 = 0 ;
29700 char *kwnames[] = {
29701 (char *) "self", NULL
29702 };
29703
29704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
29705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29707 {
29708 PyThreadState* __tstate = wxPyBeginAllowThreads();
29709 result = (wxMenuItem *)(arg1)->PrependSeparator();
29710
29711 wxPyEndAllowThreads(__tstate);
29712 if (PyErr_Occurred()) SWIG_fail;
29713 }
29714 {
29715 resultobj = wxPyMake_wxObject(result, 0);
29716 }
29717 return resultobj;
29718 fail:
29719 return NULL;
29720 }
29721
29722
29723 static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29724 PyObject *resultobj;
29725 wxMenu *arg1 = (wxMenu *) 0 ;
29726 int arg2 ;
29727 wxString *arg3 = 0 ;
29728 wxString const &arg4_defvalue = wxPyEmptyString ;
29729 wxString *arg4 = (wxString *) &arg4_defvalue ;
29730 wxMenuItem *result;
29731 bool temp3 = False ;
29732 bool temp4 = False ;
29733 PyObject * obj0 = 0 ;
29734 PyObject * obj1 = 0 ;
29735 PyObject * obj2 = 0 ;
29736 PyObject * obj3 = 0 ;
29737 char *kwnames[] = {
29738 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29739 };
29740
29741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29744 arg2 = (int) SWIG_AsInt(obj1);
29745 if (PyErr_Occurred()) SWIG_fail;
29746 {
29747 arg3 = wxString_in_helper(obj2);
29748 if (arg3 == NULL) SWIG_fail;
29749 temp3 = True;
29750 }
29751 if (obj3) {
29752 {
29753 arg4 = wxString_in_helper(obj3);
29754 if (arg4 == NULL) SWIG_fail;
29755 temp4 = True;
29756 }
29757 }
29758 {
29759 PyThreadState* __tstate = wxPyBeginAllowThreads();
29760 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29761
29762 wxPyEndAllowThreads(__tstate);
29763 if (PyErr_Occurred()) SWIG_fail;
29764 }
29765 {
29766 resultobj = wxPyMake_wxObject(result, 0);
29767 }
29768 {
29769 if (temp3)
29770 delete arg3;
29771 }
29772 {
29773 if (temp4)
29774 delete arg4;
29775 }
29776 return resultobj;
29777 fail:
29778 {
29779 if (temp3)
29780 delete arg3;
29781 }
29782 {
29783 if (temp4)
29784 delete arg4;
29785 }
29786 return NULL;
29787 }
29788
29789
29790 static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29791 PyObject *resultobj;
29792 wxMenu *arg1 = (wxMenu *) 0 ;
29793 int arg2 ;
29794 wxString *arg3 = 0 ;
29795 wxString const &arg4_defvalue = wxPyEmptyString ;
29796 wxString *arg4 = (wxString *) &arg4_defvalue ;
29797 wxMenuItem *result;
29798 bool temp3 = False ;
29799 bool temp4 = False ;
29800 PyObject * obj0 = 0 ;
29801 PyObject * obj1 = 0 ;
29802 PyObject * obj2 = 0 ;
29803 PyObject * obj3 = 0 ;
29804 char *kwnames[] = {
29805 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29806 };
29807
29808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29811 arg2 = (int) SWIG_AsInt(obj1);
29812 if (PyErr_Occurred()) SWIG_fail;
29813 {
29814 arg3 = wxString_in_helper(obj2);
29815 if (arg3 == NULL) SWIG_fail;
29816 temp3 = True;
29817 }
29818 if (obj3) {
29819 {
29820 arg4 = wxString_in_helper(obj3);
29821 if (arg4 == NULL) SWIG_fail;
29822 temp4 = True;
29823 }
29824 }
29825 {
29826 PyThreadState* __tstate = wxPyBeginAllowThreads();
29827 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29828
29829 wxPyEndAllowThreads(__tstate);
29830 if (PyErr_Occurred()) SWIG_fail;
29831 }
29832 {
29833 resultobj = wxPyMake_wxObject(result, 0);
29834 }
29835 {
29836 if (temp3)
29837 delete arg3;
29838 }
29839 {
29840 if (temp4)
29841 delete arg4;
29842 }
29843 return resultobj;
29844 fail:
29845 {
29846 if (temp3)
29847 delete arg3;
29848 }
29849 {
29850 if (temp4)
29851 delete arg4;
29852 }
29853 return NULL;
29854 }
29855
29856
29857 static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29858 PyObject *resultobj;
29859 wxMenu *arg1 = (wxMenu *) 0 ;
29860 int arg2 ;
29861 wxString *arg3 = 0 ;
29862 wxMenu *arg4 = (wxMenu *) 0 ;
29863 wxString const &arg5_defvalue = wxPyEmptyString ;
29864 wxString *arg5 = (wxString *) &arg5_defvalue ;
29865 wxMenuItem *result;
29866 bool temp3 = False ;
29867 bool temp5 = False ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 PyObject * obj2 = 0 ;
29871 PyObject * obj3 = 0 ;
29872 PyObject * obj4 = 0 ;
29873 char *kwnames[] = {
29874 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29875 };
29876
29877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29880 arg2 = (int) SWIG_AsInt(obj1);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 {
29883 arg3 = wxString_in_helper(obj2);
29884 if (arg3 == NULL) SWIG_fail;
29885 temp3 = True;
29886 }
29887 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29889 if (obj4) {
29890 {
29891 arg5 = wxString_in_helper(obj4);
29892 if (arg5 == NULL) SWIG_fail;
29893 temp5 = True;
29894 }
29895 }
29896 {
29897 PyThreadState* __tstate = wxPyBeginAllowThreads();
29898 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29899
29900 wxPyEndAllowThreads(__tstate);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 {
29904 resultobj = wxPyMake_wxObject(result, 0);
29905 }
29906 {
29907 if (temp3)
29908 delete arg3;
29909 }
29910 {
29911 if (temp5)
29912 delete arg5;
29913 }
29914 return resultobj;
29915 fail:
29916 {
29917 if (temp3)
29918 delete arg3;
29919 }
29920 {
29921 if (temp5)
29922 delete arg5;
29923 }
29924 return NULL;
29925 }
29926
29927
29928 static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29929 PyObject *resultobj;
29930 wxMenu *arg1 = (wxMenu *) 0 ;
29931 int arg2 ;
29932 wxMenuItem *result;
29933 PyObject * obj0 = 0 ;
29934 PyObject * obj1 = 0 ;
29935 char *kwnames[] = {
29936 (char *) "self",(char *) "id", NULL
29937 };
29938
29939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
29940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29942 arg2 = (int) SWIG_AsInt(obj1);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (wxMenuItem *)(arg1)->Remove(arg2);
29947
29948 wxPyEndAllowThreads(__tstate);
29949 if (PyErr_Occurred()) SWIG_fail;
29950 }
29951 {
29952 resultobj = wxPyMake_wxObject(result, 0);
29953 }
29954 return resultobj;
29955 fail:
29956 return NULL;
29957 }
29958
29959
29960 static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29961 PyObject *resultobj;
29962 wxMenu *arg1 = (wxMenu *) 0 ;
29963 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29964 wxMenuItem *result;
29965 PyObject * obj0 = 0 ;
29966 PyObject * obj1 = 0 ;
29967 char *kwnames[] = {
29968 (char *) "self",(char *) "item", NULL
29969 };
29970
29971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
29972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29974 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29976 {
29977 PyThreadState* __tstate = wxPyBeginAllowThreads();
29978 result = (wxMenuItem *)(arg1)->Remove(arg2);
29979
29980 wxPyEndAllowThreads(__tstate);
29981 if (PyErr_Occurred()) SWIG_fail;
29982 }
29983 {
29984 resultobj = wxPyMake_wxObject(result, 0);
29985 }
29986 return resultobj;
29987 fail:
29988 return NULL;
29989 }
29990
29991
29992 static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
29993 PyObject *resultobj;
29994 wxMenu *arg1 = (wxMenu *) 0 ;
29995 int arg2 ;
29996 bool result;
29997 PyObject * obj0 = 0 ;
29998 PyObject * obj1 = 0 ;
29999 char *kwnames[] = {
30000 (char *) "self",(char *) "id", NULL
30001 };
30002
30003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
30004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30006 arg2 = (int) SWIG_AsInt(obj1);
30007 if (PyErr_Occurred()) SWIG_fail;
30008 {
30009 PyThreadState* __tstate = wxPyBeginAllowThreads();
30010 result = (bool)(arg1)->Delete(arg2);
30011
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 {
30016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30017 }
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj;
30026 wxMenu *arg1 = (wxMenu *) 0 ;
30027 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30028 bool result;
30029 PyObject * obj0 = 0 ;
30030 PyObject * obj1 = 0 ;
30031 char *kwnames[] = {
30032 (char *) "self",(char *) "item", NULL
30033 };
30034
30035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
30036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 result = (bool)(arg1)->Delete(arg2);
30043
30044 wxPyEndAllowThreads(__tstate);
30045 if (PyErr_Occurred()) SWIG_fail;
30046 }
30047 {
30048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30049 }
30050 return resultobj;
30051 fail:
30052 return NULL;
30053 }
30054
30055
30056 static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30057 PyObject *resultobj;
30058 wxMenu *arg1 = (wxMenu *) 0 ;
30059 PyObject * obj0 = 0 ;
30060 char *kwnames[] = {
30061 (char *) "self", NULL
30062 };
30063
30064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
30065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30067 {
30068 PyThreadState* __tstate = wxPyBeginAllowThreads();
30069 wxMenu_Destroy(arg1);
30070
30071 wxPyEndAllowThreads(__tstate);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 Py_INCREF(Py_None); resultobj = Py_None;
30075 return resultobj;
30076 fail:
30077 return NULL;
30078 }
30079
30080
30081 static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
30082 PyObject *resultobj;
30083 wxMenu *arg1 = (wxMenu *) 0 ;
30084 int arg2 ;
30085 bool result;
30086 PyObject * obj0 = 0 ;
30087 PyObject * obj1 = 0 ;
30088 char *kwnames[] = {
30089 (char *) "self",(char *) "id", NULL
30090 };
30091
30092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
30093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30095 arg2 = (int) SWIG_AsInt(obj1);
30096 if (PyErr_Occurred()) SWIG_fail;
30097 {
30098 PyThreadState* __tstate = wxPyBeginAllowThreads();
30099 result = (bool)(arg1)->Destroy(arg2);
30100
30101 wxPyEndAllowThreads(__tstate);
30102 if (PyErr_Occurred()) SWIG_fail;
30103 }
30104 {
30105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30106 }
30107 return resultobj;
30108 fail:
30109 return NULL;
30110 }
30111
30112
30113 static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30114 PyObject *resultobj;
30115 wxMenu *arg1 = (wxMenu *) 0 ;
30116 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30117 bool result;
30118 PyObject * obj0 = 0 ;
30119 PyObject * obj1 = 0 ;
30120 char *kwnames[] = {
30121 (char *) "self",(char *) "item", NULL
30122 };
30123
30124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
30125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30127 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30129 {
30130 PyThreadState* __tstate = wxPyBeginAllowThreads();
30131 result = (bool)(arg1)->Destroy(arg2);
30132
30133 wxPyEndAllowThreads(__tstate);
30134 if (PyErr_Occurred()) SWIG_fail;
30135 }
30136 {
30137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30138 }
30139 return resultobj;
30140 fail:
30141 return NULL;
30142 }
30143
30144
30145 static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
30146 PyObject *resultobj;
30147 wxMenu *arg1 = (wxMenu *) 0 ;
30148 size_t result;
30149 PyObject * obj0 = 0 ;
30150 char *kwnames[] = {
30151 (char *) "self", NULL
30152 };
30153
30154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30157 {
30158 PyThreadState* __tstate = wxPyBeginAllowThreads();
30159 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30160
30161 wxPyEndAllowThreads(__tstate);
30162 if (PyErr_Occurred()) SWIG_fail;
30163 }
30164 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
30165 return resultobj;
30166 fail:
30167 return NULL;
30168 }
30169
30170
30171 static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
30172 PyObject *resultobj;
30173 wxMenu *arg1 = (wxMenu *) 0 ;
30174 PyObject *result;
30175 PyObject * obj0 = 0 ;
30176 char *kwnames[] = {
30177 (char *) "self", NULL
30178 };
30179
30180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30183 {
30184 PyThreadState* __tstate = wxPyBeginAllowThreads();
30185 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30186
30187 wxPyEndAllowThreads(__tstate);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = result;
30191 return resultobj;
30192 fail:
30193 return NULL;
30194 }
30195
30196
30197 static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj;
30199 wxMenu *arg1 = (wxMenu *) 0 ;
30200 wxString *arg2 = 0 ;
30201 int result;
30202 bool temp2 = False ;
30203 PyObject * obj0 = 0 ;
30204 PyObject * obj1 = 0 ;
30205 char *kwnames[] = {
30206 (char *) "self",(char *) "item", NULL
30207 };
30208
30209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30212 {
30213 arg2 = wxString_in_helper(obj1);
30214 if (arg2 == NULL) SWIG_fail;
30215 temp2 = True;
30216 }
30217 {
30218 PyThreadState* __tstate = wxPyBeginAllowThreads();
30219 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30220
30221 wxPyEndAllowThreads(__tstate);
30222 if (PyErr_Occurred()) SWIG_fail;
30223 }
30224 resultobj = SWIG_FromInt((int)result);
30225 {
30226 if (temp2)
30227 delete arg2;
30228 }
30229 return resultobj;
30230 fail:
30231 {
30232 if (temp2)
30233 delete arg2;
30234 }
30235 return NULL;
30236 }
30237
30238
30239 static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj;
30241 wxMenu *arg1 = (wxMenu *) 0 ;
30242 int arg2 ;
30243 wxMenuItem *result;
30244 PyObject * obj0 = 0 ;
30245 PyObject * obj1 = 0 ;
30246 char *kwnames[] = {
30247 (char *) "self",(char *) "id", NULL
30248 };
30249
30250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30253 arg2 = (int) SWIG_AsInt(obj1);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 {
30256 PyThreadState* __tstate = wxPyBeginAllowThreads();
30257 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30258
30259 wxPyEndAllowThreads(__tstate);
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
30262 {
30263 resultobj = wxPyMake_wxObject(result, 0);
30264 }
30265 return resultobj;
30266 fail:
30267 return NULL;
30268 }
30269
30270
30271 static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
30272 PyObject *resultobj;
30273 wxMenu *arg1 = (wxMenu *) 0 ;
30274 size_t arg2 ;
30275 wxMenuItem *result;
30276 PyObject * obj0 = 0 ;
30277 PyObject * obj1 = 0 ;
30278 char *kwnames[] = {
30279 (char *) "self",(char *) "position", NULL
30280 };
30281
30282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30285 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30286 if (PyErr_Occurred()) SWIG_fail;
30287 {
30288 PyThreadState* __tstate = wxPyBeginAllowThreads();
30289 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30290
30291 wxPyEndAllowThreads(__tstate);
30292 if (PyErr_Occurred()) SWIG_fail;
30293 }
30294 {
30295 resultobj = wxPyMake_wxObject(result, 0);
30296 }
30297 return resultobj;
30298 fail:
30299 return NULL;
30300 }
30301
30302
30303 static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30304 PyObject *resultobj;
30305 wxMenu *arg1 = (wxMenu *) 0 ;
30306 int arg2 ;
30307 bool arg3 ;
30308 PyObject * obj0 = 0 ;
30309 PyObject * obj1 = 0 ;
30310 PyObject * obj2 = 0 ;
30311 char *kwnames[] = {
30312 (char *) "self",(char *) "id",(char *) "enable", NULL
30313 };
30314
30315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30318 arg2 = (int) SWIG_AsInt(obj1);
30319 if (PyErr_Occurred()) SWIG_fail;
30320 arg3 = (bool) SWIG_AsBool(obj2);
30321 if (PyErr_Occurred()) SWIG_fail;
30322 {
30323 PyThreadState* __tstate = wxPyBeginAllowThreads();
30324 (arg1)->Enable(arg2,arg3);
30325
30326 wxPyEndAllowThreads(__tstate);
30327 if (PyErr_Occurred()) SWIG_fail;
30328 }
30329 Py_INCREF(Py_None); resultobj = Py_None;
30330 return resultobj;
30331 fail:
30332 return NULL;
30333 }
30334
30335
30336 static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30337 PyObject *resultobj;
30338 wxMenu *arg1 = (wxMenu *) 0 ;
30339 int arg2 ;
30340 bool result;
30341 PyObject * obj0 = 0 ;
30342 PyObject * obj1 = 0 ;
30343 char *kwnames[] = {
30344 (char *) "self",(char *) "id", NULL
30345 };
30346
30347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30350 arg2 = (int) SWIG_AsInt(obj1);
30351 if (PyErr_Occurred()) SWIG_fail;
30352 {
30353 PyThreadState* __tstate = wxPyBeginAllowThreads();
30354 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
30355
30356 wxPyEndAllowThreads(__tstate);
30357 if (PyErr_Occurred()) SWIG_fail;
30358 }
30359 {
30360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30361 }
30362 return resultobj;
30363 fail:
30364 return NULL;
30365 }
30366
30367
30368 static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30369 PyObject *resultobj;
30370 wxMenu *arg1 = (wxMenu *) 0 ;
30371 int arg2 ;
30372 bool arg3 ;
30373 PyObject * obj0 = 0 ;
30374 PyObject * obj1 = 0 ;
30375 PyObject * obj2 = 0 ;
30376 char *kwnames[] = {
30377 (char *) "self",(char *) "id",(char *) "check", NULL
30378 };
30379
30380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
30381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30383 arg2 = (int) SWIG_AsInt(obj1);
30384 if (PyErr_Occurred()) SWIG_fail;
30385 arg3 = (bool) SWIG_AsBool(obj2);
30386 if (PyErr_Occurred()) SWIG_fail;
30387 {
30388 PyThreadState* __tstate = wxPyBeginAllowThreads();
30389 (arg1)->Check(arg2,arg3);
30390
30391 wxPyEndAllowThreads(__tstate);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
30394 Py_INCREF(Py_None); resultobj = Py_None;
30395 return resultobj;
30396 fail:
30397 return NULL;
30398 }
30399
30400
30401 static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30402 PyObject *resultobj;
30403 wxMenu *arg1 = (wxMenu *) 0 ;
30404 int arg2 ;
30405 bool result;
30406 PyObject * obj0 = 0 ;
30407 PyObject * obj1 = 0 ;
30408 char *kwnames[] = {
30409 (char *) "self",(char *) "id", NULL
30410 };
30411
30412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30415 arg2 = (int) SWIG_AsInt(obj1);
30416 if (PyErr_Occurred()) SWIG_fail;
30417 {
30418 PyThreadState* __tstate = wxPyBeginAllowThreads();
30419 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30420
30421 wxPyEndAllowThreads(__tstate);
30422 if (PyErr_Occurred()) SWIG_fail;
30423 }
30424 {
30425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30426 }
30427 return resultobj;
30428 fail:
30429 return NULL;
30430 }
30431
30432
30433 static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30434 PyObject *resultobj;
30435 wxMenu *arg1 = (wxMenu *) 0 ;
30436 int arg2 ;
30437 wxString *arg3 = 0 ;
30438 bool temp3 = False ;
30439 PyObject * obj0 = 0 ;
30440 PyObject * obj1 = 0 ;
30441 PyObject * obj2 = 0 ;
30442 char *kwnames[] = {
30443 (char *) "self",(char *) "id",(char *) "label", NULL
30444 };
30445
30446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30449 arg2 = (int) SWIG_AsInt(obj1);
30450 if (PyErr_Occurred()) SWIG_fail;
30451 {
30452 arg3 = wxString_in_helper(obj2);
30453 if (arg3 == NULL) SWIG_fail;
30454 temp3 = True;
30455 }
30456 {
30457 PyThreadState* __tstate = wxPyBeginAllowThreads();
30458 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30459
30460 wxPyEndAllowThreads(__tstate);
30461 if (PyErr_Occurred()) SWIG_fail;
30462 }
30463 Py_INCREF(Py_None); resultobj = Py_None;
30464 {
30465 if (temp3)
30466 delete arg3;
30467 }
30468 return resultobj;
30469 fail:
30470 {
30471 if (temp3)
30472 delete arg3;
30473 }
30474 return NULL;
30475 }
30476
30477
30478 static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30479 PyObject *resultobj;
30480 wxMenu *arg1 = (wxMenu *) 0 ;
30481 int arg2 ;
30482 wxString result;
30483 PyObject * obj0 = 0 ;
30484 PyObject * obj1 = 0 ;
30485 char *kwnames[] = {
30486 (char *) "self",(char *) "id", NULL
30487 };
30488
30489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30492 arg2 = (int) SWIG_AsInt(obj1);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 {
30495 PyThreadState* __tstate = wxPyBeginAllowThreads();
30496 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30497
30498 wxPyEndAllowThreads(__tstate);
30499 if (PyErr_Occurred()) SWIG_fail;
30500 }
30501 {
30502 #if wxUSE_UNICODE
30503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30504 #else
30505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30506 #endif
30507 }
30508 return resultobj;
30509 fail:
30510 return NULL;
30511 }
30512
30513
30514 static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30515 PyObject *resultobj;
30516 wxMenu *arg1 = (wxMenu *) 0 ;
30517 int arg2 ;
30518 wxString *arg3 = 0 ;
30519 bool temp3 = False ;
30520 PyObject * obj0 = 0 ;
30521 PyObject * obj1 = 0 ;
30522 PyObject * obj2 = 0 ;
30523 char *kwnames[] = {
30524 (char *) "self",(char *) "id",(char *) "helpString", NULL
30525 };
30526
30527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30530 arg2 = (int) SWIG_AsInt(obj1);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 {
30533 arg3 = wxString_in_helper(obj2);
30534 if (arg3 == NULL) SWIG_fail;
30535 temp3 = True;
30536 }
30537 {
30538 PyThreadState* __tstate = wxPyBeginAllowThreads();
30539 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30540
30541 wxPyEndAllowThreads(__tstate);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 Py_INCREF(Py_None); resultobj = Py_None;
30545 {
30546 if (temp3)
30547 delete arg3;
30548 }
30549 return resultobj;
30550 fail:
30551 {
30552 if (temp3)
30553 delete arg3;
30554 }
30555 return NULL;
30556 }
30557
30558
30559 static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30560 PyObject *resultobj;
30561 wxMenu *arg1 = (wxMenu *) 0 ;
30562 int arg2 ;
30563 wxString result;
30564 PyObject * obj0 = 0 ;
30565 PyObject * obj1 = 0 ;
30566 char *kwnames[] = {
30567 (char *) "self",(char *) "id", NULL
30568 };
30569
30570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30573 arg2 = (int) SWIG_AsInt(obj1);
30574 if (PyErr_Occurred()) SWIG_fail;
30575 {
30576 PyThreadState* __tstate = wxPyBeginAllowThreads();
30577 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30578
30579 wxPyEndAllowThreads(__tstate);
30580 if (PyErr_Occurred()) SWIG_fail;
30581 }
30582 {
30583 #if wxUSE_UNICODE
30584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30585 #else
30586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30587 #endif
30588 }
30589 return resultobj;
30590 fail:
30591 return NULL;
30592 }
30593
30594
30595 static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30596 PyObject *resultobj;
30597 wxMenu *arg1 = (wxMenu *) 0 ;
30598 wxString *arg2 = 0 ;
30599 bool temp2 = False ;
30600 PyObject * obj0 = 0 ;
30601 PyObject * obj1 = 0 ;
30602 char *kwnames[] = {
30603 (char *) "self",(char *) "title", NULL
30604 };
30605
30606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30609 {
30610 arg2 = wxString_in_helper(obj1);
30611 if (arg2 == NULL) SWIG_fail;
30612 temp2 = True;
30613 }
30614 {
30615 PyThreadState* __tstate = wxPyBeginAllowThreads();
30616 (arg1)->SetTitle((wxString const &)*arg2);
30617
30618 wxPyEndAllowThreads(__tstate);
30619 if (PyErr_Occurred()) SWIG_fail;
30620 }
30621 Py_INCREF(Py_None); resultobj = Py_None;
30622 {
30623 if (temp2)
30624 delete arg2;
30625 }
30626 return resultobj;
30627 fail:
30628 {
30629 if (temp2)
30630 delete arg2;
30631 }
30632 return NULL;
30633 }
30634
30635
30636 static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30637 PyObject *resultobj;
30638 wxMenu *arg1 = (wxMenu *) 0 ;
30639 wxString result;
30640 PyObject * obj0 = 0 ;
30641 char *kwnames[] = {
30642 (char *) "self", NULL
30643 };
30644
30645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30648 {
30649 PyThreadState* __tstate = wxPyBeginAllowThreads();
30650 result = ((wxMenu const *)arg1)->GetTitle();
30651
30652 wxPyEndAllowThreads(__tstate);
30653 if (PyErr_Occurred()) SWIG_fail;
30654 }
30655 {
30656 #if wxUSE_UNICODE
30657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30658 #else
30659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30660 #endif
30661 }
30662 return resultobj;
30663 fail:
30664 return NULL;
30665 }
30666
30667
30668 static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj;
30670 wxMenu *arg1 = (wxMenu *) 0 ;
30671 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30672 PyObject * obj0 = 0 ;
30673 PyObject * obj1 = 0 ;
30674 char *kwnames[] = {
30675 (char *) "self",(char *) "handler", NULL
30676 };
30677
30678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30683 {
30684 PyThreadState* __tstate = wxPyBeginAllowThreads();
30685 (arg1)->SetEventHandler(arg2);
30686
30687 wxPyEndAllowThreads(__tstate);
30688 if (PyErr_Occurred()) SWIG_fail;
30689 }
30690 Py_INCREF(Py_None); resultobj = Py_None;
30691 return resultobj;
30692 fail:
30693 return NULL;
30694 }
30695
30696
30697 static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30698 PyObject *resultobj;
30699 wxMenu *arg1 = (wxMenu *) 0 ;
30700 wxEvtHandler *result;
30701 PyObject * obj0 = 0 ;
30702 char *kwnames[] = {
30703 (char *) "self", NULL
30704 };
30705
30706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
30707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30709 {
30710 PyThreadState* __tstate = wxPyBeginAllowThreads();
30711 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
30712
30713 wxPyEndAllowThreads(__tstate);
30714 if (PyErr_Occurred()) SWIG_fail;
30715 }
30716 {
30717 resultobj = wxPyMake_wxObject(result, 0);
30718 }
30719 return resultobj;
30720 fail:
30721 return NULL;
30722 }
30723
30724
30725 static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30726 PyObject *resultobj;
30727 wxMenu *arg1 = (wxMenu *) 0 ;
30728 wxWindow *arg2 = (wxWindow *) 0 ;
30729 PyObject * obj0 = 0 ;
30730 PyObject * obj1 = 0 ;
30731 char *kwnames[] = {
30732 (char *) "self",(char *) "win", NULL
30733 };
30734
30735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
30736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30738 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30740 {
30741 PyThreadState* __tstate = wxPyBeginAllowThreads();
30742 (arg1)->SetInvokingWindow(arg2);
30743
30744 wxPyEndAllowThreads(__tstate);
30745 if (PyErr_Occurred()) SWIG_fail;
30746 }
30747 Py_INCREF(Py_None); resultobj = Py_None;
30748 return resultobj;
30749 fail:
30750 return NULL;
30751 }
30752
30753
30754 static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30755 PyObject *resultobj;
30756 wxMenu *arg1 = (wxMenu *) 0 ;
30757 wxWindow *result;
30758 PyObject * obj0 = 0 ;
30759 char *kwnames[] = {
30760 (char *) "self", NULL
30761 };
30762
30763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
30764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30766 {
30767 PyThreadState* __tstate = wxPyBeginAllowThreads();
30768 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
30769
30770 wxPyEndAllowThreads(__tstate);
30771 if (PyErr_Occurred()) SWIG_fail;
30772 }
30773 {
30774 resultobj = wxPyMake_wxObject(result, 0);
30775 }
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj;
30784 wxMenu *arg1 = (wxMenu *) 0 ;
30785 long result;
30786 PyObject * obj0 = 0 ;
30787 char *kwnames[] = {
30788 (char *) "self", NULL
30789 };
30790
30791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
30792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30794 {
30795 PyThreadState* __tstate = wxPyBeginAllowThreads();
30796 result = (long)((wxMenu const *)arg1)->GetStyle();
30797
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_FromLong((long)result);
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
30809 PyObject *resultobj;
30810 wxMenu *arg1 = (wxMenu *) 0 ;
30811 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
30812 PyObject * obj0 = 0 ;
30813 PyObject * obj1 = 0 ;
30814 char *kwnames[] = {
30815 (char *) "self",(char *) "source", NULL
30816 };
30817
30818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
30819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30821 if (obj1) {
30822 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30824 }
30825 {
30826 PyThreadState* __tstate = wxPyBeginAllowThreads();
30827 (arg1)->UpdateUI(arg2);
30828
30829 wxPyEndAllowThreads(__tstate);
30830 if (PyErr_Occurred()) SWIG_fail;
30831 }
30832 Py_INCREF(Py_None); resultobj = Py_None;
30833 return resultobj;
30834 fail:
30835 return NULL;
30836 }
30837
30838
30839 static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30840 PyObject *resultobj;
30841 wxMenu *arg1 = (wxMenu *) 0 ;
30842 wxMenuBar *result;
30843 PyObject * obj0 = 0 ;
30844 char *kwnames[] = {
30845 (char *) "self", NULL
30846 };
30847
30848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
30849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30851 {
30852 PyThreadState* __tstate = wxPyBeginAllowThreads();
30853 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
30854
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
30858 {
30859 resultobj = wxPyMake_wxObject(result, 0);
30860 }
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj;
30869 wxMenu *arg1 = (wxMenu *) 0 ;
30870 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
30871 PyObject * obj0 = 0 ;
30872 PyObject * obj1 = 0 ;
30873 char *kwnames[] = {
30874 (char *) "self",(char *) "menubar", NULL
30875 };
30876
30877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
30878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
30881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30882 {
30883 PyThreadState* __tstate = wxPyBeginAllowThreads();
30884 (arg1)->Attach(arg2);
30885
30886 wxPyEndAllowThreads(__tstate);
30887 if (PyErr_Occurred()) SWIG_fail;
30888 }
30889 Py_INCREF(Py_None); resultobj = Py_None;
30890 return resultobj;
30891 fail:
30892 return NULL;
30893 }
30894
30895
30896 static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30897 PyObject *resultobj;
30898 wxMenu *arg1 = (wxMenu *) 0 ;
30899 PyObject * obj0 = 0 ;
30900 char *kwnames[] = {
30901 (char *) "self", NULL
30902 };
30903
30904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
30905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30907 {
30908 PyThreadState* __tstate = wxPyBeginAllowThreads();
30909 (arg1)->Detach();
30910
30911 wxPyEndAllowThreads(__tstate);
30912 if (PyErr_Occurred()) SWIG_fail;
30913 }
30914 Py_INCREF(Py_None); resultobj = Py_None;
30915 return resultobj;
30916 fail:
30917 return NULL;
30918 }
30919
30920
30921 static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
30922 PyObject *resultobj;
30923 wxMenu *arg1 = (wxMenu *) 0 ;
30924 bool result;
30925 PyObject * obj0 = 0 ;
30926 char *kwnames[] = {
30927 (char *) "self", NULL
30928 };
30929
30930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
30931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30933 {
30934 PyThreadState* __tstate = wxPyBeginAllowThreads();
30935 result = (bool)((wxMenu const *)arg1)->IsAttached();
30936
30937 wxPyEndAllowThreads(__tstate);
30938 if (PyErr_Occurred()) SWIG_fail;
30939 }
30940 {
30941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30942 }
30943 return resultobj;
30944 fail:
30945 return NULL;
30946 }
30947
30948
30949 static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30950 PyObject *resultobj;
30951 wxMenu *arg1 = (wxMenu *) 0 ;
30952 wxMenu *arg2 = (wxMenu *) 0 ;
30953 PyObject * obj0 = 0 ;
30954 PyObject * obj1 = 0 ;
30955 char *kwnames[] = {
30956 (char *) "self",(char *) "parent", NULL
30957 };
30958
30959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
30960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30964 {
30965 PyThreadState* __tstate = wxPyBeginAllowThreads();
30966 (arg1)->SetParent(arg2);
30967
30968 wxPyEndAllowThreads(__tstate);
30969 if (PyErr_Occurred()) SWIG_fail;
30970 }
30971 Py_INCREF(Py_None); resultobj = Py_None;
30972 return resultobj;
30973 fail:
30974 return NULL;
30975 }
30976
30977
30978 static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30979 PyObject *resultobj;
30980 wxMenu *arg1 = (wxMenu *) 0 ;
30981 wxMenu *result;
30982 PyObject * obj0 = 0 ;
30983 char *kwnames[] = {
30984 (char *) "self", NULL
30985 };
30986
30987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
30988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
30993
30994 wxPyEndAllowThreads(__tstate);
30995 if (PyErr_Occurred()) SWIG_fail;
30996 }
30997 {
30998 resultobj = wxPyMake_wxObject(result, 0);
30999 }
31000 return resultobj;
31001 fail:
31002 return NULL;
31003 }
31004
31005
31006 static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
31007 PyObject *obj;
31008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31009 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
31010 Py_INCREF(obj);
31011 return Py_BuildValue((char *)"");
31012 }
31013 static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
31014 PyObject *resultobj;
31015 long arg1 = (long) 0 ;
31016 wxMenuBar *result;
31017 PyObject * obj0 = 0 ;
31018 char *kwnames[] = {
31019 (char *) "style", NULL
31020 };
31021
31022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
31023 if (obj0) {
31024 arg1 = (long) SWIG_AsLong(obj0);
31025 if (PyErr_Occurred()) SWIG_fail;
31026 }
31027 {
31028 if (!wxPyCheckForApp()) SWIG_fail;
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (wxMenuBar *)new wxMenuBar(arg1);
31031
31032 wxPyEndAllowThreads(__tstate);
31033 if (PyErr_Occurred()) SWIG_fail;
31034 }
31035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1);
31036 return resultobj;
31037 fail:
31038 return NULL;
31039 }
31040
31041
31042 static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
31043 PyObject *resultobj;
31044 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31045 wxMenu *arg2 = (wxMenu *) 0 ;
31046 wxString *arg3 = 0 ;
31047 bool result;
31048 bool temp3 = False ;
31049 PyObject * obj0 = 0 ;
31050 PyObject * obj1 = 0 ;
31051 PyObject * obj2 = 0 ;
31052 char *kwnames[] = {
31053 (char *) "self",(char *) "menu",(char *) "title", NULL
31054 };
31055
31056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31061 {
31062 arg3 = wxString_in_helper(obj2);
31063 if (arg3 == NULL) SWIG_fail;
31064 temp3 = True;
31065 }
31066 {
31067 PyThreadState* __tstate = wxPyBeginAllowThreads();
31068 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
31069
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 {
31074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31075 }
31076 {
31077 if (temp3)
31078 delete arg3;
31079 }
31080 return resultobj;
31081 fail:
31082 {
31083 if (temp3)
31084 delete arg3;
31085 }
31086 return NULL;
31087 }
31088
31089
31090 static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
31091 PyObject *resultobj;
31092 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31093 size_t arg2 ;
31094 wxMenu *arg3 = (wxMenu *) 0 ;
31095 wxString *arg4 = 0 ;
31096 bool result;
31097 bool temp4 = False ;
31098 PyObject * obj0 = 0 ;
31099 PyObject * obj1 = 0 ;
31100 PyObject * obj2 = 0 ;
31101 PyObject * obj3 = 0 ;
31102 char *kwnames[] = {
31103 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31104 };
31105
31106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31109 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31113 {
31114 arg4 = wxString_in_helper(obj3);
31115 if (arg4 == NULL) SWIG_fail;
31116 temp4 = True;
31117 }
31118 {
31119 PyThreadState* __tstate = wxPyBeginAllowThreads();
31120 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
31121
31122 wxPyEndAllowThreads(__tstate);
31123 if (PyErr_Occurred()) SWIG_fail;
31124 }
31125 {
31126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31127 }
31128 {
31129 if (temp4)
31130 delete arg4;
31131 }
31132 return resultobj;
31133 fail:
31134 {
31135 if (temp4)
31136 delete arg4;
31137 }
31138 return NULL;
31139 }
31140
31141
31142 static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31143 PyObject *resultobj;
31144 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31145 size_t result;
31146 PyObject * obj0 = 0 ;
31147 char *kwnames[] = {
31148 (char *) "self", NULL
31149 };
31150
31151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31154 {
31155 PyThreadState* __tstate = wxPyBeginAllowThreads();
31156 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31157
31158 wxPyEndAllowThreads(__tstate);
31159 if (PyErr_Occurred()) SWIG_fail;
31160 }
31161 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
31162 return resultobj;
31163 fail:
31164 return NULL;
31165 }
31166
31167
31168 static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31169 PyObject *resultobj;
31170 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31171 size_t arg2 ;
31172 wxMenu *result;
31173 PyObject * obj0 = 0 ;
31174 PyObject * obj1 = 0 ;
31175 char *kwnames[] = {
31176 (char *) "self",(char *) "pos", NULL
31177 };
31178
31179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31182 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31183 if (PyErr_Occurred()) SWIG_fail;
31184 {
31185 PyThreadState* __tstate = wxPyBeginAllowThreads();
31186 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31187
31188 wxPyEndAllowThreads(__tstate);
31189 if (PyErr_Occurred()) SWIG_fail;
31190 }
31191 {
31192 resultobj = wxPyMake_wxObject(result, 0);
31193 }
31194 return resultobj;
31195 fail:
31196 return NULL;
31197 }
31198
31199
31200 static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
31201 PyObject *resultobj;
31202 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31203 size_t arg2 ;
31204 wxMenu *arg3 = (wxMenu *) 0 ;
31205 wxString *arg4 = 0 ;
31206 wxMenu *result;
31207 bool temp4 = False ;
31208 PyObject * obj0 = 0 ;
31209 PyObject * obj1 = 0 ;
31210 PyObject * obj2 = 0 ;
31211 PyObject * obj3 = 0 ;
31212 char *kwnames[] = {
31213 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31214 };
31215
31216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31219 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31220 if (PyErr_Occurred()) SWIG_fail;
31221 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31223 {
31224 arg4 = wxString_in_helper(obj3);
31225 if (arg4 == NULL) SWIG_fail;
31226 temp4 = True;
31227 }
31228 {
31229 PyThreadState* __tstate = wxPyBeginAllowThreads();
31230 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31231
31232 wxPyEndAllowThreads(__tstate);
31233 if (PyErr_Occurred()) SWIG_fail;
31234 }
31235 {
31236 resultobj = wxPyMake_wxObject(result, 0);
31237 }
31238 {
31239 if (temp4)
31240 delete arg4;
31241 }
31242 return resultobj;
31243 fail:
31244 {
31245 if (temp4)
31246 delete arg4;
31247 }
31248 return NULL;
31249 }
31250
31251
31252 static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
31253 PyObject *resultobj;
31254 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31255 size_t arg2 ;
31256 wxMenu *result;
31257 PyObject * obj0 = 0 ;
31258 PyObject * obj1 = 0 ;
31259 char *kwnames[] = {
31260 (char *) "self",(char *) "pos", NULL
31261 };
31262
31263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31266 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31267 if (PyErr_Occurred()) SWIG_fail;
31268 {
31269 PyThreadState* __tstate = wxPyBeginAllowThreads();
31270 result = (wxMenu *)(arg1)->Remove(arg2);
31271
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 {
31276 resultobj = wxPyMake_wxObject(result, 0);
31277 }
31278 return resultobj;
31279 fail:
31280 return NULL;
31281 }
31282
31283
31284 static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj;
31286 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31287 size_t arg2 ;
31288 bool arg3 ;
31289 PyObject * obj0 = 0 ;
31290 PyObject * obj1 = 0 ;
31291 PyObject * obj2 = 0 ;
31292 char *kwnames[] = {
31293 (char *) "self",(char *) "pos",(char *) "enable", NULL
31294 };
31295
31296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31299 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31300 if (PyErr_Occurred()) SWIG_fail;
31301 arg3 = (bool) SWIG_AsBool(obj2);
31302 if (PyErr_Occurred()) SWIG_fail;
31303 {
31304 PyThreadState* __tstate = wxPyBeginAllowThreads();
31305 (arg1)->EnableTop(arg2,arg3);
31306
31307 wxPyEndAllowThreads(__tstate);
31308 if (PyErr_Occurred()) SWIG_fail;
31309 }
31310 Py_INCREF(Py_None); resultobj = Py_None;
31311 return resultobj;
31312 fail:
31313 return NULL;
31314 }
31315
31316
31317 static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31318 PyObject *resultobj;
31319 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31320 size_t arg2 ;
31321 bool result;
31322 PyObject * obj0 = 0 ;
31323 PyObject * obj1 = 0 ;
31324 char *kwnames[] = {
31325 (char *) "self",(char *) "pos", NULL
31326 };
31327
31328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31331 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31332 if (PyErr_Occurred()) SWIG_fail;
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31336
31337 wxPyEndAllowThreads(__tstate);
31338 if (PyErr_Occurred()) SWIG_fail;
31339 }
31340 {
31341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31342 }
31343 return resultobj;
31344 fail:
31345 return NULL;
31346 }
31347
31348
31349 static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31350 PyObject *resultobj;
31351 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31352 size_t arg2 ;
31353 wxString *arg3 = 0 ;
31354 bool temp3 = False ;
31355 PyObject * obj0 = 0 ;
31356 PyObject * obj1 = 0 ;
31357 PyObject * obj2 = 0 ;
31358 char *kwnames[] = {
31359 (char *) "self",(char *) "pos",(char *) "label", NULL
31360 };
31361
31362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31365 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31366 if (PyErr_Occurred()) SWIG_fail;
31367 {
31368 arg3 = wxString_in_helper(obj2);
31369 if (arg3 == NULL) SWIG_fail;
31370 temp3 = True;
31371 }
31372 {
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
31375
31376 wxPyEndAllowThreads(__tstate);
31377 if (PyErr_Occurred()) SWIG_fail;
31378 }
31379 Py_INCREF(Py_None); resultobj = Py_None;
31380 {
31381 if (temp3)
31382 delete arg3;
31383 }
31384 return resultobj;
31385 fail:
31386 {
31387 if (temp3)
31388 delete arg3;
31389 }
31390 return NULL;
31391 }
31392
31393
31394 static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31395 PyObject *resultobj;
31396 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31397 size_t arg2 ;
31398 wxString result;
31399 PyObject * obj0 = 0 ;
31400 PyObject * obj1 = 0 ;
31401 char *kwnames[] = {
31402 (char *) "self",(char *) "pos", NULL
31403 };
31404
31405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31408 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31409 if (PyErr_Occurred()) SWIG_fail;
31410 {
31411 PyThreadState* __tstate = wxPyBeginAllowThreads();
31412 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31413
31414 wxPyEndAllowThreads(__tstate);
31415 if (PyErr_Occurred()) SWIG_fail;
31416 }
31417 {
31418 #if wxUSE_UNICODE
31419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31420 #else
31421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31422 #endif
31423 }
31424 return resultobj;
31425 fail:
31426 return NULL;
31427 }
31428
31429
31430 static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31431 PyObject *resultobj;
31432 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31433 wxString *arg2 = 0 ;
31434 wxString *arg3 = 0 ;
31435 int result;
31436 bool temp2 = False ;
31437 bool temp3 = False ;
31438 PyObject * obj0 = 0 ;
31439 PyObject * obj1 = 0 ;
31440 PyObject * obj2 = 0 ;
31441 char *kwnames[] = {
31442 (char *) "self",(char *) "menu",(char *) "item", NULL
31443 };
31444
31445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31448 {
31449 arg2 = wxString_in_helper(obj1);
31450 if (arg2 == NULL) SWIG_fail;
31451 temp2 = True;
31452 }
31453 {
31454 arg3 = wxString_in_helper(obj2);
31455 if (arg3 == NULL) SWIG_fail;
31456 temp3 = True;
31457 }
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31461
31462 wxPyEndAllowThreads(__tstate);
31463 if (PyErr_Occurred()) SWIG_fail;
31464 }
31465 resultobj = SWIG_FromInt((int)result);
31466 {
31467 if (temp2)
31468 delete arg2;
31469 }
31470 {
31471 if (temp3)
31472 delete arg3;
31473 }
31474 return resultobj;
31475 fail:
31476 {
31477 if (temp2)
31478 delete arg2;
31479 }
31480 {
31481 if (temp3)
31482 delete arg3;
31483 }
31484 return NULL;
31485 }
31486
31487
31488 static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
31489 PyObject *resultobj;
31490 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31491 int arg2 ;
31492 wxMenuItem *result;
31493 PyObject * obj0 = 0 ;
31494 PyObject * obj1 = 0 ;
31495 char *kwnames[] = {
31496 (char *) "self",(char *) "id", NULL
31497 };
31498
31499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31502 arg2 = (int) SWIG_AsInt(obj1);
31503 if (PyErr_Occurred()) SWIG_fail;
31504 {
31505 PyThreadState* __tstate = wxPyBeginAllowThreads();
31506 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31507
31508 wxPyEndAllowThreads(__tstate);
31509 if (PyErr_Occurred()) SWIG_fail;
31510 }
31511 {
31512 resultobj = wxPyMake_wxObject(result, 0);
31513 }
31514 return resultobj;
31515 fail:
31516 return NULL;
31517 }
31518
31519
31520 static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31521 PyObject *resultobj;
31522 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31523 wxString *arg2 = 0 ;
31524 int result;
31525 bool temp2 = False ;
31526 PyObject * obj0 = 0 ;
31527 PyObject * obj1 = 0 ;
31528 char *kwnames[] = {
31529 (char *) "self",(char *) "title", NULL
31530 };
31531
31532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31535 {
31536 arg2 = wxString_in_helper(obj1);
31537 if (arg2 == NULL) SWIG_fail;
31538 temp2 = True;
31539 }
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31543
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_FromInt((int)result);
31548 {
31549 if (temp2)
31550 delete arg2;
31551 }
31552 return resultobj;
31553 fail:
31554 {
31555 if (temp2)
31556 delete arg2;
31557 }
31558 return NULL;
31559 }
31560
31561
31562 static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
31563 PyObject *resultobj;
31564 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31565 int arg2 ;
31566 bool arg3 ;
31567 PyObject * obj0 = 0 ;
31568 PyObject * obj1 = 0 ;
31569 PyObject * obj2 = 0 ;
31570 char *kwnames[] = {
31571 (char *) "self",(char *) "id",(char *) "enable", NULL
31572 };
31573
31574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31577 arg2 = (int) SWIG_AsInt(obj1);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 arg3 = (bool) SWIG_AsBool(obj2);
31580 if (PyErr_Occurred()) SWIG_fail;
31581 {
31582 PyThreadState* __tstate = wxPyBeginAllowThreads();
31583 (arg1)->Enable(arg2,arg3);
31584
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 Py_INCREF(Py_None); resultobj = Py_None;
31589 return resultobj;
31590 fail:
31591 return NULL;
31592 }
31593
31594
31595 static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
31596 PyObject *resultobj;
31597 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31598 int arg2 ;
31599 bool arg3 ;
31600 PyObject * obj0 = 0 ;
31601 PyObject * obj1 = 0 ;
31602 PyObject * obj2 = 0 ;
31603 char *kwnames[] = {
31604 (char *) "self",(char *) "id",(char *) "check", NULL
31605 };
31606
31607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31610 arg2 = (int) SWIG_AsInt(obj1);
31611 if (PyErr_Occurred()) SWIG_fail;
31612 arg3 = (bool) SWIG_AsBool(obj2);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 {
31615 PyThreadState* __tstate = wxPyBeginAllowThreads();
31616 (arg1)->Check(arg2,arg3);
31617
31618 wxPyEndAllowThreads(__tstate);
31619 if (PyErr_Occurred()) SWIG_fail;
31620 }
31621 Py_INCREF(Py_None); resultobj = Py_None;
31622 return resultobj;
31623 fail:
31624 return NULL;
31625 }
31626
31627
31628 static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
31629 PyObject *resultobj;
31630 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31631 int arg2 ;
31632 bool result;
31633 PyObject * obj0 = 0 ;
31634 PyObject * obj1 = 0 ;
31635 char *kwnames[] = {
31636 (char *) "self",(char *) "id", NULL
31637 };
31638
31639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31642 arg2 = (int) SWIG_AsInt(obj1);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 {
31645 PyThreadState* __tstate = wxPyBeginAllowThreads();
31646 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31647
31648 wxPyEndAllowThreads(__tstate);
31649 if (PyErr_Occurred()) SWIG_fail;
31650 }
31651 {
31652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31653 }
31654 return resultobj;
31655 fail:
31656 return NULL;
31657 }
31658
31659
31660 static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
31661 PyObject *resultobj;
31662 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31663 int arg2 ;
31664 bool result;
31665 PyObject * obj0 = 0 ;
31666 PyObject * obj1 = 0 ;
31667 char *kwnames[] = {
31668 (char *) "self",(char *) "id", NULL
31669 };
31670
31671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31674 arg2 = (int) SWIG_AsInt(obj1);
31675 if (PyErr_Occurred()) SWIG_fail;
31676 {
31677 PyThreadState* __tstate = wxPyBeginAllowThreads();
31678 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31679
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 {
31684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31685 }
31686 return resultobj;
31687 fail:
31688 return NULL;
31689 }
31690
31691
31692 static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31693 PyObject *resultobj;
31694 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31695 int arg2 ;
31696 wxString *arg3 = 0 ;
31697 bool temp3 = False ;
31698 PyObject * obj0 = 0 ;
31699 PyObject * obj1 = 0 ;
31700 PyObject * obj2 = 0 ;
31701 char *kwnames[] = {
31702 (char *) "self",(char *) "id",(char *) "label", NULL
31703 };
31704
31705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31708 arg2 = (int) SWIG_AsInt(obj1);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 {
31711 arg3 = wxString_in_helper(obj2);
31712 if (arg3 == NULL) SWIG_fail;
31713 temp3 = True;
31714 }
31715 {
31716 PyThreadState* __tstate = wxPyBeginAllowThreads();
31717 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31718
31719 wxPyEndAllowThreads(__tstate);
31720 if (PyErr_Occurred()) SWIG_fail;
31721 }
31722 Py_INCREF(Py_None); resultobj = Py_None;
31723 {
31724 if (temp3)
31725 delete arg3;
31726 }
31727 return resultobj;
31728 fail:
31729 {
31730 if (temp3)
31731 delete arg3;
31732 }
31733 return NULL;
31734 }
31735
31736
31737 static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31738 PyObject *resultobj;
31739 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31740 int arg2 ;
31741 wxString result;
31742 PyObject * obj0 = 0 ;
31743 PyObject * obj1 = 0 ;
31744 char *kwnames[] = {
31745 (char *) "self",(char *) "id", NULL
31746 };
31747
31748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31751 arg2 = (int) SWIG_AsInt(obj1);
31752 if (PyErr_Occurred()) SWIG_fail;
31753 {
31754 PyThreadState* __tstate = wxPyBeginAllowThreads();
31755 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
31756
31757 wxPyEndAllowThreads(__tstate);
31758 if (PyErr_Occurred()) SWIG_fail;
31759 }
31760 {
31761 #if wxUSE_UNICODE
31762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31763 #else
31764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31765 #endif
31766 }
31767 return resultobj;
31768 fail:
31769 return NULL;
31770 }
31771
31772
31773 static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31774 PyObject *resultobj;
31775 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31776 int arg2 ;
31777 wxString *arg3 = 0 ;
31778 bool temp3 = False ;
31779 PyObject * obj0 = 0 ;
31780 PyObject * obj1 = 0 ;
31781 PyObject * obj2 = 0 ;
31782 char *kwnames[] = {
31783 (char *) "self",(char *) "id",(char *) "helpString", NULL
31784 };
31785
31786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31789 arg2 = (int) SWIG_AsInt(obj1);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 {
31792 arg3 = wxString_in_helper(obj2);
31793 if (arg3 == NULL) SWIG_fail;
31794 temp3 = True;
31795 }
31796 {
31797 PyThreadState* __tstate = wxPyBeginAllowThreads();
31798 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31799
31800 wxPyEndAllowThreads(__tstate);
31801 if (PyErr_Occurred()) SWIG_fail;
31802 }
31803 Py_INCREF(Py_None); resultobj = Py_None;
31804 {
31805 if (temp3)
31806 delete arg3;
31807 }
31808 return resultobj;
31809 fail:
31810 {
31811 if (temp3)
31812 delete arg3;
31813 }
31814 return NULL;
31815 }
31816
31817
31818 static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31819 PyObject *resultobj;
31820 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31821 int arg2 ;
31822 wxString result;
31823 PyObject * obj0 = 0 ;
31824 PyObject * obj1 = 0 ;
31825 char *kwnames[] = {
31826 (char *) "self",(char *) "id", NULL
31827 };
31828
31829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31832 arg2 = (int) SWIG_AsInt(obj1);
31833 if (PyErr_Occurred()) SWIG_fail;
31834 {
31835 PyThreadState* __tstate = wxPyBeginAllowThreads();
31836 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
31837
31838 wxPyEndAllowThreads(__tstate);
31839 if (PyErr_Occurred()) SWIG_fail;
31840 }
31841 {
31842 #if wxUSE_UNICODE
31843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31844 #else
31845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31846 #endif
31847 }
31848 return resultobj;
31849 fail:
31850 return NULL;
31851 }
31852
31853
31854 static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
31855 PyObject *resultobj;
31856 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31857 wxFrame *result;
31858 PyObject * obj0 = 0 ;
31859 char *kwnames[] = {
31860 (char *) "self", NULL
31861 };
31862
31863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
31864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31866 {
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
31869
31870 wxPyEndAllowThreads(__tstate);
31871 if (PyErr_Occurred()) SWIG_fail;
31872 }
31873 {
31874 resultobj = wxPyMake_wxObject(result, 0);
31875 }
31876 return resultobj;
31877 fail:
31878 return NULL;
31879 }
31880
31881
31882 static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
31883 PyObject *resultobj;
31884 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31885 bool result;
31886 PyObject * obj0 = 0 ;
31887 char *kwnames[] = {
31888 (char *) "self", NULL
31889 };
31890
31891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
31892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
31897
31898 wxPyEndAllowThreads(__tstate);
31899 if (PyErr_Occurred()) SWIG_fail;
31900 }
31901 {
31902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31903 }
31904 return resultobj;
31905 fail:
31906 return NULL;
31907 }
31908
31909
31910 static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
31911 PyObject *resultobj;
31912 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31913 wxFrame *arg2 = (wxFrame *) 0 ;
31914 PyObject * obj0 = 0 ;
31915 PyObject * obj1 = 0 ;
31916 char *kwnames[] = {
31917 (char *) "self",(char *) "frame", NULL
31918 };
31919
31920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
31921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
31924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31925 {
31926 PyThreadState* __tstate = wxPyBeginAllowThreads();
31927 (arg1)->Attach(arg2);
31928
31929 wxPyEndAllowThreads(__tstate);
31930 if (PyErr_Occurred()) SWIG_fail;
31931 }
31932 Py_INCREF(Py_None); resultobj = Py_None;
31933 return resultobj;
31934 fail:
31935 return NULL;
31936 }
31937
31938
31939 static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
31940 PyObject *resultobj;
31941 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31942 PyObject * obj0 = 0 ;
31943 char *kwnames[] = {
31944 (char *) "self", NULL
31945 };
31946
31947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
31948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31950 {
31951 PyThreadState* __tstate = wxPyBeginAllowThreads();
31952 (arg1)->Detach();
31953
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
31957 Py_INCREF(Py_None); resultobj = Py_None;
31958 return resultobj;
31959 fail:
31960 return NULL;
31961 }
31962
31963
31964 static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
31965 PyObject *obj;
31966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31967 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
31968 Py_INCREF(obj);
31969 return Py_BuildValue((char *)"");
31970 }
31971 static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31972 PyObject *resultobj;
31973 wxMenu *arg1 = (wxMenu *) NULL ;
31974 int arg2 = (int) wxID_ANY ;
31975 wxString const &arg3_defvalue = wxPyEmptyString ;
31976 wxString *arg3 = (wxString *) &arg3_defvalue ;
31977 wxString const &arg4_defvalue = wxPyEmptyString ;
31978 wxString *arg4 = (wxString *) &arg4_defvalue ;
31979 int arg5 = (int) wxITEM_NORMAL ;
31980 wxMenu *arg6 = (wxMenu *) NULL ;
31981 wxMenuItem *result;
31982 bool temp3 = False ;
31983 bool temp4 = False ;
31984 PyObject * obj0 = 0 ;
31985 PyObject * obj1 = 0 ;
31986 PyObject * obj2 = 0 ;
31987 PyObject * obj3 = 0 ;
31988 PyObject * obj4 = 0 ;
31989 PyObject * obj5 = 0 ;
31990 char *kwnames[] = {
31991 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
31992 };
31993
31994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31995 if (obj0) {
31996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31998 }
31999 if (obj1) {
32000 arg2 = (int) SWIG_AsInt(obj1);
32001 if (PyErr_Occurred()) SWIG_fail;
32002 }
32003 if (obj2) {
32004 {
32005 arg3 = wxString_in_helper(obj2);
32006 if (arg3 == NULL) SWIG_fail;
32007 temp3 = True;
32008 }
32009 }
32010 if (obj3) {
32011 {
32012 arg4 = wxString_in_helper(obj3);
32013 if (arg4 == NULL) SWIG_fail;
32014 temp4 = True;
32015 }
32016 }
32017 if (obj4) {
32018 arg5 = (wxItemKind) SWIG_AsInt(obj4);
32019 if (PyErr_Occurred()) SWIG_fail;
32020 }
32021 if (obj5) {
32022 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
32023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32024 }
32025 {
32026 PyThreadState* __tstate = wxPyBeginAllowThreads();
32027 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
32028
32029 wxPyEndAllowThreads(__tstate);
32030 if (PyErr_Occurred()) SWIG_fail;
32031 }
32032 {
32033 resultobj = wxPyMake_wxObject(result, 1);
32034 }
32035 {
32036 if (temp3)
32037 delete arg3;
32038 }
32039 {
32040 if (temp4)
32041 delete arg4;
32042 }
32043 return resultobj;
32044 fail:
32045 {
32046 if (temp3)
32047 delete arg3;
32048 }
32049 {
32050 if (temp4)
32051 delete arg4;
32052 }
32053 return NULL;
32054 }
32055
32056
32057 static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj;
32059 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32060 wxMenu *result;
32061 PyObject * obj0 = 0 ;
32062 char *kwnames[] = {
32063 (char *) "self", NULL
32064 };
32065
32066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
32067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32069 {
32070 PyThreadState* __tstate = wxPyBeginAllowThreads();
32071 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
32072
32073 wxPyEndAllowThreads(__tstate);
32074 if (PyErr_Occurred()) SWIG_fail;
32075 }
32076 {
32077 resultobj = wxPyMake_wxObject(result, 0);
32078 }
32079 return resultobj;
32080 fail:
32081 return NULL;
32082 }
32083
32084
32085 static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32086 PyObject *resultobj;
32087 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32088 wxMenu *arg2 = (wxMenu *) 0 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 char *kwnames[] = {
32092 (char *) "self",(char *) "menu", NULL
32093 };
32094
32095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
32096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32100 {
32101 PyThreadState* __tstate = wxPyBeginAllowThreads();
32102 (arg1)->SetMenu(arg2);
32103
32104 wxPyEndAllowThreads(__tstate);
32105 if (PyErr_Occurred()) SWIG_fail;
32106 }
32107 Py_INCREF(Py_None); resultobj = Py_None;
32108 return resultobj;
32109 fail:
32110 return NULL;
32111 }
32112
32113
32114 static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32115 PyObject *resultobj;
32116 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32117 int arg2 ;
32118 PyObject * obj0 = 0 ;
32119 PyObject * obj1 = 0 ;
32120 char *kwnames[] = {
32121 (char *) "self",(char *) "id", NULL
32122 };
32123
32124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
32125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32127 arg2 = (int) SWIG_AsInt(obj1);
32128 if (PyErr_Occurred()) SWIG_fail;
32129 {
32130 PyThreadState* __tstate = wxPyBeginAllowThreads();
32131 (arg1)->SetId(arg2);
32132
32133 wxPyEndAllowThreads(__tstate);
32134 if (PyErr_Occurred()) SWIG_fail;
32135 }
32136 Py_INCREF(Py_None); resultobj = Py_None;
32137 return resultobj;
32138 fail:
32139 return NULL;
32140 }
32141
32142
32143 static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32144 PyObject *resultobj;
32145 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32146 int result;
32147 PyObject * obj0 = 0 ;
32148 char *kwnames[] = {
32149 (char *) "self", NULL
32150 };
32151
32152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32155 {
32156 PyThreadState* __tstate = wxPyBeginAllowThreads();
32157 result = (int)((wxMenuItem const *)arg1)->GetId();
32158
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 resultobj = SWIG_FromInt((int)result);
32163 return resultobj;
32164 fail:
32165 return NULL;
32166 }
32167
32168
32169 static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
32170 PyObject *resultobj;
32171 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32172 bool result;
32173 PyObject * obj0 = 0 ;
32174 char *kwnames[] = {
32175 (char *) "self", NULL
32176 };
32177
32178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32181 {
32182 PyThreadState* __tstate = wxPyBeginAllowThreads();
32183 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32184
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 {
32189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32190 }
32191 return resultobj;
32192 fail:
32193 return NULL;
32194 }
32195
32196
32197 static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32198 PyObject *resultobj;
32199 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32200 wxString *arg2 = 0 ;
32201 bool temp2 = False ;
32202 PyObject * obj0 = 0 ;
32203 PyObject * obj1 = 0 ;
32204 char *kwnames[] = {
32205 (char *) "self",(char *) "str", NULL
32206 };
32207
32208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32211 {
32212 arg2 = wxString_in_helper(obj1);
32213 if (arg2 == NULL) SWIG_fail;
32214 temp2 = True;
32215 }
32216 {
32217 PyThreadState* __tstate = wxPyBeginAllowThreads();
32218 (arg1)->SetText((wxString const &)*arg2);
32219
32220 wxPyEndAllowThreads(__tstate);
32221 if (PyErr_Occurred()) SWIG_fail;
32222 }
32223 Py_INCREF(Py_None); resultobj = Py_None;
32224 {
32225 if (temp2)
32226 delete arg2;
32227 }
32228 return resultobj;
32229 fail:
32230 {
32231 if (temp2)
32232 delete arg2;
32233 }
32234 return NULL;
32235 }
32236
32237
32238 static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32239 PyObject *resultobj;
32240 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32241 wxString result;
32242 PyObject * obj0 = 0 ;
32243 char *kwnames[] = {
32244 (char *) "self", NULL
32245 };
32246
32247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32250 {
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 result = ((wxMenuItem const *)arg1)->GetLabel();
32253
32254 wxPyEndAllowThreads(__tstate);
32255 if (PyErr_Occurred()) SWIG_fail;
32256 }
32257 {
32258 #if wxUSE_UNICODE
32259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32260 #else
32261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32262 #endif
32263 }
32264 return resultobj;
32265 fail:
32266 return NULL;
32267 }
32268
32269
32270 static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32271 PyObject *resultobj;
32272 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32273 wxString *result;
32274 PyObject * obj0 = 0 ;
32275 char *kwnames[] = {
32276 (char *) "self", NULL
32277 };
32278
32279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32282 {
32283 PyThreadState* __tstate = wxPyBeginAllowThreads();
32284 {
32285 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32286 result = (wxString *) &_result_ref;
32287 }
32288
32289 wxPyEndAllowThreads(__tstate);
32290 if (PyErr_Occurred()) SWIG_fail;
32291 }
32292 {
32293 #if wxUSE_UNICODE
32294 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32295 #else
32296 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32297 #endif
32298 }
32299 return resultobj;
32300 fail:
32301 return NULL;
32302 }
32303
32304
32305 static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
32306 PyObject *resultobj;
32307 wxString *arg1 = 0 ;
32308 wxString result;
32309 bool temp1 = False ;
32310 PyObject * obj0 = 0 ;
32311 char *kwnames[] = {
32312 (char *) "text", NULL
32313 };
32314
32315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32316 {
32317 arg1 = wxString_in_helper(obj0);
32318 if (arg1 == NULL) SWIG_fail;
32319 temp1 = True;
32320 }
32321 {
32322 PyThreadState* __tstate = wxPyBeginAllowThreads();
32323 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32324
32325 wxPyEndAllowThreads(__tstate);
32326 if (PyErr_Occurred()) SWIG_fail;
32327 }
32328 {
32329 #if wxUSE_UNICODE
32330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32331 #else
32332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32333 #endif
32334 }
32335 {
32336 if (temp1)
32337 delete arg1;
32338 }
32339 return resultobj;
32340 fail:
32341 {
32342 if (temp1)
32343 delete arg1;
32344 }
32345 return NULL;
32346 }
32347
32348
32349 static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj;
32351 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32352 int result;
32353 PyObject * obj0 = 0 ;
32354 char *kwnames[] = {
32355 (char *) "self", NULL
32356 };
32357
32358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
32359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 result = (int)((wxMenuItem const *)arg1)->GetKind();
32364
32365 wxPyEndAllowThreads(__tstate);
32366 if (PyErr_Occurred()) SWIG_fail;
32367 }
32368 resultobj = SWIG_FromInt((int)result);
32369 return resultobj;
32370 fail:
32371 return NULL;
32372 }
32373
32374
32375 static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32376 PyObject *resultobj;
32377 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32378 int arg2 ;
32379 PyObject * obj0 = 0 ;
32380 PyObject * obj1 = 0 ;
32381 char *kwnames[] = {
32382 (char *) "self",(char *) "kind", NULL
32383 };
32384
32385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32388 arg2 = (wxItemKind) SWIG_AsInt(obj1);
32389 if (PyErr_Occurred()) SWIG_fail;
32390 {
32391 PyThreadState* __tstate = wxPyBeginAllowThreads();
32392 (arg1)->SetKind((wxItemKind )arg2);
32393
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 Py_INCREF(Py_None); resultobj = Py_None;
32398 return resultobj;
32399 fail:
32400 return NULL;
32401 }
32402
32403
32404 static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32405 PyObject *resultobj;
32406 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32407 bool arg2 ;
32408 PyObject * obj0 = 0 ;
32409 PyObject * obj1 = 0 ;
32410 char *kwnames[] = {
32411 (char *) "self",(char *) "checkable", NULL
32412 };
32413
32414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32417 arg2 = (bool) SWIG_AsBool(obj1);
32418 if (PyErr_Occurred()) SWIG_fail;
32419 {
32420 PyThreadState* __tstate = wxPyBeginAllowThreads();
32421 (arg1)->SetCheckable(arg2);
32422
32423 wxPyEndAllowThreads(__tstate);
32424 if (PyErr_Occurred()) SWIG_fail;
32425 }
32426 Py_INCREF(Py_None); resultobj = Py_None;
32427 return resultobj;
32428 fail:
32429 return NULL;
32430 }
32431
32432
32433 static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32434 PyObject *resultobj;
32435 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32436 bool result;
32437 PyObject * obj0 = 0 ;
32438 char *kwnames[] = {
32439 (char *) "self", NULL
32440 };
32441
32442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32445 {
32446 PyThreadState* __tstate = wxPyBeginAllowThreads();
32447 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32448
32449 wxPyEndAllowThreads(__tstate);
32450 if (PyErr_Occurred()) SWIG_fail;
32451 }
32452 {
32453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32454 }
32455 return resultobj;
32456 fail:
32457 return NULL;
32458 }
32459
32460
32461 static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32462 PyObject *resultobj;
32463 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32464 bool result;
32465 PyObject * obj0 = 0 ;
32466 char *kwnames[] = {
32467 (char *) "self", NULL
32468 };
32469
32470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32473 {
32474 PyThreadState* __tstate = wxPyBeginAllowThreads();
32475 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32476
32477 wxPyEndAllowThreads(__tstate);
32478 if (PyErr_Occurred()) SWIG_fail;
32479 }
32480 {
32481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32482 }
32483 return resultobj;
32484 fail:
32485 return NULL;
32486 }
32487
32488
32489 static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32490 PyObject *resultobj;
32491 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32492 wxMenu *arg2 = (wxMenu *) 0 ;
32493 PyObject * obj0 = 0 ;
32494 PyObject * obj1 = 0 ;
32495 char *kwnames[] = {
32496 (char *) "self",(char *) "menu", NULL
32497 };
32498
32499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32504 {
32505 PyThreadState* __tstate = wxPyBeginAllowThreads();
32506 (arg1)->SetSubMenu(arg2);
32507
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 Py_INCREF(Py_None); resultobj = Py_None;
32512 return resultobj;
32513 fail:
32514 return NULL;
32515 }
32516
32517
32518 static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32519 PyObject *resultobj;
32520 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32521 wxMenu *result;
32522 PyObject * obj0 = 0 ;
32523 char *kwnames[] = {
32524 (char *) "self", NULL
32525 };
32526
32527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32530 {
32531 PyThreadState* __tstate = wxPyBeginAllowThreads();
32532 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32533
32534 wxPyEndAllowThreads(__tstate);
32535 if (PyErr_Occurred()) SWIG_fail;
32536 }
32537 {
32538 resultobj = wxPyMake_wxObject(result, 0);
32539 }
32540 return resultobj;
32541 fail:
32542 return NULL;
32543 }
32544
32545
32546 static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
32547 PyObject *resultobj;
32548 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32549 bool arg2 = (bool) True ;
32550 PyObject * obj0 = 0 ;
32551 PyObject * obj1 = 0 ;
32552 char *kwnames[] = {
32553 (char *) "self",(char *) "enable", NULL
32554 };
32555
32556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32559 if (obj1) {
32560 arg2 = (bool) SWIG_AsBool(obj1);
32561 if (PyErr_Occurred()) SWIG_fail;
32562 }
32563 {
32564 PyThreadState* __tstate = wxPyBeginAllowThreads();
32565 (arg1)->Enable(arg2);
32566
32567 wxPyEndAllowThreads(__tstate);
32568 if (PyErr_Occurred()) SWIG_fail;
32569 }
32570 Py_INCREF(Py_None); resultobj = Py_None;
32571 return resultobj;
32572 fail:
32573 return NULL;
32574 }
32575
32576
32577 static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
32578 PyObject *resultobj;
32579 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32580 bool result;
32581 PyObject * obj0 = 0 ;
32582 char *kwnames[] = {
32583 (char *) "self", NULL
32584 };
32585
32586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32589 {
32590 PyThreadState* __tstate = wxPyBeginAllowThreads();
32591 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32592
32593 wxPyEndAllowThreads(__tstate);
32594 if (PyErr_Occurred()) SWIG_fail;
32595 }
32596 {
32597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32598 }
32599 return resultobj;
32600 fail:
32601 return NULL;
32602 }
32603
32604
32605 static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
32606 PyObject *resultobj;
32607 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32608 bool arg2 = (bool) True ;
32609 PyObject * obj0 = 0 ;
32610 PyObject * obj1 = 0 ;
32611 char *kwnames[] = {
32612 (char *) "self",(char *) "check", NULL
32613 };
32614
32615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32618 if (obj1) {
32619 arg2 = (bool) SWIG_AsBool(obj1);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 {
32623 PyThreadState* __tstate = wxPyBeginAllowThreads();
32624 (arg1)->Check(arg2);
32625
32626 wxPyEndAllowThreads(__tstate);
32627 if (PyErr_Occurred()) SWIG_fail;
32628 }
32629 Py_INCREF(Py_None); resultobj = Py_None;
32630 return resultobj;
32631 fail:
32632 return NULL;
32633 }
32634
32635
32636 static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
32637 PyObject *resultobj;
32638 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32639 bool result;
32640 PyObject * obj0 = 0 ;
32641 char *kwnames[] = {
32642 (char *) "self", NULL
32643 };
32644
32645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32648 {
32649 PyThreadState* __tstate = wxPyBeginAllowThreads();
32650 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32651
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 {
32656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32657 }
32658 return resultobj;
32659 fail:
32660 return NULL;
32661 }
32662
32663
32664 static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
32665 PyObject *resultobj;
32666 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32667 PyObject * obj0 = 0 ;
32668 char *kwnames[] = {
32669 (char *) "self", NULL
32670 };
32671
32672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32675 {
32676 PyThreadState* __tstate = wxPyBeginAllowThreads();
32677 (arg1)->Toggle();
32678
32679 wxPyEndAllowThreads(__tstate);
32680 if (PyErr_Occurred()) SWIG_fail;
32681 }
32682 Py_INCREF(Py_None); resultobj = Py_None;
32683 return resultobj;
32684 fail:
32685 return NULL;
32686 }
32687
32688
32689 static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32690 PyObject *resultobj;
32691 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32692 wxString *arg2 = 0 ;
32693 bool temp2 = False ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 char *kwnames[] = {
32697 (char *) "self",(char *) "str", NULL
32698 };
32699
32700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32703 {
32704 arg2 = wxString_in_helper(obj1);
32705 if (arg2 == NULL) SWIG_fail;
32706 temp2 = True;
32707 }
32708 {
32709 PyThreadState* __tstate = wxPyBeginAllowThreads();
32710 (arg1)->SetHelp((wxString const &)*arg2);
32711
32712 wxPyEndAllowThreads(__tstate);
32713 if (PyErr_Occurred()) SWIG_fail;
32714 }
32715 Py_INCREF(Py_None); resultobj = Py_None;
32716 {
32717 if (temp2)
32718 delete arg2;
32719 }
32720 return resultobj;
32721 fail:
32722 {
32723 if (temp2)
32724 delete arg2;
32725 }
32726 return NULL;
32727 }
32728
32729
32730 static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32731 PyObject *resultobj;
32732 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32733 wxString *result;
32734 PyObject * obj0 = 0 ;
32735 char *kwnames[] = {
32736 (char *) "self", NULL
32737 };
32738
32739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
32740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 {
32745 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
32746 result = (wxString *) &_result_ref;
32747 }
32748
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 {
32753 #if wxUSE_UNICODE
32754 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32755 #else
32756 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32757 #endif
32758 }
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32766 PyObject *resultobj;
32767 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32768 wxAcceleratorEntry *result;
32769 PyObject * obj0 = 0 ;
32770 char *kwnames[] = {
32771 (char *) "self", NULL
32772 };
32773
32774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
32775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
32780
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
32785 return resultobj;
32786 fail:
32787 return NULL;
32788 }
32789
32790
32791 static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32792 PyObject *resultobj;
32793 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32794 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32795 PyObject * obj0 = 0 ;
32796 PyObject * obj1 = 0 ;
32797 char *kwnames[] = {
32798 (char *) "self",(char *) "accel", NULL
32799 };
32800
32801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
32802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
32805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 (arg1)->SetAccel(arg2);
32809
32810 wxPyEndAllowThreads(__tstate);
32811 if (PyErr_Occurred()) SWIG_fail;
32812 }
32813 Py_INCREF(Py_None); resultobj = Py_None;
32814 return resultobj;
32815 fail:
32816 return NULL;
32817 }
32818
32819
32820 static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
32821 PyObject *resultobj;
32822 int result;
32823 char *kwnames[] = {
32824 NULL
32825 };
32826
32827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
32828 {
32829 PyThreadState* __tstate = wxPyBeginAllowThreads();
32830 result = (int)MenuItem_GetDefaultMarginWidth();
32831
32832 wxPyEndAllowThreads(__tstate);
32833 if (PyErr_Occurred()) SWIG_fail;
32834 }
32835 resultobj = SWIG_FromInt((int)result);
32836 return resultobj;
32837 fail:
32838 return NULL;
32839 }
32840
32841
32842 static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32843 PyObject *resultobj;
32844 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32845 wxBitmap *arg2 = 0 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 char *kwnames[] = {
32849 (char *) "self",(char *) "bitmap", NULL
32850 };
32851
32852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
32853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32856 SWIG_POINTER_EXCEPTION | 0)) == -1)
32857 SWIG_fail;
32858 if (arg2 == NULL) {
32859 PyErr_SetString(PyExc_TypeError,"null reference");
32860 SWIG_fail;
32861 }
32862 {
32863 PyThreadState* __tstate = wxPyBeginAllowThreads();
32864 (arg1)->SetBitmap((wxBitmap const &)*arg2);
32865
32866 wxPyEndAllowThreads(__tstate);
32867 if (PyErr_Occurred()) SWIG_fail;
32868 }
32869 Py_INCREF(Py_None); resultobj = Py_None;
32870 return resultobj;
32871 fail:
32872 return NULL;
32873 }
32874
32875
32876 static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32877 PyObject *resultobj;
32878 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32879 wxBitmap *result;
32880 PyObject * obj0 = 0 ;
32881 char *kwnames[] = {
32882 (char *) "self", NULL
32883 };
32884
32885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
32886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32888 {
32889 PyThreadState* __tstate = wxPyBeginAllowThreads();
32890 {
32891 wxBitmap const &_result_ref = (arg1)->GetBitmap();
32892 result = (wxBitmap *) &_result_ref;
32893 }
32894
32895 wxPyEndAllowThreads(__tstate);
32896 if (PyErr_Occurred()) SWIG_fail;
32897 }
32898 {
32899 wxBitmap* resultptr = new wxBitmap(*result);
32900 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
32901 }
32902 return resultobj;
32903 fail:
32904 return NULL;
32905 }
32906
32907
32908 static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
32909 PyObject *obj;
32910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32911 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
32912 Py_INCREF(obj);
32913 return Py_BuildValue((char *)"");
32914 }
32915 static int _wrap_ControlNameStr_set(PyObject *_val) {
32916 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
32917 return 1;
32918 }
32919
32920
32921 static PyObject *_wrap_ControlNameStr_get() {
32922 PyObject *pyobj;
32923
32924 {
32925 #if wxUSE_UNICODE
32926 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
32927 #else
32928 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
32929 #endif
32930 }
32931 return pyobj;
32932 }
32933
32934
32935 static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
32936 PyObject *resultobj;
32937 wxWindow *arg1 = (wxWindow *) 0 ;
32938 int arg2 = (int) -1 ;
32939 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32940 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32941 wxSize const &arg4_defvalue = wxDefaultSize ;
32942 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32943 long arg5 = (long) 0 ;
32944 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32945 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32946 wxString const &arg7_defvalue = wxPyControlNameStr ;
32947 wxString *arg7 = (wxString *) &arg7_defvalue ;
32948 wxControl *result;
32949 wxPoint temp3 ;
32950 wxSize temp4 ;
32951 bool temp7 = False ;
32952 PyObject * obj0 = 0 ;
32953 PyObject * obj1 = 0 ;
32954 PyObject * obj2 = 0 ;
32955 PyObject * obj3 = 0 ;
32956 PyObject * obj4 = 0 ;
32957 PyObject * obj5 = 0 ;
32958 PyObject * obj6 = 0 ;
32959 char *kwnames[] = {
32960 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32961 };
32962
32963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
32964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
32965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32966 if (obj1) {
32967 arg2 = (int) SWIG_AsInt(obj1);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 if (obj2) {
32971 {
32972 arg3 = &temp3;
32973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32974 }
32975 }
32976 if (obj3) {
32977 {
32978 arg4 = &temp4;
32979 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32980 }
32981 }
32982 if (obj4) {
32983 arg5 = (long) SWIG_AsLong(obj4);
32984 if (PyErr_Occurred()) SWIG_fail;
32985 }
32986 if (obj5) {
32987 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
32988 SWIG_POINTER_EXCEPTION | 0)) == -1)
32989 SWIG_fail;
32990 if (arg6 == NULL) {
32991 PyErr_SetString(PyExc_TypeError,"null reference");
32992 SWIG_fail;
32993 }
32994 }
32995 if (obj6) {
32996 {
32997 arg7 = wxString_in_helper(obj6);
32998 if (arg7 == NULL) SWIG_fail;
32999 temp7 = True;
33000 }
33001 }
33002 {
33003 if (!wxPyCheckForApp()) SWIG_fail;
33004 PyThreadState* __tstate = wxPyBeginAllowThreads();
33005 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33006
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
33011 {
33012 if (temp7)
33013 delete arg7;
33014 }
33015 return resultobj;
33016 fail:
33017 {
33018 if (temp7)
33019 delete arg7;
33020 }
33021 return NULL;
33022 }
33023
33024
33025 static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
33026 PyObject *resultobj;
33027 wxControl *result;
33028 char *kwnames[] = {
33029 NULL
33030 };
33031
33032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33033 {
33034 if (!wxPyCheckForApp()) SWIG_fail;
33035 PyThreadState* __tstate = wxPyBeginAllowThreads();
33036 result = (wxControl *)new wxControl();
33037
33038 wxPyEndAllowThreads(__tstate);
33039 if (PyErr_Occurred()) SWIG_fail;
33040 }
33041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
33042 return resultobj;
33043 fail:
33044 return NULL;
33045 }
33046
33047
33048 static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
33049 PyObject *resultobj;
33050 wxControl *arg1 = (wxControl *) 0 ;
33051 wxWindow *arg2 = (wxWindow *) 0 ;
33052 int arg3 = (int) -1 ;
33053 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33054 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33055 wxSize const &arg5_defvalue = wxDefaultSize ;
33056 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33057 long arg6 = (long) 0 ;
33058 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33059 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33060 wxString const &arg8_defvalue = wxPyControlNameStr ;
33061 wxString *arg8 = (wxString *) &arg8_defvalue ;
33062 bool result;
33063 wxPoint temp4 ;
33064 wxSize temp5 ;
33065 bool temp8 = False ;
33066 PyObject * obj0 = 0 ;
33067 PyObject * obj1 = 0 ;
33068 PyObject * obj2 = 0 ;
33069 PyObject * obj3 = 0 ;
33070 PyObject * obj4 = 0 ;
33071 PyObject * obj5 = 0 ;
33072 PyObject * obj6 = 0 ;
33073 PyObject * obj7 = 0 ;
33074 char *kwnames[] = {
33075 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33076 };
33077
33078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
33079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33083 if (obj2) {
33084 arg3 = (int) SWIG_AsInt(obj2);
33085 if (PyErr_Occurred()) SWIG_fail;
33086 }
33087 if (obj3) {
33088 {
33089 arg4 = &temp4;
33090 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33091 }
33092 }
33093 if (obj4) {
33094 {
33095 arg5 = &temp5;
33096 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33097 }
33098 }
33099 if (obj5) {
33100 arg6 = (long) SWIG_AsLong(obj5);
33101 if (PyErr_Occurred()) SWIG_fail;
33102 }
33103 if (obj6) {
33104 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33105 SWIG_POINTER_EXCEPTION | 0)) == -1)
33106 SWIG_fail;
33107 if (arg7 == NULL) {
33108 PyErr_SetString(PyExc_TypeError,"null reference");
33109 SWIG_fail;
33110 }
33111 }
33112 if (obj7) {
33113 {
33114 arg8 = wxString_in_helper(obj7);
33115 if (arg8 == NULL) SWIG_fail;
33116 temp8 = True;
33117 }
33118 }
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33122
33123 wxPyEndAllowThreads(__tstate);
33124 if (PyErr_Occurred()) SWIG_fail;
33125 }
33126 {
33127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33128 }
33129 {
33130 if (temp8)
33131 delete arg8;
33132 }
33133 return resultobj;
33134 fail:
33135 {
33136 if (temp8)
33137 delete arg8;
33138 }
33139 return NULL;
33140 }
33141
33142
33143 static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
33144 PyObject *resultobj;
33145 wxControl *arg1 = (wxControl *) 0 ;
33146 wxCommandEvent *arg2 = 0 ;
33147 PyObject * obj0 = 0 ;
33148 PyObject * obj1 = 0 ;
33149 char *kwnames[] = {
33150 (char *) "self",(char *) "event", NULL
33151 };
33152
33153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33157 SWIG_POINTER_EXCEPTION | 0)) == -1)
33158 SWIG_fail;
33159 if (arg2 == NULL) {
33160 PyErr_SetString(PyExc_TypeError,"null reference");
33161 SWIG_fail;
33162 }
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->Command(*arg2);
33166
33167 wxPyEndAllowThreads(__tstate);
33168 if (PyErr_Occurred()) SWIG_fail;
33169 }
33170 Py_INCREF(Py_None); resultobj = Py_None;
33171 return resultobj;
33172 fail:
33173 return NULL;
33174 }
33175
33176
33177 static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33178 PyObject *resultobj;
33179 wxControl *arg1 = (wxControl *) 0 ;
33180 wxString result;
33181 PyObject * obj0 = 0 ;
33182 char *kwnames[] = {
33183 (char *) "self", NULL
33184 };
33185
33186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33189 {
33190 PyThreadState* __tstate = wxPyBeginAllowThreads();
33191 result = (arg1)->GetLabel();
33192
33193 wxPyEndAllowThreads(__tstate);
33194 if (PyErr_Occurred()) SWIG_fail;
33195 }
33196 {
33197 #if wxUSE_UNICODE
33198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33199 #else
33200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33201 #endif
33202 }
33203 return resultobj;
33204 fail:
33205 return NULL;
33206 }
33207
33208
33209 static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33210 PyObject *resultobj;
33211 wxControl *arg1 = (wxControl *) 0 ;
33212 wxString *arg2 = 0 ;
33213 bool temp2 = False ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char *kwnames[] = {
33217 (char *) "self",(char *) "label", NULL
33218 };
33219
33220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33223 {
33224 arg2 = wxString_in_helper(obj1);
33225 if (arg2 == NULL) SWIG_fail;
33226 temp2 = True;
33227 }
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 (arg1)->SetLabel((wxString const &)*arg2);
33231
33232 wxPyEndAllowThreads(__tstate);
33233 if (PyErr_Occurred()) SWIG_fail;
33234 }
33235 Py_INCREF(Py_None); resultobj = Py_None;
33236 {
33237 if (temp2)
33238 delete arg2;
33239 }
33240 return resultobj;
33241 fail:
33242 {
33243 if (temp2)
33244 delete arg2;
33245 }
33246 return NULL;
33247 }
33248
33249
33250 static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
33251 PyObject *resultobj;
33252 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33253 wxVisualAttributes result;
33254 PyObject * obj0 = 0 ;
33255 char *kwnames[] = {
33256 (char *) "variant", NULL
33257 };
33258
33259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33260 if (obj0) {
33261 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 {
33265 if (!wxPyCheckForApp()) SWIG_fail;
33266 PyThreadState* __tstate = wxPyBeginAllowThreads();
33267 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
33268
33269 wxPyEndAllowThreads(__tstate);
33270 if (PyErr_Occurred()) SWIG_fail;
33271 }
33272 {
33273 wxVisualAttributes * resultptr;
33274 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
33275 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
33276 }
33277 return resultobj;
33278 fail:
33279 return NULL;
33280 }
33281
33282
33283 static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
33284 PyObject *obj;
33285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33286 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
33287 Py_INCREF(obj);
33288 return Py_BuildValue((char *)"");
33289 }
33290 static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
33291 PyObject *resultobj;
33292 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33293 wxString *arg2 = 0 ;
33294 PyObject *arg3 = (PyObject *) NULL ;
33295 int result;
33296 bool temp2 = False ;
33297 PyObject * obj0 = 0 ;
33298 PyObject * obj1 = 0 ;
33299 PyObject * obj2 = 0 ;
33300 char *kwnames[] = {
33301 (char *) "self",(char *) "item",(char *) "clientData", NULL
33302 };
33303
33304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
33305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33307 {
33308 arg2 = wxString_in_helper(obj1);
33309 if (arg2 == NULL) SWIG_fail;
33310 temp2 = True;
33311 }
33312 if (obj2) {
33313 arg3 = obj2;
33314 }
33315 {
33316 PyThreadState* __tstate = wxPyBeginAllowThreads();
33317 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
33318
33319 wxPyEndAllowThreads(__tstate);
33320 if (PyErr_Occurred()) SWIG_fail;
33321 }
33322 resultobj = SWIG_FromInt((int)result);
33323 {
33324 if (temp2)
33325 delete arg2;
33326 }
33327 return resultobj;
33328 fail:
33329 {
33330 if (temp2)
33331 delete arg2;
33332 }
33333 return NULL;
33334 }
33335
33336
33337 static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
33338 PyObject *resultobj;
33339 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33340 wxArrayString *arg2 = 0 ;
33341 bool temp2 = False ;
33342 PyObject * obj0 = 0 ;
33343 PyObject * obj1 = 0 ;
33344 char *kwnames[] = {
33345 (char *) "self",(char *) "strings", NULL
33346 };
33347
33348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
33349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33351 {
33352 if (! PySequence_Check(obj1)) {
33353 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
33354 SWIG_fail;
33355 }
33356 arg2 = new wxArrayString;
33357 temp2 = True;
33358 int i, len=PySequence_Length(obj1);
33359 for (i=0; i<len; i++) {
33360 PyObject* item = PySequence_GetItem(obj1, i);
33361 #if wxUSE_UNICODE
33362 PyObject* str = PyObject_Unicode(item);
33363 #else
33364 PyObject* str = PyObject_Str(item);
33365 #endif
33366 if (PyErr_Occurred()) SWIG_fail;
33367 arg2->Add(Py2wxString(str));
33368 Py_DECREF(item);
33369 Py_DECREF(str);
33370 }
33371 }
33372 {
33373 PyThreadState* __tstate = wxPyBeginAllowThreads();
33374 (arg1)->Append((wxArrayString const &)*arg2);
33375
33376 wxPyEndAllowThreads(__tstate);
33377 if (PyErr_Occurred()) SWIG_fail;
33378 }
33379 Py_INCREF(Py_None); resultobj = Py_None;
33380 {
33381 if (temp2) delete arg2;
33382 }
33383 return resultobj;
33384 fail:
33385 {
33386 if (temp2) delete arg2;
33387 }
33388 return NULL;
33389 }
33390
33391
33392 static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33393 PyObject *resultobj;
33394 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33395 wxString *arg2 = 0 ;
33396 int arg3 ;
33397 PyObject *arg4 = (PyObject *) NULL ;
33398 int result;
33399 bool temp2 = False ;
33400 PyObject * obj0 = 0 ;
33401 PyObject * obj1 = 0 ;
33402 PyObject * obj2 = 0 ;
33403 PyObject * obj3 = 0 ;
33404 char *kwnames[] = {
33405 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
33406 };
33407
33408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33411 {
33412 arg2 = wxString_in_helper(obj1);
33413 if (arg2 == NULL) SWIG_fail;
33414 temp2 = True;
33415 }
33416 arg3 = (int) SWIG_AsInt(obj2);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 if (obj3) {
33419 arg4 = obj3;
33420 }
33421 {
33422 PyThreadState* __tstate = wxPyBeginAllowThreads();
33423 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
33424
33425 wxPyEndAllowThreads(__tstate);
33426 if (PyErr_Occurred()) SWIG_fail;
33427 }
33428 resultobj = SWIG_FromInt((int)result);
33429 {
33430 if (temp2)
33431 delete arg2;
33432 }
33433 return resultobj;
33434 fail:
33435 {
33436 if (temp2)
33437 delete arg2;
33438 }
33439 return NULL;
33440 }
33441
33442
33443 static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33444 PyObject *resultobj;
33445 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33446 PyObject * obj0 = 0 ;
33447 char *kwnames[] = {
33448 (char *) "self", NULL
33449 };
33450
33451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
33452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33454 {
33455 PyThreadState* __tstate = wxPyBeginAllowThreads();
33456 (arg1)->Clear();
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_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
33469 PyObject *resultobj;
33470 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33471 int arg2 ;
33472 PyObject * obj0 = 0 ;
33473 PyObject * obj1 = 0 ;
33474 char *kwnames[] = {
33475 (char *) "self",(char *) "n", NULL
33476 };
33477
33478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
33479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33481 arg2 = (int) SWIG_AsInt(obj1);
33482 if (PyErr_Occurred()) SWIG_fail;
33483 {
33484 PyThreadState* __tstate = wxPyBeginAllowThreads();
33485 (arg1)->Delete(arg2);
33486
33487 wxPyEndAllowThreads(__tstate);
33488 if (PyErr_Occurred()) SWIG_fail;
33489 }
33490 Py_INCREF(Py_None); resultobj = Py_None;
33491 return resultobj;
33492 fail:
33493 return NULL;
33494 }
33495
33496
33497 static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
33498 PyObject *resultobj;
33499 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33500 int result;
33501 PyObject * obj0 = 0 ;
33502 char *kwnames[] = {
33503 (char *) "self", NULL
33504 };
33505
33506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
33507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33509 {
33510 PyThreadState* __tstate = wxPyBeginAllowThreads();
33511 result = (int)((wxItemContainer const *)arg1)->GetCount();
33512
33513 wxPyEndAllowThreads(__tstate);
33514 if (PyErr_Occurred()) SWIG_fail;
33515 }
33516 resultobj = SWIG_FromInt((int)result);
33517 return resultobj;
33518 fail:
33519 return NULL;
33520 }
33521
33522
33523 static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
33524 PyObject *resultobj;
33525 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33526 bool result;
33527 PyObject * obj0 = 0 ;
33528 char *kwnames[] = {
33529 (char *) "self", NULL
33530 };
33531
33532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
33533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33535 {
33536 PyThreadState* __tstate = wxPyBeginAllowThreads();
33537 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
33538
33539 wxPyEndAllowThreads(__tstate);
33540 if (PyErr_Occurred()) SWIG_fail;
33541 }
33542 {
33543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33544 }
33545 return resultobj;
33546 fail:
33547 return NULL;
33548 }
33549
33550
33551 static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33552 PyObject *resultobj;
33553 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33554 int arg2 ;
33555 wxString result;
33556 PyObject * obj0 = 0 ;
33557 PyObject * obj1 = 0 ;
33558 char *kwnames[] = {
33559 (char *) "self",(char *) "n", NULL
33560 };
33561
33562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
33563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33565 arg2 = (int) SWIG_AsInt(obj1);
33566 if (PyErr_Occurred()) SWIG_fail;
33567 {
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 result = ((wxItemContainer const *)arg1)->GetString(arg2);
33570
33571 wxPyEndAllowThreads(__tstate);
33572 if (PyErr_Occurred()) SWIG_fail;
33573 }
33574 {
33575 #if wxUSE_UNICODE
33576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33577 #else
33578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33579 #endif
33580 }
33581 return resultobj;
33582 fail:
33583 return NULL;
33584 }
33585
33586
33587 static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
33588 PyObject *resultobj;
33589 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33590 wxArrayString result;
33591 PyObject * obj0 = 0 ;
33592 char *kwnames[] = {
33593 (char *) "self", NULL
33594 };
33595
33596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
33597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33599 {
33600 PyThreadState* __tstate = wxPyBeginAllowThreads();
33601 result = ((wxItemContainer const *)arg1)->GetStrings();
33602
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 {
33607 resultobj = wxArrayString2PyList_helper(result);
33608 }
33609 return resultobj;
33610 fail:
33611 return NULL;
33612 }
33613
33614
33615 static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33616 PyObject *resultobj;
33617 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33618 int arg2 ;
33619 wxString *arg3 = 0 ;
33620 bool temp3 = False ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 PyObject * obj2 = 0 ;
33624 char *kwnames[] = {
33625 (char *) "self",(char *) "n",(char *) "s", NULL
33626 };
33627
33628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
33629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33631 arg2 = (int) SWIG_AsInt(obj1);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 {
33634 arg3 = wxString_in_helper(obj2);
33635 if (arg3 == NULL) SWIG_fail;
33636 temp3 = True;
33637 }
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 (arg1)->SetString(arg2,(wxString const &)*arg3);
33641
33642 wxPyEndAllowThreads(__tstate);
33643 if (PyErr_Occurred()) SWIG_fail;
33644 }
33645 Py_INCREF(Py_None); resultobj = Py_None;
33646 {
33647 if (temp3)
33648 delete arg3;
33649 }
33650 return resultobj;
33651 fail:
33652 {
33653 if (temp3)
33654 delete arg3;
33655 }
33656 return NULL;
33657 }
33658
33659
33660 static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
33661 PyObject *resultobj;
33662 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33663 wxString *arg2 = 0 ;
33664 int result;
33665 bool temp2 = False ;
33666 PyObject * obj0 = 0 ;
33667 PyObject * obj1 = 0 ;
33668 char *kwnames[] = {
33669 (char *) "self",(char *) "s", NULL
33670 };
33671
33672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
33673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33675 {
33676 arg2 = wxString_in_helper(obj1);
33677 if (arg2 == NULL) SWIG_fail;
33678 temp2 = True;
33679 }
33680 {
33681 PyThreadState* __tstate = wxPyBeginAllowThreads();
33682 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
33683
33684 wxPyEndAllowThreads(__tstate);
33685 if (PyErr_Occurred()) SWIG_fail;
33686 }
33687 resultobj = SWIG_FromInt((int)result);
33688 {
33689 if (temp2)
33690 delete arg2;
33691 }
33692 return resultobj;
33693 fail:
33694 {
33695 if (temp2)
33696 delete arg2;
33697 }
33698 return NULL;
33699 }
33700
33701
33702 static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
33703 PyObject *resultobj;
33704 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33705 int arg2 ;
33706 PyObject * obj0 = 0 ;
33707 PyObject * obj1 = 0 ;
33708 char *kwnames[] = {
33709 (char *) "self",(char *) "n", NULL
33710 };
33711
33712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
33713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33715 arg2 = (int) SWIG_AsInt(obj1);
33716 if (PyErr_Occurred()) SWIG_fail;
33717 {
33718 PyThreadState* __tstate = wxPyBeginAllowThreads();
33719 (arg1)->Select(arg2);
33720
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 Py_INCREF(Py_None); resultobj = Py_None;
33725 return resultobj;
33726 fail:
33727 return NULL;
33728 }
33729
33730
33731 static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
33732 PyObject *resultobj;
33733 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33734 int result;
33735 PyObject * obj0 = 0 ;
33736 char *kwnames[] = {
33737 (char *) "self", NULL
33738 };
33739
33740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
33741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 result = (int)((wxItemContainer const *)arg1)->GetSelection();
33746
33747 wxPyEndAllowThreads(__tstate);
33748 if (PyErr_Occurred()) SWIG_fail;
33749 }
33750 resultobj = SWIG_FromInt((int)result);
33751 return resultobj;
33752 fail:
33753 return NULL;
33754 }
33755
33756
33757 static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
33758 PyObject *resultobj;
33759 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33760 wxString result;
33761 PyObject * obj0 = 0 ;
33762 char *kwnames[] = {
33763 (char *) "self", NULL
33764 };
33765
33766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
33767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33769 {
33770 PyThreadState* __tstate = wxPyBeginAllowThreads();
33771 result = ((wxItemContainer const *)arg1)->GetStringSelection();
33772
33773 wxPyEndAllowThreads(__tstate);
33774 if (PyErr_Occurred()) SWIG_fail;
33775 }
33776 {
33777 #if wxUSE_UNICODE
33778 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33779 #else
33780 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33781 #endif
33782 }
33783 return resultobj;
33784 fail:
33785 return NULL;
33786 }
33787
33788
33789 static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
33790 PyObject *resultobj;
33791 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33792 int arg2 ;
33793 PyObject *result;
33794 PyObject * obj0 = 0 ;
33795 PyObject * obj1 = 0 ;
33796 char *kwnames[] = {
33797 (char *) "self",(char *) "n", NULL
33798 };
33799
33800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
33801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33803 arg2 = (int) SWIG_AsInt(obj1);
33804 if (PyErr_Occurred()) SWIG_fail;
33805 {
33806 PyThreadState* __tstate = wxPyBeginAllowThreads();
33807 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
33808
33809 wxPyEndAllowThreads(__tstate);
33810 if (PyErr_Occurred()) SWIG_fail;
33811 }
33812 resultobj = result;
33813 return resultobj;
33814 fail:
33815 return NULL;
33816 }
33817
33818
33819 static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
33820 PyObject *resultobj;
33821 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33822 int arg2 ;
33823 PyObject *arg3 = (PyObject *) 0 ;
33824 PyObject * obj0 = 0 ;
33825 PyObject * obj1 = 0 ;
33826 PyObject * obj2 = 0 ;
33827 char *kwnames[] = {
33828 (char *) "self",(char *) "n",(char *) "clientData", NULL
33829 };
33830
33831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
33832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33834 arg2 = (int) SWIG_AsInt(obj1);
33835 if (PyErr_Occurred()) SWIG_fail;
33836 arg3 = obj2;
33837 {
33838 PyThreadState* __tstate = wxPyBeginAllowThreads();
33839 wxItemContainer_SetClientData(arg1,arg2,arg3);
33840
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 Py_INCREF(Py_None); resultobj = Py_None;
33845 return resultobj;
33846 fail:
33847 return NULL;
33848 }
33849
33850
33851 static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
33852 PyObject *obj;
33853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33854 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
33855 Py_INCREF(obj);
33856 return Py_BuildValue((char *)"");
33857 }
33858 static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
33859 PyObject *obj;
33860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33861 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
33862 Py_INCREF(obj);
33863 return Py_BuildValue((char *)"");
33864 }
33865 static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33866 PyObject *resultobj;
33867 wxSizerItem *result;
33868 char *kwnames[] = {
33869 NULL
33870 };
33871
33872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 result = (wxSizerItem *)new wxSizerItem();
33876
33877 wxPyEndAllowThreads(__tstate);
33878 if (PyErr_Occurred()) SWIG_fail;
33879 }
33880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33881 return resultobj;
33882 fail:
33883 return NULL;
33884 }
33885
33886
33887 static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
33888 PyObject *resultobj;
33889 wxWindow *arg1 = (wxWindow *) 0 ;
33890 int arg2 ;
33891 int arg3 ;
33892 int arg4 ;
33893 PyObject *arg5 = (PyObject *) NULL ;
33894 wxSizerItem *result;
33895 PyObject * obj0 = 0 ;
33896 PyObject * obj1 = 0 ;
33897 PyObject * obj2 = 0 ;
33898 PyObject * obj3 = 0 ;
33899 PyObject * obj4 = 0 ;
33900 char *kwnames[] = {
33901 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33902 };
33903
33904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33907 arg2 = (int) SWIG_AsInt(obj1);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 arg3 = (int) SWIG_AsInt(obj2);
33910 if (PyErr_Occurred()) SWIG_fail;
33911 arg4 = (int) SWIG_AsInt(obj3);
33912 if (PyErr_Occurred()) SWIG_fail;
33913 if (obj4) {
33914 arg5 = obj4;
33915 }
33916 {
33917 PyThreadState* __tstate = wxPyBeginAllowThreads();
33918 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
33919
33920 wxPyEndAllowThreads(__tstate);
33921 if (PyErr_Occurred()) SWIG_fail;
33922 }
33923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33924 return resultobj;
33925 fail:
33926 return NULL;
33927 }
33928
33929
33930 static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
33931 PyObject *resultobj;
33932 int arg1 ;
33933 int arg2 ;
33934 int arg3 ;
33935 int arg4 ;
33936 int arg5 ;
33937 PyObject *arg6 = (PyObject *) NULL ;
33938 wxSizerItem *result;
33939 PyObject * obj0 = 0 ;
33940 PyObject * obj1 = 0 ;
33941 PyObject * obj2 = 0 ;
33942 PyObject * obj3 = 0 ;
33943 PyObject * obj4 = 0 ;
33944 PyObject * obj5 = 0 ;
33945 char *kwnames[] = {
33946 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33947 };
33948
33949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
33950 arg1 = (int) SWIG_AsInt(obj0);
33951 if (PyErr_Occurred()) SWIG_fail;
33952 arg2 = (int) SWIG_AsInt(obj1);
33953 if (PyErr_Occurred()) SWIG_fail;
33954 arg3 = (int) SWIG_AsInt(obj2);
33955 if (PyErr_Occurred()) SWIG_fail;
33956 arg4 = (int) SWIG_AsInt(obj3);
33957 if (PyErr_Occurred()) SWIG_fail;
33958 arg5 = (int) SWIG_AsInt(obj4);
33959 if (PyErr_Occurred()) SWIG_fail;
33960 if (obj5) {
33961 arg6 = obj5;
33962 }
33963 {
33964 PyThreadState* __tstate = wxPyBeginAllowThreads();
33965 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
33966
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33971 return resultobj;
33972 fail:
33973 return NULL;
33974 }
33975
33976
33977 static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33978 PyObject *resultobj;
33979 wxSizer *arg1 = (wxSizer *) 0 ;
33980 int arg2 ;
33981 int arg3 ;
33982 int arg4 ;
33983 PyObject *arg5 = (PyObject *) NULL ;
33984 wxSizerItem *result;
33985 PyObject * obj0 = 0 ;
33986 PyObject * obj1 = 0 ;
33987 PyObject * obj2 = 0 ;
33988 PyObject * obj3 = 0 ;
33989 PyObject * obj4 = 0 ;
33990 char *kwnames[] = {
33991 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33992 };
33993
33994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
33996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33997 arg2 = (int) SWIG_AsInt(obj1);
33998 if (PyErr_Occurred()) SWIG_fail;
33999 arg3 = (int) SWIG_AsInt(obj2);
34000 if (PyErr_Occurred()) SWIG_fail;
34001 arg4 = (int) SWIG_AsInt(obj3);
34002 if (PyErr_Occurred()) SWIG_fail;
34003 if (obj4) {
34004 arg5 = obj4;
34005 }
34006 {
34007 PyThreadState* __tstate = wxPyBeginAllowThreads();
34008 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
34009
34010 wxPyEndAllowThreads(__tstate);
34011 if (PyErr_Occurred()) SWIG_fail;
34012 }
34013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34014 return resultobj;
34015 fail:
34016 return NULL;
34017 }
34018
34019
34020 static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
34021 PyObject *resultobj;
34022 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34023 PyObject * obj0 = 0 ;
34024 char *kwnames[] = {
34025 (char *) "self", NULL
34026 };
34027
34028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34031 {
34032 PyThreadState* __tstate = wxPyBeginAllowThreads();
34033 (arg1)->DeleteWindows();
34034
34035 wxPyEndAllowThreads(__tstate);
34036 if (PyErr_Occurred()) SWIG_fail;
34037 }
34038 Py_INCREF(Py_None); resultobj = Py_None;
34039 return resultobj;
34040 fail:
34041 return NULL;
34042 }
34043
34044
34045 static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34046 PyObject *resultobj;
34047 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34048 PyObject * obj0 = 0 ;
34049 char *kwnames[] = {
34050 (char *) "self", NULL
34051 };
34052
34053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34056 {
34057 PyThreadState* __tstate = wxPyBeginAllowThreads();
34058 (arg1)->DetachSizer();
34059
34060 wxPyEndAllowThreads(__tstate);
34061 if (PyErr_Occurred()) SWIG_fail;
34062 }
34063 Py_INCREF(Py_None); resultobj = Py_None;
34064 return resultobj;
34065 fail:
34066 return NULL;
34067 }
34068
34069
34070 static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34071 PyObject *resultobj;
34072 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34073 wxSize result;
34074 PyObject * obj0 = 0 ;
34075 char *kwnames[] = {
34076 (char *) "self", NULL
34077 };
34078
34079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34082 {
34083 PyThreadState* __tstate = wxPyBeginAllowThreads();
34084 result = (arg1)->GetSize();
34085
34086 wxPyEndAllowThreads(__tstate);
34087 if (PyErr_Occurred()) SWIG_fail;
34088 }
34089 {
34090 wxSize * resultptr;
34091 resultptr = new wxSize((wxSize &) result);
34092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34093 }
34094 return resultobj;
34095 fail:
34096 return NULL;
34097 }
34098
34099
34100 static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34101 PyObject *resultobj;
34102 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34103 wxSize result;
34104 PyObject * obj0 = 0 ;
34105 char *kwnames[] = {
34106 (char *) "self", NULL
34107 };
34108
34109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 result = (arg1)->CalcMin();
34115
34116 wxPyEndAllowThreads(__tstate);
34117 if (PyErr_Occurred()) SWIG_fail;
34118 }
34119 {
34120 wxSize * resultptr;
34121 resultptr = new wxSize((wxSize &) result);
34122 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34123 }
34124 return resultobj;
34125 fail:
34126 return NULL;
34127 }
34128
34129
34130 static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
34131 PyObject *resultobj;
34132 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34133 wxPoint arg2 ;
34134 wxSize arg3 ;
34135 wxPoint *argp2 ;
34136 wxSize *argp3 ;
34137 PyObject * obj0 = 0 ;
34138 PyObject * obj1 = 0 ;
34139 PyObject * obj2 = 0 ;
34140 char *kwnames[] = {
34141 (char *) "self",(char *) "pos",(char *) "size", NULL
34142 };
34143
34144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34147 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34148 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34149 arg2 = *argp2;
34150 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34151 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34152 arg3 = *argp3;
34153 {
34154 PyThreadState* __tstate = wxPyBeginAllowThreads();
34155 (arg1)->SetDimension(arg2,arg3);
34156
34157 wxPyEndAllowThreads(__tstate);
34158 if (PyErr_Occurred()) SWIG_fail;
34159 }
34160 Py_INCREF(Py_None); resultobj = Py_None;
34161 return resultobj;
34162 fail:
34163 return NULL;
34164 }
34165
34166
34167 static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34168 PyObject *resultobj;
34169 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34170 wxSize result;
34171 PyObject * obj0 = 0 ;
34172 char *kwnames[] = {
34173 (char *) "self", NULL
34174 };
34175
34176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 result = (arg1)->GetMinSize();
34182
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 {
34187 wxSize * resultptr;
34188 resultptr = new wxSize((wxSize &) result);
34189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34190 }
34191 return resultobj;
34192 fail:
34193 return NULL;
34194 }
34195
34196
34197 static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj;
34199 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34200 wxSize result;
34201 PyObject * obj0 = 0 ;
34202 char *kwnames[] = {
34203 (char *) "self", NULL
34204 };
34205
34206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
34207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34209 {
34210 PyThreadState* __tstate = wxPyBeginAllowThreads();
34211 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
34212
34213 wxPyEndAllowThreads(__tstate);
34214 if (PyErr_Occurred()) SWIG_fail;
34215 }
34216 {
34217 wxSize * resultptr;
34218 resultptr = new wxSize((wxSize &) result);
34219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34220 }
34221 return resultobj;
34222 fail:
34223 return NULL;
34224 }
34225
34226
34227 static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34228 PyObject *resultobj;
34229 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34230 int arg2 ;
34231 int arg3 ;
34232 PyObject * obj0 = 0 ;
34233 PyObject * obj1 = 0 ;
34234 PyObject * obj2 = 0 ;
34235 char *kwnames[] = {
34236 (char *) "self",(char *) "x",(char *) "y", NULL
34237 };
34238
34239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34242 arg2 = (int) SWIG_AsInt(obj1);
34243 if (PyErr_Occurred()) SWIG_fail;
34244 arg3 = (int) SWIG_AsInt(obj2);
34245 if (PyErr_Occurred()) SWIG_fail;
34246 {
34247 PyThreadState* __tstate = wxPyBeginAllowThreads();
34248 (arg1)->SetInitSize(arg2,arg3);
34249
34250 wxPyEndAllowThreads(__tstate);
34251 if (PyErr_Occurred()) SWIG_fail;
34252 }
34253 Py_INCREF(Py_None); resultobj = Py_None;
34254 return resultobj;
34255 fail:
34256 return NULL;
34257 }
34258
34259
34260 static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
34261 PyObject *resultobj;
34262 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34263 int arg2 ;
34264 int arg3 ;
34265 PyObject * obj0 = 0 ;
34266 PyObject * obj1 = 0 ;
34267 PyObject * obj2 = 0 ;
34268 char *kwnames[] = {
34269 (char *) "self",(char *) "width",(char *) "height", NULL
34270 };
34271
34272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
34273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34275 arg2 = (int) SWIG_AsInt(obj1);
34276 if (PyErr_Occurred()) SWIG_fail;
34277 arg3 = (int) SWIG_AsInt(obj2);
34278 if (PyErr_Occurred()) SWIG_fail;
34279 {
34280 PyThreadState* __tstate = wxPyBeginAllowThreads();
34281 (arg1)->SetRatio(arg2,arg3);
34282
34283 wxPyEndAllowThreads(__tstate);
34284 if (PyErr_Occurred()) SWIG_fail;
34285 }
34286 Py_INCREF(Py_None); resultobj = Py_None;
34287 return resultobj;
34288 fail:
34289 return NULL;
34290 }
34291
34292
34293 static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34294 PyObject *resultobj;
34295 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34296 wxSize arg2 ;
34297 wxSize *argp2 ;
34298 PyObject * obj0 = 0 ;
34299 PyObject * obj1 = 0 ;
34300 char *kwnames[] = {
34301 (char *) "self",(char *) "size", NULL
34302 };
34303
34304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
34305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34307 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
34308 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34309 arg2 = *argp2;
34310 {
34311 PyThreadState* __tstate = wxPyBeginAllowThreads();
34312 (arg1)->SetRatio(arg2);
34313
34314 wxPyEndAllowThreads(__tstate);
34315 if (PyErr_Occurred()) SWIG_fail;
34316 }
34317 Py_INCREF(Py_None); resultobj = Py_None;
34318 return resultobj;
34319 fail:
34320 return NULL;
34321 }
34322
34323
34324 static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34325 PyObject *resultobj;
34326 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34327 float arg2 ;
34328 PyObject * obj0 = 0 ;
34329 PyObject * obj1 = 0 ;
34330 char *kwnames[] = {
34331 (char *) "self",(char *) "ratio", NULL
34332 };
34333
34334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
34335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34337 arg2 = (float) SWIG_AsFloat(obj1);
34338 if (PyErr_Occurred()) SWIG_fail;
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 (arg1)->SetRatio(arg2);
34342
34343 wxPyEndAllowThreads(__tstate);
34344 if (PyErr_Occurred()) SWIG_fail;
34345 }
34346 Py_INCREF(Py_None); resultobj = Py_None;
34347 return resultobj;
34348 fail:
34349 return NULL;
34350 }
34351
34352
34353 static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34354 PyObject *resultobj;
34355 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34356 float result;
34357 PyObject * obj0 = 0 ;
34358 char *kwnames[] = {
34359 (char *) "self", NULL
34360 };
34361
34362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
34363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34365 {
34366 PyThreadState* __tstate = wxPyBeginAllowThreads();
34367 result = (float)(arg1)->GetRatio();
34368
34369 wxPyEndAllowThreads(__tstate);
34370 if (PyErr_Occurred()) SWIG_fail;
34371 }
34372 resultobj = SWIG_FromFloat((float)result);
34373 return resultobj;
34374 fail:
34375 return NULL;
34376 }
34377
34378
34379 static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34380 PyObject *resultobj;
34381 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34382 bool result;
34383 PyObject * obj0 = 0 ;
34384 char *kwnames[] = {
34385 (char *) "self", NULL
34386 };
34387
34388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
34389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34391 {
34392 PyThreadState* __tstate = wxPyBeginAllowThreads();
34393 result = (bool)(arg1)->IsWindow();
34394
34395 wxPyEndAllowThreads(__tstate);
34396 if (PyErr_Occurred()) SWIG_fail;
34397 }
34398 {
34399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34400 }
34401 return resultobj;
34402 fail:
34403 return NULL;
34404 }
34405
34406
34407 static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34408 PyObject *resultobj;
34409 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34410 bool result;
34411 PyObject * obj0 = 0 ;
34412 char *kwnames[] = {
34413 (char *) "self", NULL
34414 };
34415
34416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
34417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34419 {
34420 PyThreadState* __tstate = wxPyBeginAllowThreads();
34421 result = (bool)(arg1)->IsSizer();
34422
34423 wxPyEndAllowThreads(__tstate);
34424 if (PyErr_Occurred()) SWIG_fail;
34425 }
34426 {
34427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34428 }
34429 return resultobj;
34430 fail:
34431 return NULL;
34432 }
34433
34434
34435 static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34436 PyObject *resultobj;
34437 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34438 bool result;
34439 PyObject * obj0 = 0 ;
34440 char *kwnames[] = {
34441 (char *) "self", NULL
34442 };
34443
34444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
34445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34447 {
34448 PyThreadState* __tstate = wxPyBeginAllowThreads();
34449 result = (bool)(arg1)->IsSpacer();
34450
34451 wxPyEndAllowThreads(__tstate);
34452 if (PyErr_Occurred()) SWIG_fail;
34453 }
34454 {
34455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34456 }
34457 return resultobj;
34458 fail:
34459 return NULL;
34460 }
34461
34462
34463 static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34464 PyObject *resultobj;
34465 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34466 int arg2 ;
34467 PyObject * obj0 = 0 ;
34468 PyObject * obj1 = 0 ;
34469 char *kwnames[] = {
34470 (char *) "self",(char *) "proportion", NULL
34471 };
34472
34473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
34474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34476 arg2 = (int) SWIG_AsInt(obj1);
34477 if (PyErr_Occurred()) SWIG_fail;
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 (arg1)->SetProportion(arg2);
34481
34482 wxPyEndAllowThreads(__tstate);
34483 if (PyErr_Occurred()) SWIG_fail;
34484 }
34485 Py_INCREF(Py_None); resultobj = Py_None;
34486 return resultobj;
34487 fail:
34488 return NULL;
34489 }
34490
34491
34492 static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34493 PyObject *resultobj;
34494 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34495 int result;
34496 PyObject * obj0 = 0 ;
34497 char *kwnames[] = {
34498 (char *) "self", NULL
34499 };
34500
34501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
34502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34504 {
34505 PyThreadState* __tstate = wxPyBeginAllowThreads();
34506 result = (int)(arg1)->GetProportion();
34507
34508 wxPyEndAllowThreads(__tstate);
34509 if (PyErr_Occurred()) SWIG_fail;
34510 }
34511 resultobj = SWIG_FromInt((int)result);
34512 return resultobj;
34513 fail:
34514 return NULL;
34515 }
34516
34517
34518 static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34519 PyObject *resultobj;
34520 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34521 int arg2 ;
34522 PyObject * obj0 = 0 ;
34523 PyObject * obj1 = 0 ;
34524 char *kwnames[] = {
34525 (char *) "self",(char *) "flag", NULL
34526 };
34527
34528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
34529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34531 arg2 = (int) SWIG_AsInt(obj1);
34532 if (PyErr_Occurred()) SWIG_fail;
34533 {
34534 PyThreadState* __tstate = wxPyBeginAllowThreads();
34535 (arg1)->SetFlag(arg2);
34536
34537 wxPyEndAllowThreads(__tstate);
34538 if (PyErr_Occurred()) SWIG_fail;
34539 }
34540 Py_INCREF(Py_None); resultobj = Py_None;
34541 return resultobj;
34542 fail:
34543 return NULL;
34544 }
34545
34546
34547 static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34548 PyObject *resultobj;
34549 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34550 int result;
34551 PyObject * obj0 = 0 ;
34552 char *kwnames[] = {
34553 (char *) "self", NULL
34554 };
34555
34556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
34557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34559 {
34560 PyThreadState* __tstate = wxPyBeginAllowThreads();
34561 result = (int)(arg1)->GetFlag();
34562
34563 wxPyEndAllowThreads(__tstate);
34564 if (PyErr_Occurred()) SWIG_fail;
34565 }
34566 resultobj = SWIG_FromInt((int)result);
34567 return resultobj;
34568 fail:
34569 return NULL;
34570 }
34571
34572
34573 static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34574 PyObject *resultobj;
34575 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34576 int arg2 ;
34577 PyObject * obj0 = 0 ;
34578 PyObject * obj1 = 0 ;
34579 char *kwnames[] = {
34580 (char *) "self",(char *) "border", NULL
34581 };
34582
34583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
34584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34586 arg2 = (int) SWIG_AsInt(obj1);
34587 if (PyErr_Occurred()) SWIG_fail;
34588 {
34589 PyThreadState* __tstate = wxPyBeginAllowThreads();
34590 (arg1)->SetBorder(arg2);
34591
34592 wxPyEndAllowThreads(__tstate);
34593 if (PyErr_Occurred()) SWIG_fail;
34594 }
34595 Py_INCREF(Py_None); resultobj = Py_None;
34596 return resultobj;
34597 fail:
34598 return NULL;
34599 }
34600
34601
34602 static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34603 PyObject *resultobj;
34604 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34605 int result;
34606 PyObject * obj0 = 0 ;
34607 char *kwnames[] = {
34608 (char *) "self", NULL
34609 };
34610
34611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
34612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34614 {
34615 PyThreadState* __tstate = wxPyBeginAllowThreads();
34616 result = (int)(arg1)->GetBorder();
34617
34618 wxPyEndAllowThreads(__tstate);
34619 if (PyErr_Occurred()) SWIG_fail;
34620 }
34621 resultobj = SWIG_FromInt((int)result);
34622 return resultobj;
34623 fail:
34624 return NULL;
34625 }
34626
34627
34628 static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34629 PyObject *resultobj;
34630 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34631 wxWindow *result;
34632 PyObject * obj0 = 0 ;
34633 char *kwnames[] = {
34634 (char *) "self", NULL
34635 };
34636
34637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
34638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34640 {
34641 PyThreadState* __tstate = wxPyBeginAllowThreads();
34642 result = (wxWindow *)(arg1)->GetWindow();
34643
34644 wxPyEndAllowThreads(__tstate);
34645 if (PyErr_Occurred()) SWIG_fail;
34646 }
34647 {
34648 resultobj = wxPyMake_wxObject(result, 0);
34649 }
34650 return resultobj;
34651 fail:
34652 return NULL;
34653 }
34654
34655
34656 static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34657 PyObject *resultobj;
34658 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34659 wxWindow *arg2 = (wxWindow *) 0 ;
34660 PyObject * obj0 = 0 ;
34661 PyObject * obj1 = 0 ;
34662 char *kwnames[] = {
34663 (char *) "self",(char *) "window", NULL
34664 };
34665
34666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
34667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
34670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34671 {
34672 PyThreadState* __tstate = wxPyBeginAllowThreads();
34673 (arg1)->SetWindow(arg2);
34674
34675 wxPyEndAllowThreads(__tstate);
34676 if (PyErr_Occurred()) SWIG_fail;
34677 }
34678 Py_INCREF(Py_None); resultobj = Py_None;
34679 return resultobj;
34680 fail:
34681 return NULL;
34682 }
34683
34684
34685 static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34686 PyObject *resultobj;
34687 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34688 wxSizer *result;
34689 PyObject * obj0 = 0 ;
34690 char *kwnames[] = {
34691 (char *) "self", NULL
34692 };
34693
34694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
34695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34697 {
34698 PyThreadState* __tstate = wxPyBeginAllowThreads();
34699 result = (wxSizer *)(arg1)->GetSizer();
34700
34701 wxPyEndAllowThreads(__tstate);
34702 if (PyErr_Occurred()) SWIG_fail;
34703 }
34704 {
34705 resultobj = wxPyMake_wxSizer(result, 0);
34706 }
34707 return resultobj;
34708 fail:
34709 return NULL;
34710 }
34711
34712
34713 static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34714 PyObject *resultobj;
34715 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34716 wxSizer *arg2 = (wxSizer *) 0 ;
34717 PyObject * obj0 = 0 ;
34718 PyObject * obj1 = 0 ;
34719 char *kwnames[] = {
34720 (char *) "self",(char *) "sizer", NULL
34721 };
34722
34723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
34724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
34727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34728 {
34729 PyThreadState* __tstate = wxPyBeginAllowThreads();
34730 (arg1)->SetSizer(arg2);
34731
34732 wxPyEndAllowThreads(__tstate);
34733 if (PyErr_Occurred()) SWIG_fail;
34734 }
34735 Py_INCREF(Py_None); resultobj = Py_None;
34736 return resultobj;
34737 fail:
34738 return NULL;
34739 }
34740
34741
34742 static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34743 PyObject *resultobj;
34744 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34745 wxSize *result;
34746 PyObject * obj0 = 0 ;
34747 char *kwnames[] = {
34748 (char *) "self", NULL
34749 };
34750
34751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
34752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34754 {
34755 PyThreadState* __tstate = wxPyBeginAllowThreads();
34756 {
34757 wxSize const &_result_ref = (arg1)->GetSpacer();
34758 result = (wxSize *) &_result_ref;
34759 }
34760
34761 wxPyEndAllowThreads(__tstate);
34762 if (PyErr_Occurred()) SWIG_fail;
34763 }
34764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
34765 return resultobj;
34766 fail:
34767 return NULL;
34768 }
34769
34770
34771 static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34772 PyObject *resultobj;
34773 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34774 wxSize *arg2 = 0 ;
34775 wxSize temp2 ;
34776 PyObject * obj0 = 0 ;
34777 PyObject * obj1 = 0 ;
34778 char *kwnames[] = {
34779 (char *) "self",(char *) "size", NULL
34780 };
34781
34782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
34783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34785 {
34786 arg2 = &temp2;
34787 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34788 }
34789 {
34790 PyThreadState* __tstate = wxPyBeginAllowThreads();
34791 (arg1)->SetSpacer((wxSize const &)*arg2);
34792
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 Py_INCREF(Py_None); resultobj = Py_None;
34797 return resultobj;
34798 fail:
34799 return NULL;
34800 }
34801
34802
34803 static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj;
34805 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34806 bool arg2 ;
34807 PyObject * obj0 = 0 ;
34808 PyObject * obj1 = 0 ;
34809 char *kwnames[] = {
34810 (char *) "self",(char *) "show", NULL
34811 };
34812
34813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
34814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34816 arg2 = (bool) SWIG_AsBool(obj1);
34817 if (PyErr_Occurred()) SWIG_fail;
34818 {
34819 PyThreadState* __tstate = wxPyBeginAllowThreads();
34820 (arg1)->Show(arg2);
34821
34822 wxPyEndAllowThreads(__tstate);
34823 if (PyErr_Occurred()) SWIG_fail;
34824 }
34825 Py_INCREF(Py_None); resultobj = Py_None;
34826 return resultobj;
34827 fail:
34828 return NULL;
34829 }
34830
34831
34832 static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
34833 PyObject *resultobj;
34834 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34835 bool result;
34836 PyObject * obj0 = 0 ;
34837 char *kwnames[] = {
34838 (char *) "self", NULL
34839 };
34840
34841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
34842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34844 {
34845 PyThreadState* __tstate = wxPyBeginAllowThreads();
34846 result = (bool)(arg1)->IsShown();
34847
34848 wxPyEndAllowThreads(__tstate);
34849 if (PyErr_Occurred()) SWIG_fail;
34850 }
34851 {
34852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34853 }
34854 return resultobj;
34855 fail:
34856 return NULL;
34857 }
34858
34859
34860 static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
34861 PyObject *resultobj;
34862 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34863 wxPoint result;
34864 PyObject * obj0 = 0 ;
34865 char *kwnames[] = {
34866 (char *) "self", NULL
34867 };
34868
34869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
34870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34872 {
34873 PyThreadState* __tstate = wxPyBeginAllowThreads();
34874 result = (arg1)->GetPosition();
34875
34876 wxPyEndAllowThreads(__tstate);
34877 if (PyErr_Occurred()) SWIG_fail;
34878 }
34879 {
34880 wxPoint * resultptr;
34881 resultptr = new wxPoint((wxPoint &) result);
34882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
34883 }
34884 return resultobj;
34885 fail:
34886 return NULL;
34887 }
34888
34889
34890 static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
34891 PyObject *resultobj;
34892 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34893 PyObject *result;
34894 PyObject * obj0 = 0 ;
34895 char *kwnames[] = {
34896 (char *) "self", NULL
34897 };
34898
34899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
34900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34902 {
34903 PyThreadState* __tstate = wxPyBeginAllowThreads();
34904 result = (PyObject *)wxSizerItem_GetUserData(arg1);
34905
34906 wxPyEndAllowThreads(__tstate);
34907 if (PyErr_Occurred()) SWIG_fail;
34908 }
34909 resultobj = result;
34910 return resultobj;
34911 fail:
34912 return NULL;
34913 }
34914
34915
34916 static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
34917 PyObject *obj;
34918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34919 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
34920 Py_INCREF(obj);
34921 return Py_BuildValue((char *)"");
34922 }
34923 static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
34924 PyObject *resultobj;
34925 wxSizer *arg1 = (wxSizer *) 0 ;
34926 PyObject *arg2 = (PyObject *) 0 ;
34927 PyObject * obj0 = 0 ;
34928 PyObject * obj1 = 0 ;
34929 char *kwnames[] = {
34930 (char *) "self",(char *) "_self", NULL
34931 };
34932
34933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
34934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34936 arg2 = obj1;
34937 {
34938 PyThreadState* __tstate = wxPyBeginAllowThreads();
34939 wxSizer__setOORInfo(arg1,arg2);
34940
34941 wxPyEndAllowThreads(__tstate);
34942 if (PyErr_Occurred()) SWIG_fail;
34943 }
34944 Py_INCREF(Py_None); resultobj = Py_None;
34945 return resultobj;
34946 fail:
34947 return NULL;
34948 }
34949
34950
34951 static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
34952 PyObject *resultobj;
34953 wxSizer *arg1 = (wxSizer *) 0 ;
34954 PyObject *arg2 = (PyObject *) 0 ;
34955 int arg3 = (int) 0 ;
34956 int arg4 = (int) 0 ;
34957 int arg5 = (int) 0 ;
34958 PyObject *arg6 = (PyObject *) NULL ;
34959 PyObject * obj0 = 0 ;
34960 PyObject * obj1 = 0 ;
34961 PyObject * obj2 = 0 ;
34962 PyObject * obj3 = 0 ;
34963 PyObject * obj4 = 0 ;
34964 PyObject * obj5 = 0 ;
34965 char *kwnames[] = {
34966 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34967 };
34968
34969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34972 arg2 = obj1;
34973 if (obj2) {
34974 arg3 = (int) SWIG_AsInt(obj2);
34975 if (PyErr_Occurred()) SWIG_fail;
34976 }
34977 if (obj3) {
34978 arg4 = (int) SWIG_AsInt(obj3);
34979 if (PyErr_Occurred()) SWIG_fail;
34980 }
34981 if (obj4) {
34982 arg5 = (int) SWIG_AsInt(obj4);
34983 if (PyErr_Occurred()) SWIG_fail;
34984 }
34985 if (obj5) {
34986 arg6 = obj5;
34987 }
34988 {
34989 PyThreadState* __tstate = wxPyBeginAllowThreads();
34990 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
34991
34992 wxPyEndAllowThreads(__tstate);
34993 if (PyErr_Occurred()) SWIG_fail;
34994 }
34995 Py_INCREF(Py_None); resultobj = Py_None;
34996 return resultobj;
34997 fail:
34998 return NULL;
34999 }
35000
35001
35002 static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
35003 PyObject *resultobj;
35004 wxSizer *arg1 = (wxSizer *) 0 ;
35005 int arg2 ;
35006 PyObject *arg3 = (PyObject *) 0 ;
35007 int arg4 = (int) 0 ;
35008 int arg5 = (int) 0 ;
35009 int arg6 = (int) 0 ;
35010 PyObject *arg7 = (PyObject *) NULL ;
35011 PyObject * obj0 = 0 ;
35012 PyObject * obj1 = 0 ;
35013 PyObject * obj2 = 0 ;
35014 PyObject * obj3 = 0 ;
35015 PyObject * obj4 = 0 ;
35016 PyObject * obj5 = 0 ;
35017 PyObject * obj6 = 0 ;
35018 char *kwnames[] = {
35019 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35020 };
35021
35022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35025 arg2 = (int) SWIG_AsInt(obj1);
35026 if (PyErr_Occurred()) SWIG_fail;
35027 arg3 = obj2;
35028 if (obj3) {
35029 arg4 = (int) SWIG_AsInt(obj3);
35030 if (PyErr_Occurred()) SWIG_fail;
35031 }
35032 if (obj4) {
35033 arg5 = (int) SWIG_AsInt(obj4);
35034 if (PyErr_Occurred()) SWIG_fail;
35035 }
35036 if (obj5) {
35037 arg6 = (int) SWIG_AsInt(obj5);
35038 if (PyErr_Occurred()) SWIG_fail;
35039 }
35040 if (obj6) {
35041 arg7 = obj6;
35042 }
35043 {
35044 PyThreadState* __tstate = wxPyBeginAllowThreads();
35045 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35046
35047 wxPyEndAllowThreads(__tstate);
35048 if (PyErr_Occurred()) SWIG_fail;
35049 }
35050 Py_INCREF(Py_None); resultobj = Py_None;
35051 return resultobj;
35052 fail:
35053 return NULL;
35054 }
35055
35056
35057 static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
35058 PyObject *resultobj;
35059 wxSizer *arg1 = (wxSizer *) 0 ;
35060 PyObject *arg2 = (PyObject *) 0 ;
35061 int arg3 = (int) 0 ;
35062 int arg4 = (int) 0 ;
35063 int arg5 = (int) 0 ;
35064 PyObject *arg6 = (PyObject *) NULL ;
35065 PyObject * obj0 = 0 ;
35066 PyObject * obj1 = 0 ;
35067 PyObject * obj2 = 0 ;
35068 PyObject * obj3 = 0 ;
35069 PyObject * obj4 = 0 ;
35070 PyObject * obj5 = 0 ;
35071 char *kwnames[] = {
35072 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35073 };
35074
35075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35078 arg2 = obj1;
35079 if (obj2) {
35080 arg3 = (int) SWIG_AsInt(obj2);
35081 if (PyErr_Occurred()) SWIG_fail;
35082 }
35083 if (obj3) {
35084 arg4 = (int) SWIG_AsInt(obj3);
35085 if (PyErr_Occurred()) SWIG_fail;
35086 }
35087 if (obj4) {
35088 arg5 = (int) SWIG_AsInt(obj4);
35089 if (PyErr_Occurred()) SWIG_fail;
35090 }
35091 if (obj5) {
35092 arg6 = obj5;
35093 }
35094 {
35095 PyThreadState* __tstate = wxPyBeginAllowThreads();
35096 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35097
35098 wxPyEndAllowThreads(__tstate);
35099 if (PyErr_Occurred()) SWIG_fail;
35100 }
35101 Py_INCREF(Py_None); resultobj = Py_None;
35102 return resultobj;
35103 fail:
35104 return NULL;
35105 }
35106
35107
35108 static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
35109 PyObject *resultobj;
35110 wxSizer *arg1 = (wxSizer *) 0 ;
35111 PyObject *arg2 = (PyObject *) 0 ;
35112 bool result;
35113 PyObject * obj0 = 0 ;
35114 PyObject * obj1 = 0 ;
35115 char *kwnames[] = {
35116 (char *) "self",(char *) "item", NULL
35117 };
35118
35119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35122 arg2 = obj1;
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 result = (bool)wxSizer_Remove(arg1,arg2);
35126
35127 wxPyEndAllowThreads(__tstate);
35128 if (PyErr_Occurred()) SWIG_fail;
35129 }
35130 {
35131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35132 }
35133 return resultobj;
35134 fail:
35135 return NULL;
35136 }
35137
35138
35139 static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
35140 PyObject *resultobj;
35141 wxSizer *arg1 = (wxSizer *) 0 ;
35142 PyObject *arg2 = (PyObject *) 0 ;
35143 bool result;
35144 PyObject * obj0 = 0 ;
35145 PyObject * obj1 = 0 ;
35146 char *kwnames[] = {
35147 (char *) "self",(char *) "item", NULL
35148 };
35149
35150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35153 arg2 = obj1;
35154 {
35155 PyThreadState* __tstate = wxPyBeginAllowThreads();
35156 result = (bool)wxSizer_Detach(arg1,arg2);
35157
35158 wxPyEndAllowThreads(__tstate);
35159 if (PyErr_Occurred()) SWIG_fail;
35160 }
35161 {
35162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35163 }
35164 return resultobj;
35165 fail:
35166 return NULL;
35167 }
35168
35169
35170 static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35171 PyObject *resultobj;
35172 wxSizer *arg1 = (wxSizer *) 0 ;
35173 PyObject *arg2 = (PyObject *) 0 ;
35174 wxSize *arg3 = 0 ;
35175 wxSize temp3 ;
35176 PyObject * obj0 = 0 ;
35177 PyObject * obj1 = 0 ;
35178 PyObject * obj2 = 0 ;
35179 char *kwnames[] = {
35180 (char *) "self",(char *) "item",(char *) "size", NULL
35181 };
35182
35183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35186 arg2 = obj1;
35187 {
35188 arg3 = &temp3;
35189 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35190 }
35191 {
35192 PyThreadState* __tstate = wxPyBeginAllowThreads();
35193 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35194
35195 wxPyEndAllowThreads(__tstate);
35196 if (PyErr_Occurred()) SWIG_fail;
35197 }
35198 Py_INCREF(Py_None); resultobj = Py_None;
35199 return resultobj;
35200 fail:
35201 return NULL;
35202 }
35203
35204
35205 static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35206 PyObject *resultobj;
35207 wxSizer *arg1 = (wxSizer *) 0 ;
35208 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35209 PyObject * obj0 = 0 ;
35210 PyObject * obj1 = 0 ;
35211 char *kwnames[] = {
35212 (char *) "self",(char *) "item", NULL
35213 };
35214
35215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35220 {
35221 PyThreadState* __tstate = wxPyBeginAllowThreads();
35222 (arg1)->Add(arg2);
35223
35224 wxPyEndAllowThreads(__tstate);
35225 if (PyErr_Occurred()) SWIG_fail;
35226 }
35227 Py_INCREF(Py_None); resultobj = Py_None;
35228 return resultobj;
35229 fail:
35230 return NULL;
35231 }
35232
35233
35234 static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35235 PyObject *resultobj;
35236 wxSizer *arg1 = (wxSizer *) 0 ;
35237 size_t arg2 ;
35238 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35239 PyObject * obj0 = 0 ;
35240 PyObject * obj1 = 0 ;
35241 PyObject * obj2 = 0 ;
35242 char *kwnames[] = {
35243 (char *) "self",(char *) "index",(char *) "item", NULL
35244 };
35245
35246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35249 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
35250 if (PyErr_Occurred()) SWIG_fail;
35251 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35253 {
35254 PyThreadState* __tstate = wxPyBeginAllowThreads();
35255 (arg1)->Insert(arg2,arg3);
35256
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 Py_INCREF(Py_None); resultobj = Py_None;
35261 return resultobj;
35262 fail:
35263 return NULL;
35264 }
35265
35266
35267 static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35268 PyObject *resultobj;
35269 wxSizer *arg1 = (wxSizer *) 0 ;
35270 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35271 PyObject * obj0 = 0 ;
35272 PyObject * obj1 = 0 ;
35273 char *kwnames[] = {
35274 (char *) "self",(char *) "item", NULL
35275 };
35276
35277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
35278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35282 {
35283 PyThreadState* __tstate = wxPyBeginAllowThreads();
35284 (arg1)->Prepend(arg2);
35285
35286 wxPyEndAllowThreads(__tstate);
35287 if (PyErr_Occurred()) SWIG_fail;
35288 }
35289 Py_INCREF(Py_None); resultobj = Py_None;
35290 return resultobj;
35291 fail:
35292 return NULL;
35293 }
35294
35295
35296 static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
35297 PyObject *resultobj;
35298 wxSizer *arg1 = (wxSizer *) 0 ;
35299 int arg2 ;
35300 int arg3 ;
35301 int arg4 ;
35302 int arg5 ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 PyObject * obj2 = 0 ;
35306 PyObject * obj3 = 0 ;
35307 PyObject * obj4 = 0 ;
35308 char *kwnames[] = {
35309 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35310 };
35311
35312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
35313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35315 arg2 = (int) SWIG_AsInt(obj1);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 arg3 = (int) SWIG_AsInt(obj2);
35318 if (PyErr_Occurred()) SWIG_fail;
35319 arg4 = (int) SWIG_AsInt(obj3);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 arg5 = (int) SWIG_AsInt(obj4);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 {
35324 PyThreadState* __tstate = wxPyBeginAllowThreads();
35325 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
35326
35327 wxPyEndAllowThreads(__tstate);
35328 if (PyErr_Occurred()) SWIG_fail;
35329 }
35330 Py_INCREF(Py_None); resultobj = Py_None;
35331 return resultobj;
35332 fail:
35333 return NULL;
35334 }
35335
35336
35337 static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35338 PyObject *resultobj;
35339 wxSizer *arg1 = (wxSizer *) 0 ;
35340 wxSize *arg2 = 0 ;
35341 wxSize temp2 ;
35342 PyObject * obj0 = 0 ;
35343 PyObject * obj1 = 0 ;
35344 char *kwnames[] = {
35345 (char *) "self",(char *) "size", NULL
35346 };
35347
35348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
35349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35351 {
35352 arg2 = &temp2;
35353 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35354 }
35355 {
35356 PyThreadState* __tstate = wxPyBeginAllowThreads();
35357 (arg1)->SetMinSize((wxSize const &)*arg2);
35358
35359 wxPyEndAllowThreads(__tstate);
35360 if (PyErr_Occurred()) SWIG_fail;
35361 }
35362 Py_INCREF(Py_None); resultobj = Py_None;
35363 return resultobj;
35364 fail:
35365 return NULL;
35366 }
35367
35368
35369 static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35370 PyObject *resultobj;
35371 wxSizer *arg1 = (wxSizer *) 0 ;
35372 wxSize result;
35373 PyObject * obj0 = 0 ;
35374 char *kwnames[] = {
35375 (char *) "self", NULL
35376 };
35377
35378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
35379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 result = (arg1)->GetSize();
35384
35385 wxPyEndAllowThreads(__tstate);
35386 if (PyErr_Occurred()) SWIG_fail;
35387 }
35388 {
35389 wxSize * resultptr;
35390 resultptr = new wxSize((wxSize &) result);
35391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35392 }
35393 return resultobj;
35394 fail:
35395 return NULL;
35396 }
35397
35398
35399 static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35400 PyObject *resultobj;
35401 wxSizer *arg1 = (wxSizer *) 0 ;
35402 wxPoint result;
35403 PyObject * obj0 = 0 ;
35404 char *kwnames[] = {
35405 (char *) "self", NULL
35406 };
35407
35408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
35409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35411 {
35412 PyThreadState* __tstate = wxPyBeginAllowThreads();
35413 result = (arg1)->GetPosition();
35414
35415 wxPyEndAllowThreads(__tstate);
35416 if (PyErr_Occurred()) SWIG_fail;
35417 }
35418 {
35419 wxPoint * resultptr;
35420 resultptr = new wxPoint((wxPoint &) result);
35421 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35422 }
35423 return resultobj;
35424 fail:
35425 return NULL;
35426 }
35427
35428
35429 static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35430 PyObject *resultobj;
35431 wxSizer *arg1 = (wxSizer *) 0 ;
35432 wxSize result;
35433 PyObject * obj0 = 0 ;
35434 char *kwnames[] = {
35435 (char *) "self", NULL
35436 };
35437
35438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
35439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35441 {
35442 PyThreadState* __tstate = wxPyBeginAllowThreads();
35443 result = (arg1)->GetMinSize();
35444
35445 wxPyEndAllowThreads(__tstate);
35446 if (PyErr_Occurred()) SWIG_fail;
35447 }
35448 {
35449 wxSize * resultptr;
35450 resultptr = new wxSize((wxSize &) result);
35451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35452 }
35453 return resultobj;
35454 fail:
35455 return NULL;
35456 }
35457
35458
35459 static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35460 PyObject *resultobj;
35461 wxSizer *arg1 = (wxSizer *) 0 ;
35462 PyObject * obj0 = 0 ;
35463 char *kwnames[] = {
35464 (char *) "self", NULL
35465 };
35466
35467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
35468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35470 {
35471 PyThreadState* __tstate = wxPyBeginAllowThreads();
35472 (arg1)->RecalcSizes();
35473
35474 wxPyEndAllowThreads(__tstate);
35475 if (PyErr_Occurred()) SWIG_fail;
35476 }
35477 Py_INCREF(Py_None); resultobj = Py_None;
35478 return resultobj;
35479 fail:
35480 return NULL;
35481 }
35482
35483
35484 static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35485 PyObject *resultobj;
35486 wxSizer *arg1 = (wxSizer *) 0 ;
35487 wxSize result;
35488 PyObject * obj0 = 0 ;
35489 char *kwnames[] = {
35490 (char *) "self", NULL
35491 };
35492
35493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
35494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35496 {
35497 PyThreadState* __tstate = wxPyBeginAllowThreads();
35498 result = (arg1)->CalcMin();
35499
35500 wxPyEndAllowThreads(__tstate);
35501 if (PyErr_Occurred()) SWIG_fail;
35502 }
35503 {
35504 wxSize * resultptr;
35505 resultptr = new wxSize((wxSize &) result);
35506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35507 }
35508 return resultobj;
35509 fail:
35510 return NULL;
35511 }
35512
35513
35514 static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
35515 PyObject *resultobj;
35516 wxSizer *arg1 = (wxSizer *) 0 ;
35517 PyObject * obj0 = 0 ;
35518 char *kwnames[] = {
35519 (char *) "self", NULL
35520 };
35521
35522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
35523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35525 {
35526 PyThreadState* __tstate = wxPyBeginAllowThreads();
35527 (arg1)->Layout();
35528
35529 wxPyEndAllowThreads(__tstate);
35530 if (PyErr_Occurred()) SWIG_fail;
35531 }
35532 Py_INCREF(Py_None); resultobj = Py_None;
35533 return resultobj;
35534 fail:
35535 return NULL;
35536 }
35537
35538
35539 static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
35540 PyObject *resultobj;
35541 wxSizer *arg1 = (wxSizer *) 0 ;
35542 wxWindow *arg2 = (wxWindow *) 0 ;
35543 wxSize result;
35544 PyObject * obj0 = 0 ;
35545 PyObject * obj1 = 0 ;
35546 char *kwnames[] = {
35547 (char *) "self",(char *) "window", NULL
35548 };
35549
35550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
35551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35555 {
35556 PyThreadState* __tstate = wxPyBeginAllowThreads();
35557 result = (arg1)->Fit(arg2);
35558
35559 wxPyEndAllowThreads(__tstate);
35560 if (PyErr_Occurred()) SWIG_fail;
35561 }
35562 {
35563 wxSize * resultptr;
35564 resultptr = new wxSize((wxSize &) result);
35565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35566 }
35567 return resultobj;
35568 fail:
35569 return NULL;
35570 }
35571
35572
35573 static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
35574 PyObject *resultobj;
35575 wxSizer *arg1 = (wxSizer *) 0 ;
35576 wxWindow *arg2 = (wxWindow *) 0 ;
35577 PyObject * obj0 = 0 ;
35578 PyObject * obj1 = 0 ;
35579 char *kwnames[] = {
35580 (char *) "self",(char *) "window", NULL
35581 };
35582
35583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
35584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35588 {
35589 PyThreadState* __tstate = wxPyBeginAllowThreads();
35590 (arg1)->FitInside(arg2);
35591
35592 wxPyEndAllowThreads(__tstate);
35593 if (PyErr_Occurred()) SWIG_fail;
35594 }
35595 Py_INCREF(Py_None); resultobj = Py_None;
35596 return resultobj;
35597 fail:
35598 return NULL;
35599 }
35600
35601
35602 static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35603 PyObject *resultobj;
35604 wxSizer *arg1 = (wxSizer *) 0 ;
35605 wxWindow *arg2 = (wxWindow *) 0 ;
35606 PyObject * obj0 = 0 ;
35607 PyObject * obj1 = 0 ;
35608 char *kwnames[] = {
35609 (char *) "self",(char *) "window", NULL
35610 };
35611
35612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
35613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35617 {
35618 PyThreadState* __tstate = wxPyBeginAllowThreads();
35619 (arg1)->SetSizeHints(arg2);
35620
35621 wxPyEndAllowThreads(__tstate);
35622 if (PyErr_Occurred()) SWIG_fail;
35623 }
35624 Py_INCREF(Py_None); resultobj = Py_None;
35625 return resultobj;
35626 fail:
35627 return NULL;
35628 }
35629
35630
35631 static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj;
35633 wxSizer *arg1 = (wxSizer *) 0 ;
35634 wxWindow *arg2 = (wxWindow *) 0 ;
35635 PyObject * obj0 = 0 ;
35636 PyObject * obj1 = 0 ;
35637 char *kwnames[] = {
35638 (char *) "self",(char *) "window", NULL
35639 };
35640
35641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
35642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35646 {
35647 PyThreadState* __tstate = wxPyBeginAllowThreads();
35648 (arg1)->SetVirtualSizeHints(arg2);
35649
35650 wxPyEndAllowThreads(__tstate);
35651 if (PyErr_Occurred()) SWIG_fail;
35652 }
35653 Py_INCREF(Py_None); resultobj = Py_None;
35654 return resultobj;
35655 fail:
35656 return NULL;
35657 }
35658
35659
35660 static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
35661 PyObject *resultobj;
35662 wxSizer *arg1 = (wxSizer *) 0 ;
35663 bool arg2 = (bool) False ;
35664 PyObject * obj0 = 0 ;
35665 PyObject * obj1 = 0 ;
35666 char *kwnames[] = {
35667 (char *) "self",(char *) "deleteWindows", NULL
35668 };
35669
35670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
35671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35673 if (obj1) {
35674 arg2 = (bool) SWIG_AsBool(obj1);
35675 if (PyErr_Occurred()) SWIG_fail;
35676 }
35677 {
35678 PyThreadState* __tstate = wxPyBeginAllowThreads();
35679 (arg1)->Clear(arg2);
35680
35681 wxPyEndAllowThreads(__tstate);
35682 if (PyErr_Occurred()) SWIG_fail;
35683 }
35684 Py_INCREF(Py_None); resultobj = Py_None;
35685 return resultobj;
35686 fail:
35687 return NULL;
35688 }
35689
35690
35691 static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
35692 PyObject *resultobj;
35693 wxSizer *arg1 = (wxSizer *) 0 ;
35694 PyObject * obj0 = 0 ;
35695 char *kwnames[] = {
35696 (char *) "self", NULL
35697 };
35698
35699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
35700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35702 {
35703 PyThreadState* __tstate = wxPyBeginAllowThreads();
35704 (arg1)->DeleteWindows();
35705
35706 wxPyEndAllowThreads(__tstate);
35707 if (PyErr_Occurred()) SWIG_fail;
35708 }
35709 Py_INCREF(Py_None); resultobj = Py_None;
35710 return resultobj;
35711 fail:
35712 return NULL;
35713 }
35714
35715
35716 static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
35717 PyObject *resultobj;
35718 wxSizer *arg1 = (wxSizer *) 0 ;
35719 PyObject *result;
35720 PyObject * obj0 = 0 ;
35721 char *kwnames[] = {
35722 (char *) "self", NULL
35723 };
35724
35725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
35726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35728 {
35729 PyThreadState* __tstate = wxPyBeginAllowThreads();
35730 result = (PyObject *)wxSizer_GetChildren(arg1);
35731
35732 wxPyEndAllowThreads(__tstate);
35733 if (PyErr_Occurred()) SWIG_fail;
35734 }
35735 resultobj = result;
35736 return resultobj;
35737 fail:
35738 return NULL;
35739 }
35740
35741
35742 static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
35743 PyObject *resultobj;
35744 wxSizer *arg1 = (wxSizer *) 0 ;
35745 PyObject *arg2 = (PyObject *) 0 ;
35746 bool arg3 = (bool) True ;
35747 PyObject * obj0 = 0 ;
35748 PyObject * obj1 = 0 ;
35749 PyObject * obj2 = 0 ;
35750 char *kwnames[] = {
35751 (char *) "self",(char *) "item",(char *) "show", NULL
35752 };
35753
35754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
35755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35757 arg2 = obj1;
35758 if (obj2) {
35759 arg3 = (bool) SWIG_AsBool(obj2);
35760 if (PyErr_Occurred()) SWIG_fail;
35761 }
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 wxSizer_Show(arg1,arg2,arg3);
35765
35766 wxPyEndAllowThreads(__tstate);
35767 if (PyErr_Occurred()) SWIG_fail;
35768 }
35769 Py_INCREF(Py_None); resultobj = Py_None;
35770 return resultobj;
35771 fail:
35772 return NULL;
35773 }
35774
35775
35776 static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
35777 PyObject *resultobj;
35778 wxSizer *arg1 = (wxSizer *) 0 ;
35779 PyObject *arg2 = (PyObject *) 0 ;
35780 bool result;
35781 PyObject * obj0 = 0 ;
35782 PyObject * obj1 = 0 ;
35783 char *kwnames[] = {
35784 (char *) "self",(char *) "item", NULL
35785 };
35786
35787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
35788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35790 arg2 = obj1;
35791 {
35792 PyThreadState* __tstate = wxPyBeginAllowThreads();
35793 result = (bool)wxSizer_IsShown(arg1,arg2);
35794
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 {
35799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35800 }
35801 return resultobj;
35802 fail:
35803 return NULL;
35804 }
35805
35806
35807 static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
35808 PyObject *resultobj;
35809 wxSizer *arg1 = (wxSizer *) 0 ;
35810 bool arg2 ;
35811 PyObject * obj0 = 0 ;
35812 PyObject * obj1 = 0 ;
35813 char *kwnames[] = {
35814 (char *) "self",(char *) "show", NULL
35815 };
35816
35817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
35818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35820 arg2 = (bool) SWIG_AsBool(obj1);
35821 if (PyErr_Occurred()) SWIG_fail;
35822 {
35823 PyThreadState* __tstate = wxPyBeginAllowThreads();
35824 (arg1)->ShowItems(arg2);
35825
35826 wxPyEndAllowThreads(__tstate);
35827 if (PyErr_Occurred()) SWIG_fail;
35828 }
35829 Py_INCREF(Py_None); resultobj = Py_None;
35830 return resultobj;
35831 fail:
35832 return NULL;
35833 }
35834
35835
35836 static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
35837 PyObject *obj;
35838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35839 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
35840 Py_INCREF(obj);
35841 return Py_BuildValue((char *)"");
35842 }
35843 static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35844 PyObject *resultobj;
35845 wxPySizer *result;
35846 char *kwnames[] = {
35847 NULL
35848 };
35849
35850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
35851 {
35852 PyThreadState* __tstate = wxPyBeginAllowThreads();
35853 result = (wxPySizer *)new wxPySizer();
35854
35855 wxPyEndAllowThreads(__tstate);
35856 if (PyErr_Occurred()) SWIG_fail;
35857 }
35858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
35859 return resultobj;
35860 fail:
35861 return NULL;
35862 }
35863
35864
35865 static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
35866 PyObject *resultobj;
35867 wxPySizer *arg1 = (wxPySizer *) 0 ;
35868 PyObject *arg2 = (PyObject *) 0 ;
35869 PyObject *arg3 = (PyObject *) 0 ;
35870 PyObject * obj0 = 0 ;
35871 PyObject * obj1 = 0 ;
35872 PyObject * obj2 = 0 ;
35873 char *kwnames[] = {
35874 (char *) "self",(char *) "self",(char *) "_class", NULL
35875 };
35876
35877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
35878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
35879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35880 arg2 = obj1;
35881 arg3 = obj2;
35882 {
35883 PyThreadState* __tstate = wxPyBeginAllowThreads();
35884 (arg1)->_setCallbackInfo(arg2,arg3);
35885
35886 wxPyEndAllowThreads(__tstate);
35887 if (PyErr_Occurred()) SWIG_fail;
35888 }
35889 Py_INCREF(Py_None); resultobj = Py_None;
35890 return resultobj;
35891 fail:
35892 return NULL;
35893 }
35894
35895
35896 static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
35897 PyObject *obj;
35898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35899 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
35900 Py_INCREF(obj);
35901 return Py_BuildValue((char *)"");
35902 }
35903 static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35904 PyObject *resultobj;
35905 int arg1 = (int) wxHORIZONTAL ;
35906 wxBoxSizer *result;
35907 PyObject * obj0 = 0 ;
35908 char *kwnames[] = {
35909 (char *) "orient", NULL
35910 };
35911
35912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
35913 if (obj0) {
35914 arg1 = (int) SWIG_AsInt(obj0);
35915 if (PyErr_Occurred()) SWIG_fail;
35916 }
35917 {
35918 PyThreadState* __tstate = wxPyBeginAllowThreads();
35919 result = (wxBoxSizer *)new wxBoxSizer(arg1);
35920
35921 wxPyEndAllowThreads(__tstate);
35922 if (PyErr_Occurred()) SWIG_fail;
35923 }
35924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
35925 return resultobj;
35926 fail:
35927 return NULL;
35928 }
35929
35930
35931 static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
35932 PyObject *resultobj;
35933 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35934 int result;
35935 PyObject * obj0 = 0 ;
35936 char *kwnames[] = {
35937 (char *) "self", NULL
35938 };
35939
35940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
35941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35943 {
35944 PyThreadState* __tstate = wxPyBeginAllowThreads();
35945 result = (int)(arg1)->GetOrientation();
35946
35947 wxPyEndAllowThreads(__tstate);
35948 if (PyErr_Occurred()) SWIG_fail;
35949 }
35950 resultobj = SWIG_FromInt((int)result);
35951 return resultobj;
35952 fail:
35953 return NULL;
35954 }
35955
35956
35957 static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
35958 PyObject *resultobj;
35959 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35960 int arg2 ;
35961 PyObject * obj0 = 0 ;
35962 PyObject * obj1 = 0 ;
35963 char *kwnames[] = {
35964 (char *) "self",(char *) "orient", NULL
35965 };
35966
35967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
35968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35970 arg2 = (int) SWIG_AsInt(obj1);
35971 if (PyErr_Occurred()) SWIG_fail;
35972 {
35973 PyThreadState* __tstate = wxPyBeginAllowThreads();
35974 (arg1)->SetOrientation(arg2);
35975
35976 wxPyEndAllowThreads(__tstate);
35977 if (PyErr_Occurred()) SWIG_fail;
35978 }
35979 Py_INCREF(Py_None); resultobj = Py_None;
35980 return resultobj;
35981 fail:
35982 return NULL;
35983 }
35984
35985
35986 static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
35987 PyObject *obj;
35988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35989 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
35990 Py_INCREF(obj);
35991 return Py_BuildValue((char *)"");
35992 }
35993 static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj;
35995 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
35996 int arg2 = (int) wxHORIZONTAL ;
35997 wxStaticBoxSizer *result;
35998 PyObject * obj0 = 0 ;
35999 PyObject * obj1 = 0 ;
36000 char *kwnames[] = {
36001 (char *) "box",(char *) "orient", NULL
36002 };
36003
36004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36007 if (obj1) {
36008 arg2 = (int) SWIG_AsInt(obj1);
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 {
36012 PyThreadState* __tstate = wxPyBeginAllowThreads();
36013 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36014
36015 wxPyEndAllowThreads(__tstate);
36016 if (PyErr_Occurred()) SWIG_fail;
36017 }
36018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36019 return resultobj;
36020 fail:
36021 return NULL;
36022 }
36023
36024
36025 static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
36026 PyObject *resultobj;
36027 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36028 wxStaticBox *result;
36029 PyObject * obj0 = 0 ;
36030 char *kwnames[] = {
36031 (char *) "self", NULL
36032 };
36033
36034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36037 {
36038 PyThreadState* __tstate = wxPyBeginAllowThreads();
36039 result = (wxStaticBox *)(arg1)->GetStaticBox();
36040
36041 wxPyEndAllowThreads(__tstate);
36042 if (PyErr_Occurred()) SWIG_fail;
36043 }
36044 {
36045 resultobj = wxPyMake_wxObject(result, 0);
36046 }
36047 return resultobj;
36048 fail:
36049 return NULL;
36050 }
36051
36052
36053 static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
36054 PyObject *obj;
36055 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36056 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36057 Py_INCREF(obj);
36058 return Py_BuildValue((char *)"");
36059 }
36060 static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36061 PyObject *resultobj;
36062 int arg1 = (int) 1 ;
36063 int arg2 = (int) 0 ;
36064 int arg3 = (int) 0 ;
36065 int arg4 = (int) 0 ;
36066 wxGridSizer *result;
36067 PyObject * obj0 = 0 ;
36068 PyObject * obj1 = 0 ;
36069 PyObject * obj2 = 0 ;
36070 PyObject * obj3 = 0 ;
36071 char *kwnames[] = {
36072 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36073 };
36074
36075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36076 if (obj0) {
36077 arg1 = (int) SWIG_AsInt(obj0);
36078 if (PyErr_Occurred()) SWIG_fail;
36079 }
36080 if (obj1) {
36081 arg2 = (int) SWIG_AsInt(obj1);
36082 if (PyErr_Occurred()) SWIG_fail;
36083 }
36084 if (obj2) {
36085 arg3 = (int) SWIG_AsInt(obj2);
36086 if (PyErr_Occurred()) SWIG_fail;
36087 }
36088 if (obj3) {
36089 arg4 = (int) SWIG_AsInt(obj3);
36090 if (PyErr_Occurred()) SWIG_fail;
36091 }
36092 {
36093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36094 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36095
36096 wxPyEndAllowThreads(__tstate);
36097 if (PyErr_Occurred()) SWIG_fail;
36098 }
36099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36100 return resultobj;
36101 fail:
36102 return NULL;
36103 }
36104
36105
36106 static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36107 PyObject *resultobj;
36108 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36109 int arg2 ;
36110 PyObject * obj0 = 0 ;
36111 PyObject * obj1 = 0 ;
36112 char *kwnames[] = {
36113 (char *) "self",(char *) "cols", NULL
36114 };
36115
36116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36119 arg2 = (int) SWIG_AsInt(obj1);
36120 if (PyErr_Occurred()) SWIG_fail;
36121 {
36122 PyThreadState* __tstate = wxPyBeginAllowThreads();
36123 (arg1)->SetCols(arg2);
36124
36125 wxPyEndAllowThreads(__tstate);
36126 if (PyErr_Occurred()) SWIG_fail;
36127 }
36128 Py_INCREF(Py_None); resultobj = Py_None;
36129 return resultobj;
36130 fail:
36131 return NULL;
36132 }
36133
36134
36135 static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36136 PyObject *resultobj;
36137 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36138 int arg2 ;
36139 PyObject * obj0 = 0 ;
36140 PyObject * obj1 = 0 ;
36141 char *kwnames[] = {
36142 (char *) "self",(char *) "rows", NULL
36143 };
36144
36145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36148 arg2 = (int) SWIG_AsInt(obj1);
36149 if (PyErr_Occurred()) SWIG_fail;
36150 {
36151 PyThreadState* __tstate = wxPyBeginAllowThreads();
36152 (arg1)->SetRows(arg2);
36153
36154 wxPyEndAllowThreads(__tstate);
36155 if (PyErr_Occurred()) SWIG_fail;
36156 }
36157 Py_INCREF(Py_None); resultobj = Py_None;
36158 return resultobj;
36159 fail:
36160 return NULL;
36161 }
36162
36163
36164 static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36165 PyObject *resultobj;
36166 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36167 int arg2 ;
36168 PyObject * obj0 = 0 ;
36169 PyObject * obj1 = 0 ;
36170 char *kwnames[] = {
36171 (char *) "self",(char *) "gap", NULL
36172 };
36173
36174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36177 arg2 = (int) SWIG_AsInt(obj1);
36178 if (PyErr_Occurred()) SWIG_fail;
36179 {
36180 PyThreadState* __tstate = wxPyBeginAllowThreads();
36181 (arg1)->SetVGap(arg2);
36182
36183 wxPyEndAllowThreads(__tstate);
36184 if (PyErr_Occurred()) SWIG_fail;
36185 }
36186 Py_INCREF(Py_None); resultobj = Py_None;
36187 return resultobj;
36188 fail:
36189 return NULL;
36190 }
36191
36192
36193 static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36194 PyObject *resultobj;
36195 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36196 int arg2 ;
36197 PyObject * obj0 = 0 ;
36198 PyObject * obj1 = 0 ;
36199 char *kwnames[] = {
36200 (char *) "self",(char *) "gap", NULL
36201 };
36202
36203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36206 arg2 = (int) SWIG_AsInt(obj1);
36207 if (PyErr_Occurred()) SWIG_fail;
36208 {
36209 PyThreadState* __tstate = wxPyBeginAllowThreads();
36210 (arg1)->SetHGap(arg2);
36211
36212 wxPyEndAllowThreads(__tstate);
36213 if (PyErr_Occurred()) SWIG_fail;
36214 }
36215 Py_INCREF(Py_None); resultobj = Py_None;
36216 return resultobj;
36217 fail:
36218 return NULL;
36219 }
36220
36221
36222 static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36223 PyObject *resultobj;
36224 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36225 int result;
36226 PyObject * obj0 = 0 ;
36227 char *kwnames[] = {
36228 (char *) "self", NULL
36229 };
36230
36231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36234 {
36235 PyThreadState* __tstate = wxPyBeginAllowThreads();
36236 result = (int)(arg1)->GetCols();
36237
36238 wxPyEndAllowThreads(__tstate);
36239 if (PyErr_Occurred()) SWIG_fail;
36240 }
36241 resultobj = SWIG_FromInt((int)result);
36242 return resultobj;
36243 fail:
36244 return NULL;
36245 }
36246
36247
36248 static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36249 PyObject *resultobj;
36250 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36251 int result;
36252 PyObject * obj0 = 0 ;
36253 char *kwnames[] = {
36254 (char *) "self", NULL
36255 };
36256
36257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
36258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36260 {
36261 PyThreadState* __tstate = wxPyBeginAllowThreads();
36262 result = (int)(arg1)->GetRows();
36263
36264 wxPyEndAllowThreads(__tstate);
36265 if (PyErr_Occurred()) SWIG_fail;
36266 }
36267 resultobj = SWIG_FromInt((int)result);
36268 return resultobj;
36269 fail:
36270 return NULL;
36271 }
36272
36273
36274 static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36275 PyObject *resultobj;
36276 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36277 int result;
36278 PyObject * obj0 = 0 ;
36279 char *kwnames[] = {
36280 (char *) "self", NULL
36281 };
36282
36283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
36284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36286 {
36287 PyThreadState* __tstate = wxPyBeginAllowThreads();
36288 result = (int)(arg1)->GetVGap();
36289
36290 wxPyEndAllowThreads(__tstate);
36291 if (PyErr_Occurred()) SWIG_fail;
36292 }
36293 resultobj = SWIG_FromInt((int)result);
36294 return resultobj;
36295 fail:
36296 return NULL;
36297 }
36298
36299
36300 static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36301 PyObject *resultobj;
36302 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36303 int result;
36304 PyObject * obj0 = 0 ;
36305 char *kwnames[] = {
36306 (char *) "self", NULL
36307 };
36308
36309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
36310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36312 {
36313 PyThreadState* __tstate = wxPyBeginAllowThreads();
36314 result = (int)(arg1)->GetHGap();
36315
36316 wxPyEndAllowThreads(__tstate);
36317 if (PyErr_Occurred()) SWIG_fail;
36318 }
36319 resultobj = SWIG_FromInt((int)result);
36320 return resultobj;
36321 fail:
36322 return NULL;
36323 }
36324
36325
36326 static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
36327 PyObject *obj;
36328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36329 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
36330 Py_INCREF(obj);
36331 return Py_BuildValue((char *)"");
36332 }
36333 static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36334 PyObject *resultobj;
36335 int arg1 = (int) 1 ;
36336 int arg2 = (int) 0 ;
36337 int arg3 = (int) 0 ;
36338 int arg4 = (int) 0 ;
36339 wxFlexGridSizer *result;
36340 PyObject * obj0 = 0 ;
36341 PyObject * obj1 = 0 ;
36342 PyObject * obj2 = 0 ;
36343 PyObject * obj3 = 0 ;
36344 char *kwnames[] = {
36345 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36346 };
36347
36348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36349 if (obj0) {
36350 arg1 = (int) SWIG_AsInt(obj0);
36351 if (PyErr_Occurred()) SWIG_fail;
36352 }
36353 if (obj1) {
36354 arg2 = (int) SWIG_AsInt(obj1);
36355 if (PyErr_Occurred()) SWIG_fail;
36356 }
36357 if (obj2) {
36358 arg3 = (int) SWIG_AsInt(obj2);
36359 if (PyErr_Occurred()) SWIG_fail;
36360 }
36361 if (obj3) {
36362 arg4 = (int) SWIG_AsInt(obj3);
36363 if (PyErr_Occurred()) SWIG_fail;
36364 }
36365 {
36366 PyThreadState* __tstate = wxPyBeginAllowThreads();
36367 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
36368
36369 wxPyEndAllowThreads(__tstate);
36370 if (PyErr_Occurred()) SWIG_fail;
36371 }
36372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
36373 return resultobj;
36374 fail:
36375 return NULL;
36376 }
36377
36378
36379 static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj;
36381 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36382 size_t arg2 ;
36383 int arg3 = (int) 0 ;
36384 PyObject * obj0 = 0 ;
36385 PyObject * obj1 = 0 ;
36386 PyObject * obj2 = 0 ;
36387 char *kwnames[] = {
36388 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36389 };
36390
36391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
36392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36394 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36395 if (PyErr_Occurred()) SWIG_fail;
36396 if (obj2) {
36397 arg3 = (int) SWIG_AsInt(obj2);
36398 if (PyErr_Occurred()) SWIG_fail;
36399 }
36400 {
36401 PyThreadState* __tstate = wxPyBeginAllowThreads();
36402 (arg1)->AddGrowableRow(arg2,arg3);
36403
36404 wxPyEndAllowThreads(__tstate);
36405 if (PyErr_Occurred()) SWIG_fail;
36406 }
36407 Py_INCREF(Py_None); resultobj = Py_None;
36408 return resultobj;
36409 fail:
36410 return NULL;
36411 }
36412
36413
36414 static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36415 PyObject *resultobj;
36416 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36417 size_t arg2 ;
36418 PyObject * obj0 = 0 ;
36419 PyObject * obj1 = 0 ;
36420 char *kwnames[] = {
36421 (char *) "self",(char *) "idx", NULL
36422 };
36423
36424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
36425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36427 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36428 if (PyErr_Occurred()) SWIG_fail;
36429 {
36430 PyThreadState* __tstate = wxPyBeginAllowThreads();
36431 (arg1)->RemoveGrowableRow(arg2);
36432
36433 wxPyEndAllowThreads(__tstate);
36434 if (PyErr_Occurred()) SWIG_fail;
36435 }
36436 Py_INCREF(Py_None); resultobj = Py_None;
36437 return resultobj;
36438 fail:
36439 return NULL;
36440 }
36441
36442
36443 static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36444 PyObject *resultobj;
36445 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36446 size_t arg2 ;
36447 int arg3 = (int) 0 ;
36448 PyObject * obj0 = 0 ;
36449 PyObject * obj1 = 0 ;
36450 PyObject * obj2 = 0 ;
36451 char *kwnames[] = {
36452 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36453 };
36454
36455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
36456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36458 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36459 if (PyErr_Occurred()) SWIG_fail;
36460 if (obj2) {
36461 arg3 = (int) SWIG_AsInt(obj2);
36462 if (PyErr_Occurred()) SWIG_fail;
36463 }
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 (arg1)->AddGrowableCol(arg2,arg3);
36467
36468 wxPyEndAllowThreads(__tstate);
36469 if (PyErr_Occurred()) SWIG_fail;
36470 }
36471 Py_INCREF(Py_None); resultobj = Py_None;
36472 return resultobj;
36473 fail:
36474 return NULL;
36475 }
36476
36477
36478 static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36479 PyObject *resultobj;
36480 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36481 size_t arg2 ;
36482 PyObject * obj0 = 0 ;
36483 PyObject * obj1 = 0 ;
36484 char *kwnames[] = {
36485 (char *) "self",(char *) "idx", NULL
36486 };
36487
36488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
36489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36491 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36492 if (PyErr_Occurred()) SWIG_fail;
36493 {
36494 PyThreadState* __tstate = wxPyBeginAllowThreads();
36495 (arg1)->RemoveGrowableCol(arg2);
36496
36497 wxPyEndAllowThreads(__tstate);
36498 if (PyErr_Occurred()) SWIG_fail;
36499 }
36500 Py_INCREF(Py_None); resultobj = Py_None;
36501 return resultobj;
36502 fail:
36503 return NULL;
36504 }
36505
36506
36507 static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36508 PyObject *resultobj;
36509 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36510 int arg2 ;
36511 PyObject * obj0 = 0 ;
36512 PyObject * obj1 = 0 ;
36513 char *kwnames[] = {
36514 (char *) "self",(char *) "direction", NULL
36515 };
36516
36517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
36518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36520 arg2 = (int) SWIG_AsInt(obj1);
36521 if (PyErr_Occurred()) SWIG_fail;
36522 {
36523 PyThreadState* __tstate = wxPyBeginAllowThreads();
36524 (arg1)->SetFlexibleDirection(arg2);
36525
36526 wxPyEndAllowThreads(__tstate);
36527 if (PyErr_Occurred()) SWIG_fail;
36528 }
36529 Py_INCREF(Py_None); resultobj = Py_None;
36530 return resultobj;
36531 fail:
36532 return NULL;
36533 }
36534
36535
36536 static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36537 PyObject *resultobj;
36538 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36539 int result;
36540 PyObject * obj0 = 0 ;
36541 char *kwnames[] = {
36542 (char *) "self", NULL
36543 };
36544
36545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
36546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36548 {
36549 PyThreadState* __tstate = wxPyBeginAllowThreads();
36550 result = (int)(arg1)->GetFlexibleDirection();
36551
36552 wxPyEndAllowThreads(__tstate);
36553 if (PyErr_Occurred()) SWIG_fail;
36554 }
36555 resultobj = SWIG_FromInt((int)result);
36556 return resultobj;
36557 fail:
36558 return NULL;
36559 }
36560
36561
36562 static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36563 PyObject *resultobj;
36564 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36565 int arg2 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 char *kwnames[] = {
36569 (char *) "self",(char *) "mode", NULL
36570 };
36571
36572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
36573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36575 arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1);
36576 if (PyErr_Occurred()) SWIG_fail;
36577 {
36578 PyThreadState* __tstate = wxPyBeginAllowThreads();
36579 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
36580
36581 wxPyEndAllowThreads(__tstate);
36582 if (PyErr_Occurred()) SWIG_fail;
36583 }
36584 Py_INCREF(Py_None); resultobj = Py_None;
36585 return resultobj;
36586 fail:
36587 return NULL;
36588 }
36589
36590
36591 static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36592 PyObject *resultobj;
36593 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36594 int result;
36595 PyObject * obj0 = 0 ;
36596 char *kwnames[] = {
36597 (char *) "self", NULL
36598 };
36599
36600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
36601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36603 {
36604 PyThreadState* __tstate = wxPyBeginAllowThreads();
36605 result = (int)(arg1)->GetNonFlexibleGrowMode();
36606
36607 wxPyEndAllowThreads(__tstate);
36608 if (PyErr_Occurred()) SWIG_fail;
36609 }
36610 resultobj = SWIG_FromInt((int)result);
36611 return resultobj;
36612 fail:
36613 return NULL;
36614 }
36615
36616
36617 static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
36618 PyObject *resultobj;
36619 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36620 wxArrayInt *result;
36621 PyObject * obj0 = 0 ;
36622 char *kwnames[] = {
36623 (char *) "self", NULL
36624 };
36625
36626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
36627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36629 {
36630 PyThreadState* __tstate = wxPyBeginAllowThreads();
36631 {
36632 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
36633 result = (wxArrayInt *) &_result_ref;
36634 }
36635
36636 wxPyEndAllowThreads(__tstate);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 {
36640 resultobj = PyList_New(0);
36641 size_t idx;
36642 for (idx = 0; idx < result->GetCount(); idx += 1) {
36643 PyObject* val = PyInt_FromLong( result->Item(idx) );
36644 PyList_Append(resultobj, val);
36645 Py_DECREF(val);
36646 }
36647 }
36648 return resultobj;
36649 fail:
36650 return NULL;
36651 }
36652
36653
36654 static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
36655 PyObject *resultobj;
36656 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36657 wxArrayInt *result;
36658 PyObject * obj0 = 0 ;
36659 char *kwnames[] = {
36660 (char *) "self", NULL
36661 };
36662
36663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
36664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36666 {
36667 PyThreadState* __tstate = wxPyBeginAllowThreads();
36668 {
36669 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
36670 result = (wxArrayInt *) &_result_ref;
36671 }
36672
36673 wxPyEndAllowThreads(__tstate);
36674 if (PyErr_Occurred()) SWIG_fail;
36675 }
36676 {
36677 resultobj = PyList_New(0);
36678 size_t idx;
36679 for (idx = 0; idx < result->GetCount(); idx += 1) {
36680 PyObject* val = PyInt_FromLong( result->Item(idx) );
36681 PyList_Append(resultobj, val);
36682 Py_DECREF(val);
36683 }
36684 }
36685 return resultobj;
36686 fail:
36687 return NULL;
36688 }
36689
36690
36691 static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
36692 PyObject *obj;
36693 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36694 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
36695 Py_INCREF(obj);
36696 return Py_BuildValue((char *)"");
36697 }
36698 static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
36699 PyObject *resultobj;
36700 int arg1 = (int) 0 ;
36701 int arg2 = (int) 0 ;
36702 wxGBPosition *result;
36703 PyObject * obj0 = 0 ;
36704 PyObject * obj1 = 0 ;
36705 char *kwnames[] = {
36706 (char *) "row",(char *) "col", NULL
36707 };
36708
36709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
36710 if (obj0) {
36711 arg1 = (int) SWIG_AsInt(obj0);
36712 if (PyErr_Occurred()) SWIG_fail;
36713 }
36714 if (obj1) {
36715 arg2 = (int) SWIG_AsInt(obj1);
36716 if (PyErr_Occurred()) SWIG_fail;
36717 }
36718 {
36719 PyThreadState* __tstate = wxPyBeginAllowThreads();
36720 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
36721
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
36726 return resultobj;
36727 fail:
36728 return NULL;
36729 }
36730
36731
36732 static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj;
36734 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36735 int result;
36736 PyObject * obj0 = 0 ;
36737 char *kwnames[] = {
36738 (char *) "self", NULL
36739 };
36740
36741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
36742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36744 {
36745 PyThreadState* __tstate = wxPyBeginAllowThreads();
36746 result = (int)((wxGBPosition const *)arg1)->GetRow();
36747
36748 wxPyEndAllowThreads(__tstate);
36749 if (PyErr_Occurred()) SWIG_fail;
36750 }
36751 resultobj = SWIG_FromInt((int)result);
36752 return resultobj;
36753 fail:
36754 return NULL;
36755 }
36756
36757
36758 static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36759 PyObject *resultobj;
36760 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36761 int result;
36762 PyObject * obj0 = 0 ;
36763 char *kwnames[] = {
36764 (char *) "self", NULL
36765 };
36766
36767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
36768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 result = (int)((wxGBPosition const *)arg1)->GetCol();
36773
36774 wxPyEndAllowThreads(__tstate);
36775 if (PyErr_Occurred()) SWIG_fail;
36776 }
36777 resultobj = SWIG_FromInt((int)result);
36778 return resultobj;
36779 fail:
36780 return NULL;
36781 }
36782
36783
36784 static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36785 PyObject *resultobj;
36786 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36787 int arg2 ;
36788 PyObject * obj0 = 0 ;
36789 PyObject * obj1 = 0 ;
36790 char *kwnames[] = {
36791 (char *) "self",(char *) "row", NULL
36792 };
36793
36794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
36795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36797 arg2 = (int) SWIG_AsInt(obj1);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 {
36800 PyThreadState* __tstate = wxPyBeginAllowThreads();
36801 (arg1)->SetRow(arg2);
36802
36803 wxPyEndAllowThreads(__tstate);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 Py_INCREF(Py_None); resultobj = Py_None;
36807 return resultobj;
36808 fail:
36809 return NULL;
36810 }
36811
36812
36813 static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36814 PyObject *resultobj;
36815 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36816 int arg2 ;
36817 PyObject * obj0 = 0 ;
36818 PyObject * obj1 = 0 ;
36819 char *kwnames[] = {
36820 (char *) "self",(char *) "col", NULL
36821 };
36822
36823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
36824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36826 arg2 = (int) SWIG_AsInt(obj1);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 {
36829 PyThreadState* __tstate = wxPyBeginAllowThreads();
36830 (arg1)->SetCol(arg2);
36831
36832 wxPyEndAllowThreads(__tstate);
36833 if (PyErr_Occurred()) SWIG_fail;
36834 }
36835 Py_INCREF(Py_None); resultobj = Py_None;
36836 return resultobj;
36837 fail:
36838 return NULL;
36839 }
36840
36841
36842 static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
36843 PyObject *resultobj;
36844 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36845 wxGBPosition *arg2 = 0 ;
36846 bool result;
36847 wxGBPosition temp2 ;
36848 PyObject * obj0 = 0 ;
36849 PyObject * obj1 = 0 ;
36850 char *kwnames[] = {
36851 (char *) "self",(char *) "other", NULL
36852 };
36853
36854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
36855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36857 {
36858 arg2 = &temp2;
36859 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36860 }
36861 {
36862 PyThreadState* __tstate = wxPyBeginAllowThreads();
36863 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
36864
36865 wxPyEndAllowThreads(__tstate);
36866 if (PyErr_Occurred()) SWIG_fail;
36867 }
36868 {
36869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36870 }
36871 return resultobj;
36872 fail:
36873 return NULL;
36874 }
36875
36876
36877 static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
36878 PyObject *resultobj;
36879 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36880 wxGBPosition *arg2 = 0 ;
36881 bool result;
36882 wxGBPosition temp2 ;
36883 PyObject * obj0 = 0 ;
36884 PyObject * obj1 = 0 ;
36885 char *kwnames[] = {
36886 (char *) "self",(char *) "other", NULL
36887 };
36888
36889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
36890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36892 {
36893 arg2 = &temp2;
36894 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36895 }
36896 {
36897 PyThreadState* __tstate = wxPyBeginAllowThreads();
36898 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
36899
36900 wxPyEndAllowThreads(__tstate);
36901 if (PyErr_Occurred()) SWIG_fail;
36902 }
36903 {
36904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36905 }
36906 return resultobj;
36907 fail:
36908 return NULL;
36909 }
36910
36911
36912 static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
36913 PyObject *resultobj;
36914 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36915 int arg2 = (int) 0 ;
36916 int arg3 = (int) 0 ;
36917 PyObject * obj0 = 0 ;
36918 PyObject * obj1 = 0 ;
36919 PyObject * obj2 = 0 ;
36920 char *kwnames[] = {
36921 (char *) "self",(char *) "row",(char *) "col", NULL
36922 };
36923
36924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
36925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36927 if (obj1) {
36928 arg2 = (int) SWIG_AsInt(obj1);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 if (obj2) {
36932 arg3 = (int) SWIG_AsInt(obj2);
36933 if (PyErr_Occurred()) SWIG_fail;
36934 }
36935 {
36936 PyThreadState* __tstate = wxPyBeginAllowThreads();
36937 wxGBPosition_Set(arg1,arg2,arg3);
36938
36939 wxPyEndAllowThreads(__tstate);
36940 if (PyErr_Occurred()) SWIG_fail;
36941 }
36942 Py_INCREF(Py_None); resultobj = Py_None;
36943 return resultobj;
36944 fail:
36945 return NULL;
36946 }
36947
36948
36949 static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
36950 PyObject *resultobj;
36951 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36952 PyObject *result;
36953 PyObject * obj0 = 0 ;
36954 char *kwnames[] = {
36955 (char *) "self", NULL
36956 };
36957
36958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
36959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36961 {
36962 PyThreadState* __tstate = wxPyBeginAllowThreads();
36963 result = (PyObject *)wxGBPosition_Get(arg1);
36964
36965 wxPyEndAllowThreads(__tstate);
36966 if (PyErr_Occurred()) SWIG_fail;
36967 }
36968 resultobj = result;
36969 return resultobj;
36970 fail:
36971 return NULL;
36972 }
36973
36974
36975 static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
36976 PyObject *obj;
36977 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36978 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
36979 Py_INCREF(obj);
36980 return Py_BuildValue((char *)"");
36981 }
36982 static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
36983 PyObject *resultobj;
36984 int arg1 = (int) 1 ;
36985 int arg2 = (int) 1 ;
36986 wxGBSpan *result;
36987 PyObject * obj0 = 0 ;
36988 PyObject * obj1 = 0 ;
36989 char *kwnames[] = {
36990 (char *) "rowspan",(char *) "colspan", NULL
36991 };
36992
36993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
36994 if (obj0) {
36995 arg1 = (int) SWIG_AsInt(obj0);
36996 if (PyErr_Occurred()) SWIG_fail;
36997 }
36998 if (obj1) {
36999 arg2 = (int) SWIG_AsInt(obj1);
37000 if (PyErr_Occurred()) SWIG_fail;
37001 }
37002 {
37003 PyThreadState* __tstate = wxPyBeginAllowThreads();
37004 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37005
37006 wxPyEndAllowThreads(__tstate);
37007 if (PyErr_Occurred()) SWIG_fail;
37008 }
37009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37010 return resultobj;
37011 fail:
37012 return NULL;
37013 }
37014
37015
37016 static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37017 PyObject *resultobj;
37018 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37019 int result;
37020 PyObject * obj0 = 0 ;
37021 char *kwnames[] = {
37022 (char *) "self", NULL
37023 };
37024
37025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37028 {
37029 PyThreadState* __tstate = wxPyBeginAllowThreads();
37030 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37031
37032 wxPyEndAllowThreads(__tstate);
37033 if (PyErr_Occurred()) SWIG_fail;
37034 }
37035 resultobj = SWIG_FromInt((int)result);
37036 return resultobj;
37037 fail:
37038 return NULL;
37039 }
37040
37041
37042 static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37043 PyObject *resultobj;
37044 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37045 int result;
37046 PyObject * obj0 = 0 ;
37047 char *kwnames[] = {
37048 (char *) "self", NULL
37049 };
37050
37051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37054 {
37055 PyThreadState* __tstate = wxPyBeginAllowThreads();
37056 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37057
37058 wxPyEndAllowThreads(__tstate);
37059 if (PyErr_Occurred()) SWIG_fail;
37060 }
37061 resultobj = SWIG_FromInt((int)result);
37062 return resultobj;
37063 fail:
37064 return NULL;
37065 }
37066
37067
37068 static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37069 PyObject *resultobj;
37070 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37071 int arg2 ;
37072 PyObject * obj0 = 0 ;
37073 PyObject * obj1 = 0 ;
37074 char *kwnames[] = {
37075 (char *) "self",(char *) "rowspan", NULL
37076 };
37077
37078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37081 arg2 = (int) SWIG_AsInt(obj1);
37082 if (PyErr_Occurred()) SWIG_fail;
37083 {
37084 PyThreadState* __tstate = wxPyBeginAllowThreads();
37085 (arg1)->SetRowspan(arg2);
37086
37087 wxPyEndAllowThreads(__tstate);
37088 if (PyErr_Occurred()) SWIG_fail;
37089 }
37090 Py_INCREF(Py_None); resultobj = Py_None;
37091 return resultobj;
37092 fail:
37093 return NULL;
37094 }
37095
37096
37097 static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37098 PyObject *resultobj;
37099 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37100 int arg2 ;
37101 PyObject * obj0 = 0 ;
37102 PyObject * obj1 = 0 ;
37103 char *kwnames[] = {
37104 (char *) "self",(char *) "colspan", NULL
37105 };
37106
37107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37110 arg2 = (int) SWIG_AsInt(obj1);
37111 if (PyErr_Occurred()) SWIG_fail;
37112 {
37113 PyThreadState* __tstate = wxPyBeginAllowThreads();
37114 (arg1)->SetColspan(arg2);
37115
37116 wxPyEndAllowThreads(__tstate);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 }
37119 Py_INCREF(Py_None); resultobj = Py_None;
37120 return resultobj;
37121 fail:
37122 return NULL;
37123 }
37124
37125
37126 static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37127 PyObject *resultobj;
37128 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37129 wxGBSpan *arg2 = 0 ;
37130 bool result;
37131 wxGBSpan temp2 ;
37132 PyObject * obj0 = 0 ;
37133 PyObject * obj1 = 0 ;
37134 char *kwnames[] = {
37135 (char *) "self",(char *) "other", NULL
37136 };
37137
37138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37141 {
37142 arg2 = &temp2;
37143 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37144 }
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37148
37149 wxPyEndAllowThreads(__tstate);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 }
37152 {
37153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37154 }
37155 return resultobj;
37156 fail:
37157 return NULL;
37158 }
37159
37160
37161 static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37162 PyObject *resultobj;
37163 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37164 wxGBSpan *arg2 = 0 ;
37165 bool result;
37166 wxGBSpan temp2 ;
37167 PyObject * obj0 = 0 ;
37168 PyObject * obj1 = 0 ;
37169 char *kwnames[] = {
37170 (char *) "self",(char *) "other", NULL
37171 };
37172
37173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37176 {
37177 arg2 = &temp2;
37178 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37179 }
37180 {
37181 PyThreadState* __tstate = wxPyBeginAllowThreads();
37182 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37183
37184 wxPyEndAllowThreads(__tstate);
37185 if (PyErr_Occurred()) SWIG_fail;
37186 }
37187 {
37188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37189 }
37190 return resultobj;
37191 fail:
37192 return NULL;
37193 }
37194
37195
37196 static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37197 PyObject *resultobj;
37198 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37199 int arg2 = (int) 1 ;
37200 int arg3 = (int) 1 ;
37201 PyObject * obj0 = 0 ;
37202 PyObject * obj1 = 0 ;
37203 PyObject * obj2 = 0 ;
37204 char *kwnames[] = {
37205 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37206 };
37207
37208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37211 if (obj1) {
37212 arg2 = (int) SWIG_AsInt(obj1);
37213 if (PyErr_Occurred()) SWIG_fail;
37214 }
37215 if (obj2) {
37216 arg3 = (int) SWIG_AsInt(obj2);
37217 if (PyErr_Occurred()) SWIG_fail;
37218 }
37219 {
37220 PyThreadState* __tstate = wxPyBeginAllowThreads();
37221 wxGBSpan_Set(arg1,arg2,arg3);
37222
37223 wxPyEndAllowThreads(__tstate);
37224 if (PyErr_Occurred()) SWIG_fail;
37225 }
37226 Py_INCREF(Py_None); resultobj = Py_None;
37227 return resultobj;
37228 fail:
37229 return NULL;
37230 }
37231
37232
37233 static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37234 PyObject *resultobj;
37235 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37236 PyObject *result;
37237 PyObject * obj0 = 0 ;
37238 char *kwnames[] = {
37239 (char *) "self", NULL
37240 };
37241
37242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37245 {
37246 PyThreadState* __tstate = wxPyBeginAllowThreads();
37247 result = (PyObject *)wxGBSpan_Get(arg1);
37248
37249 wxPyEndAllowThreads(__tstate);
37250 if (PyErr_Occurred()) SWIG_fail;
37251 }
37252 resultobj = result;
37253 return resultobj;
37254 fail:
37255 return NULL;
37256 }
37257
37258
37259 static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
37260 PyObject *obj;
37261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37262 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37263 Py_INCREF(obj);
37264 return Py_BuildValue((char *)"");
37265 }
37266 static int _wrap_DefaultSpan_set(PyObject *_val) {
37267 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37268 return 1;
37269 }
37270
37271
37272 static PyObject *_wrap_DefaultSpan_get() {
37273 PyObject *pyobj;
37274
37275 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37276 return pyobj;
37277 }
37278
37279
37280 static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37281 PyObject *resultobj;
37282 wxGBSizerItem *result;
37283 char *kwnames[] = {
37284 NULL
37285 };
37286
37287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
37288 {
37289 PyThreadState* __tstate = wxPyBeginAllowThreads();
37290 result = (wxGBSizerItem *)new wxGBSizerItem();
37291
37292 wxPyEndAllowThreads(__tstate);
37293 if (PyErr_Occurred()) SWIG_fail;
37294 }
37295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37296 return resultobj;
37297 fail:
37298 return NULL;
37299 }
37300
37301
37302 static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37303 PyObject *resultobj;
37304 wxWindow *arg1 = (wxWindow *) 0 ;
37305 wxGBPosition *arg2 = 0 ;
37306 wxGBSpan *arg3 = 0 ;
37307 int arg4 ;
37308 int arg5 ;
37309 PyObject *arg6 = (PyObject *) NULL ;
37310 wxGBSizerItem *result;
37311 wxGBPosition temp2 ;
37312 wxGBSpan temp3 ;
37313 PyObject * obj0 = 0 ;
37314 PyObject * obj1 = 0 ;
37315 PyObject * obj2 = 0 ;
37316 PyObject * obj3 = 0 ;
37317 PyObject * obj4 = 0 ;
37318 PyObject * obj5 = 0 ;
37319 char *kwnames[] = {
37320 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37321 };
37322
37323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
37324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
37325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37326 {
37327 arg2 = &temp2;
37328 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37329 }
37330 {
37331 arg3 = &temp3;
37332 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37333 }
37334 arg4 = (int) SWIG_AsInt(obj3);
37335 if (PyErr_Occurred()) SWIG_fail;
37336 arg5 = (int) SWIG_AsInt(obj4);
37337 if (PyErr_Occurred()) SWIG_fail;
37338 if (obj5) {
37339 arg6 = obj5;
37340 }
37341 {
37342 PyThreadState* __tstate = wxPyBeginAllowThreads();
37343 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
37344
37345 wxPyEndAllowThreads(__tstate);
37346 if (PyErr_Occurred()) SWIG_fail;
37347 }
37348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37349 return resultobj;
37350 fail:
37351 return NULL;
37352 }
37353
37354
37355 static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37356 PyObject *resultobj;
37357 wxSizer *arg1 = (wxSizer *) 0 ;
37358 wxGBPosition *arg2 = 0 ;
37359 wxGBSpan *arg3 = 0 ;
37360 int arg4 ;
37361 int arg5 ;
37362 PyObject *arg6 = (PyObject *) NULL ;
37363 wxGBSizerItem *result;
37364 wxGBPosition temp2 ;
37365 wxGBSpan temp3 ;
37366 PyObject * obj0 = 0 ;
37367 PyObject * obj1 = 0 ;
37368 PyObject * obj2 = 0 ;
37369 PyObject * obj3 = 0 ;
37370 PyObject * obj4 = 0 ;
37371 PyObject * obj5 = 0 ;
37372 char *kwnames[] = {
37373 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37374 };
37375
37376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
37377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
37378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37379 {
37380 arg2 = &temp2;
37381 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37382 }
37383 {
37384 arg3 = &temp3;
37385 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37386 }
37387 arg4 = (int) SWIG_AsInt(obj3);
37388 if (PyErr_Occurred()) SWIG_fail;
37389 arg5 = (int) SWIG_AsInt(obj4);
37390 if (PyErr_Occurred()) SWIG_fail;
37391 if (obj5) {
37392 arg6 = obj5;
37393 }
37394 {
37395 PyThreadState* __tstate = wxPyBeginAllowThreads();
37396 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
37397
37398 wxPyEndAllowThreads(__tstate);
37399 if (PyErr_Occurred()) SWIG_fail;
37400 }
37401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37402 return resultobj;
37403 fail:
37404 return NULL;
37405 }
37406
37407
37408 static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
37409 PyObject *resultobj;
37410 int arg1 ;
37411 int arg2 ;
37412 wxGBPosition *arg3 = 0 ;
37413 wxGBSpan *arg4 = 0 ;
37414 int arg5 ;
37415 int arg6 ;
37416 PyObject *arg7 = (PyObject *) NULL ;
37417 wxGBSizerItem *result;
37418 wxGBPosition temp3 ;
37419 wxGBSpan temp4 ;
37420 PyObject * obj0 = 0 ;
37421 PyObject * obj1 = 0 ;
37422 PyObject * obj2 = 0 ;
37423 PyObject * obj3 = 0 ;
37424 PyObject * obj4 = 0 ;
37425 PyObject * obj5 = 0 ;
37426 PyObject * obj6 = 0 ;
37427 char *kwnames[] = {
37428 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37429 };
37430
37431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
37432 arg1 = (int) SWIG_AsInt(obj0);
37433 if (PyErr_Occurred()) SWIG_fail;
37434 arg2 = (int) SWIG_AsInt(obj1);
37435 if (PyErr_Occurred()) SWIG_fail;
37436 {
37437 arg3 = &temp3;
37438 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37439 }
37440 {
37441 arg4 = &temp4;
37442 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37443 }
37444 arg5 = (int) SWIG_AsInt(obj4);
37445 if (PyErr_Occurred()) SWIG_fail;
37446 arg6 = (int) SWIG_AsInt(obj5);
37447 if (PyErr_Occurred()) SWIG_fail;
37448 if (obj6) {
37449 arg7 = obj6;
37450 }
37451 {
37452 PyThreadState* __tstate = wxPyBeginAllowThreads();
37453 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
37454
37455 wxPyEndAllowThreads(__tstate);
37456 if (PyErr_Occurred()) SWIG_fail;
37457 }
37458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37459 return resultobj;
37460 fail:
37461 return NULL;
37462 }
37463
37464
37465 static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37466 PyObject *resultobj;
37467 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37468 wxGBPosition result;
37469 PyObject * obj0 = 0 ;
37470 char *kwnames[] = {
37471 (char *) "self", NULL
37472 };
37473
37474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
37475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37477 {
37478 PyThreadState* __tstate = wxPyBeginAllowThreads();
37479 result = ((wxGBSizerItem const *)arg1)->GetPos();
37480
37481 wxPyEndAllowThreads(__tstate);
37482 if (PyErr_Occurred()) SWIG_fail;
37483 }
37484 {
37485 wxGBPosition * resultptr;
37486 resultptr = new wxGBPosition((wxGBPosition &) result);
37487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37488 }
37489 return resultobj;
37490 fail:
37491 return NULL;
37492 }
37493
37494
37495 static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37496 PyObject *resultobj;
37497 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37498 wxGBSpan result;
37499 PyObject * obj0 = 0 ;
37500 char *kwnames[] = {
37501 (char *) "self", NULL
37502 };
37503
37504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
37505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37507 {
37508 PyThreadState* __tstate = wxPyBeginAllowThreads();
37509 result = ((wxGBSizerItem const *)arg1)->GetSpan();
37510
37511 wxPyEndAllowThreads(__tstate);
37512 if (PyErr_Occurred()) SWIG_fail;
37513 }
37514 {
37515 wxGBSpan * resultptr;
37516 resultptr = new wxGBSpan((wxGBSpan &) result);
37517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
37518 }
37519 return resultobj;
37520 fail:
37521 return NULL;
37522 }
37523
37524
37525 static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37526 PyObject *resultobj;
37527 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37528 wxGBPosition *arg2 = 0 ;
37529 bool result;
37530 wxGBPosition temp2 ;
37531 PyObject * obj0 = 0 ;
37532 PyObject * obj1 = 0 ;
37533 char *kwnames[] = {
37534 (char *) "self",(char *) "pos", NULL
37535 };
37536
37537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
37538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37540 {
37541 arg2 = &temp2;
37542 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37543 }
37544 {
37545 PyThreadState* __tstate = wxPyBeginAllowThreads();
37546 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
37547
37548 wxPyEndAllowThreads(__tstate);
37549 if (PyErr_Occurred()) SWIG_fail;
37550 }
37551 {
37552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37553 }
37554 return resultobj;
37555 fail:
37556 return NULL;
37557 }
37558
37559
37560 static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37561 PyObject *resultobj;
37562 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37563 wxGBSpan *arg2 = 0 ;
37564 bool result;
37565 wxGBSpan temp2 ;
37566 PyObject * obj0 = 0 ;
37567 PyObject * obj1 = 0 ;
37568 char *kwnames[] = {
37569 (char *) "self",(char *) "span", NULL
37570 };
37571
37572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
37573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37575 {
37576 arg2 = &temp2;
37577 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37578 }
37579 {
37580 PyThreadState* __tstate = wxPyBeginAllowThreads();
37581 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
37582
37583 wxPyEndAllowThreads(__tstate);
37584 if (PyErr_Occurred()) SWIG_fail;
37585 }
37586 {
37587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37588 }
37589 return resultobj;
37590 fail:
37591 return NULL;
37592 }
37593
37594
37595 static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
37596 PyObject *resultobj;
37597 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37598 wxGBSizerItem *arg2 = 0 ;
37599 bool result;
37600 PyObject * obj0 = 0 ;
37601 PyObject * obj1 = 0 ;
37602 char *kwnames[] = {
37603 (char *) "self",(char *) "other", NULL
37604 };
37605
37606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
37607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37609 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37610 SWIG_POINTER_EXCEPTION | 0)) == -1)
37611 SWIG_fail;
37612 if (arg2 == NULL) {
37613 PyErr_SetString(PyExc_TypeError,"null reference");
37614 SWIG_fail;
37615 }
37616 {
37617 PyThreadState* __tstate = wxPyBeginAllowThreads();
37618 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
37619
37620 wxPyEndAllowThreads(__tstate);
37621 if (PyErr_Occurred()) SWIG_fail;
37622 }
37623 {
37624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37625 }
37626 return resultobj;
37627 fail:
37628 return NULL;
37629 }
37630
37631
37632 static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37633 PyObject *resultobj;
37634 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37635 wxGBPosition *arg2 = 0 ;
37636 wxGBSpan *arg3 = 0 ;
37637 bool result;
37638 wxGBPosition temp2 ;
37639 wxGBSpan temp3 ;
37640 PyObject * obj0 = 0 ;
37641 PyObject * obj1 = 0 ;
37642 PyObject * obj2 = 0 ;
37643 char *kwnames[] = {
37644 (char *) "self",(char *) "pos",(char *) "span", NULL
37645 };
37646
37647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
37648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37650 {
37651 arg2 = &temp2;
37652 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37653 }
37654 {
37655 arg3 = &temp3;
37656 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37657 }
37658 {
37659 PyThreadState* __tstate = wxPyBeginAllowThreads();
37660 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
37661
37662 wxPyEndAllowThreads(__tstate);
37663 if (PyErr_Occurred()) SWIG_fail;
37664 }
37665 {
37666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37667 }
37668 return resultobj;
37669 fail:
37670 return NULL;
37671 }
37672
37673
37674 static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37675 PyObject *resultobj;
37676 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37677 wxGBPosition result;
37678 PyObject * obj0 = 0 ;
37679 char *kwnames[] = {
37680 (char *) "self", NULL
37681 };
37682
37683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
37684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37686 {
37687 PyThreadState* __tstate = wxPyBeginAllowThreads();
37688 result = wxGBSizerItem_GetEndPos(arg1);
37689
37690 wxPyEndAllowThreads(__tstate);
37691 if (PyErr_Occurred()) SWIG_fail;
37692 }
37693 {
37694 wxGBPosition * resultptr;
37695 resultptr = new wxGBPosition((wxGBPosition &) result);
37696 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37697 }
37698 return resultobj;
37699 fail:
37700 return NULL;
37701 }
37702
37703
37704 static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37705 PyObject *resultobj;
37706 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37707 wxGridBagSizer *result;
37708 PyObject * obj0 = 0 ;
37709 char *kwnames[] = {
37710 (char *) "self", NULL
37711 };
37712
37713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
37714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37716 {
37717 PyThreadState* __tstate = wxPyBeginAllowThreads();
37718 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
37719
37720 wxPyEndAllowThreads(__tstate);
37721 if (PyErr_Occurred()) SWIG_fail;
37722 }
37723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
37724 return resultobj;
37725 fail:
37726 return NULL;
37727 }
37728
37729
37730 static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37731 PyObject *resultobj;
37732 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37733 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
37734 PyObject * obj0 = 0 ;
37735 PyObject * obj1 = 0 ;
37736 char *kwnames[] = {
37737 (char *) "self",(char *) "sizer", NULL
37738 };
37739
37740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
37741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37743 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
37744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37745 {
37746 PyThreadState* __tstate = wxPyBeginAllowThreads();
37747 (arg1)->SetGBSizer(arg2);
37748
37749 wxPyEndAllowThreads(__tstate);
37750 if (PyErr_Occurred()) SWIG_fail;
37751 }
37752 Py_INCREF(Py_None); resultobj = Py_None;
37753 return resultobj;
37754 fail:
37755 return NULL;
37756 }
37757
37758
37759 static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
37760 PyObject *obj;
37761 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37762 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
37763 Py_INCREF(obj);
37764 return Py_BuildValue((char *)"");
37765 }
37766 static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37767 PyObject *resultobj;
37768 int arg1 = (int) 0 ;
37769 int arg2 = (int) 0 ;
37770 wxGridBagSizer *result;
37771 PyObject * obj0 = 0 ;
37772 PyObject * obj1 = 0 ;
37773 char *kwnames[] = {
37774 (char *) "vgap",(char *) "hgap", NULL
37775 };
37776
37777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
37778 if (obj0) {
37779 arg1 = (int) SWIG_AsInt(obj0);
37780 if (PyErr_Occurred()) SWIG_fail;
37781 }
37782 if (obj1) {
37783 arg2 = (int) SWIG_AsInt(obj1);
37784 if (PyErr_Occurred()) SWIG_fail;
37785 }
37786 {
37787 PyThreadState* __tstate = wxPyBeginAllowThreads();
37788 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
37789
37790 wxPyEndAllowThreads(__tstate);
37791 if (PyErr_Occurred()) SWIG_fail;
37792 }
37793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
37794 return resultobj;
37795 fail:
37796 return NULL;
37797 }
37798
37799
37800 static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
37801 PyObject *resultobj;
37802 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37803 PyObject *arg2 = (PyObject *) 0 ;
37804 wxGBPosition *arg3 = 0 ;
37805 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
37806 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
37807 int arg5 = (int) 0 ;
37808 int arg6 = (int) 0 ;
37809 PyObject *arg7 = (PyObject *) NULL ;
37810 bool result;
37811 wxGBPosition temp3 ;
37812 wxGBSpan temp4 ;
37813 PyObject * obj0 = 0 ;
37814 PyObject * obj1 = 0 ;
37815 PyObject * obj2 = 0 ;
37816 PyObject * obj3 = 0 ;
37817 PyObject * obj4 = 0 ;
37818 PyObject * obj5 = 0 ;
37819 PyObject * obj6 = 0 ;
37820 char *kwnames[] = {
37821 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37822 };
37823
37824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
37825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37827 arg2 = obj1;
37828 {
37829 arg3 = &temp3;
37830 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37831 }
37832 if (obj3) {
37833 {
37834 arg4 = &temp4;
37835 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37836 }
37837 }
37838 if (obj4) {
37839 arg5 = (int) SWIG_AsInt(obj4);
37840 if (PyErr_Occurred()) SWIG_fail;
37841 }
37842 if (obj5) {
37843 arg6 = (int) SWIG_AsInt(obj5);
37844 if (PyErr_Occurred()) SWIG_fail;
37845 }
37846 if (obj6) {
37847 arg7 = obj6;
37848 }
37849 {
37850 PyThreadState* __tstate = wxPyBeginAllowThreads();
37851 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
37852
37853 wxPyEndAllowThreads(__tstate);
37854 if (PyErr_Occurred()) SWIG_fail;
37855 }
37856 {
37857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37858 }
37859 return resultobj;
37860 fail:
37861 return NULL;
37862 }
37863
37864
37865 static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37866 PyObject *resultobj;
37867 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37868 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
37869 bool result;
37870 PyObject * obj0 = 0 ;
37871 PyObject * obj1 = 0 ;
37872 char *kwnames[] = {
37873 (char *) "self",(char *) "item", NULL
37874 };
37875
37876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
37877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37881 {
37882 PyThreadState* __tstate = wxPyBeginAllowThreads();
37883 result = (bool)(arg1)->Add(arg2);
37884
37885 wxPyEndAllowThreads(__tstate);
37886 if (PyErr_Occurred()) SWIG_fail;
37887 }
37888 {
37889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37890 }
37891 return resultobj;
37892 fail:
37893 return NULL;
37894 }
37895
37896
37897 static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
37898 PyObject *resultobj;
37899 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37900 wxSize result;
37901 PyObject * obj0 = 0 ;
37902 char *kwnames[] = {
37903 (char *) "self", NULL
37904 };
37905
37906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
37907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37909 {
37910 PyThreadState* __tstate = wxPyBeginAllowThreads();
37911 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
37912
37913 wxPyEndAllowThreads(__tstate);
37914 if (PyErr_Occurred()) SWIG_fail;
37915 }
37916 {
37917 wxSize * resultptr;
37918 resultptr = new wxSize((wxSize &) result);
37919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
37920 }
37921 return resultobj;
37922 fail:
37923 return NULL;
37924 }
37925
37926
37927 static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
37928 PyObject *resultobj;
37929 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37930 wxSize *arg2 = 0 ;
37931 wxSize temp2 ;
37932 PyObject * obj0 = 0 ;
37933 PyObject * obj1 = 0 ;
37934 char *kwnames[] = {
37935 (char *) "self",(char *) "sz", NULL
37936 };
37937
37938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
37939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37941 {
37942 arg2 = &temp2;
37943 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37944 }
37945 {
37946 PyThreadState* __tstate = wxPyBeginAllowThreads();
37947 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
37948
37949 wxPyEndAllowThreads(__tstate);
37950 if (PyErr_Occurred()) SWIG_fail;
37951 }
37952 Py_INCREF(Py_None); resultobj = Py_None;
37953 return resultobj;
37954 fail:
37955 return NULL;
37956 }
37957
37958
37959 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
37960 PyObject *resultobj;
37961 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37962 wxWindow *arg2 = (wxWindow *) 0 ;
37963 wxGBPosition result;
37964 PyObject * obj0 = 0 ;
37965 PyObject * obj1 = 0 ;
37966
37967 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
37968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37970 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
37971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37972 {
37973 PyThreadState* __tstate = wxPyBeginAllowThreads();
37974 result = (arg1)->GetItemPosition(arg2);
37975
37976 wxPyEndAllowThreads(__tstate);
37977 if (PyErr_Occurred()) SWIG_fail;
37978 }
37979 {
37980 wxGBPosition * resultptr;
37981 resultptr = new wxGBPosition((wxGBPosition &) result);
37982 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37983 }
37984 return resultobj;
37985 fail:
37986 return NULL;
37987 }
37988
37989
37990 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
37991 PyObject *resultobj;
37992 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37993 wxSizer *arg2 = (wxSizer *) 0 ;
37994 wxGBPosition result;
37995 PyObject * obj0 = 0 ;
37996 PyObject * obj1 = 0 ;
37997
37998 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
37999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38003 {
38004 PyThreadState* __tstate = wxPyBeginAllowThreads();
38005 result = (arg1)->GetItemPosition(arg2);
38006
38007 wxPyEndAllowThreads(__tstate);
38008 if (PyErr_Occurred()) SWIG_fail;
38009 }
38010 {
38011 wxGBPosition * resultptr;
38012 resultptr = new wxGBPosition((wxGBPosition &) result);
38013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38014 }
38015 return resultobj;
38016 fail:
38017 return NULL;
38018 }
38019
38020
38021 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38022 PyObject *resultobj;
38023 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38024 size_t arg2 ;
38025 wxGBPosition result;
38026 PyObject * obj0 = 0 ;
38027 PyObject * obj1 = 0 ;
38028
38029 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38032 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38033 if (PyErr_Occurred()) SWIG_fail;
38034 {
38035 PyThreadState* __tstate = wxPyBeginAllowThreads();
38036 result = (arg1)->GetItemPosition(arg2);
38037
38038 wxPyEndAllowThreads(__tstate);
38039 if (PyErr_Occurred()) SWIG_fail;
38040 }
38041 {
38042 wxGBPosition * resultptr;
38043 resultptr = new wxGBPosition((wxGBPosition &) result);
38044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38045 }
38046 return resultobj;
38047 fail:
38048 return NULL;
38049 }
38050
38051
38052 static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38053 int argc;
38054 PyObject *argv[3];
38055 int ii;
38056
38057 argc = PyObject_Length(args);
38058 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38059 argv[ii] = PyTuple_GetItem(args,ii);
38060 }
38061 if (argc == 2) {
38062 int _v;
38063 {
38064 void *ptr;
38065 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38066 _v = 0;
38067 PyErr_Clear();
38068 } else {
38069 _v = 1;
38070 }
38071 }
38072 if (_v) {
38073 {
38074 void *ptr;
38075 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38076 _v = 0;
38077 PyErr_Clear();
38078 } else {
38079 _v = 1;
38080 }
38081 }
38082 if (_v) {
38083 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38084 }
38085 }
38086 }
38087 if (argc == 2) {
38088 int _v;
38089 {
38090 void *ptr;
38091 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38092 _v = 0;
38093 PyErr_Clear();
38094 } else {
38095 _v = 1;
38096 }
38097 }
38098 if (_v) {
38099 {
38100 void *ptr;
38101 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38102 _v = 0;
38103 PyErr_Clear();
38104 } else {
38105 _v = 1;
38106 }
38107 }
38108 if (_v) {
38109 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38110 }
38111 }
38112 }
38113 if (argc == 2) {
38114 int _v;
38115 {
38116 void *ptr;
38117 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38118 _v = 0;
38119 PyErr_Clear();
38120 } else {
38121 _v = 1;
38122 }
38123 }
38124 if (_v) {
38125 _v = SWIG_CheckUnsignedLong(argv[1]);
38126 if (_v) {
38127 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38128 }
38129 }
38130 }
38131
38132 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38133 return NULL;
38134 }
38135
38136
38137 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38138 PyObject *resultobj;
38139 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38140 wxWindow *arg2 = (wxWindow *) 0 ;
38141 wxGBPosition *arg3 = 0 ;
38142 bool result;
38143 wxGBPosition temp3 ;
38144 PyObject * obj0 = 0 ;
38145 PyObject * obj1 = 0 ;
38146 PyObject * obj2 = 0 ;
38147
38148 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38153 {
38154 arg3 = &temp3;
38155 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38156 }
38157 {
38158 PyThreadState* __tstate = wxPyBeginAllowThreads();
38159 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38160
38161 wxPyEndAllowThreads(__tstate);
38162 if (PyErr_Occurred()) SWIG_fail;
38163 }
38164 {
38165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38166 }
38167 return resultobj;
38168 fail:
38169 return NULL;
38170 }
38171
38172
38173 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38174 PyObject *resultobj;
38175 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38176 wxSizer *arg2 = (wxSizer *) 0 ;
38177 wxGBPosition *arg3 = 0 ;
38178 bool result;
38179 wxGBPosition temp3 ;
38180 PyObject * obj0 = 0 ;
38181 PyObject * obj1 = 0 ;
38182 PyObject * obj2 = 0 ;
38183
38184 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38189 {
38190 arg3 = &temp3;
38191 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38192 }
38193 {
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38196
38197 wxPyEndAllowThreads(__tstate);
38198 if (PyErr_Occurred()) SWIG_fail;
38199 }
38200 {
38201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38202 }
38203 return resultobj;
38204 fail:
38205 return NULL;
38206 }
38207
38208
38209 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38210 PyObject *resultobj;
38211 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38212 size_t arg2 ;
38213 wxGBPosition *arg3 = 0 ;
38214 bool result;
38215 wxGBPosition temp3 ;
38216 PyObject * obj0 = 0 ;
38217 PyObject * obj1 = 0 ;
38218 PyObject * obj2 = 0 ;
38219
38220 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38223 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38224 if (PyErr_Occurred()) SWIG_fail;
38225 {
38226 arg3 = &temp3;
38227 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38228 }
38229 {
38230 PyThreadState* __tstate = wxPyBeginAllowThreads();
38231 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38232
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 {
38237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38238 }
38239 return resultobj;
38240 fail:
38241 return NULL;
38242 }
38243
38244
38245 static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38246 int argc;
38247 PyObject *argv[4];
38248 int ii;
38249
38250 argc = PyObject_Length(args);
38251 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38252 argv[ii] = PyTuple_GetItem(args,ii);
38253 }
38254 if (argc == 3) {
38255 int _v;
38256 {
38257 void *ptr;
38258 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38259 _v = 0;
38260 PyErr_Clear();
38261 } else {
38262 _v = 1;
38263 }
38264 }
38265 if (_v) {
38266 {
38267 void *ptr;
38268 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38269 _v = 0;
38270 PyErr_Clear();
38271 } else {
38272 _v = 1;
38273 }
38274 }
38275 if (_v) {
38276 {
38277 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38278 }
38279 if (_v) {
38280 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
38281 }
38282 }
38283 }
38284 }
38285 if (argc == 3) {
38286 int _v;
38287 {
38288 void *ptr;
38289 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38290 _v = 0;
38291 PyErr_Clear();
38292 } else {
38293 _v = 1;
38294 }
38295 }
38296 if (_v) {
38297 {
38298 void *ptr;
38299 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38300 _v = 0;
38301 PyErr_Clear();
38302 } else {
38303 _v = 1;
38304 }
38305 }
38306 if (_v) {
38307 {
38308 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38309 }
38310 if (_v) {
38311 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
38312 }
38313 }
38314 }
38315 }
38316 if (argc == 3) {
38317 int _v;
38318 {
38319 void *ptr;
38320 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38321 _v = 0;
38322 PyErr_Clear();
38323 } else {
38324 _v = 1;
38325 }
38326 }
38327 if (_v) {
38328 _v = SWIG_CheckUnsignedLong(argv[1]);
38329 if (_v) {
38330 {
38331 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38332 }
38333 if (_v) {
38334 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
38335 }
38336 }
38337 }
38338 }
38339
38340 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
38341 return NULL;
38342 }
38343
38344
38345 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38346 PyObject *resultobj;
38347 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38348 wxWindow *arg2 = (wxWindow *) 0 ;
38349 wxGBSpan result;
38350 PyObject * obj0 = 0 ;
38351 PyObject * obj1 = 0 ;
38352
38353 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38358 {
38359 PyThreadState* __tstate = wxPyBeginAllowThreads();
38360 result = (arg1)->GetItemSpan(arg2);
38361
38362 wxPyEndAllowThreads(__tstate);
38363 if (PyErr_Occurred()) SWIG_fail;
38364 }
38365 {
38366 wxGBSpan * resultptr;
38367 resultptr = new wxGBSpan((wxGBSpan &) result);
38368 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38369 }
38370 return resultobj;
38371 fail:
38372 return NULL;
38373 }
38374
38375
38376 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38377 PyObject *resultobj;
38378 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38379 wxSizer *arg2 = (wxSizer *) 0 ;
38380 wxGBSpan result;
38381 PyObject * obj0 = 0 ;
38382 PyObject * obj1 = 0 ;
38383
38384 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 result = (arg1)->GetItemSpan(arg2);
38392
38393 wxPyEndAllowThreads(__tstate);
38394 if (PyErr_Occurred()) SWIG_fail;
38395 }
38396 {
38397 wxGBSpan * resultptr;
38398 resultptr = new wxGBSpan((wxGBSpan &) result);
38399 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38400 }
38401 return resultobj;
38402 fail:
38403 return NULL;
38404 }
38405
38406
38407 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38408 PyObject *resultobj;
38409 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38410 size_t arg2 ;
38411 wxGBSpan result;
38412 PyObject * obj0 = 0 ;
38413 PyObject * obj1 = 0 ;
38414
38415 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38418 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38419 if (PyErr_Occurred()) SWIG_fail;
38420 {
38421 PyThreadState* __tstate = wxPyBeginAllowThreads();
38422 result = (arg1)->GetItemSpan(arg2);
38423
38424 wxPyEndAllowThreads(__tstate);
38425 if (PyErr_Occurred()) SWIG_fail;
38426 }
38427 {
38428 wxGBSpan * resultptr;
38429 resultptr = new wxGBSpan((wxGBSpan &) result);
38430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38431 }
38432 return resultobj;
38433 fail:
38434 return NULL;
38435 }
38436
38437
38438 static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
38439 int argc;
38440 PyObject *argv[3];
38441 int ii;
38442
38443 argc = PyObject_Length(args);
38444 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38445 argv[ii] = PyTuple_GetItem(args,ii);
38446 }
38447 if (argc == 2) {
38448 int _v;
38449 {
38450 void *ptr;
38451 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38452 _v = 0;
38453 PyErr_Clear();
38454 } else {
38455 _v = 1;
38456 }
38457 }
38458 if (_v) {
38459 {
38460 void *ptr;
38461 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38462 _v = 0;
38463 PyErr_Clear();
38464 } else {
38465 _v = 1;
38466 }
38467 }
38468 if (_v) {
38469 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
38470 }
38471 }
38472 }
38473 if (argc == 2) {
38474 int _v;
38475 {
38476 void *ptr;
38477 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38478 _v = 0;
38479 PyErr_Clear();
38480 } else {
38481 _v = 1;
38482 }
38483 }
38484 if (_v) {
38485 {
38486 void *ptr;
38487 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38488 _v = 0;
38489 PyErr_Clear();
38490 } else {
38491 _v = 1;
38492 }
38493 }
38494 if (_v) {
38495 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
38496 }
38497 }
38498 }
38499 if (argc == 2) {
38500 int _v;
38501 {
38502 void *ptr;
38503 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38504 _v = 0;
38505 PyErr_Clear();
38506 } else {
38507 _v = 1;
38508 }
38509 }
38510 if (_v) {
38511 _v = SWIG_CheckUnsignedLong(argv[1]);
38512 if (_v) {
38513 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
38514 }
38515 }
38516 }
38517
38518 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
38519 return NULL;
38520 }
38521
38522
38523 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38524 PyObject *resultobj;
38525 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38526 wxWindow *arg2 = (wxWindow *) 0 ;
38527 wxGBSpan *arg3 = 0 ;
38528 bool result;
38529 wxGBSpan temp3 ;
38530 PyObject * obj0 = 0 ;
38531 PyObject * obj1 = 0 ;
38532 PyObject * obj2 = 0 ;
38533
38534 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38539 {
38540 arg3 = &temp3;
38541 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38542 }
38543 {
38544 PyThreadState* __tstate = wxPyBeginAllowThreads();
38545 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38546
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 {
38551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38552 }
38553 return resultobj;
38554 fail:
38555 return NULL;
38556 }
38557
38558
38559 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38560 PyObject *resultobj;
38561 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38562 wxSizer *arg2 = (wxSizer *) 0 ;
38563 wxGBSpan *arg3 = 0 ;
38564 bool result;
38565 wxGBSpan temp3 ;
38566 PyObject * obj0 = 0 ;
38567 PyObject * obj1 = 0 ;
38568 PyObject * obj2 = 0 ;
38569
38570 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38575 {
38576 arg3 = &temp3;
38577 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38578 }
38579 {
38580 PyThreadState* __tstate = wxPyBeginAllowThreads();
38581 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38582
38583 wxPyEndAllowThreads(__tstate);
38584 if (PyErr_Occurred()) SWIG_fail;
38585 }
38586 {
38587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38588 }
38589 return resultobj;
38590 fail:
38591 return NULL;
38592 }
38593
38594
38595 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38596 PyObject *resultobj;
38597 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38598 size_t arg2 ;
38599 wxGBSpan *arg3 = 0 ;
38600 bool result;
38601 wxGBSpan temp3 ;
38602 PyObject * obj0 = 0 ;
38603 PyObject * obj1 = 0 ;
38604 PyObject * obj2 = 0 ;
38605
38606 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38609 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38610 if (PyErr_Occurred()) SWIG_fail;
38611 {
38612 arg3 = &temp3;
38613 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38614 }
38615 {
38616 PyThreadState* __tstate = wxPyBeginAllowThreads();
38617 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38618
38619 wxPyEndAllowThreads(__tstate);
38620 if (PyErr_Occurred()) SWIG_fail;
38621 }
38622 {
38623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38624 }
38625 return resultobj;
38626 fail:
38627 return NULL;
38628 }
38629
38630
38631 static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
38632 int argc;
38633 PyObject *argv[4];
38634 int ii;
38635
38636 argc = PyObject_Length(args);
38637 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38638 argv[ii] = PyTuple_GetItem(args,ii);
38639 }
38640 if (argc == 3) {
38641 int _v;
38642 {
38643 void *ptr;
38644 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38645 _v = 0;
38646 PyErr_Clear();
38647 } else {
38648 _v = 1;
38649 }
38650 }
38651 if (_v) {
38652 {
38653 void *ptr;
38654 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38655 _v = 0;
38656 PyErr_Clear();
38657 } else {
38658 _v = 1;
38659 }
38660 }
38661 if (_v) {
38662 {
38663 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38664 }
38665 if (_v) {
38666 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
38667 }
38668 }
38669 }
38670 }
38671 if (argc == 3) {
38672 int _v;
38673 {
38674 void *ptr;
38675 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38676 _v = 0;
38677 PyErr_Clear();
38678 } else {
38679 _v = 1;
38680 }
38681 }
38682 if (_v) {
38683 {
38684 void *ptr;
38685 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38686 _v = 0;
38687 PyErr_Clear();
38688 } else {
38689 _v = 1;
38690 }
38691 }
38692 if (_v) {
38693 {
38694 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38695 }
38696 if (_v) {
38697 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
38698 }
38699 }
38700 }
38701 }
38702 if (argc == 3) {
38703 int _v;
38704 {
38705 void *ptr;
38706 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38707 _v = 0;
38708 PyErr_Clear();
38709 } else {
38710 _v = 1;
38711 }
38712 }
38713 if (_v) {
38714 _v = SWIG_CheckUnsignedLong(argv[1]);
38715 if (_v) {
38716 {
38717 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38718 }
38719 if (_v) {
38720 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
38721 }
38722 }
38723 }
38724 }
38725
38726 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
38727 return NULL;
38728 }
38729
38730
38731 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
38732 PyObject *resultobj;
38733 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38734 wxWindow *arg2 = (wxWindow *) 0 ;
38735 wxGBSizerItem *result;
38736 PyObject * obj0 = 0 ;
38737 PyObject * obj1 = 0 ;
38738
38739 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
38740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38744 {
38745 PyThreadState* __tstate = wxPyBeginAllowThreads();
38746 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
38747
38748 wxPyEndAllowThreads(__tstate);
38749 if (PyErr_Occurred()) SWIG_fail;
38750 }
38751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38752 return resultobj;
38753 fail:
38754 return NULL;
38755 }
38756
38757
38758 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
38759 PyObject *resultobj;
38760 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38761 wxSizer *arg2 = (wxSizer *) 0 ;
38762 wxGBSizerItem *result;
38763 PyObject * obj0 = 0 ;
38764 PyObject * obj1 = 0 ;
38765
38766 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
38767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38771 {
38772 PyThreadState* __tstate = wxPyBeginAllowThreads();
38773 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
38774
38775 wxPyEndAllowThreads(__tstate);
38776 if (PyErr_Occurred()) SWIG_fail;
38777 }
38778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38779 return resultobj;
38780 fail:
38781 return NULL;
38782 }
38783
38784
38785 static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
38786 int argc;
38787 PyObject *argv[3];
38788 int ii;
38789
38790 argc = PyObject_Length(args);
38791 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38792 argv[ii] = PyTuple_GetItem(args,ii);
38793 }
38794 if (argc == 2) {
38795 int _v;
38796 {
38797 void *ptr;
38798 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38799 _v = 0;
38800 PyErr_Clear();
38801 } else {
38802 _v = 1;
38803 }
38804 }
38805 if (_v) {
38806 {
38807 void *ptr;
38808 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38809 _v = 0;
38810 PyErr_Clear();
38811 } else {
38812 _v = 1;
38813 }
38814 }
38815 if (_v) {
38816 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
38817 }
38818 }
38819 }
38820 if (argc == 2) {
38821 int _v;
38822 {
38823 void *ptr;
38824 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38825 _v = 0;
38826 PyErr_Clear();
38827 } else {
38828 _v = 1;
38829 }
38830 }
38831 if (_v) {
38832 {
38833 void *ptr;
38834 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38835 _v = 0;
38836 PyErr_Clear();
38837 } else {
38838 _v = 1;
38839 }
38840 }
38841 if (_v) {
38842 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
38843 }
38844 }
38845 }
38846
38847 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
38848 return NULL;
38849 }
38850
38851
38852 static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
38853 PyObject *resultobj;
38854 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38855 wxGBPosition *arg2 = 0 ;
38856 wxGBSizerItem *result;
38857 wxGBPosition temp2 ;
38858 PyObject * obj0 = 0 ;
38859 PyObject * obj1 = 0 ;
38860 char *kwnames[] = {
38861 (char *) "self",(char *) "pos", NULL
38862 };
38863
38864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
38865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38867 {
38868 arg2 = &temp2;
38869 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38870 }
38871 {
38872 PyThreadState* __tstate = wxPyBeginAllowThreads();
38873 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
38874
38875 wxPyEndAllowThreads(__tstate);
38876 if (PyErr_Occurred()) SWIG_fail;
38877 }
38878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38879 return resultobj;
38880 fail:
38881 return NULL;
38882 }
38883
38884
38885 static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
38886 PyObject *resultobj;
38887 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38888 wxPoint *arg2 = 0 ;
38889 wxGBSizerItem *result;
38890 wxPoint temp2 ;
38891 PyObject * obj0 = 0 ;
38892 PyObject * obj1 = 0 ;
38893 char *kwnames[] = {
38894 (char *) "self",(char *) "pt", NULL
38895 };
38896
38897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
38898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38900 {
38901 arg2 = &temp2;
38902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38903 }
38904 {
38905 PyThreadState* __tstate = wxPyBeginAllowThreads();
38906 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
38907
38908 wxPyEndAllowThreads(__tstate);
38909 if (PyErr_Occurred()) SWIG_fail;
38910 }
38911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38912 return resultobj;
38913 fail:
38914 return NULL;
38915 }
38916
38917
38918 static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) {
38919 PyObject *resultobj;
38920 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38921 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38922 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
38923 bool result;
38924 PyObject * obj0 = 0 ;
38925 PyObject * obj1 = 0 ;
38926 PyObject * obj2 = 0 ;
38927 char *kwnames[] = {
38928 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
38929 };
38930
38931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
38932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38936 if (obj2) {
38937 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
38938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38939 }
38940 {
38941 PyThreadState* __tstate = wxPyBeginAllowThreads();
38942 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
38943
38944 wxPyEndAllowThreads(__tstate);
38945 if (PyErr_Occurred()) SWIG_fail;
38946 }
38947 {
38948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38949 }
38950 return resultobj;
38951 fail:
38952 return NULL;
38953 }
38954
38955
38956 static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) {
38957 PyObject *resultobj;
38958 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38959 wxGBPosition *arg2 = 0 ;
38960 wxGBSpan *arg3 = 0 ;
38961 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
38962 bool result;
38963 wxGBPosition temp2 ;
38964 wxGBSpan temp3 ;
38965 PyObject * obj0 = 0 ;
38966 PyObject * obj1 = 0 ;
38967 PyObject * obj2 = 0 ;
38968 PyObject * obj3 = 0 ;
38969 char *kwnames[] = {
38970 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
38971 };
38972
38973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
38974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38976 {
38977 arg2 = &temp2;
38978 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38979 }
38980 {
38981 arg3 = &temp3;
38982 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38983 }
38984 if (obj3) {
38985 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
38986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38987 }
38988 {
38989 PyThreadState* __tstate = wxPyBeginAllowThreads();
38990 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
38991
38992 wxPyEndAllowThreads(__tstate);
38993 if (PyErr_Occurred()) SWIG_fail;
38994 }
38995 {
38996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38997 }
38998 return resultobj;
38999 fail:
39000 return NULL;
39001 }
39002
39003
39004 static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
39005 PyObject *obj;
39006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39007 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39008 Py_INCREF(obj);
39009 return Py_BuildValue((char *)"");
39010 }
39011 static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
39012 PyObject *resultobj;
39013 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39014 int arg2 ;
39015 wxWindow *arg3 = (wxWindow *) 0 ;
39016 int arg4 ;
39017 int arg5 = (int) 0 ;
39018 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39019 PyObject * obj0 = 0 ;
39020 PyObject * obj1 = 0 ;
39021 PyObject * obj2 = 0 ;
39022 PyObject * obj3 = 0 ;
39023 PyObject * obj4 = 0 ;
39024 PyObject * obj5 = 0 ;
39025 char *kwnames[] = {
39026 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39027 };
39028
39029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39032 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39033 if (PyErr_Occurred()) SWIG_fail;
39034 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39036 arg4 = (wxEdge) SWIG_AsInt(obj3);
39037 if (PyErr_Occurred()) SWIG_fail;
39038 if (obj4) {
39039 arg5 = (int) SWIG_AsInt(obj4);
39040 if (PyErr_Occurred()) SWIG_fail;
39041 }
39042 if (obj5) {
39043 arg6 = (int) SWIG_AsInt(obj5);
39044 if (PyErr_Occurred()) SWIG_fail;
39045 }
39046 {
39047 PyThreadState* __tstate = wxPyBeginAllowThreads();
39048 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39049
39050 wxPyEndAllowThreads(__tstate);
39051 if (PyErr_Occurred()) SWIG_fail;
39052 }
39053 Py_INCREF(Py_None); resultobj = Py_None;
39054 return resultobj;
39055 fail:
39056 return NULL;
39057 }
39058
39059
39060 static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39061 PyObject *resultobj;
39062 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39063 wxWindow *arg2 = (wxWindow *) 0 ;
39064 int arg3 = (int) 0 ;
39065 PyObject * obj0 = 0 ;
39066 PyObject * obj1 = 0 ;
39067 PyObject * obj2 = 0 ;
39068 char *kwnames[] = {
39069 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39070 };
39071
39072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39075 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39077 if (obj2) {
39078 arg3 = (int) SWIG_AsInt(obj2);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 {
39082 PyThreadState* __tstate = wxPyBeginAllowThreads();
39083 (arg1)->LeftOf(arg2,arg3);
39084
39085 wxPyEndAllowThreads(__tstate);
39086 if (PyErr_Occurred()) SWIG_fail;
39087 }
39088 Py_INCREF(Py_None); resultobj = Py_None;
39089 return resultobj;
39090 fail:
39091 return NULL;
39092 }
39093
39094
39095 static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39096 PyObject *resultobj;
39097 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39098 wxWindow *arg2 = (wxWindow *) 0 ;
39099 int arg3 = (int) 0 ;
39100 PyObject * obj0 = 0 ;
39101 PyObject * obj1 = 0 ;
39102 PyObject * obj2 = 0 ;
39103 char *kwnames[] = {
39104 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39105 };
39106
39107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39112 if (obj2) {
39113 arg3 = (int) SWIG_AsInt(obj2);
39114 if (PyErr_Occurred()) SWIG_fail;
39115 }
39116 {
39117 PyThreadState* __tstate = wxPyBeginAllowThreads();
39118 (arg1)->RightOf(arg2,arg3);
39119
39120 wxPyEndAllowThreads(__tstate);
39121 if (PyErr_Occurred()) SWIG_fail;
39122 }
39123 Py_INCREF(Py_None); resultobj = Py_None;
39124 return resultobj;
39125 fail:
39126 return NULL;
39127 }
39128
39129
39130 static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
39131 PyObject *resultobj;
39132 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39133 wxWindow *arg2 = (wxWindow *) 0 ;
39134 int arg3 = (int) 0 ;
39135 PyObject * obj0 = 0 ;
39136 PyObject * obj1 = 0 ;
39137 PyObject * obj2 = 0 ;
39138 char *kwnames[] = {
39139 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39140 };
39141
39142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39145 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39147 if (obj2) {
39148 arg3 = (int) SWIG_AsInt(obj2);
39149 if (PyErr_Occurred()) SWIG_fail;
39150 }
39151 {
39152 PyThreadState* __tstate = wxPyBeginAllowThreads();
39153 (arg1)->Above(arg2,arg3);
39154
39155 wxPyEndAllowThreads(__tstate);
39156 if (PyErr_Occurred()) SWIG_fail;
39157 }
39158 Py_INCREF(Py_None); resultobj = Py_None;
39159 return resultobj;
39160 fail:
39161 return NULL;
39162 }
39163
39164
39165 static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
39166 PyObject *resultobj;
39167 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39168 wxWindow *arg2 = (wxWindow *) 0 ;
39169 int arg3 = (int) 0 ;
39170 PyObject * obj0 = 0 ;
39171 PyObject * obj1 = 0 ;
39172 PyObject * obj2 = 0 ;
39173 char *kwnames[] = {
39174 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39175 };
39176
39177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39182 if (obj2) {
39183 arg3 = (int) SWIG_AsInt(obj2);
39184 if (PyErr_Occurred()) SWIG_fail;
39185 }
39186 {
39187 PyThreadState* __tstate = wxPyBeginAllowThreads();
39188 (arg1)->Below(arg2,arg3);
39189
39190 wxPyEndAllowThreads(__tstate);
39191 if (PyErr_Occurred()) SWIG_fail;
39192 }
39193 Py_INCREF(Py_None); resultobj = Py_None;
39194 return resultobj;
39195 fail:
39196 return NULL;
39197 }
39198
39199
39200 static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
39201 PyObject *resultobj;
39202 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39203 wxWindow *arg2 = (wxWindow *) 0 ;
39204 int arg3 ;
39205 int arg4 = (int) 0 ;
39206 PyObject * obj0 = 0 ;
39207 PyObject * obj1 = 0 ;
39208 PyObject * obj2 = 0 ;
39209 PyObject * obj3 = 0 ;
39210 char *kwnames[] = {
39211 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39212 };
39213
39214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39219 arg3 = (wxEdge) SWIG_AsInt(obj2);
39220 if (PyErr_Occurred()) SWIG_fail;
39221 if (obj3) {
39222 arg4 = (int) SWIG_AsInt(obj3);
39223 if (PyErr_Occurred()) SWIG_fail;
39224 }
39225 {
39226 PyThreadState* __tstate = wxPyBeginAllowThreads();
39227 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39228
39229 wxPyEndAllowThreads(__tstate);
39230 if (PyErr_Occurred()) SWIG_fail;
39231 }
39232 Py_INCREF(Py_None); resultobj = Py_None;
39233 return resultobj;
39234 fail:
39235 return NULL;
39236 }
39237
39238
39239 static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39240 PyObject *resultobj;
39241 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39242 wxWindow *arg2 = (wxWindow *) 0 ;
39243 int arg3 ;
39244 int arg4 ;
39245 PyObject * obj0 = 0 ;
39246 PyObject * obj1 = 0 ;
39247 PyObject * obj2 = 0 ;
39248 PyObject * obj3 = 0 ;
39249 char *kwnames[] = {
39250 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39251 };
39252
39253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39256 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39258 arg3 = (wxEdge) SWIG_AsInt(obj2);
39259 if (PyErr_Occurred()) SWIG_fail;
39260 arg4 = (int) SWIG_AsInt(obj3);
39261 if (PyErr_Occurred()) SWIG_fail;
39262 {
39263 PyThreadState* __tstate = wxPyBeginAllowThreads();
39264 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
39265
39266 wxPyEndAllowThreads(__tstate);
39267 if (PyErr_Occurred()) SWIG_fail;
39268 }
39269 Py_INCREF(Py_None); resultobj = Py_None;
39270 return resultobj;
39271 fail:
39272 return NULL;
39273 }
39274
39275
39276 static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
39277 PyObject *resultobj;
39278 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39279 int arg2 ;
39280 PyObject * obj0 = 0 ;
39281 PyObject * obj1 = 0 ;
39282 char *kwnames[] = {
39283 (char *) "self",(char *) "val", NULL
39284 };
39285
39286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
39287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39289 arg2 = (int) SWIG_AsInt(obj1);
39290 if (PyErr_Occurred()) SWIG_fail;
39291 {
39292 PyThreadState* __tstate = wxPyBeginAllowThreads();
39293 (arg1)->Absolute(arg2);
39294
39295 wxPyEndAllowThreads(__tstate);
39296 if (PyErr_Occurred()) SWIG_fail;
39297 }
39298 Py_INCREF(Py_None); resultobj = Py_None;
39299 return resultobj;
39300 fail:
39301 return NULL;
39302 }
39303
39304
39305 static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
39306 PyObject *resultobj;
39307 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39308 PyObject * obj0 = 0 ;
39309 char *kwnames[] = {
39310 (char *) "self", NULL
39311 };
39312
39313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
39314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39316 {
39317 PyThreadState* __tstate = wxPyBeginAllowThreads();
39318 (arg1)->Unconstrained();
39319
39320 wxPyEndAllowThreads(__tstate);
39321 if (PyErr_Occurred()) SWIG_fail;
39322 }
39323 Py_INCREF(Py_None); resultobj = Py_None;
39324 return resultobj;
39325 fail:
39326 return NULL;
39327 }
39328
39329
39330 static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
39331 PyObject *resultobj;
39332 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39333 PyObject * obj0 = 0 ;
39334 char *kwnames[] = {
39335 (char *) "self", NULL
39336 };
39337
39338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
39339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39341 {
39342 PyThreadState* __tstate = wxPyBeginAllowThreads();
39343 (arg1)->AsIs();
39344
39345 wxPyEndAllowThreads(__tstate);
39346 if (PyErr_Occurred()) SWIG_fail;
39347 }
39348 Py_INCREF(Py_None); resultobj = Py_None;
39349 return resultobj;
39350 fail:
39351 return NULL;
39352 }
39353
39354
39355 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
39356 PyObject *resultobj;
39357 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39358 wxWindow *result;
39359 PyObject * obj0 = 0 ;
39360 char *kwnames[] = {
39361 (char *) "self", NULL
39362 };
39363
39364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
39365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39367 {
39368 PyThreadState* __tstate = wxPyBeginAllowThreads();
39369 result = (wxWindow *)(arg1)->GetOtherWindow();
39370
39371 wxPyEndAllowThreads(__tstate);
39372 if (PyErr_Occurred()) SWIG_fail;
39373 }
39374 {
39375 resultobj = wxPyMake_wxObject(result, 0);
39376 }
39377 return resultobj;
39378 fail:
39379 return NULL;
39380 }
39381
39382
39383 static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39384 PyObject *resultobj;
39385 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39386 int result;
39387 PyObject * obj0 = 0 ;
39388 char *kwnames[] = {
39389 (char *) "self", NULL
39390 };
39391
39392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
39393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39395 {
39396 PyThreadState* __tstate = wxPyBeginAllowThreads();
39397 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
39398
39399 wxPyEndAllowThreads(__tstate);
39400 if (PyErr_Occurred()) SWIG_fail;
39401 }
39402 resultobj = SWIG_FromInt((int)result);
39403 return resultobj;
39404 fail:
39405 return NULL;
39406 }
39407
39408
39409 static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39410 PyObject *resultobj;
39411 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39412 int arg2 ;
39413 PyObject * obj0 = 0 ;
39414 PyObject * obj1 = 0 ;
39415 char *kwnames[] = {
39416 (char *) "self",(char *) "which", NULL
39417 };
39418
39419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
39420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39422 arg2 = (wxEdge) SWIG_AsInt(obj1);
39423 if (PyErr_Occurred()) SWIG_fail;
39424 {
39425 PyThreadState* __tstate = wxPyBeginAllowThreads();
39426 (arg1)->SetEdge((wxEdge )arg2);
39427
39428 wxPyEndAllowThreads(__tstate);
39429 if (PyErr_Occurred()) SWIG_fail;
39430 }
39431 Py_INCREF(Py_None); resultobj = Py_None;
39432 return resultobj;
39433 fail:
39434 return NULL;
39435 }
39436
39437
39438 static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39439 PyObject *resultobj;
39440 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39441 int arg2 ;
39442 PyObject * obj0 = 0 ;
39443 PyObject * obj1 = 0 ;
39444 char *kwnames[] = {
39445 (char *) "self",(char *) "v", NULL
39446 };
39447
39448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
39449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39451 arg2 = (int) SWIG_AsInt(obj1);
39452 if (PyErr_Occurred()) SWIG_fail;
39453 {
39454 PyThreadState* __tstate = wxPyBeginAllowThreads();
39455 (arg1)->SetValue(arg2);
39456
39457 wxPyEndAllowThreads(__tstate);
39458 if (PyErr_Occurred()) SWIG_fail;
39459 }
39460 Py_INCREF(Py_None); resultobj = Py_None;
39461 return resultobj;
39462 fail:
39463 return NULL;
39464 }
39465
39466
39467 static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39468 PyObject *resultobj;
39469 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39470 int result;
39471 PyObject * obj0 = 0 ;
39472 char *kwnames[] = {
39473 (char *) "self", NULL
39474 };
39475
39476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
39477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39479 {
39480 PyThreadState* __tstate = wxPyBeginAllowThreads();
39481 result = (int)(arg1)->GetMargin();
39482
39483 wxPyEndAllowThreads(__tstate);
39484 if (PyErr_Occurred()) SWIG_fail;
39485 }
39486 resultobj = SWIG_FromInt((int)result);
39487 return resultobj;
39488 fail:
39489 return NULL;
39490 }
39491
39492
39493 static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39494 PyObject *resultobj;
39495 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39496 int arg2 ;
39497 PyObject * obj0 = 0 ;
39498 PyObject * obj1 = 0 ;
39499 char *kwnames[] = {
39500 (char *) "self",(char *) "m", NULL
39501 };
39502
39503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
39504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39506 arg2 = (int) SWIG_AsInt(obj1);
39507 if (PyErr_Occurred()) SWIG_fail;
39508 {
39509 PyThreadState* __tstate = wxPyBeginAllowThreads();
39510 (arg1)->SetMargin(arg2);
39511
39512 wxPyEndAllowThreads(__tstate);
39513 if (PyErr_Occurred()) SWIG_fail;
39514 }
39515 Py_INCREF(Py_None); resultobj = Py_None;
39516 return resultobj;
39517 fail:
39518 return NULL;
39519 }
39520
39521
39522 static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39523 PyObject *resultobj;
39524 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39525 int result;
39526 PyObject * obj0 = 0 ;
39527 char *kwnames[] = {
39528 (char *) "self", NULL
39529 };
39530
39531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
39532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39534 {
39535 PyThreadState* __tstate = wxPyBeginAllowThreads();
39536 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
39537
39538 wxPyEndAllowThreads(__tstate);
39539 if (PyErr_Occurred()) SWIG_fail;
39540 }
39541 resultobj = SWIG_FromInt((int)result);
39542 return resultobj;
39543 fail:
39544 return NULL;
39545 }
39546
39547
39548 static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
39549 PyObject *resultobj;
39550 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39551 int result;
39552 PyObject * obj0 = 0 ;
39553 char *kwnames[] = {
39554 (char *) "self", NULL
39555 };
39556
39557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
39558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39560 {
39561 PyThreadState* __tstate = wxPyBeginAllowThreads();
39562 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
39563
39564 wxPyEndAllowThreads(__tstate);
39565 if (PyErr_Occurred()) SWIG_fail;
39566 }
39567 resultobj = SWIG_FromInt((int)result);
39568 return resultobj;
39569 fail:
39570 return NULL;
39571 }
39572
39573
39574 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39575 PyObject *resultobj;
39576 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39577 int result;
39578 PyObject * obj0 = 0 ;
39579 char *kwnames[] = {
39580 (char *) "self", NULL
39581 };
39582
39583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
39584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39586 {
39587 PyThreadState* __tstate = wxPyBeginAllowThreads();
39588 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
39589
39590 wxPyEndAllowThreads(__tstate);
39591 if (PyErr_Occurred()) SWIG_fail;
39592 }
39593 resultobj = SWIG_FromInt((int)result);
39594 return resultobj;
39595 fail:
39596 return NULL;
39597 }
39598
39599
39600 static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39601 PyObject *resultobj;
39602 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39603 bool result;
39604 PyObject * obj0 = 0 ;
39605 char *kwnames[] = {
39606 (char *) "self", NULL
39607 };
39608
39609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
39610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39612 {
39613 PyThreadState* __tstate = wxPyBeginAllowThreads();
39614 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
39615
39616 wxPyEndAllowThreads(__tstate);
39617 if (PyErr_Occurred()) SWIG_fail;
39618 }
39619 {
39620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39621 }
39622 return resultobj;
39623 fail:
39624 return NULL;
39625 }
39626
39627
39628 static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39629 PyObject *resultobj;
39630 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39631 bool arg2 ;
39632 PyObject * obj0 = 0 ;
39633 PyObject * obj1 = 0 ;
39634 char *kwnames[] = {
39635 (char *) "self",(char *) "d", NULL
39636 };
39637
39638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
39639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39641 arg2 = (bool) SWIG_AsBool(obj1);
39642 if (PyErr_Occurred()) SWIG_fail;
39643 {
39644 PyThreadState* __tstate = wxPyBeginAllowThreads();
39645 (arg1)->SetDone(arg2);
39646
39647 wxPyEndAllowThreads(__tstate);
39648 if (PyErr_Occurred()) SWIG_fail;
39649 }
39650 Py_INCREF(Py_None); resultobj = Py_None;
39651 return resultobj;
39652 fail:
39653 return NULL;
39654 }
39655
39656
39657 static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39658 PyObject *resultobj;
39659 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39660 int result;
39661 PyObject * obj0 = 0 ;
39662 char *kwnames[] = {
39663 (char *) "self", NULL
39664 };
39665
39666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
39667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39669 {
39670 PyThreadState* __tstate = wxPyBeginAllowThreads();
39671 result = (int)(arg1)->GetRelationship();
39672
39673 wxPyEndAllowThreads(__tstate);
39674 if (PyErr_Occurred()) SWIG_fail;
39675 }
39676 resultobj = SWIG_FromInt((int)result);
39677 return resultobj;
39678 fail:
39679 return NULL;
39680 }
39681
39682
39683 static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39684 PyObject *resultobj;
39685 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39686 int arg2 ;
39687 PyObject * obj0 = 0 ;
39688 PyObject * obj1 = 0 ;
39689 char *kwnames[] = {
39690 (char *) "self",(char *) "r", NULL
39691 };
39692
39693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
39694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39696 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39697 if (PyErr_Occurred()) SWIG_fail;
39698 {
39699 PyThreadState* __tstate = wxPyBeginAllowThreads();
39700 (arg1)->SetRelationship((wxRelationship )arg2);
39701
39702 wxPyEndAllowThreads(__tstate);
39703 if (PyErr_Occurred()) SWIG_fail;
39704 }
39705 Py_INCREF(Py_None); resultobj = Py_None;
39706 return resultobj;
39707 fail:
39708 return NULL;
39709 }
39710
39711
39712 static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
39713 PyObject *resultobj;
39714 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39715 wxWindow *arg2 = (wxWindow *) 0 ;
39716 bool result;
39717 PyObject * obj0 = 0 ;
39718 PyObject * obj1 = 0 ;
39719 char *kwnames[] = {
39720 (char *) "self",(char *) "otherW", NULL
39721 };
39722
39723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
39724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39728 {
39729 PyThreadState* __tstate = wxPyBeginAllowThreads();
39730 result = (bool)(arg1)->ResetIfWin(arg2);
39731
39732 wxPyEndAllowThreads(__tstate);
39733 if (PyErr_Occurred()) SWIG_fail;
39734 }
39735 {
39736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39737 }
39738 return resultobj;
39739 fail:
39740 return NULL;
39741 }
39742
39743
39744 static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
39745 PyObject *resultobj;
39746 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39747 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
39748 wxWindow *arg3 = (wxWindow *) 0 ;
39749 bool result;
39750 PyObject * obj0 = 0 ;
39751 PyObject * obj1 = 0 ;
39752 PyObject * obj2 = 0 ;
39753 char *kwnames[] = {
39754 (char *) "self",(char *) "constraints",(char *) "win", NULL
39755 };
39756
39757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
39758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
39761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39762 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39764 {
39765 PyThreadState* __tstate = wxPyBeginAllowThreads();
39766 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
39767
39768 wxPyEndAllowThreads(__tstate);
39769 if (PyErr_Occurred()) SWIG_fail;
39770 }
39771 {
39772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39773 }
39774 return resultobj;
39775 fail:
39776 return NULL;
39777 }
39778
39779
39780 static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39781 PyObject *resultobj;
39782 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39783 int arg2 ;
39784 wxWindow *arg3 = (wxWindow *) 0 ;
39785 wxWindow *arg4 = (wxWindow *) 0 ;
39786 int result;
39787 PyObject * obj0 = 0 ;
39788 PyObject * obj1 = 0 ;
39789 PyObject * obj2 = 0 ;
39790 PyObject * obj3 = 0 ;
39791 char *kwnames[] = {
39792 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
39793 };
39794
39795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39798 arg2 = (wxEdge) SWIG_AsInt(obj1);
39799 if (PyErr_Occurred()) SWIG_fail;
39800 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39802 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
39803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39804 {
39805 PyThreadState* __tstate = wxPyBeginAllowThreads();
39806 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
39807
39808 wxPyEndAllowThreads(__tstate);
39809 if (PyErr_Occurred()) SWIG_fail;
39810 }
39811 resultobj = SWIG_FromInt((int)result);
39812 return resultobj;
39813 fail:
39814 return NULL;
39815 }
39816
39817
39818 static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
39819 PyObject *obj;
39820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39821 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
39822 Py_INCREF(obj);
39823 return Py_BuildValue((char *)"");
39824 }
39825 static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39826 PyObject *resultobj;
39827 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39828 wxIndividualLayoutConstraint *result;
39829 PyObject * obj0 = 0 ;
39830 char *kwnames[] = {
39831 (char *) "self", NULL
39832 };
39833
39834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
39835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39837 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
39838
39839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39840 return resultobj;
39841 fail:
39842 return NULL;
39843 }
39844
39845
39846 static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39847 PyObject *resultobj;
39848 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39849 wxIndividualLayoutConstraint *result;
39850 PyObject * obj0 = 0 ;
39851 char *kwnames[] = {
39852 (char *) "self", NULL
39853 };
39854
39855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
39856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39858 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
39859
39860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39861 return resultobj;
39862 fail:
39863 return NULL;
39864 }
39865
39866
39867 static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39868 PyObject *resultobj;
39869 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39870 wxIndividualLayoutConstraint *result;
39871 PyObject * obj0 = 0 ;
39872 char *kwnames[] = {
39873 (char *) "self", NULL
39874 };
39875
39876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
39877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39879 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
39880
39881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39882 return resultobj;
39883 fail:
39884 return NULL;
39885 }
39886
39887
39888 static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39889 PyObject *resultobj;
39890 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39891 wxIndividualLayoutConstraint *result;
39892 PyObject * obj0 = 0 ;
39893 char *kwnames[] = {
39894 (char *) "self", NULL
39895 };
39896
39897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
39898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39900 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
39901
39902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39903 return resultobj;
39904 fail:
39905 return NULL;
39906 }
39907
39908
39909 static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39910 PyObject *resultobj;
39911 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39912 wxIndividualLayoutConstraint *result;
39913 PyObject * obj0 = 0 ;
39914 char *kwnames[] = {
39915 (char *) "self", NULL
39916 };
39917
39918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
39919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39921 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
39922
39923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39924 return resultobj;
39925 fail:
39926 return NULL;
39927 }
39928
39929
39930 static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39931 PyObject *resultobj;
39932 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39933 wxIndividualLayoutConstraint *result;
39934 PyObject * obj0 = 0 ;
39935 char *kwnames[] = {
39936 (char *) "self", NULL
39937 };
39938
39939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
39940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39942 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
39943
39944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39945 return resultobj;
39946 fail:
39947 return NULL;
39948 }
39949
39950
39951 static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39952 PyObject *resultobj;
39953 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39954 wxIndividualLayoutConstraint *result;
39955 PyObject * obj0 = 0 ;
39956 char *kwnames[] = {
39957 (char *) "self", NULL
39958 };
39959
39960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
39961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39963 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
39964
39965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39966 return resultobj;
39967 fail:
39968 return NULL;
39969 }
39970
39971
39972 static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39973 PyObject *resultobj;
39974 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39975 wxIndividualLayoutConstraint *result;
39976 PyObject * obj0 = 0 ;
39977 char *kwnames[] = {
39978 (char *) "self", NULL
39979 };
39980
39981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
39982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39984 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
39985
39986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39987 return resultobj;
39988 fail:
39989 return NULL;
39990 }
39991
39992
39993 static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
39994 PyObject *resultobj;
39995 wxLayoutConstraints *result;
39996 char *kwnames[] = {
39997 NULL
39998 };
39999
40000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40001 {
40002 PyThreadState* __tstate = wxPyBeginAllowThreads();
40003 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40004
40005 wxPyEndAllowThreads(__tstate);
40006 if (PyErr_Occurred()) SWIG_fail;
40007 }
40008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40009 return resultobj;
40010 fail:
40011 return NULL;
40012 }
40013
40014
40015 static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40016 PyObject *resultobj;
40017 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40018 wxWindow *arg2 = (wxWindow *) 0 ;
40019 int *arg3 = (int *) 0 ;
40020 bool result;
40021 int temp3 ;
40022 PyObject * obj0 = 0 ;
40023 PyObject * obj1 = 0 ;
40024 char *kwnames[] = {
40025 (char *) "self",(char *) "win", NULL
40026 };
40027
40028 arg3 = &temp3;
40029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40034 {
40035 PyThreadState* __tstate = wxPyBeginAllowThreads();
40036 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40037
40038 wxPyEndAllowThreads(__tstate);
40039 if (PyErr_Occurred()) SWIG_fail;
40040 }
40041 {
40042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40043 }
40044 {
40045 PyObject *o = PyInt_FromLong((long) (*arg3));
40046 resultobj = t_output_helper(resultobj,o);
40047 }
40048 return resultobj;
40049 fail:
40050 return NULL;
40051 }
40052
40053
40054 static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
40055 PyObject *resultobj;
40056 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40057 bool result;
40058 PyObject * obj0 = 0 ;
40059 char *kwnames[] = {
40060 (char *) "self", NULL
40061 };
40062
40063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40066 {
40067 PyThreadState* __tstate = wxPyBeginAllowThreads();
40068 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40069
40070 wxPyEndAllowThreads(__tstate);
40071 if (PyErr_Occurred()) SWIG_fail;
40072 }
40073 {
40074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40075 }
40076 return resultobj;
40077 fail:
40078 return NULL;
40079 }
40080
40081
40082 static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
40083 PyObject *obj;
40084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40085 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40086 Py_INCREF(obj);
40087 return Py_BuildValue((char *)"");
40088 }
40089 static PyMethodDef SwigMethods[] = {
40090 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
40091 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
40092 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
40093 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
40094 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
40095 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
40096 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
40097 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
40098 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
40099 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
40100 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
40101 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
40102 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
40103 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
40104 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
40105 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
40106 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
40107 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
40108 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
40109 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
40110 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
40111 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
40112 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS },
40113 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS },
40114 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
40115 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
40116 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
40117 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
40118 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
40119 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
40120 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
40121 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
40122 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
40123 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
40124 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
40125 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
40126 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
40127 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
40128 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
40129 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
40130 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
40131 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
40132 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
40133 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
40134 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
40135 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
40136 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
40137 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
40138 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
40139 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
40140 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
40141 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
40142 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
40143 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
40144 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
40145 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
40146 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
40147 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
40148 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
40149 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
40150 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
40151 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
40152 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
40153 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
40154 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
40155 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
40156 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
40157 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
40158 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
40159 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
40160 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
40161 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
40162 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
40163 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
40164 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
40165 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
40166 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
40167 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
40168 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
40169 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
40170 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
40171 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
40172 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
40173 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
40174 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
40175 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
40176 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
40177 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
40178 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
40179 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
40180 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
40181 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
40182 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
40183 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
40184 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
40185 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
40186 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
40187 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
40188 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
40189 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
40190 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
40191 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
40192 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
40193 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
40194 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
40195 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
40196 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
40197 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
40198 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
40199 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
40200 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
40201 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
40202 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40203 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
40204 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40205 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
40206 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
40207 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
40208 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
40209 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
40210 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
40211 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
40212 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
40213 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
40214 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
40215 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
40216 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
40217 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
40218 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
40219 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
40220 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
40221 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
40222 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
40223 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
40224 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
40225 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
40226 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
40227 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
40228 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
40229 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
40230 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
40231 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
40232 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
40233 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
40234 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
40235 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
40236 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
40237 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
40238 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
40239 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
40240 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
40241 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
40242 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
40243 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
40244 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
40245 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
40246 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40247 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
40248 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40249 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
40250 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
40251 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
40252 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
40253 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40254 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40255 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40256 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40257 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40258 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
40259 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
40260 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40261 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
40262 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
40263 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
40264 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
40265 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
40266 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
40267 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
40268 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
40269 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
40270 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
40271 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
40272 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
40273 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
40274 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
40275 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
40276 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
40277 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40278 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40279 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
40280 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
40281 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40282 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40283 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40284 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40285 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
40286 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
40287 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
40288 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
40289 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
40290 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
40291 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40292 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40293 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40294 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40295 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
40296 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
40297 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
40298 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
40299 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40300 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
40301 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
40302 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
40303 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
40304 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
40305 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
40306 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
40307 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
40308 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40309 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
40310 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
40311 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
40312 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
40313 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
40314 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
40315 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
40316 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
40317 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
40318 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
40319 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
40320 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
40321 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
40322 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
40323 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
40324 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
40325 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
40326 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
40327 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
40328 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
40329 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
40330 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40331 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS },
40332 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
40333 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
40334 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
40335 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
40336 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
40337 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
40338 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
40339 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
40340 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
40341 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
40342 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
40343 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
40344 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
40345 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
40346 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
40347 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
40348 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
40349 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
40350 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
40351 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40352 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40353 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
40354 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
40355 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40356 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40357 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
40358 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
40359 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
40360 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
40361 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
40362 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
40363 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
40364 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
40365 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
40366 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
40367 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
40368 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
40369 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
40370 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
40371 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
40372 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
40373 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
40374 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
40375 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
40376 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
40377 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
40378 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
40379 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
40380 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
40381 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
40382 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
40383 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
40384 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
40385 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
40386 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
40387 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
40388 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
40389 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
40390 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
40391 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
40392 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
40393 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
40394 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
40395 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
40396 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
40397 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
40398 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
40399 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
40400 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
40401 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
40402 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
40403 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
40404 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS },
40405 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS },
40406 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
40407 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
40408 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40409 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
40410 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40411 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40412 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40413 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
40414 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
40415 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40416 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
40417 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
40418 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
40419 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
40420 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
40421 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
40422 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
40423 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
40424 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
40425 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
40426 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
40427 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
40428 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
40429 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
40430 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
40431 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
40432 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
40433 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
40434 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
40435 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
40436 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
40437 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
40438 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40439 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40440 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
40441 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40442 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40443 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
40444 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
40445 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
40446 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
40447 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
40448 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
40449 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
40450 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
40451 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
40452 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
40453 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
40454 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
40455 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
40456 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
40457 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40458 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
40459 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
40460 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
40461 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
40462 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40463 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40464 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40465 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40466 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
40467 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
40468 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40469 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40470 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40471 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40472 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
40473 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
40474 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
40475 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
40476 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
40477 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
40478 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
40479 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
40480 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
40481 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40482 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40483 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40484 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40485 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
40486 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
40487 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
40488 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
40489 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
40490 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
40491 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
40492 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
40493 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
40494 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
40495 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
40496 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
40497 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
40498 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
40499 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
40500 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
40501 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
40502 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40503 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40504 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
40505 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40506 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40507 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
40508 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
40509 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
40510 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
40511 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40512 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40513 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40514 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40515 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
40516 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
40517 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
40518 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
40519 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
40520 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
40521 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40522 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40523 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40524 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40525 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40526 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40527 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40528 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40529 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
40530 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
40531 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
40532 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
40533 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
40534 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
40535 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
40536 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
40537 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40538 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40539 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
40540 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
40541 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
40542 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
40543 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
40544 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40545 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40546 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40547 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40548 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
40549 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
40550 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
40551 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS },
40552 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
40553 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
40554 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40555 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40556 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40557 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40558 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40559 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40560 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40561 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40562 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
40563 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
40564 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40565 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40566 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40567 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40568 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40569 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40570 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40571 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40572 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
40573 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
40574 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
40575 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
40576 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
40577 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
40578 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
40579 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
40580 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
40581 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40582 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40583 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
40584 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
40585 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
40586 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40587 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40588 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
40589 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
40590 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40591 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40592 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40593 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40594 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
40595 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
40596 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40597 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40598 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
40599 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
40600 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
40601 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
40602 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
40603 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
40604 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
40605 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
40606 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
40607 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40608 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
40609 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
40610 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
40611 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40612 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
40613 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
40614 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
40615 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
40616 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
40617 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
40618 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
40619 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
40620 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
40621 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
40622 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
40623 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
40624 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40625 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40626 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40627 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
40628 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
40629 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
40630 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
40631 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
40632 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
40633 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
40634 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
40635 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
40636 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
40637 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
40638 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
40639 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
40640 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40641 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
40642 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
40643 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
40644 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
40645 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
40646 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
40647 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
40648 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
40649 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
40650 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
40651 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
40652 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
40653 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
40654 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40655 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40656 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
40657 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
40658 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40659 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40660 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
40661 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
40662 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
40663 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
40664 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
40665 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
40666 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
40667 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
40668 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
40669 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40670 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40671 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
40672 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
40673 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40674 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40675 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
40676 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
40677 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
40678 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
40679 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
40680 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
40681 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS },
40682 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40683 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40684 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
40685 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
40686 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40687 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
40688 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
40689 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40690 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
40691 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
40692 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40693 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40694 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
40695 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
40696 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
40697 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
40698 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40699 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40700 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
40701 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
40702 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
40703 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
40704 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40705 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40706 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
40707 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40708 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40709 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40710 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40711 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
40712 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
40713 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
40714 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40715 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
40716 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
40717 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
40718 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
40719 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
40720 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
40721 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
40722 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40723 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
40724 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
40725 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
40726 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
40727 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
40728 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
40729 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
40730 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
40731 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
40732 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
40733 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
40734 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
40735 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
40736 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
40737 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
40738 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
40739 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
40740 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
40741 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
40742 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
40743 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
40744 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
40745 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
40746 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
40747 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
40748 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
40749 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
40750 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
40751 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
40752 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
40753 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
40754 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
40755 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
40756 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
40757 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
40758 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
40759 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
40760 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
40761 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
40762 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
40763 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
40764 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
40765 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
40766 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
40767 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
40768 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
40769 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
40770 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
40771 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40772 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40773 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
40774 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
40775 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
40776 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
40777 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
40778 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS },
40779 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS },
40780 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS },
40781 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS },
40782 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS },
40783 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS },
40784 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS },
40785 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
40786 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
40787 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
40788 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
40789 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
40790 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
40791 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
40792 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
40793 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
40794 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
40795 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
40796 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
40797 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
40798 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
40799 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
40800 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
40801 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
40802 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
40803 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
40804 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
40805 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
40806 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
40807 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
40808 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
40809 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
40810 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
40811 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
40812 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
40813 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
40814 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
40815 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
40816 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
40817 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
40818 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40819 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
40820 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
40821 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
40822 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
40823 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
40824 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
40825 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
40826 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
40827 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
40828 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS },
40829 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
40830 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
40831 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
40832 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
40833 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
40834 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
40835 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
40836 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
40837 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS },
40838 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
40839 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS },
40840 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
40841 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS },
40842 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS },
40843 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS },
40844 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
40845 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
40846 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
40847 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
40848 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
40849 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
40850 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
40851 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
40852 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
40853 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
40854 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
40855 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
40856 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
40857 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
40858 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
40859 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
40860 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
40861 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
40862 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
40863 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
40864 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
40865 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
40866 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
40867 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
40868 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
40869 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
40870 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
40871 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
40872 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
40873 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
40874 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
40875 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
40876 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS },
40877 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS },
40878 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS },
40879 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
40880 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
40881 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
40882 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
40883 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
40884 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
40885 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
40886 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
40887 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
40888 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
40889 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
40890 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
40891 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
40892 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
40893 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
40894 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
40895 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS },
40896 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
40897 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
40898 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS },
40899 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40900 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40901 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
40902 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
40903 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
40904 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
40905 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
40906 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
40907 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
40908 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
40909 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
40910 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
40911 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
40912 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
40913 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
40914 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
40915 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
40916 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
40917 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
40918 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
40919 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
40920 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
40921 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
40922 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
40923 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
40924 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
40925 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
40926 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
40927 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
40928 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40929 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40930 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
40931 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS },
40932 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40933 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
40934 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS },
40935 { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS },
40936 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
40937 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
40938 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
40939 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS },
40940 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
40941 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
40942 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
40943 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
40944 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
40945 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
40946 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
40947 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
40948 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
40949 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
40950 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
40951 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
40952 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
40953 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS },
40954 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
40955 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
40956 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
40957 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
40958 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
40959 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
40960 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
40961 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
40962 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
40963 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
40964 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
40965 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
40966 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
40967 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
40968 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
40969 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
40970 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
40971 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
40972 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
40973 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
40974 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
40975 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
40976 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
40977 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
40978 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
40979 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
40980 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
40981 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
40982 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
40983 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
40984 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
40985 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
40986 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
40987 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
40988 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
40989 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS },
40990 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
40991 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
40992 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
40993 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
40994 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
40995 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
40996 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
40997 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
40998 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
40999 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
41000 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
41001 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
41002 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
41003 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
41004 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
41005 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
41006 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
41007 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41008 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
41009 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
41010 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
41011 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
41012 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
41013 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
41014 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
41015 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
41016 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
41017 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
41018 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
41019 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
41020 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
41021 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
41022 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
41023 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
41024 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
41025 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
41026 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
41027 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
41028 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
41029 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
41030 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
41031 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
41032 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
41033 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
41034 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
41035 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
41036 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
41037 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
41038 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
41039 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
41040 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
41041 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
41042 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41043 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
41044 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
41045 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
41046 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
41047 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41048 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41049 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
41050 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
41051 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41052 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41053 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41054 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41055 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
41056 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
41057 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
41058 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
41059 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
41060 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
41061 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
41062 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
41063 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
41064 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
41065 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
41066 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
41067 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
41068 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
41069 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
41070 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
41071 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
41072 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
41073 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
41074 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
41075 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
41076 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
41077 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
41078 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
41079 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
41080 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
41081 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41082 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
41083 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
41084 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41085 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41086 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
41087 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
41088 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
41089 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
41090 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
41091 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
41092 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
41093 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
41094 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
41095 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
41096 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
41097 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
41098 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
41099 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
41100 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
41101 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
41102 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS },
41103 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
41104 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
41105 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
41106 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
41107 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
41108 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
41109 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41110 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
41111 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
41112 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
41113 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
41114 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
41115 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
41116 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
41117 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
41118 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
41119 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
41120 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
41121 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
41122 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
41123 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
41124 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
41125 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
41126 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
41127 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41128 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
41129 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
41130 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
41131 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
41132 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
41133 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
41134 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
41135 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
41136 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
41137 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
41138 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
41139 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
41140 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
41141 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
41142 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
41143 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
41144 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
41145 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
41146 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
41147 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
41148 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41149 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41150 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41151 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41152 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
41153 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
41154 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
41155 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
41156 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41157 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS },
41158 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
41159 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
41160 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
41161 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
41162 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
41163 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
41164 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
41165 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
41166 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
41167 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
41168 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
41169 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
41170 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
41171 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
41172 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
41173 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
41174 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
41175 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
41176 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
41177 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
41178 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
41179 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
41180 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
41181 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
41182 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
41183 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
41184 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
41185 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
41186 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
41187 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
41188 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS },
41189 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
41190 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41191 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
41192 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
41193 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
41194 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41195 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
41196 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
41197 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41198 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41199 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41200 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
41201 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
41202 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
41203 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41204 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41205 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
41206 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41207 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
41208 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
41209 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
41210 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
41211 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
41212 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
41213 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41214 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
41215 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
41216 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
41217 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
41218 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
41219 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
41220 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
41221 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
41222 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
41223 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
41224 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
41225 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
41226 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
41227 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
41228 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
41229 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
41230 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
41231 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
41232 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
41233 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
41234 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
41235 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
41236 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
41237 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41238 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41239 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41240 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41241 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
41242 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
41243 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
41244 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
41245 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
41246 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
41247 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
41248 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
41249 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
41250 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
41251 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
41252 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
41253 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
41254 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
41255 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
41256 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
41257 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
41258 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
41259 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
41260 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
41261 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
41262 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
41263 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
41264 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
41265 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41266 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41267 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41268 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
41269 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
41270 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
41271 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
41272 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS },
41273 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS },
41274 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
41275 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
41276 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
41277 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
41278 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
41279 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
41280 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41281 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41282 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41283 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
41284 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
41285 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
41286 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
41287 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
41288 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
41289 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
41290 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS },
41291 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS },
41292 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
41293 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
41294 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
41295 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
41296 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
41297 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
41298 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
41299 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
41300 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
41301 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
41302 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
41303 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
41304 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
41305 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
41306 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
41307 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
41308 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
41309 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
41310 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
41311 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
41312 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
41313 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
41314 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
41315 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
41316 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
41317 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
41318 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
41319 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
41320 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
41321 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
41322 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
41323 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
41324 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
41325 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
41326 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
41327 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
41328 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
41329 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
41330 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
41331 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
41332 { NULL, NULL }
41333 };
41334
41335
41336 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41337
41338 static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
41339 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
41340 }
41341 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
41342 return (void *)((wxSizer *) ((wxBoxSizer *) x));
41343 }
41344 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
41345 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
41346 }
41347 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
41348 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41349 }
41350 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
41351 return (void *)((wxSizer *) ((wxGridSizer *) x));
41352 }
41353 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
41354 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
41355 }
41356 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
41357 return (void *)((wxSizer *) ((wxPySizer *) x));
41358 }
41359 static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
41360 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
41361 }
41362 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41363 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41364 }
41365 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41366 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41367 }
41368 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41369 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41370 }
41371 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41372 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41373 }
41374 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41375 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41376 }
41377 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41378 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41379 }
41380 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41381 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41382 }
41383 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41384 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41385 }
41386 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41387 return (void *)((wxEvent *) ((wxPyEvent *) x));
41388 }
41389 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41390 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41391 }
41392 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41393 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41394 }
41395 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41396 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41397 }
41398 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41399 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41400 }
41401 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41402 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41403 }
41404 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41405 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41406 }
41407 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41408 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41409 }
41410 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41411 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41412 }
41413 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41414 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41415 }
41416 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41417 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41418 }
41419 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41420 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41421 }
41422 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41423 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41424 }
41425 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41426 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41427 }
41428 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41429 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41430 }
41431 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41432 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41433 }
41434 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41435 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41436 }
41437 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41438 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41439 }
41440 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41441 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41442 }
41443 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41444 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41445 }
41446 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41447 return (void *)((wxEvent *) ((wxShowEvent *) x));
41448 }
41449 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41450 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41451 }
41452 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41453 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41454 }
41455 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41456 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41457 }
41458 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41459 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41460 }
41461 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41462 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41463 }
41464 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41465 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41466 }
41467 static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
41468 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
41469 }
41470 static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
41471 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
41472 }
41473 static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
41474 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
41475 }
41476 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41477 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41478 }
41479 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41480 return (void *)((wxControl *) ((wxControlWithItems *) x));
41481 }
41482 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41483 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41484 }
41485 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41486 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41487 }
41488 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41489 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41490 }
41491 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41492 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41493 }
41494 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41495 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41496 }
41497 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41498 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41499 }
41500 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41501 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41502 }
41503 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41504 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41505 }
41506 static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
41507 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
41508 }
41509 static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
41510 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
41511 }
41512 static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
41513 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
41514 }
41515 static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
41516 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
41517 }
41518 static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
41519 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
41520 }
41521 static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
41522 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41523 }
41524 static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
41525 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
41526 }
41527 static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
41528 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
41529 }
41530 static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
41531 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41532 }
41533 static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
41534 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41535 }
41536 static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
41537 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
41538 }
41539 static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
41540 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
41541 }
41542 static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
41543 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
41544 }
41545 static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
41546 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
41547 }
41548 static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
41549 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
41550 }
41551 static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
41552 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
41553 }
41554 static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
41555 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
41556 }
41557 static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
41558 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
41559 }
41560 static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
41561 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
41562 }
41563 static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
41564 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
41565 }
41566 static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
41567 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
41568 }
41569 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
41570 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
41571 }
41572 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
41573 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
41574 }
41575 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
41576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
41577 }
41578 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41579 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41580 }
41581 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41582 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41583 }
41584 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41585 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41586 }
41587 static void *_p_wxValidatorTo_p_wxObject(void *x) {
41588 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41589 }
41590 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41591 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41592 }
41593 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
41594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
41595 }
41596 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
41597 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
41598 }
41599 static void *_p_wxSizerTo_p_wxObject(void *x) {
41600 return (void *)((wxObject *) ((wxSizer *) x));
41601 }
41602 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
41603 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
41604 }
41605 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
41606 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
41607 }
41608 static void *_p_wxMenuTo_p_wxObject(void *x) {
41609 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
41610 }
41611 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
41612 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
41613 }
41614 static void *_p_wxImageTo_p_wxObject(void *x) {
41615 return (void *)((wxObject *) ((wxImage *) x));
41616 }
41617 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
41618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
41619 }
41620 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
41621 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
41622 }
41623 static void *_p_wxPyEventTo_p_wxObject(void *x) {
41624 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
41625 }
41626 static void *_p_wxWindowTo_p_wxObject(void *x) {
41627 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
41628 }
41629 static void *_p_wxControlTo_p_wxObject(void *x) {
41630 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
41631 }
41632 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
41633 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
41634 }
41635 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
41636 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
41637 }
41638 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
41639 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
41640 }
41641 static void *_p_wxPyAppTo_p_wxObject(void *x) {
41642 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41643 }
41644 static void *_p_wxEventTo_p_wxObject(void *x) {
41645 return (void *)((wxObject *) ((wxEvent *) x));
41646 }
41647 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
41648 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
41649 }
41650 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
41651 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
41652 }
41653 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
41654 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
41655 }
41656 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
41657 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
41658 }
41659 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
41660 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
41661 }
41662 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
41663 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
41664 }
41665 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
41666 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
41667 }
41668 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
41669 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
41670 }
41671 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
41672 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41673 }
41674 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
41675 return (void *)((wxObject *) ((wxEvtHandler *) x));
41676 }
41677 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
41678 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
41679 }
41680 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
41681 return (void *)((wxObject *) ((wxImageHandler *) x));
41682 }
41683 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
41684 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
41685 }
41686 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
41687 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
41688 }
41689 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
41690 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41691 }
41692 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
41693 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41694 }
41695 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
41696 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
41697 }
41698 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
41699 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
41700 }
41701 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
41702 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
41703 }
41704 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
41705 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
41706 }
41707 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
41708 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
41709 }
41710 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
41711 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
41712 }
41713 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
41714 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
41715 }
41716 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
41717 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
41718 }
41719 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
41720 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
41721 }
41722 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
41723 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
41724 }
41725 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
41726 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41727 }
41728 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
41729 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
41730 }
41731 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
41732 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
41733 }
41734 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
41735 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
41736 }
41737 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
41738 return (void *)((wxObject *) ((wxFileSystem *) x));
41739 }
41740 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
41741 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
41742 }
41743 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
41744 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
41745 }
41746 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
41747 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
41748 }
41749 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
41750 return (void *)((wxObject *) ((wxSizerItem *) x));
41751 }
41752 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
41753 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
41754 }
41755 static void *_p_wxShowEventTo_p_wxObject(void *x) {
41756 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
41757 }
41758 static void *_p_wxFSFileTo_p_wxObject(void *x) {
41759 return (void *)((wxObject *) ((wxFSFile *) x));
41760 }
41761 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
41762 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
41763 }
41764 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
41765 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
41766 }
41767 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
41768 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
41769 }
41770 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
41771 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
41772 }
41773 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
41774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41775 }
41776 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
41777 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41778 }
41779 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
41780 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
41781 }
41782 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
41783 return (void *)((wxObject *) ((wxMenuItem *) x));
41784 }
41785 static void *_p_wxPySizerTo_p_wxObject(void *x) {
41786 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
41787 }
41788 static void *_p_wxControlTo_p_wxWindow(void *x) {
41789 return (void *)((wxWindow *) ((wxControl *) x));
41790 }
41791 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
41792 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
41793 }
41794 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
41795 return (void *)((wxWindow *) ((wxMenuBar *) x));
41796 }
41797 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
41798 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
41799 }
41800 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
41801 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
41802 }
41803 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
41804 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
41805 }
41806 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
41807 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
41808 }
41809 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
41810 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41811 }
41812 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
41813 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
41814 }
41815 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
41816 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
41817 }
41818 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
41819 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
41820 }
41821 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
41822 return (void *)((wxValidator *) ((wxPyValidator *) x));
41823 }
41824 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}};
41825 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}};
41826 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}};
41827 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}};
41828 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}};
41829 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}};
41830 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}};
41831 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}};
41832 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}};
41833 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}};
41834 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}};
41835 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}};
41836 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}};
41837 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}};
41838 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}};
41839 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}};
41840 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}};
41841 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}};
41842 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}};
41843 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}};
41844 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}};
41845 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}};
41846 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}};
41847 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}};
41848 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}};
41849 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}};
41850 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}};
41851 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}};
41852 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}};
41853 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}};
41854 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}};
41855 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}};
41856 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}};
41857 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}};
41858 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}};
41859 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}};
41860 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}};
41861 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}};
41862 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}};
41863 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}};
41864 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}};
41865 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}};
41866 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}};
41867 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}};
41868 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}};
41869 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}};
41870 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}};
41871 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}};
41872 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}};
41873 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}};
41874 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}};
41875 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}};
41876 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}};
41877 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}};
41878 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}};
41879 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}};
41880 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}};
41881 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}};
41882 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}};
41883 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}};
41884 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}};
41885 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}};
41886 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}};
41887 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}};
41888 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}};
41889 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}};
41890 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}};
41891 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}};
41892 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}};
41893 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}};
41894 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}};
41895 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}};
41896 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}};
41897 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}};
41898 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}};
41899 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}};
41900 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}};
41901 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}};
41902 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}};
41903 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}};
41904 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}};
41905 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}};
41906 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}};
41907 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}};
41908 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}};
41909 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}};
41910 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}};
41911 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}};
41912 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}};
41913 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}};
41914 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}};
41915 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}};
41916 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}};
41917 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}};
41918 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}};
41919 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}};
41920 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}};
41921 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}};
41922 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}};
41923 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}};
41924 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}};
41925 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}};
41926 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}};
41927 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}};
41928 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}};
41929 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}};
41930 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}};
41931 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}};
41932 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}};
41933 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}};
41934 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}};
41935 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}};
41936 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}};
41937 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}};
41938 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}};
41939 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}};
41940
41941 static swig_type_info *swig_types_initial[] = {
41942 _swigt__p_wxLayoutConstraints,
41943 _swigt__p_wxRealPoint,
41944 _swigt__p_wxSizerItem,
41945 _swigt__p_wxGBSizerItem,
41946 _swigt__p_wxScrollEvent,
41947 _swigt__p_wxIndividualLayoutConstraint,
41948 _swigt__p_wxSizer,
41949 _swigt__p_wxBoxSizer,
41950 _swigt__p_wxStaticBoxSizer,
41951 _swigt__p_wxGridBagSizer,
41952 _swigt__p_wxAcceleratorEntry,
41953 _swigt__p_wxUpdateUIEvent,
41954 _swigt__p_wxMenu,
41955 _swigt__p_wxEvent,
41956 _swigt__p_wxGridSizer,
41957 _swigt__p_wxFlexGridSizer,
41958 _swigt__p_wxInitDialogEvent,
41959 _swigt__p_wxItemContainer,
41960 _swigt__p_wxNcPaintEvent,
41961 _swigt__p_wxPaintEvent,
41962 _swigt__p_wxSysColourChangedEvent,
41963 _swigt__p_wxMouseCaptureChangedEvent,
41964 _swigt__p_wxDisplayChangedEvent,
41965 _swigt__p_wxPaletteChangedEvent,
41966 _swigt__p_wxControl,
41967 _swigt__p_wxFont,
41968 _swigt__p_wxMenuBarBase,
41969 _swigt__p_wxSetCursorEvent,
41970 _swigt__p_wxFSFile,
41971 _swigt__p_wxCaret,
41972 _swigt__p_wxRegion,
41973 _swigt__p_wxPoint2D,
41974 _swigt__p_int,
41975 _swigt__p_wxSize,
41976 _swigt__p_wxDC,
41977 _swigt__p_wxPySizer,
41978 _swigt__p_wxVisualAttributes,
41979 _swigt__p_wxNotifyEvent,
41980 _swigt__p_wxPyEvent,
41981 _swigt__p_wxPropagationDisabler,
41982 _swigt__p_wxAppTraits,
41983 _swigt__p_wxArrayString,
41984 _swigt__p_wxShowEvent,
41985 _swigt__p_wxToolTip,
41986 _swigt__p_wxIconizeEvent,
41987 _swigt__p_wxActivateEvent,
41988 _swigt__p_wxMoveEvent,
41989 _swigt__p_wxSizeEvent,
41990 _swigt__p_wxMaximizeEvent,
41991 _swigt__p_wxQueryNewPaletteEvent,
41992 _swigt__p_wxWindowCreateEvent,
41993 _swigt__p_wxIdleEvent,
41994 _swigt__p_wxMenuItem,
41995 _swigt__p_wxStaticBox,
41996 _swigt__p_long,
41997 _swigt__p_wxTIFFHandler,
41998 _swigt__p_wxXPMHandler,
41999 _swigt__p_wxPNMHandler,
42000 _swigt__p_wxJPEGHandler,
42001 _swigt__p_wxPCXHandler,
42002 _swigt__p_wxGIFHandler,
42003 _swigt__p_wxPNGHandler,
42004 _swigt__p_wxANIHandler,
42005 _swigt__p_wxMemoryFSHandler,
42006 _swigt__p_wxEvtHandler,
42007 _swigt__p_wxCURHandler,
42008 _swigt__p_wxICOHandler,
42009 _swigt__p_wxBMPHandler,
42010 _swigt__p_wxImageHandler,
42011 _swigt__p_wxFileSystemHandler,
42012 _swigt__p_wxPyFileSystemHandler,
42013 _swigt__p_wxInternetFSHandler,
42014 _swigt__p_wxZipFSHandler,
42015 _swigt__p_wxRect,
42016 _swigt__p_wxGBSpan,
42017 _swigt__p_wxPropagateOnce,
42018 _swigt__p_wxAcceleratorTable,
42019 _swigt__p_char,
42020 _swigt__p_wxGBPosition,
42021 _swigt__p_wxImage,
42022 _swigt__p_wxFrame,
42023 _swigt__p_wxScrollWinEvent,
42024 _swigt__p_wxImageHistogram,
42025 _swigt__p_byte,
42026 _swigt__p_wxPoint,
42027 _swigt__p_wxCursor,
42028 _swigt__p_wxObject,
42029 _swigt__p_wxPyInputStream,
42030 _swigt__p_wxOutputStream,
42031 _swigt__p_wxInputStream,
42032 _swigt__p_wxDateTime,
42033 _swigt__p_wxKeyEvent,
42034 _swigt__p_wxNavigationKeyEvent,
42035 _swigt__p_wxWindowDestroyEvent,
42036 _swigt__p_wxWindow,
42037 _swigt__p_wxMenuBar,
42038 _swigt__p_wxFileSystem,
42039 _swigt__p_wxBitmap,
42040 _swigt__p_wxMenuEvent,
42041 _swigt__p_wxContextMenuEvent,
42042 _swigt__p_unsigned_char,
42043 _swigt__p_wxCloseEvent,
42044 _swigt__p_wxEraseEvent,
42045 _swigt__p_wxMouseEvent,
42046 _swigt__p_wxPyApp,
42047 _swigt__p_wxCommandEvent,
42048 _swigt__p_wxPyCommandEvent,
42049 _swigt__p_wxPyDropTarget,
42050 _swigt__p_wxQuantize,
42051 _swigt__p_wxChildFocusEvent,
42052 _swigt__p_wxFocusEvent,
42053 _swigt__p_wxDropFilesEvent,
42054 _swigt__p_wxControlWithItems,
42055 _swigt__p_wxColour,
42056 _swigt__p_wxValidator,
42057 _swigt__p_wxPyValidator,
42058 0
42059 };
42060
42061
42062 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42063
42064 static swig_const_info swig_const_table[] = {
42065 {0}};
42066
42067 #ifdef __cplusplus
42068 }
42069 #endif
42070
42071 #ifdef __cplusplus
42072 extern "C"
42073 #endif
42074 SWIGEXPORT(void) SWIG_init(void) {
42075 static PyObject *SWIG_globals = 0;
42076 static int typeinit = 0;
42077 PyObject *m, *d;
42078 int i;
42079 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42080 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42081 d = PyModule_GetDict(m);
42082
42083 if (!typeinit) {
42084 for (i = 0; swig_types_initial[i]; i++) {
42085 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42086 }
42087 typeinit = 1;
42088 }
42089 SWIG_InstallConstants(d,swig_const_table);
42090
42091
42092 #ifndef wxPyUSE_EXPORT
42093 // Make our API structure a CObject so other modules can import it
42094 // from this module.
42095 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42096 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42097 Py_XDECREF(cobj);
42098 #endif
42099
42100 PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND));
42101 PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL));
42102 PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL));
42103 PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION));
42104 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER));
42105 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER));
42106 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER));
42107 PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER));
42108 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER));
42109 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
42110 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
42111 PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
42112 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
42113 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
42114 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
42115 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
42116 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
42117 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
42118 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
42119 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
42120 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
42121 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE));
42122 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE));
42123 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN));
42124 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS));
42125 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB));
42126 PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED));
42127 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE));
42128 PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED));
42129 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH));
42130 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB));
42131 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB));
42132 PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT));
42133 PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE));
42134 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE));
42135 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED));
42136 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW));
42137 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL));
42138 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER));
42139 PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD));
42140 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE));
42141 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN));
42142 PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT));
42143 PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY));
42144 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL));
42145 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL));
42146 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS));
42147 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS));
42148 PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP));
42149 PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE));
42150 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL));
42151 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL));
42152 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS));
42153 PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS));
42154 PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT));
42155 PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP));
42156 PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT));
42157 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM));
42158 PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH));
42159 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE));
42160 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL));
42161 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL));
42162 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP));
42163 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE));
42164 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE));
42165 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER));
42166 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE));
42167 PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE));
42168 PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP));
42169 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM));
42170 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT));
42171 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT));
42172 PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK));
42173 PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO));
42174 PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL));
42175 PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES));
42176 PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO));
42177 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT));
42178 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT));
42179 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION));
42180 PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND));
42181 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION));
42182 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION));
42183 PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP));
42184 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK));
42185 PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK));
42186 PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING));
42187 PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR));
42188 PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD));
42189 PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD));
42190 PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET));
42191 PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP));
42192 PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE));
42193 PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP));
42194 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH));
42195 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT));
42196 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO));
42197 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING));
42198 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
42199 PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT));
42200 PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE));
42201 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH));
42202 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM));
42203 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW));
42204 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT));
42205 PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY));
42206 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR));
42207 PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST));
42208 PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN));
42209 PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE));
42210 PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW));
42211 PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE));
42212 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS));
42213 PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT));
42214 PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT));
42215 PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO));
42216 PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO));
42217 PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP));
42218 PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT));
42219 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP));
42220 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW));
42221 PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT));
42222 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS));
42223 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS));
42224 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES));
42225 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT));
42226 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL));
42227 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES));
42228 PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT));
42229 PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY));
42230 PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE));
42231 PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR));
42232 PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND));
42233 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE));
42234 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL));
42235 PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE));
42236 PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE));
42237 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL));
42238 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES));
42239 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS));
42240 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS));
42241 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS));
42242 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST));
42243 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE));
42244 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME));
42245 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE));
42246 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE));
42247 PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1));
42248 PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2));
42249 PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3));
42250 PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4));
42251 PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5));
42252 PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6));
42253 PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7));
42254 PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8));
42255 PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9));
42256 PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK));
42257 PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL));
42258 PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY));
42259 PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES));
42260 PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO));
42261 PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC));
42262 PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD));
42263 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD));
42264 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT));
42265 PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE));
42266 PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP));
42267 PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET));
42268 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP));
42269 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL));
42270 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL));
42271 PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT));
42272 PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY));
42273 PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE));
42274 PyDict_SetItemString(d,"ID_ADD", SWIG_FromInt((int)wxID_ADD));
42275 PyDict_SetItemString(d,"ID_REMOVE", SWIG_FromInt((int)wxID_REMOVE));
42276 PyDict_SetItemString(d,"ID_UP", SWIG_FromInt((int)wxID_UP));
42277 PyDict_SetItemString(d,"ID_DOWN", SWIG_FromInt((int)wxID_DOWN));
42278 PyDict_SetItemString(d,"ID_HOME", SWIG_FromInt((int)wxID_HOME));
42279 PyDict_SetItemString(d,"ID_REFRESH", SWIG_FromInt((int)wxID_REFRESH));
42280 PyDict_SetItemString(d,"ID_STOP", SWIG_FromInt((int)wxID_STOP));
42281 PyDict_SetItemString(d,"ID_INDEX", SWIG_FromInt((int)wxID_INDEX));
42282 PyDict_SetItemString(d,"ID_BOLD", SWIG_FromInt((int)wxID_BOLD));
42283 PyDict_SetItemString(d,"ID_ITALIC", SWIG_FromInt((int)wxID_ITALIC));
42284 PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_FromInt((int)wxID_JUSTIFY_CENTER));
42285 PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_FromInt((int)wxID_JUSTIFY_FILL));
42286 PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_FromInt((int)wxID_JUSTIFY_RIGHT));
42287 PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_FromInt((int)wxID_JUSTIFY_LEFT));
42288 PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_FromInt((int)wxID_UNDERLINE));
42289 PyDict_SetItemString(d,"ID_INDENT", SWIG_FromInt((int)wxID_INDENT));
42290 PyDict_SetItemString(d,"ID_UNINDENT", SWIG_FromInt((int)wxID_UNINDENT));
42291 PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_FromInt((int)wxID_ZOOM_100));
42292 PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_FromInt((int)wxID_ZOOM_FIT));
42293 PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_FromInt((int)wxID_ZOOM_IN));
42294 PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_FromInt((int)wxID_ZOOM_OUT));
42295 PyDict_SetItemString(d,"ID_UNDELETE", SWIG_FromInt((int)wxID_UNDELETE));
42296 PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_FromInt((int)wxID_REVERT_TO_SAVED));
42297 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST));
42298 PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN));
42299 PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE));
42300 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY));
42301 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT));
42302 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST));
42303 PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE));
42304 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR));
42305 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT));
42306 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL));
42307 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT));
42308 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL));
42309 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE));
42310 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL));
42311 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT));
42312 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME));
42313 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME));
42314 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME));
42315 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON));
42316 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE));
42317 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF));
42318 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE));
42319 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
42320 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
42321 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL));
42322 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL));
42323 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
42324 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS));
42325 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT));
42326 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
42327 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE));
42328 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
42329 PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT));
42330 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC));
42331 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC));
42332 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH));
42333 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH));
42334 PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS));
42335 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC));
42336 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC));
42337 PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS));
42338 PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC));
42339 PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE));
42340 PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER));
42341 PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL));
42342 PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL));
42343 PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH));
42344 PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT));
42345 PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT));
42346 PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP));
42347 PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN));
42348 PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP));
42349 PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM));
42350 PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH));
42351 PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH));
42352 PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST));
42353 PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST));
42354 PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL));
42355 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT));
42356 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
42357 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
42358 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT));
42359 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP));
42360 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT));
42361 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM));
42362 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL));
42363 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL));
42364 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER));
42365 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE));
42366 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK));
42367 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT));
42368 PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK));
42369 PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
42370 PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
42371 PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
42372 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
42373 PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
42374 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
42375 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
42376 PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE));
42377 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC));
42378 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE));
42379 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED));
42380 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN));
42381 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE));
42382 PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK));
42383 PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_FromInt((int)wxBG_STYLE_SYSTEM));
42384 PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_FromInt((int)wxBG_STYLE_COLOUR));
42385 PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_FromInt((int)wxBG_STYLE_CUSTOM));
42386 PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT));
42387 PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE));
42388 PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN));
42389 PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT));
42390 PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS));
42391 PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN));
42392 PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE));
42393 PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE));
42394 PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED));
42395 PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL));
42396 PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT));
42397 PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD));
42398 PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC));
42399 PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT));
42400 PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID));
42401 PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT));
42402 PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH));
42403 PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH));
42404 PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH));
42405 PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH));
42406 PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT));
42407 PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE));
42408 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH));
42409 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH));
42410 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH));
42411 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH));
42412 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH));
42413 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH));
42414 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL));
42415 PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER));
42416 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND));
42417 PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND));
42418 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING));
42419 PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT));
42420 PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR));
42421 PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR));
42422 PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT));
42423 PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE));
42424 PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE));
42425 PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY));
42426 PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND));
42427 PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT));
42428 PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP));
42429 PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR));
42430 PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV));
42431 PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT));
42432 PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT));
42433 PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND));
42434 PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR));
42435 PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET));
42436 PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK));
42437 PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB));
42438 PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN));
42439 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE));
42440 PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE));
42441 PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE));
42442 PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START));
42443 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON));
42444 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON));
42445 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL));
42446 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON));
42447 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR));
42448 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT));
42449 PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT));
42450 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL));
42451 PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU));
42452 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE));
42453 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL));
42454 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR));
42455 PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT));
42456 PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END));
42457 PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME));
42458 PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT));
42459 PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP));
42460 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT));
42461 PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN));
42462 PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT));
42463 PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT));
42464 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE));
42465 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT));
42466 PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT));
42467 PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP));
42468 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0));
42469 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1));
42470 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2));
42471 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3));
42472 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4));
42473 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5));
42474 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6));
42475 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7));
42476 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8));
42477 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9));
42478 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY));
42479 PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD));
42480 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR));
42481 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT));
42482 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL));
42483 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE));
42484 PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1));
42485 PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2));
42486 PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3));
42487 PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4));
42488 PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5));
42489 PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6));
42490 PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7));
42491 PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8));
42492 PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9));
42493 PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10));
42494 PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11));
42495 PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12));
42496 PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13));
42497 PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14));
42498 PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15));
42499 PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16));
42500 PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17));
42501 PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18));
42502 PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19));
42503 PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20));
42504 PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21));
42505 PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22));
42506 PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23));
42507 PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24));
42508 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK));
42509 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL));
42510 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP));
42511 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN));
42512 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE));
42513 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB));
42514 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER));
42515 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1));
42516 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2));
42517 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3));
42518 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4));
42519 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME));
42520 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT));
42521 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP));
42522 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT));
42523 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN));
42524 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR));
42525 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP));
42526 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT));
42527 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN));
42528 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END));
42529 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN));
42530 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT));
42531 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE));
42532 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL));
42533 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY));
42534 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD));
42535 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR));
42536 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT));
42537 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL));
42538 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE));
42539 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT));
42540 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT));
42541 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU));
42542 PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE));
42543 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER));
42544 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL));
42545 PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4));
42546 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET));
42547 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET));
42548 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET));
42549 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL));
42550 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID));
42551 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER));
42552 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT));
42553 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE));
42554 PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3));
42555 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL));
42556 PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5));
42557 PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4));
42558 PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5));
42559 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO));
42560 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO));
42561 PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14));
42562 PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17));
42563 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE));
42564 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9));
42565 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10));
42566 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11));
42567 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12));
42568 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14));
42569 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL));
42570 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5));
42571 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3));
42572 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4));
42573 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6));
42574 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65));
42575 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4));
42576 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5));
42577 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6));
42578 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY));
42579 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH));
42580 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL));
42581 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US));
42582 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
42583 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
42584 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4));
42585 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
42586 PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11));
42587 PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11));
42588 PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11));
42589 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE));
42590 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA));
42591 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA));
42592 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA));
42593 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA));
42594 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
42595 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE));
42596 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
42597 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS));
42598 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS));
42599 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS));
42600 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS));
42601 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE));
42602 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE));
42603 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA));
42604 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA));
42605 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA));
42606 PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2));
42607 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE));
42608 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
42609 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX));
42610 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL));
42611 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL));
42612 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR));
42613 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL));
42614 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK));
42615 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO));
42616 PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX));
42617 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE));
42618 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST));
42619 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
42620 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
42621 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
42622 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
42623 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB));
42624 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1));
42625 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2));
42626 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST));
42627 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE));
42628 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE));
42629 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
42630 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
42631 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER));
42632 PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX));
42633 PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE));
42634 PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT));
42635 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL));
42636 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT));
42637 PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN));
42638 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE));
42639 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE));
42640 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE));
42641 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
42642 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
42643 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID));
42644 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP));
42645 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO));
42646 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR));
42647 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM));
42648 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
42649 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM));
42650 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
42651 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF));
42652 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF));
42653 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG));
42654 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG));
42655 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM));
42656 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX));
42657 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT));
42658 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON));
42659 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI));
42660 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF));
42661 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
42662 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY));
42663 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE));
42664 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW));
42665 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW));
42666 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE));
42667 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR));
42668 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS));
42669 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND));
42670 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM));
42671 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON));
42672 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER));
42673 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
42674 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY));
42675 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH));
42676 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL));
42677 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT));
42678 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT));
42679 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW));
42680 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON));
42681 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW));
42682 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS));
42683 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE));
42684 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE));
42685 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING));
42686 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN));
42687 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT));
42688 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH));
42689 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK));
42690 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT));
42691 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW));
42692 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT));
42693 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX));
42694 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
42695 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
42696 PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart));
42697 PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent));
42698 PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd));
42699
42700 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
42701
42702
42703 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
42704
42705 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
42706 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
42707 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
42708 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
42709 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
42710 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
42711 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
42712 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM));
42713 PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP));
42714 PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP));
42715 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY));
42716 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY));
42717 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED));
42718 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE));
42719 PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP));
42720 PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP));
42721 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW));
42722 PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_FromInt((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS));
42723 PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_FromInt((int)wxQUANTIZE_FILL_DESTINATION_IMAGE));
42724 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE));
42725 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX));
42726 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
42727 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
42728 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
42729 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
42730 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
42731 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
42732 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
42733 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
42734 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
42735 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
42736 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
42737 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
42738 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
42739 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
42740 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
42741 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
42742 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
42743 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
42744 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
42745 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
42746 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
42747 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
42748 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
42749 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
42750 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
42751 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
42752 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
42753 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
42754 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
42755 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
42756 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
42757 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
42758 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
42759 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
42760 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
42761 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
42762 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
42763 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
42764 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
42765 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
42766 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
42767 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
42768 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
42769 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
42770 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
42771 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
42772 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
42773 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
42774 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
42775 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
42776 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
42777 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
42778 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
42779 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
42780 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
42781 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
42782 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
42783 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
42784 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
42785 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
42786 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
42787 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
42788 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
42789 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
42790 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
42791 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
42792 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
42793 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
42794 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
42795 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
42796 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
42797 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
42798 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
42799 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
42800 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
42801 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
42802 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
42803 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
42804 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
42805 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
42806 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
42807 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
42808 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
42809 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
42810 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
42811 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
42812 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
42813 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
42814 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
42815 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
42816 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
42817 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
42818 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
42819 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
42820 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
42821 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
42822 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
42823 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
42824 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
42825 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
42826 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
42827 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
42828 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
42829 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
42830 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
42831 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
42832 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
42833 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
42834 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
42835 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
42836 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
42837 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
42838 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
42839 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
42840 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY));
42841 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE));
42842 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT));
42843 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE));
42844 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT));
42845 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
42846 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
42847 PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_FromInt((int)wxNavigationKeyEvent::IsBackward));
42848 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward));
42849 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange));
42850 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL));
42851 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
42852 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
42853 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
42854 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG));
42855 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG));
42856 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS));
42857 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
42858 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
42859 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
42860 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
42861 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
42862 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
42863 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
42864 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX));
42865 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
42866 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
42867 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
42868 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
42869 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL));
42870 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
42871 PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft));
42872 PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop));
42873 PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight));
42874 PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom));
42875 PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth));
42876 PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight));
42877 PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre));
42878 PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter));
42879 PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX));
42880 PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY));
42881 PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained));
42882 PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs));
42883 PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf));
42884 PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove));
42885 PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow));
42886 PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf));
42887 PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf));
42888 PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs));
42889 PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute));
42890
42891 // Initialize threading, some globals and such
42892 __wxPyPreStart(d);
42893
42894
42895 // Although these are defined in __version__ they need to be here too so
42896 // that an assert can be done to ensure that the wxPython and the wxWindows
42897 // versions match.
42898 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
42899 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
42900 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
42901
42902 }
42903