]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_core_wrap.cpp
Added multi-line TextCtrl
[wxWidgets.git] / wxPython / src / mac / _core_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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_wxMaximizeEvent swig_types[44]
254 #define SWIGTYPE_p_wxIconizeEvent swig_types[45]
255 #define SWIGTYPE_p_wxActivateEvent swig_types[46]
256 #define SWIGTYPE_p_wxMoveEvent swig_types[47]
257 #define SWIGTYPE_p_wxSizeEvent 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_wxChildFocusEvent swig_types[108]
318 #define SWIGTYPE_p_wxFocusEvent swig_types[109]
319 #define SWIGTYPE_p_wxDropFilesEvent swig_types[110]
320 #define SWIGTYPE_p_wxControlWithItems swig_types[111]
321 #define SWIGTYPE_p_wxColour swig_types[112]
322 #define SWIGTYPE_p_wxValidator swig_types[113]
323 #define SWIGTYPE_p_wxPyValidator swig_types[114]
324 static swig_type_info *swig_types[116];
325
326 /* -------- TYPES TABLE (END) -------- */
327
328
329 /*-----------------------------------------------
330 @(target):= _core_.so
331 ------------------------------------------------*/
332 #define SWIG_init init_core_
333
334 #define SWIG_name "_core_"
335
336 /* Auxiliar swig macros */
337
338 #ifdef __cplusplus
339 #define SWIGSTATICINLINE(a) static inline a
340 #define SWIGSTATIC(a) static a
341 #define swig_new_array(type, size) (new type[(size)])
342 #define swig_delete_array(cptr) delete[] cptr
343 #define swig_const_cast(type,a) const_cast<type>(a)
344 #define swig_static_cast(type,a) static_cast<type>(a)
345 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
346
347 #ifdef HAVE_NUMERIC_CAST
348 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
349 #else
350 #define swig_numeric_cast(type,a) static_cast<type>(a)
351 #endif
352
353 #else /* C case */
354
355 #define SWIGSTATICINLINE(a) static a
356 #define SWIGSTATIC(a) static a
357 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
358 #define swig_delete_array(cptr) free((char*)cptr)
359 #define swig_const_cast(type,a) (type)(a)
360 #define swig_static_cast(type,a) (type)(a)
361 #define swig_reinterpret_cast(type,a) (type)(a)
362 #define swig_numeric_cast(type,a) (type)(a)
363
364 #endif /* __cplusplus */
365
366
367 #define SWIG_FromSignedChar PyInt_FromLong
368 #define SWIG_FromUnsignedChar PyInt_FromLong
369 #define SWIG_FromShort PyInt_FromLong
370 #define SWIG_FromUnsignedShort PyInt_FromLong
371 #define SWIG_FromInt PyInt_FromLong
372 #define SWIG_FromLong PyInt_FromLong
373 #define SWIG_FromFloat PyFloat_FromDouble
374 #define SWIG_FromDouble PyFloat_FromDouble
375 #define SWIG_FromFloat PyFloat_FromDouble
376 #define SWIG_FromDouble PyFloat_FromDouble
377
378
379 #include "wx/wxPython/wxPython_int.h"
380 #include "wx/wxPython/pyclasses.h"
381
382
383 #ifndef wxPyUSE_EXPORT
384 // Helper functions for dealing with SWIG objects and such. These are
385 // located here so they know about the SWIG types and functions declared
386 // in the wrapper code.
387
388 #include <wx/hashmap.h>
389 WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
390
391
392 // Maintains a hashmap of className to swig_type_info pointers. Given the
393 // name of a class either looks up the type info in the cache, or scans the
394 // SWIG tables for it.
395 extern PyObject* wxPyPtrTypeMap;
396 static
397 swig_type_info* wxPyFindSwigType(const wxChar* className) {
398
399 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
400
401 if (typeInfoCache == NULL)
402 typeInfoCache = new wxPyTypeInfoHashMap;
403
404 wxString name(className);
405 swig_type_info* swigType = (*typeInfoCache)[name];
406
407 if (! swigType) {
408 // it wasn't in the cache, so look it up from SWIG
409 name.Append(wxT(" *"));
410 swigType = SWIG_Python_TypeQuery(name.mb_str());
411
412 // if it still wasn't found, try looking for a mapped name
413 if (!swigType) {
414 PyObject* item;
415 name = className;
416
417 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
418 (char*)(const char*)name.mbc_str())) != NULL) {
419 name = wxString(PyString_AsString(item), *wxConvCurrent);
420 name.Append(wxT(" *"));
421 swigType = SWIG_Python_TypeQuery(name.mb_str());
422 }
423 }
424 if (swigType) {
425 // and add it to the map if found
426 (*typeInfoCache)[className] = swigType;
427 }
428 }
429 return swigType;
430 }
431
432
433 // Check if a class name is a type known to SWIG
434 bool wxPyCheckSwigType(const wxChar* className) {
435
436 swig_type_info* swigType = wxPyFindSwigType(className);
437 return swigType != NULL;
438 }
439
440
441 // Given a pointer to a C++ object and a class name, construct a Python proxy
442 // object for it.
443 PyObject* wxPyConstructObject(void* ptr,
444 const wxChar* className,
445 int setThisOwn) {
446
447 swig_type_info* swigType = wxPyFindSwigType(className);
448 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
449
450 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
451 }
452
453
454 // Extract a pointer to the wrapped C++ object from a Python proxy object.
455 // Ensures that the proxy object is of the specified (or derived) type. If
456 // not able to perform the conversion then a Python exception is set and the
457 // error should be handled properly in the caller. Returns True on success.
458 bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
459 const wxChar* className) {
460
461 swig_type_info* swigType = wxPyFindSwigType(className);
462 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
463
464 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
465 }
466
467
468 // Make a SWIGified pointer object suitable for a .this attribute
469 PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
470
471 PyObject* robj = NULL;
472
473 swig_type_info* swigType = wxPyFindSwigType(className);
474 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
475
476 #ifdef SWIG_COBJECT_TYPES
477 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
478 #else
479 {
480 char result[1024];
481 char *r = result;
482 *(r++) = '_';
483 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
484 strcpy(r, swigType->name);
485 robj = PyString_FromString(result);
486 }
487 #endif
488
489 return robj;
490 }
491
492
493
494
495 // Export a C API in a struct. Other modules will be able to load this from
496 // the wx._core_ module and will then have safe access to these functions,
497 // even if they are located in another shared library.
498 static wxPyCoreAPI API = {
499
500 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
501 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
502 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
503 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
504 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
505 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
506 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
507 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
508 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
509 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
510 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
511 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
512 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
513 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
514 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
515 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
516 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
517
518 wxPyCheckSwigType,
519 wxPyConstructObject,
520 wxPyConvertSwigPtr,
521 wxPyMakeSwigPtr,
522
523 wxPyBeginAllowThreads,
524 wxPyEndAllowThreads,
525 wxPyBeginBlockThreads,
526 wxPyEndBlockThreads,
527
528 wxPy_ConvertList,
529
530 wxString_in_helper,
531 Py2wxString,
532 wx2PyString,
533
534 byte_LIST_helper,
535 int_LIST_helper,
536 long_LIST_helper,
537 string_LIST_helper,
538 wxPoint_LIST_helper,
539 wxBitmap_LIST_helper,
540 wxString_LIST_helper,
541 wxAcceleratorEntry_LIST_helper,
542
543 wxSize_helper,
544 wxPoint_helper,
545 wxRealPoint_helper,
546 wxRect_helper,
547 wxColour_helper,
548 wxPoint2D_helper,
549
550 wxPySimple_typecheck,
551 wxColour_typecheck,
552
553 wxPyCBH_setCallbackInfo,
554 wxPyCBH_findCallback,
555 wxPyCBH_callCallback,
556 wxPyCBH_callCallbackObj,
557 wxPyCBH_delete,
558
559 wxPyMake_wxObject,
560 wxPyMake_wxSizer,
561 wxPyPtrTypeMap_Add,
562 wxPy2int_seq_helper,
563 wxPy4int_seq_helper,
564 wxArrayString2PyList_helper,
565 wxArrayInt2PyList_helper,
566
567 wxPyClientData_dtor,
568 wxPyUserData_dtor,
569 wxPyOORClientData_dtor,
570
571 wxPyCBInputStream_create,
572
573 wxPyInstance_Check,
574 wxPySwigInstance_Check
575
576 };
577
578 #endif
579
580
581 #if ! wxUSE_HOTKEY
582 enum wxHotkeyModifier
583 {
584 wxMOD_NONE = 0,
585 wxMOD_ALT = 1,
586 wxMOD_CONTROL = 2,
587 wxMOD_SHIFT = 4,
588 wxMOD_WIN = 8
589 };
590 #define wxEVT_HOTKEY 9999
591 #endif
592
593 static const wxString wxPyEmptyString(wxEmptyString);
594 wxString wxObject_GetClassName(wxObject *self){
595 return self->GetClassInfo()->GetClassName();
596 }
597 void wxObject_Destroy(wxObject *self){
598 delete self;
599 }
600
601 #ifndef __WXMAC__
602 #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
603 #endif
604
605
606 #include <limits.h>
607
608
609 SWIGSTATICINLINE(long)
610 SWIG_CheckLongInRange(long value, const char* type,
611 long min_value, long max_value)
612 {
613 if (!PyErr_Occurred()) {
614 if (value < min_value) {
615 PyObject *err =
616 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
617 value, type, min_value);
618
619 PyErr_SetObject(PyExc_OverflowError, err);
620 Py_DECREF(err);
621 } else if (value > max_value) {
622 PyObject *err =
623 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
624 value, type, max_value);
625 PyErr_SetObject(PyExc_OverflowError, err);
626 Py_DECREF(err);
627 }
628 }
629 return value;
630 }
631
632
633 SWIGSTATICINLINE(long)
634 SWIG_AsLong(PyObject * obj)
635 {
636 if (PyNumber_Check(obj))
637 return PyInt_AsLong(obj);
638 else {
639 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
640 obj->ob_type->tp_name);
641 PyErr_SetObject(PyExc_TypeError, errmsg);
642 Py_DECREF(errmsg);
643 return 0;
644 }
645 }
646
647
648 #if INT_MAX != LONG_MAX
649 SWIGSTATICINLINE(int)
650 SWIG_AsInt(PyObject *obj)
651 {
652 return swig_numeric_cast(int,
653 SWIG_CheckLongInRange(SWIG_AsLong(obj),
654 "int", INT_MIN, INT_MAX));
655 }
656 #else
657 #define SWIG_AsInt SWIG_AsLong
658 #endif
659
660
661 SWIGSTATICINLINE(int)
662 SWIG_CheckInt(PyObject* obj)
663 {
664 SWIG_AsInt(obj);
665 if (PyErr_Occurred()) {
666 PyErr_Clear();
667 return 0;
668 } else {
669 return 1;
670 }
671 }
672
673 PyObject *wxSize_Get(wxSize *self){
674 bool blocked = wxPyBeginBlockThreads();
675 PyObject* tup = PyTuple_New(2);
676 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
677 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
678 wxPyEndBlockThreads(blocked);
679 return tup;
680 }
681
682 SWIGSTATICINLINE(double)
683 SWIG_AsDouble(PyObject *obj)
684 {
685 if (PyNumber_Check(obj))
686 return PyFloat_AsDouble(obj);
687 else {
688 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
689 obj->ob_type->tp_name);
690 PyErr_SetObject(PyExc_TypeError, errmsg);
691 Py_DECREF(errmsg);
692 return 0;
693 }
694 }
695
696
697 SWIGSTATICINLINE(int)
698 SWIG_CheckDouble(PyObject* obj)
699 {
700 SWIG_AsDouble(obj);
701 if (PyErr_Occurred()) {
702 PyErr_Clear();
703 return 0;
704 } else {
705 return 1;
706 }
707 }
708
709 void wxRealPoint_Set(wxRealPoint *self,double x,double y){
710 self->x = x;
711 self->y = y;
712 }
713 PyObject *wxRealPoint_Get(wxRealPoint *self){
714 bool blocked = wxPyBeginBlockThreads();
715 PyObject* tup = PyTuple_New(2);
716 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
717 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
718 wxPyEndBlockThreads(blocked);
719 return tup;
720 }
721
722 SWIGSTATICINLINE(int)
723 SWIG_CheckLong(PyObject* obj)
724 {
725 SWIG_AsLong(obj);
726 if (PyErr_Occurred()) {
727 PyErr_Clear();
728 return 0;
729 } else {
730 return 1;
731 }
732 }
733
734 void wxPoint_Set(wxPoint *self,long x,long y){
735 self->x = x;
736 self->y = y;
737 }
738 PyObject *wxPoint_Get(wxPoint *self){
739 bool blocked = wxPyBeginBlockThreads();
740 PyObject* tup = PyTuple_New(2);
741 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
742 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
743 wxPyEndBlockThreads(blocked);
744 return tup;
745 }
746 void wxRect_Set(wxRect *self,int x,int y,int width,int height){
747 self->x = x;
748 self->y = y;
749 self->width = width;
750 self->height = height;
751 }
752 PyObject *wxRect_Get(wxRect *self){
753 bool blocked = wxPyBeginBlockThreads();
754 PyObject* tup = PyTuple_New(4);
755 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
756 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
757 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
758 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
759 wxPyEndBlockThreads(blocked);
760 return tup;
761 }
762
763 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
764 wxRegion reg1(*r1);
765 wxRegion reg2(*r2);
766 wxRect dest(0,0,0,0);
767 PyObject* obj;
768
769 reg1.Intersect(reg2);
770 dest = reg1.GetBox();
771
772 if (dest != wxRect(0,0,0,0)) {
773 bool blocked = wxPyBeginBlockThreads();
774 wxRect* newRect = new wxRect(dest);
775 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
776 wxPyEndBlockThreads(blocked);
777 return obj;
778 }
779 Py_INCREF(Py_None);
780 return Py_None;
781 }
782
783
784 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
785 PyObject* o2;
786 PyObject* o3;
787
788 if (!target) {
789 target = o;
790 } else if (target == Py_None) {
791 Py_DECREF(Py_None);
792 target = o;
793 } else {
794 if (!PyTuple_Check(target)) {
795 o2 = target;
796 target = PyTuple_New(1);
797 PyTuple_SetItem(target, 0, o2);
798 }
799 o3 = PyTuple_New(1);
800 PyTuple_SetItem(o3, 0, o);
801
802 o2 = target;
803 target = PySequence_Concat(o2, o3);
804 Py_DECREF(o2);
805 Py_DECREF(o3);
806 }
807 return target;
808 }
809
810 void wxPoint2D_Set(wxPoint2D *self,double x,double y){
811 self->m_x = x;
812 self->m_y = y;
813 }
814 PyObject *wxPoint2D_Get(wxPoint2D *self){
815 bool blocked = wxPyBeginBlockThreads();
816 PyObject* tup = PyTuple_New(2);
817 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
818 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
819 wxPyEndBlockThreads(blocked);
820 return tup;
821 }
822
823 #include "wx/wxPython/pyistream.h"
824
825 wxPyInputStream *new_wxPyInputStream(PyObject *p){
826 wxInputStream* wxis = wxPyCBInputStream::create(p);
827 if (wxis)
828 return new wxPyInputStream(wxis);
829 else
830 return NULL;
831 }
832
833 SWIGSTATICINLINE(PyObject*)
834 SWIG_FromChar(char c)
835 {
836 return PyString_FromStringAndSize(&c,1);
837 }
838
839
840 SWIGSTATICINLINE(PyObject* )
841 SWIG_FromUnsignedLong(unsigned long value)
842 {
843 return (value > LONG_MAX) ?
844 PyLong_FromUnsignedLong(value)
845 : PyInt_FromLong(swig_numeric_cast(long,value));
846 }
847
848
849 /* returns '1' if the input is a raw char*, '0' if is a PyString */
850 SWIGSTATIC(int)
851 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size)
852 {
853 static swig_type_info* pchar_info = 0;
854 int psize = 0;
855 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
856
857 if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) {
858 PyErr_Clear();
859 PyString_AsStringAndSize(obj, cptr, &psize);
860 if (PyErr_Occurred()) {
861 PyErr_Clear();
862 PyErr_SetString(PyExc_TypeError,"a string is expected");
863 }
864 if (size) *size = psize;
865 return 0;
866 } else {
867 if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0;
868 return 1;
869 }
870 }
871
872
873 SWIGSTATIC(void)
874 SWIG_AsCharArray(PyObject *obj, char* carray, size_t size)
875 {
876 char* cptr; size_t csize;
877 SWIG_AsCharPtrAndSize(obj, &cptr, &csize);
878 if (PyErr_Occurred()) {
879 PyErr_Clear();
880 PyObject *err =
881 PyString_FromFormat("a char array of size %d is expected", size);
882 PyErr_SetObject(PyExc_TypeError, err);
883 Py_DECREF(err);
884 } else {
885 /* in C (but not in C++) you can do:
886
887 char x[5] = "hello";
888
889 ie, assing the array using an extra '0' char.
890 */
891 #ifndef __cplusplus
892 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
893 #endif
894 if (csize > size) {
895 PyObject *err =
896 PyString_FromFormat("a char array of maximum size %d is expected",
897 size);
898 PyErr_SetObject(PyExc_TypeError, err);
899 Py_DECREF(err);
900 } else {
901 if (csize) memcpy(carray, cptr, csize);
902 if (csize < size) memset(carray + csize, 0, size - csize);
903 }
904 }
905 }
906
907
908 SWIGSTATICINLINE(char)
909 SWIG_AsChar(PyObject *obj)
910 {
911 char c = 0;
912 if (PyInt_Check(obj) || PyLong_Check(obj)) {
913 c = swig_numeric_cast(char,
914 SWIG_CheckLongInRange(SWIG_AsLong(obj),
915 "char", CHAR_MIN, CHAR_MAX));
916 } else {
917 SWIG_AsCharArray(obj, &c, 1);
918 if (PyErr_Occurred()) {
919 PyErr_Clear();
920 PyErr_SetString(PyExc_TypeError, "a char is expected");
921 }
922 }
923 return c;
924 }
925
926
927 SWIGSTATICINLINE(int)
928 SWIG_CheckChar(PyObject* obj)
929 {
930 SWIG_AsChar(obj);
931 if (PyErr_Occurred()) {
932 PyErr_Clear();
933 return 0;
934 } else {
935 return 1;
936 }
937 }
938
939 void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
940 // We use only strings for the streams, not unicode
941 PyObject* str = PyObject_Str(obj);
942 if (! str) {
943 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
944 return;
945 }
946 self->Write(PyString_AS_STRING(str),
947 PyString_GET_SIZE(str));
948 Py_DECREF(str);
949 }
950
951 #include "wx/wxPython/pyistream.h"
952
953
954 class wxPyFileSystemHandler : public wxFileSystemHandler
955 {
956 public:
957 wxPyFileSystemHandler() : wxFileSystemHandler() {}
958
959 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
960 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
961 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
962 DEC_PYCALLBACK_STRING__pure(FindNext);
963
964 wxString GetProtocol(const wxString& location) {
965 return wxFileSystemHandler::GetProtocol(location);
966 }
967
968 wxString GetLeftLocation(const wxString& location) {
969 return wxFileSystemHandler::GetLeftLocation(location);
970 }
971
972 wxString GetAnchor(const wxString& location) {
973 return wxFileSystemHandler::GetAnchor(location);
974 }
975
976 wxString GetRightLocation(const wxString& location) {
977 return wxFileSystemHandler::GetRightLocation(location);
978 }
979
980 wxString GetMimeTypeFromExt(const wxString& location) {
981 return wxFileSystemHandler::GetMimeTypeFromExt(location);
982 }
983
984 PYPRIVATE;
985 };
986
987
988 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
989 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
990 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
991 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
992
993
994 SWIGSTATICINLINE(bool)
995 SWIG_AsBool(PyObject *obj)
996 {
997 return PyObject_IsTrue(obj) ? true : false;
998 }
999
1000
1001 SWIGSTATICINLINE(int)
1002 SWIG_CheckBool(PyObject* obj)
1003 {
1004 SWIG_AsBool(obj);
1005 if (PyErr_Occurred()) {
1006 PyErr_Clear();
1007 return 0;
1008 } else {
1009 return 1;
1010 }
1011 }
1012
1013
1014 wxString wxFileSystem_URLToFileName(const wxString& url) {
1015 wxFileName fname = wxFileSystem::URLToFileName(url);
1016 return fname.GetFullPath();
1017 }
1018
1019
1020 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1021 wxImage& image,
1022 long type) {
1023 wxMemoryFSHandler::AddFile(filename, image, type);
1024 }
1025
1026 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1027 const wxBitmap& bitmap,
1028 long type) {
1029 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1030 }
1031
1032 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1033 PyObject* data) {
1034 wxMemoryFSHandler::AddFile(filename,
1035 // TODO: Verify data type
1036 (void*)PyString_AsString(data),
1037 (size_t)PyString_Size(data));
1038 }
1039
1040
1041 #include "wx/wxPython/pyistream.h"
1042
1043
1044 SWIGSTATICINLINE(unsigned long)
1045 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
1046 unsigned long max_value)
1047 {
1048 if (!PyErr_Occurred()) {
1049 if (value > max_value) {
1050 PyObject *err =
1051 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
1052 value, type, max_value);
1053 PyErr_SetObject(PyExc_OverflowError, err);
1054 Py_DECREF(err);
1055 }
1056 }
1057 return value;
1058 }
1059
1060
1061 SWIGSTATICINLINE(unsigned long)
1062 SWIG_AsUnsignedLong(PyObject * obj)
1063 {
1064 if (PyLong_Check(obj)) {
1065 return PyLong_AsUnsignedLong(obj);
1066 } else {
1067 long i = SWIG_AsLong(obj);
1068 if ( !PyErr_Occurred() && (i < 0)) {
1069 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1070 }
1071 return i;
1072 }
1073 }
1074
1075
1076 SWIGSTATICINLINE(unsigned char)
1077 SWIG_AsUnsignedChar(PyObject *obj)
1078 {
1079 return swig_numeric_cast(unsigned char,
1080 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1081 "unsigned char", UCHAR_MAX));
1082 }
1083
1084
1085 SWIGSTATICINLINE(int)
1086 SWIG_CheckUnsignedChar(PyObject* obj)
1087 {
1088 SWIG_AsUnsignedChar(obj);
1089 if (PyErr_Occurred()) {
1090 PyErr_Clear();
1091 return 0;
1092 } else {
1093 return 1;
1094 }
1095 }
1096
1097 wxImage *new_wxImage(int width,int height,bool clear){
1098 if (width > 0 && height > 0)
1099 return new wxImage(width, height, clear);
1100 else
1101 return new wxImage;
1102 }
1103 wxImage *new_wxImage(wxBitmap const &bitmap){
1104 return new wxImage(bitmap.ConvertToImage());
1105 }
1106 wxImage *new_wxImage(int width,int height,unsigned char *data){
1107 // Copy the source data so the wxImage can clean it up later
1108 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1109 if (copy == NULL) {
1110 PyErr_NoMemory();
1111 return NULL;
1112 }
1113 memcpy(copy, data, width*height*3);
1114 return new wxImage(width, height, copy, False);
1115 }
1116 wxSize wxImage_GetSize(wxImage *self){
1117 wxSize size(self->GetWidth(), self->GetHeight());
1118 return size;
1119 }
1120 PyObject *wxImage_GetData(wxImage *self){
1121 unsigned char* data = self->GetData();
1122 int len = self->GetWidth() * self->GetHeight() * 3;
1123 PyObject* rv;
1124 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1125 return rv;
1126 }
1127 void wxImage_SetData(wxImage *self,PyObject *data){
1128 unsigned char* dataPtr;
1129
1130 if (! PyString_Check(data)) {
1131 PyErr_SetString(PyExc_TypeError, "Expected string object");
1132 return /* NULL */ ;
1133 }
1134
1135 size_t len = self->GetWidth() * self->GetHeight() * 3;
1136 dataPtr = (unsigned char*) malloc(len);
1137 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1138 self->SetData(dataPtr);
1139 // wxImage takes ownership of dataPtr...
1140 }
1141 PyObject *wxImage_GetDataBuffer(wxImage *self){
1142 unsigned char* data = self->GetData();
1143 int len = self->GetWidth() * self->GetHeight() * 3;
1144 PyObject* rv;
1145 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1146 return rv;
1147 }
1148 void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1149 unsigned char* buffer;
1150 int size;
1151
1152 bool blocked = wxPyBeginBlockThreads();
1153 if (!PyArg_Parse(data, "t#", &buffer, &size))
1154 goto done;
1155
1156 if (size != self->GetWidth() * self->GetHeight() * 3) {
1157 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1158 goto done;
1159 }
1160 self->SetData(buffer);
1161 done:
1162 wxPyEndBlockThreads(blocked);
1163 }
1164 PyObject *wxImage_GetAlphaData(wxImage *self){
1165 unsigned char* data = self->GetAlpha();
1166 if (! data) {
1167 RETURN_NONE();
1168 } else {
1169 int len = self->GetWidth() * self->GetHeight();
1170 PyObject* rv;
1171 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1172 return rv;
1173 }
1174 }
1175 void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1176 unsigned char* dataPtr;
1177
1178 if (! PyString_Check(data)) {
1179 PyErr_SetString(PyExc_TypeError, "Expected string object");
1180 return /* NULL */ ;
1181 }
1182
1183 size_t len = self->GetWidth() * self->GetHeight();
1184 dataPtr = (unsigned char*) malloc(len);
1185 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1186 self->SetAlpha(dataPtr);
1187 // wxImage takes ownership of dataPtr...
1188 }
1189 PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1190 unsigned char* data = self->GetAlpha();
1191 int len = self->GetWidth() * self->GetHeight();
1192 PyObject* rv;
1193 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1194 return rv;
1195 }
1196 void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1197 unsigned char* buffer;
1198 int size;
1199
1200 bool blocked = wxPyBeginBlockThreads();
1201 if (!PyArg_Parse(data, "t#", &buffer, &size))
1202 goto done;
1203
1204 if (size != self->GetWidth() * self->GetHeight()) {
1205 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1206 goto done;
1207 }
1208 self->SetAlpha(buffer);
1209 done:
1210 wxPyEndBlockThreads(blocked);
1211 }
1212
1213 SWIGSTATICINLINE(int)
1214 SWIG_CheckUnsignedLong(PyObject* obj)
1215 {
1216 SWIG_AsUnsignedLong(obj);
1217 if (PyErr_Occurred()) {
1218 PyErr_Clear();
1219 return 0;
1220 } else {
1221 return 1;
1222 }
1223 }
1224
1225 wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1226 wxBitmap bitmap(*self);
1227 return bitmap;
1228 }
1229 wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1230 wxImage mono = self->ConvertToMono( red, green, blue );
1231 wxBitmap bitmap( mono, 1 );
1232 return bitmap;
1233 }
1234 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1235 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1236 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1237 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1238 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1239 void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1240 if (PyCallable_Check(func)) {
1241 self->Connect(id, lastId, eventType,
1242 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1243 new wxPyCallback(func));
1244 }
1245 else if (func == Py_None) {
1246 self->Disconnect(id, lastId, eventType,
1247 (wxObjectEventFunction)
1248 &wxPyCallback::EventThunker);
1249 }
1250 else {
1251 wxPyBLOCK_THREADS(
1252 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1253 }
1254 }
1255 bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1256 return self->Disconnect(id, lastId, eventType,
1257 (wxObjectEventFunction)
1258 &wxPyCallback::EventThunker);
1259 }
1260 void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1261 if (_self && _self != Py_None) {
1262 self->SetClientObject(new wxPyOORClientData(_self));
1263 }
1264 else {
1265 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1266 if (data) {
1267 self->SetClientObject(NULL); // This will delete it too
1268 }
1269 }
1270 }
1271 int wxKeyEvent_GetUniChar(wxKeyEvent *self){
1272 #if wxUSE_UNICODE
1273 return self->m_uniChar;
1274 #else
1275 return 0;
1276 #endif
1277 }
1278
1279 #if UINT_MAX < LONG_MAX
1280 #define SWIG_FromUnsignedInt SWIG_FromLong
1281 #else
1282 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1283 #endif
1284
1285
1286 #if UINT_MAX != ULONG_MAX
1287 SWIGSTATICINLINE(unsigned int)
1288 SWIG_AsUnsignedInt(PyObject *obj)
1289 {
1290 return swig_numeric_cast(unsigned int,
1291 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1292 "unsigned int", UINT_MAX));
1293 }
1294 #else
1295 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
1296 #endif
1297
1298
1299 SWIGSTATICINLINE(int)
1300 SWIG_CheckUnsignedInt(PyObject* obj)
1301 {
1302 SWIG_AsUnsignedInt(obj);
1303 if (PyErr_Occurred()) {
1304 PyErr_Clear();
1305 return 0;
1306 } else {
1307 return 1;
1308 }
1309 }
1310
1311 void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1312 self->m_size = size;
1313 }
1314 void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1315 self->m_pos = pos;
1316 }
1317 PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1318 int count = self->GetNumberOfFiles();
1319 wxString* files = self->GetFiles();
1320 PyObject* list = PyList_New(count);
1321
1322 if (!list) {
1323 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1324 return NULL;
1325 }
1326
1327 for (int i=0; i<count; i++) {
1328 PyList_SetItem(list, i, wx2PyString(files[i]));
1329 }
1330 return list;
1331 }
1332
1333
1334 wxPyApp *new_wxPyApp(){
1335 wxPythonApp = new wxPyApp();
1336 return wxPythonApp;
1337 }
1338 int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
1339
1340 void wxApp_CleanUp() {
1341 __wxPyCleanup();
1342 }
1343
1344
1345 wxPyApp* wxGetApp() {
1346 return (wxPyApp*)wxTheApp;
1347 }
1348
1349
1350
1351 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1352 wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
1353 void delete_wxVisualAttributes(wxVisualAttributes *self){}
1354 PyObject *wxWindow_GetChildren(wxWindow *self){
1355 wxWindowList& list = self->GetChildren();
1356 return wxPy_ConvertList(&list);
1357 }
1358 bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1359 #if wxUSE_HOTKEY
1360 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
1361 #else
1362 return False;
1363 #endif
1364 }
1365 bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1366
1367
1368
1369 return False;
1370
1371 }
1372 long wxWindow_GetHandle(wxWindow *self){
1373 return wxPyGetWinHandle(self);
1374 }
1375
1376 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1377 return wxWindow::FindWindowById(id, parent);
1378 }
1379
1380 wxWindow* wxFindWindowByName( const wxString& name,
1381 const wxWindow *parent = NULL ) {
1382 return wxWindow::FindWindowByName(name, parent);
1383 }
1384
1385 wxWindow* wxFindWindowByLabel( const wxString& label,
1386 const wxWindow *parent = NULL ) {
1387 return wxWindow::FindWindowByLabel(label, parent);
1388 }
1389
1390
1391 #ifdef __WXMSW__
1392 #include <wx/msw/private.h> // to get wxGetWindowId
1393 #endif
1394
1395
1396 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
1397 #ifdef __WXMSW__
1398 WXHWND hWnd = (WXHWND)_hWnd;
1399 long id = wxGetWindowId(hWnd);
1400 wxWindow* win = new wxWindow;
1401 parent->AddChild(win);
1402 win->SetEventHandler(win);
1403 win->SetHWND(hWnd);
1404 win->SetId(id);
1405 win->SubclassWin(hWnd);
1406 win->AdoptAttributesFromHWND();
1407 win->SetupColours();
1408 return win;
1409 #else
1410 wxPyRaiseNotImplemented();
1411 return NULL;
1412 #endif
1413 }
1414
1415
1416 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1417 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1418 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1419
1420 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1421
1422 void wxMenu_Destroy(wxMenu *self){ delete self; }
1423 PyObject *wxMenu_GetMenuItems(wxMenu *self){
1424 wxMenuItemList& list = self->GetMenuItems();
1425 return wxPy_ConvertList(&list);
1426 }
1427 int MenuItem_GetDefaultMarginWidth(){ return 0; }
1428 static const wxString wxPyControlNameStr(wxControlNameStr);
1429 int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1430 if (clientData) {
1431 wxPyClientData* data = new wxPyClientData(clientData);
1432 return self->Append(item, data);
1433 } else
1434 return self->Append(item);
1435 }
1436 int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1437 if (clientData) {
1438 wxPyClientData* data = new wxPyClientData(clientData);
1439 return self->Insert(item, pos, data);
1440 } else
1441 return self->Insert(item, pos);
1442 }
1443 PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1444 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1445 if (data) {
1446 Py_INCREF(data->m_obj);
1447 return data->m_obj;
1448 } else {
1449 Py_INCREF(Py_None);
1450 return Py_None;
1451 }
1452 }
1453 void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1454 wxPyClientData* data = new wxPyClientData(clientData);
1455 self->SetClientObject(n, data);
1456 }
1457
1458
1459
1460 #include <float.h>
1461
1462 SWIGSTATIC(float)
1463 SWIG_FloatCast(double value)
1464 {
1465 float f = 0;
1466 if (!PyErr_Occurred()) {
1467 if (value < FLT_MIN) {
1468 PyObject *err =
1469 PyString_FromFormat("value %g is less than float minimum %g",
1470 value, FLT_MIN);
1471 PyErr_SetObject(PyExc_OverflowError, err);
1472 Py_DECREF(err);
1473 } else if (value > FLT_MAX) {
1474 PyObject *err =
1475 PyString_FromFormat("value %g is greater than float maximum %g",
1476 value, FLT_MAX);
1477 PyErr_SetObject(PyExc_OverflowError, err);
1478 Py_DECREF(err);
1479 } else {
1480 f = swig_numeric_cast(float, value);
1481 }
1482 }
1483 return f;
1484 }
1485
1486
1487 SWIGSTATICINLINE(float)
1488 SWIG_AsFloat(PyObject *obj)
1489 {
1490 return SWIG_FloatCast(SWIG_AsDouble(obj));
1491 }
1492
1493
1494 SWIGSTATICINLINE(int)
1495 SWIG_CheckFloat(PyObject* obj)
1496 {
1497 SWIG_AsFloat(obj);
1498 if (PyErr_Occurred()) {
1499 PyErr_Clear();
1500 return 0;
1501 } else {
1502 return 1;
1503 }
1504 }
1505
1506 PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1507 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1508 if (data) {
1509 Py_INCREF(data->m_obj);
1510 return data->m_obj;
1511 } else {
1512 Py_INCREF(Py_None);
1513 return Py_None;
1514 }
1515 }
1516
1517 // Figure out the type of the sizer item
1518
1519 struct wxPySizerItemInfo {
1520 wxPySizerItemInfo()
1521 : window(NULL), sizer(NULL), gotSize(False),
1522 size(wxDefaultSize), gotPos(False), pos(-1)
1523 {}
1524
1525 wxWindow* window;
1526 wxSizer* sizer;
1527 bool gotSize;
1528 wxSize size;
1529 bool gotPos;
1530 int pos;
1531 };
1532
1533 static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1534
1535 wxPySizerItemInfo info;
1536 wxSize size;
1537 wxSize* sizePtr = &size;
1538
1539 // Find out what the type of the item is
1540 // try wxWindow
1541 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1542 PyErr_Clear();
1543 info.window = NULL;
1544
1545 // try wxSizer
1546 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1547 PyErr_Clear();
1548 info.sizer = NULL;
1549
1550 // try wxSize or (w,h)
1551 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1552 info.size = *sizePtr;
1553 info.gotSize = True;
1554 }
1555
1556 // or a single int
1557 if (checkIdx && PyInt_Check(item)) {
1558 info.pos = PyInt_AsLong(item);
1559 info.gotPos = True;
1560 }
1561 }
1562 }
1563
1564 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1565 // no expected type, figure out what kind of error message to generate
1566 if ( !checkSize && !checkIdx )
1567 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1568 else if ( checkSize && !checkIdx )
1569 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1570 else if ( !checkSize && checkIdx)
1571 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1572 else
1573 // can this one happen?
1574 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1575 }
1576
1577 return info;
1578 }
1579
1580 void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1581 self->SetClientObject(new wxPyOORClientData(_self));
1582 }
1583 void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1584
1585 wxPyUserData* data = NULL;
1586 bool blocked = wxPyBeginBlockThreads();
1587 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1588 if ( userData && (info.window || info.sizer || info.gotSize) )
1589 data = new wxPyUserData(userData);
1590 wxPyEndBlockThreads(blocked);
1591
1592 // Now call the real Add method if a valid item type was found
1593 if ( info.window )
1594 self->Add(info.window, proportion, flag, border, data);
1595 else if ( info.sizer )
1596 self->Add(info.sizer, proportion, flag, border, data);
1597 else if (info.gotSize)
1598 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1599 proportion, flag, border, data);
1600 }
1601 void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1602
1603 wxPyUserData* data = NULL;
1604 bool blocked = wxPyBeginBlockThreads();
1605 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1606 if ( userData && (info.window || info.sizer || info.gotSize) )
1607 data = new wxPyUserData(userData);
1608 wxPyEndBlockThreads(blocked);
1609
1610 // Now call the real Insert method if a valid item type was found
1611 if ( info.window )
1612 self->Insert(before, info.window, proportion, flag, border, data);
1613 else if ( info.sizer )
1614 self->Insert(before, info.sizer, proportion, flag, border, data);
1615 else if (info.gotSize)
1616 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1617 proportion, flag, border, data);
1618 }
1619 void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1620
1621 wxPyUserData* data = NULL;
1622 bool blocked = wxPyBeginBlockThreads();
1623 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1624 if ( userData && (info.window || info.sizer || info.gotSize) )
1625 data = new wxPyUserData(userData);
1626 wxPyEndBlockThreads(blocked);
1627
1628 // Now call the real Prepend method if a valid item type was found
1629 if ( info.window )
1630 self->Prepend(info.window, proportion, flag, border, data);
1631 else if ( info.sizer )
1632 self->Prepend(info.sizer, proportion, flag, border, data);
1633 else if (info.gotSize)
1634 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1635 proportion, flag, border, data);
1636 }
1637 bool wxSizer_Remove(wxSizer *self,PyObject *item){
1638 bool blocked = wxPyBeginBlockThreads();
1639 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1640 wxPyEndBlockThreads(blocked);
1641 if ( info.window )
1642 return self->Remove(info.window);
1643 else if ( info.sizer )
1644 return self->Remove(info.sizer);
1645 else if ( info.gotPos )
1646 return self->Remove(info.pos);
1647 else
1648 return False;
1649 }
1650 void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1651 bool blocked = wxPyBeginBlockThreads();
1652 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1653 wxPyEndBlockThreads(blocked);
1654 if ( info.window )
1655 self->SetItemMinSize(info.window, size);
1656 else if ( info.sizer )
1657 self->SetItemMinSize(info.sizer, size);
1658 else if ( info.gotPos )
1659 self->SetItemMinSize(info.pos, size);
1660 }
1661 PyObject *wxSizer_GetChildren(wxSizer *self){
1662 wxSizerItemList& list = self->GetChildren();
1663 return wxPy_ConvertList(&list);
1664 }
1665 void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
1666 bool blocked = wxPyBeginBlockThreads();
1667 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1668 wxPyEndBlockThreads(blocked);
1669 if ( info.window )
1670 self->Show(info.window, show);
1671 else if ( info.sizer )
1672 self->Show(info.sizer, show);
1673 }
1674 void wxSizer_Hide(wxSizer *self,PyObject *item){
1675 bool blocked = wxPyBeginBlockThreads();
1676 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1677 wxPyEndBlockThreads(blocked);
1678 if ( info.window )
1679 self->Hide(info.window);
1680 else if ( info.sizer )
1681 self->Hide(info.sizer);
1682 }
1683 bool wxSizer_IsShown(wxSizer *self,PyObject *item){
1684 bool blocked = wxPyBeginBlockThreads();
1685 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1686 wxPyEndBlockThreads(blocked);
1687 if ( info.window )
1688 return self->IsShown(info.window);
1689 else if ( info.sizer )
1690 return self->IsShown(info.sizer);
1691 else
1692 return False;
1693 }
1694
1695 // See pyclasses.h
1696 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1697 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1698 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1699
1700
1701
1702
1703 bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1704 {
1705 if (source == Py_None) {
1706 **obj = wxGBPosition(-1,-1);
1707 return True;
1708 }
1709 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1710 }
1711
1712 bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1713 {
1714 if (source == Py_None) {
1715 **obj = wxGBSpan(-1,-1);
1716 return True;
1717 }
1718 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1719 }
1720
1721
1722 void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1723 self->SetRow(row);
1724 self->SetCol(col);
1725 }
1726 PyObject *wxGBPosition_Get(wxGBPosition *self){
1727 bool blocked = wxPyBeginBlockThreads();
1728 PyObject* tup = PyTuple_New(2);
1729 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1730 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1731 wxPyEndBlockThreads(blocked);
1732 return tup;
1733 }
1734 void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1735 self->SetRowspan(rowspan);
1736 self->SetColspan(colspan);
1737 }
1738 PyObject *wxGBSpan_Get(wxGBSpan *self){
1739 bool blocked = wxPyBeginBlockThreads();
1740 PyObject* tup = PyTuple_New(2);
1741 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1742 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1743 wxPyEndBlockThreads(blocked);
1744 return tup;
1745 }
1746 bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1747
1748 wxPyUserData* data = NULL;
1749 bool blocked = wxPyBeginBlockThreads();
1750 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1751 if ( userData && (info.window || info.sizer || info.gotSize) )
1752 data = new wxPyUserData(userData);
1753 wxPyEndBlockThreads(blocked);
1754
1755 // Now call the real Add method if a valid item type was found
1756 if ( info.window )
1757 return self->Add(info.window, pos, span, flag, border, data);
1758 else if ( info.sizer )
1759 return self->Add(info.sizer, pos, span, flag, border, data);
1760 else if (info.gotSize)
1761 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1762 pos, span, flag, border, data);
1763 return False;
1764 }
1765
1766
1767 #ifdef __cplusplus
1768 extern "C" {
1769 #endif
1770 static int _wrap_EmptyString_set(PyObject *_val) {
1771 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1772 return 1;
1773 }
1774
1775
1776 static PyObject *_wrap_EmptyString_get() {
1777 PyObject *pyobj;
1778
1779 {
1780 #if wxUSE_UNICODE
1781 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1782 #else
1783 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1784 #endif
1785 }
1786 return pyobj;
1787 }
1788
1789
1790 static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1791 PyObject *resultobj;
1792 wxObject *arg1 = (wxObject *) 0 ;
1793 wxString result;
1794 PyObject * obj0 = 0 ;
1795 char *kwnames[] = {
1796 (char *) "self", NULL
1797 };
1798
1799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1802 {
1803 PyThreadState* __tstate = wxPyBeginAllowThreads();
1804 result = wxObject_GetClassName(arg1);
1805
1806 wxPyEndAllowThreads(__tstate);
1807 if (PyErr_Occurred()) SWIG_fail;
1808 }
1809 {
1810 #if wxUSE_UNICODE
1811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1812 #else
1813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1814 #endif
1815 }
1816 return resultobj;
1817 fail:
1818 return NULL;
1819 }
1820
1821
1822 static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1823 PyObject *resultobj;
1824 wxObject *arg1 = (wxObject *) 0 ;
1825 PyObject * obj0 = 0 ;
1826 char *kwnames[] = {
1827 (char *) "self", NULL
1828 };
1829
1830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1833 {
1834 PyThreadState* __tstate = wxPyBeginAllowThreads();
1835 wxObject_Destroy(arg1);
1836
1837 wxPyEndAllowThreads(__tstate);
1838 if (PyErr_Occurred()) SWIG_fail;
1839 }
1840 Py_INCREF(Py_None); resultobj = Py_None;
1841 return resultobj;
1842 fail:
1843 return NULL;
1844 }
1845
1846
1847 static PyObject * Object_swigregister(PyObject *self, PyObject *args) {
1848 PyObject *obj;
1849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1850 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1851 Py_INCREF(obj);
1852 return Py_BuildValue((char *)"");
1853 }
1854 static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1855 PyObject *resultobj;
1856 wxSize *arg1 = (wxSize *) 0 ;
1857 int arg2 ;
1858 PyObject * obj0 = 0 ;
1859 PyObject * obj1 = 0 ;
1860 char *kwnames[] = {
1861 (char *) "self",(char *) "x", NULL
1862 };
1863
1864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
1865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1867 arg2 = (int) SWIG_AsInt(obj1);
1868 if (PyErr_Occurred()) SWIG_fail;
1869 if (arg1) (arg1)->x = arg2;
1870
1871 Py_INCREF(Py_None); resultobj = Py_None;
1872 return resultobj;
1873 fail:
1874 return NULL;
1875 }
1876
1877
1878 static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxSize *arg1 = (wxSize *) 0 ;
1881 int result;
1882 PyObject * obj0 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1890 result = (int) ((arg1)->x);
1891
1892 resultobj = SWIG_FromInt((int)result);
1893 return resultobj;
1894 fail:
1895 return NULL;
1896 }
1897
1898
1899 static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1900 PyObject *resultobj;
1901 wxSize *arg1 = (wxSize *) 0 ;
1902 int arg2 ;
1903 PyObject * obj0 = 0 ;
1904 PyObject * obj1 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self",(char *) "y", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1912 arg2 = (int) SWIG_AsInt(obj1);
1913 if (PyErr_Occurred()) SWIG_fail;
1914 if (arg1) (arg1)->y = arg2;
1915
1916 Py_INCREF(Py_None); resultobj = Py_None;
1917 return resultobj;
1918 fail:
1919 return NULL;
1920 }
1921
1922
1923 static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1924 PyObject *resultobj;
1925 wxSize *arg1 = (wxSize *) 0 ;
1926 int result;
1927 PyObject * obj0 = 0 ;
1928 char *kwnames[] = {
1929 (char *) "self", NULL
1930 };
1931
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
1933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1935 result = (int) ((arg1)->y);
1936
1937 resultobj = SWIG_FromInt((int)result);
1938 return resultobj;
1939 fail:
1940 return NULL;
1941 }
1942
1943
1944 static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1945 PyObject *resultobj;
1946 int arg1 = (int) 0 ;
1947 int arg2 = (int) 0 ;
1948 wxSize *result;
1949 PyObject * obj0 = 0 ;
1950 PyObject * obj1 = 0 ;
1951 char *kwnames[] = {
1952 (char *) "w",(char *) "h", NULL
1953 };
1954
1955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
1956 if (obj0) {
1957 arg1 = (int) SWIG_AsInt(obj0);
1958 if (PyErr_Occurred()) SWIG_fail;
1959 }
1960 if (obj1) {
1961 arg2 = (int) SWIG_AsInt(obj1);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
1964 {
1965 PyThreadState* __tstate = wxPyBeginAllowThreads();
1966 result = (wxSize *)new wxSize(arg1,arg2);
1967
1968 wxPyEndAllowThreads(__tstate);
1969 if (PyErr_Occurred()) SWIG_fail;
1970 }
1971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
1972 return resultobj;
1973 fail:
1974 return NULL;
1975 }
1976
1977
1978 static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject *resultobj;
1980 wxSize *arg1 = (wxSize *) 0 ;
1981 PyObject * obj0 = 0 ;
1982 char *kwnames[] = {
1983 (char *) "self", NULL
1984 };
1985
1986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
1987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 delete arg1;
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 Py_INCREF(Py_None); resultobj = Py_None;
1997 return resultobj;
1998 fail:
1999 return NULL;
2000 }
2001
2002
2003 static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2004 PyObject *resultobj;
2005 wxSize *arg1 = (wxSize *) 0 ;
2006 wxSize *arg2 = 0 ;
2007 bool result;
2008 wxSize temp2 ;
2009 PyObject * obj0 = 0 ;
2010 PyObject * obj1 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "self",(char *) "sz", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2018 {
2019 arg2 = &temp2;
2020 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2021 }
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 {
2030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2031 }
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxSize *arg1 = (wxSize *) 0 ;
2041 wxSize *arg2 = 0 ;
2042 bool result;
2043 wxSize temp2 ;
2044 PyObject * obj0 = 0 ;
2045 PyObject * obj1 = 0 ;
2046 char *kwnames[] = {
2047 (char *) "self",(char *) "sz", NULL
2048 };
2049
2050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2053 {
2054 arg2 = &temp2;
2055 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2056 }
2057 {
2058 PyThreadState* __tstate = wxPyBeginAllowThreads();
2059 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2060
2061 wxPyEndAllowThreads(__tstate);
2062 if (PyErr_Occurred()) SWIG_fail;
2063 }
2064 {
2065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2066 }
2067 return resultobj;
2068 fail:
2069 return NULL;
2070 }
2071
2072
2073 static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2074 PyObject *resultobj;
2075 wxSize *arg1 = (wxSize *) 0 ;
2076 wxSize *arg2 = 0 ;
2077 wxSize result;
2078 wxSize temp2 ;
2079 PyObject * obj0 = 0 ;
2080 PyObject * obj1 = 0 ;
2081 char *kwnames[] = {
2082 (char *) "self",(char *) "sz", NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2088 {
2089 arg2 = &temp2;
2090 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2091 }
2092 {
2093 PyThreadState* __tstate = wxPyBeginAllowThreads();
2094 result = (arg1)->operator +((wxSize const &)*arg2);
2095
2096 wxPyEndAllowThreads(__tstate);
2097 if (PyErr_Occurred()) SWIG_fail;
2098 }
2099 {
2100 wxSize * resultptr;
2101 resultptr = new wxSize((wxSize &) result);
2102 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2103 }
2104 return resultobj;
2105 fail:
2106 return NULL;
2107 }
2108
2109
2110 static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2111 PyObject *resultobj;
2112 wxSize *arg1 = (wxSize *) 0 ;
2113 wxSize *arg2 = 0 ;
2114 wxSize result;
2115 wxSize temp2 ;
2116 PyObject * obj0 = 0 ;
2117 PyObject * obj1 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "sz", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2125 {
2126 arg2 = &temp2;
2127 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2128 }
2129 {
2130 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131 result = (arg1)->operator -((wxSize const &)*arg2);
2132
2133 wxPyEndAllowThreads(__tstate);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 }
2136 {
2137 wxSize * resultptr;
2138 resultptr = new wxSize((wxSize &) result);
2139 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2140 }
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 wxSize *arg1 = (wxSize *) 0 ;
2150 wxSize *arg2 = 0 ;
2151 wxSize temp2 ;
2152 PyObject * obj0 = 0 ;
2153 PyObject * obj1 = 0 ;
2154 char *kwnames[] = {
2155 (char *) "self",(char *) "sz", NULL
2156 };
2157
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2161 {
2162 arg2 = &temp2;
2163 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2164 }
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->IncTo((wxSize const &)*arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxSize *arg1 = (wxSize *) 0 ;
2182 wxSize *arg2 = 0 ;
2183 wxSize temp2 ;
2184 PyObject * obj0 = 0 ;
2185 PyObject * obj1 = 0 ;
2186 char *kwnames[] = {
2187 (char *) "self",(char *) "sz", NULL
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2193 {
2194 arg2 = &temp2;
2195 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2196 }
2197 {
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 (arg1)->DecTo((wxSize const &)*arg2);
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) SWIG_fail;
2203 }
2204 Py_INCREF(Py_None); resultobj = Py_None;
2205 return resultobj;
2206 fail:
2207 return NULL;
2208 }
2209
2210
2211 static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 wxSize *arg1 = (wxSize *) 0 ;
2214 int arg2 ;
2215 int arg3 ;
2216 PyObject * obj0 = 0 ;
2217 PyObject * obj1 = 0 ;
2218 PyObject * obj2 = 0 ;
2219 char *kwnames[] = {
2220 (char *) "self",(char *) "w",(char *) "h", NULL
2221 };
2222
2223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2226 arg2 = (int) SWIG_AsInt(obj1);
2227 if (PyErr_Occurred()) SWIG_fail;
2228 arg3 = (int) SWIG_AsInt(obj2);
2229 if (PyErr_Occurred()) SWIG_fail;
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 (arg1)->Set(arg2,arg3);
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 Py_INCREF(Py_None); resultobj = Py_None;
2238 return resultobj;
2239 fail:
2240 return NULL;
2241 }
2242
2243
2244 static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxSize *arg1 = (wxSize *) 0 ;
2247 int arg2 ;
2248 PyObject * obj0 = 0 ;
2249 PyObject * obj1 = 0 ;
2250 char *kwnames[] = {
2251 (char *) "self",(char *) "w", NULL
2252 };
2253
2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2257 arg2 = (int) SWIG_AsInt(obj1);
2258 if (PyErr_Occurred()) SWIG_fail;
2259 {
2260 PyThreadState* __tstate = wxPyBeginAllowThreads();
2261 (arg1)->SetWidth(arg2);
2262
2263 wxPyEndAllowThreads(__tstate);
2264 if (PyErr_Occurred()) SWIG_fail;
2265 }
2266 Py_INCREF(Py_None); resultobj = Py_None;
2267 return resultobj;
2268 fail:
2269 return NULL;
2270 }
2271
2272
2273 static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2274 PyObject *resultobj;
2275 wxSize *arg1 = (wxSize *) 0 ;
2276 int arg2 ;
2277 PyObject * obj0 = 0 ;
2278 PyObject * obj1 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "self",(char *) "h", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2286 arg2 = (int) SWIG_AsInt(obj1);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 (arg1)->SetHeight(arg2);
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 Py_INCREF(Py_None); resultobj = Py_None;
2296 return resultobj;
2297 fail:
2298 return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2303 PyObject *resultobj;
2304 wxSize *arg1 = (wxSize *) 0 ;
2305 int result;
2306 PyObject * obj0 = 0 ;
2307 char *kwnames[] = {
2308 (char *) "self", NULL
2309 };
2310
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2314 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 result = (int)((wxSize const *)arg1)->GetWidth();
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 }
2321 resultobj = SWIG_FromInt((int)result);
2322 return resultobj;
2323 fail:
2324 return NULL;
2325 }
2326
2327
2328 static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject *resultobj;
2330 wxSize *arg1 = (wxSize *) 0 ;
2331 int result;
2332 PyObject * obj0 = 0 ;
2333 char *kwnames[] = {
2334 (char *) "self", NULL
2335 };
2336
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2340 {
2341 PyThreadState* __tstate = wxPyBeginAllowThreads();
2342 result = (int)((wxSize const *)arg1)->GetHeight();
2343
2344 wxPyEndAllowThreads(__tstate);
2345 if (PyErr_Occurred()) SWIG_fail;
2346 }
2347 resultobj = SWIG_FromInt((int)result);
2348 return resultobj;
2349 fail:
2350 return NULL;
2351 }
2352
2353
2354 static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) {
2355 PyObject *resultobj;
2356 wxSize *arg1 = (wxSize *) 0 ;
2357 bool result;
2358 PyObject * obj0 = 0 ;
2359 char *kwnames[] = {
2360 (char *) "self", NULL
2361 };
2362
2363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2366 {
2367 PyThreadState* __tstate = wxPyBeginAllowThreads();
2368 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2369
2370 wxPyEndAllowThreads(__tstate);
2371 if (PyErr_Occurred()) SWIG_fail;
2372 }
2373 {
2374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2375 }
2376 return resultobj;
2377 fail:
2378 return NULL;
2379 }
2380
2381
2382 static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
2383 PyObject *resultobj;
2384 wxSize *arg1 = (wxSize *) 0 ;
2385 wxSize *arg2 = 0 ;
2386 wxSize temp2 ;
2387 PyObject * obj0 = 0 ;
2388 PyObject * obj1 = 0 ;
2389 char *kwnames[] = {
2390 (char *) "self",(char *) "size", NULL
2391 };
2392
2393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2396 {
2397 arg2 = &temp2;
2398 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2399 }
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 (arg1)->SetDefaults((wxSize const &)*arg2);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 Py_INCREF(Py_None); resultobj = Py_None;
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxSize *arg1 = (wxSize *) 0 ;
2417 PyObject *result;
2418 PyObject * obj0 = 0 ;
2419 char *kwnames[] = {
2420 (char *) "self", NULL
2421 };
2422
2423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 result = (PyObject *)wxSize_Get(arg1);
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 resultobj = result;
2434 return resultobj;
2435 fail:
2436 return NULL;
2437 }
2438
2439
2440 static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2441 PyObject *obj;
2442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2443 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2444 Py_INCREF(obj);
2445 return Py_BuildValue((char *)"");
2446 }
2447 static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2448 PyObject *resultobj;
2449 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2450 double arg2 ;
2451 PyObject * obj0 = 0 ;
2452 PyObject * obj1 = 0 ;
2453 char *kwnames[] = {
2454 (char *) "self",(char *) "x", NULL
2455 };
2456
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2460 arg2 = (double) SWIG_AsDouble(obj1);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 if (arg1) (arg1)->x = arg2;
2463
2464 Py_INCREF(Py_None); resultobj = Py_None;
2465 return resultobj;
2466 fail:
2467 return NULL;
2468 }
2469
2470
2471 static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2472 PyObject *resultobj;
2473 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2474 double result;
2475 PyObject * obj0 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "self", NULL
2478 };
2479
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2483 result = (double) ((arg1)->x);
2484
2485 resultobj = SWIG_FromDouble((double)result);
2486 return resultobj;
2487 fail:
2488 return NULL;
2489 }
2490
2491
2492 static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2493 PyObject *resultobj;
2494 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2495 double arg2 ;
2496 PyObject * obj0 = 0 ;
2497 PyObject * obj1 = 0 ;
2498 char *kwnames[] = {
2499 (char *) "self",(char *) "y", NULL
2500 };
2501
2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2505 arg2 = (double) SWIG_AsDouble(obj1);
2506 if (PyErr_Occurred()) SWIG_fail;
2507 if (arg1) (arg1)->y = arg2;
2508
2509 Py_INCREF(Py_None); resultobj = Py_None;
2510 return resultobj;
2511 fail:
2512 return NULL;
2513 }
2514
2515
2516 static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject *resultobj;
2518 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2519 double result;
2520 PyObject * obj0 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "self", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2528 result = (double) ((arg1)->y);
2529
2530 resultobj = SWIG_FromDouble((double)result);
2531 return resultobj;
2532 fail:
2533 return NULL;
2534 }
2535
2536
2537 static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 double arg1 = (double) 0.0 ;
2540 double arg2 = (double) 0.0 ;
2541 wxRealPoint *result;
2542 PyObject * obj0 = 0 ;
2543 PyObject * obj1 = 0 ;
2544 char *kwnames[] = {
2545 (char *) "x",(char *) "y", NULL
2546 };
2547
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2549 if (obj0) {
2550 arg1 = (double) SWIG_AsDouble(obj0);
2551 if (PyErr_Occurred()) SWIG_fail;
2552 }
2553 if (obj1) {
2554 arg2 = (double) SWIG_AsDouble(obj1);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 }
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 }
2564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2574 PyObject * obj0 = 0 ;
2575 char *kwnames[] = {
2576 (char *) "self", NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2582 {
2583 PyThreadState* __tstate = wxPyBeginAllowThreads();
2584 delete arg1;
2585
2586 wxPyEndAllowThreads(__tstate);
2587 if (PyErr_Occurred()) SWIG_fail;
2588 }
2589 Py_INCREF(Py_None); resultobj = Py_None;
2590 return resultobj;
2591 fail:
2592 return NULL;
2593 }
2594
2595
2596 static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2597 PyObject *resultobj;
2598 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2599 wxRealPoint *arg2 = 0 ;
2600 bool result;
2601 wxRealPoint temp2 ;
2602 PyObject * obj0 = 0 ;
2603 PyObject * obj1 = 0 ;
2604 char *kwnames[] = {
2605 (char *) "self",(char *) "pt", NULL
2606 };
2607
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2611 {
2612 arg2 = &temp2;
2613 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2614 }
2615 {
2616 PyThreadState* __tstate = wxPyBeginAllowThreads();
2617 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2618
2619 wxPyEndAllowThreads(__tstate);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 }
2622 {
2623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2624 }
2625 return resultobj;
2626 fail:
2627 return NULL;
2628 }
2629
2630
2631 static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2632 PyObject *resultobj;
2633 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2634 wxRealPoint *arg2 = 0 ;
2635 bool result;
2636 wxRealPoint temp2 ;
2637 PyObject * obj0 = 0 ;
2638 PyObject * obj1 = 0 ;
2639 char *kwnames[] = {
2640 (char *) "self",(char *) "pt", NULL
2641 };
2642
2643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2646 {
2647 arg2 = &temp2;
2648 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2649 }
2650 {
2651 PyThreadState* __tstate = wxPyBeginAllowThreads();
2652 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2653
2654 wxPyEndAllowThreads(__tstate);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 {
2658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2659 }
2660 return resultobj;
2661 fail:
2662 return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2667 PyObject *resultobj;
2668 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2669 wxRealPoint *arg2 = 0 ;
2670 wxRealPoint result;
2671 wxRealPoint temp2 ;
2672 PyObject * obj0 = 0 ;
2673 PyObject * obj1 = 0 ;
2674 char *kwnames[] = {
2675 (char *) "self",(char *) "pt", NULL
2676 };
2677
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2681 {
2682 arg2 = &temp2;
2683 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2684 }
2685 {
2686 PyThreadState* __tstate = wxPyBeginAllowThreads();
2687 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2688
2689 wxPyEndAllowThreads(__tstate);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 {
2693 wxRealPoint * resultptr;
2694 resultptr = new wxRealPoint((wxRealPoint &) result);
2695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2696 }
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2706 wxRealPoint *arg2 = 0 ;
2707 wxRealPoint result;
2708 wxRealPoint temp2 ;
2709 PyObject * obj0 = 0 ;
2710 PyObject * obj1 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "self",(char *) "pt", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2718 {
2719 arg2 = &temp2;
2720 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2721 }
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 result = (arg1)->operator -((wxRealPoint const &)*arg2);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) SWIG_fail;
2728 }
2729 {
2730 wxRealPoint * resultptr;
2731 resultptr = new wxRealPoint((wxRealPoint &) result);
2732 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2733 }
2734 return resultobj;
2735 fail:
2736 return NULL;
2737 }
2738
2739
2740 static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2741 PyObject *resultobj;
2742 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2743 double arg2 ;
2744 double arg3 ;
2745 PyObject * obj0 = 0 ;
2746 PyObject * obj1 = 0 ;
2747 PyObject * obj2 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "self",(char *) "x",(char *) "y", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2755 arg2 = (double) SWIG_AsDouble(obj1);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 arg3 = (double) SWIG_AsDouble(obj2);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 {
2760 PyThreadState* __tstate = wxPyBeginAllowThreads();
2761 wxRealPoint_Set(arg1,arg2,arg3);
2762
2763 wxPyEndAllowThreads(__tstate);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
2766 Py_INCREF(Py_None); resultobj = Py_None;
2767 return resultobj;
2768 fail:
2769 return NULL;
2770 }
2771
2772
2773 static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2774 PyObject *resultobj;
2775 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2776 PyObject *result;
2777 PyObject * obj0 = 0 ;
2778 char *kwnames[] = {
2779 (char *) "self", NULL
2780 };
2781
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
2783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 result = (PyObject *)wxRealPoint_Get(arg1);
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
2792 resultobj = result;
2793 return resultobj;
2794 fail:
2795 return NULL;
2796 }
2797
2798
2799 static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2800 PyObject *obj;
2801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2802 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2803 Py_INCREF(obj);
2804 return Py_BuildValue((char *)"");
2805 }
2806 static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 wxPoint *arg1 = (wxPoint *) 0 ;
2809 int arg2 ;
2810 PyObject * obj0 = 0 ;
2811 PyObject * obj1 = 0 ;
2812 char *kwnames[] = {
2813 (char *) "self",(char *) "x", NULL
2814 };
2815
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
2817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2819 arg2 = (int) SWIG_AsInt(obj1);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 if (arg1) (arg1)->x = arg2;
2822
2823 Py_INCREF(Py_None); resultobj = Py_None;
2824 return resultobj;
2825 fail:
2826 return NULL;
2827 }
2828
2829
2830 static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2831 PyObject *resultobj;
2832 wxPoint *arg1 = (wxPoint *) 0 ;
2833 int result;
2834 PyObject * obj0 = 0 ;
2835 char *kwnames[] = {
2836 (char *) "self", NULL
2837 };
2838
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2842 result = (int) ((arg1)->x);
2843
2844 resultobj = SWIG_FromInt((int)result);
2845 return resultobj;
2846 fail:
2847 return NULL;
2848 }
2849
2850
2851 static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2852 PyObject *resultobj;
2853 wxPoint *arg1 = (wxPoint *) 0 ;
2854 int arg2 ;
2855 PyObject * obj0 = 0 ;
2856 PyObject * obj1 = 0 ;
2857 char *kwnames[] = {
2858 (char *) "self",(char *) "y", NULL
2859 };
2860
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
2862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2864 arg2 = (int) SWIG_AsInt(obj1);
2865 if (PyErr_Occurred()) SWIG_fail;
2866 if (arg1) (arg1)->y = arg2;
2867
2868 Py_INCREF(Py_None); resultobj = Py_None;
2869 return resultobj;
2870 fail:
2871 return NULL;
2872 }
2873
2874
2875 static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2876 PyObject *resultobj;
2877 wxPoint *arg1 = (wxPoint *) 0 ;
2878 int result;
2879 PyObject * obj0 = 0 ;
2880 char *kwnames[] = {
2881 (char *) "self", NULL
2882 };
2883
2884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2887 result = (int) ((arg1)->y);
2888
2889 resultobj = SWIG_FromInt((int)result);
2890 return resultobj;
2891 fail:
2892 return NULL;
2893 }
2894
2895
2896 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2897 PyObject *resultobj;
2898 int arg1 = (int) 0 ;
2899 int arg2 = (int) 0 ;
2900 wxPoint *result;
2901 PyObject * obj0 = 0 ;
2902 PyObject * obj1 = 0 ;
2903 char *kwnames[] = {
2904 (char *) "x",(char *) "y", NULL
2905 };
2906
2907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2908 if (obj0) {
2909 arg1 = (int) SWIG_AsInt(obj0);
2910 if (PyErr_Occurred()) SWIG_fail;
2911 }
2912 if (obj1) {
2913 arg2 = (int) SWIG_AsInt(obj1);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 result = (wxPoint *)new wxPoint(arg1,arg2);
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
2924 return resultobj;
2925 fail:
2926 return NULL;
2927 }
2928
2929
2930 static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject *resultobj;
2932 wxPoint *arg1 = (wxPoint *) 0 ;
2933 PyObject * obj0 = 0 ;
2934 char *kwnames[] = {
2935 (char *) "self", NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
2939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2941 {
2942 PyThreadState* __tstate = wxPyBeginAllowThreads();
2943 delete arg1;
2944
2945 wxPyEndAllowThreads(__tstate);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 }
2948 Py_INCREF(Py_None); resultobj = Py_None;
2949 return resultobj;
2950 fail:
2951 return NULL;
2952 }
2953
2954
2955 static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2956 PyObject *resultobj;
2957 wxPoint *arg1 = (wxPoint *) 0 ;
2958 wxPoint *arg2 = 0 ;
2959 bool result;
2960 wxPoint temp2 ;
2961 PyObject * obj0 = 0 ;
2962 PyObject * obj1 = 0 ;
2963 char *kwnames[] = {
2964 (char *) "self",(char *) "pt", NULL
2965 };
2966
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
2968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2970 {
2971 arg2 = &temp2;
2972 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2973 }
2974 {
2975 PyThreadState* __tstate = wxPyBeginAllowThreads();
2976 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
2977
2978 wxPyEndAllowThreads(__tstate);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 }
2981 {
2982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2983 }
2984 return resultobj;
2985 fail:
2986 return NULL;
2987 }
2988
2989
2990 static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2991 PyObject *resultobj;
2992 wxPoint *arg1 = (wxPoint *) 0 ;
2993 wxPoint *arg2 = 0 ;
2994 bool result;
2995 wxPoint temp2 ;
2996 PyObject * obj0 = 0 ;
2997 PyObject * obj1 = 0 ;
2998 char *kwnames[] = {
2999 (char *) "self",(char *) "pt", NULL
3000 };
3001
3002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3005 {
3006 arg2 = &temp2;
3007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3008 }
3009 {
3010 PyThreadState* __tstate = wxPyBeginAllowThreads();
3011 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3012
3013 wxPyEndAllowThreads(__tstate);
3014 if (PyErr_Occurred()) SWIG_fail;
3015 }
3016 {
3017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3018 }
3019 return resultobj;
3020 fail:
3021 return NULL;
3022 }
3023
3024
3025 static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3026 PyObject *resultobj;
3027 wxPoint *arg1 = (wxPoint *) 0 ;
3028 wxPoint *arg2 = 0 ;
3029 wxPoint result;
3030 wxPoint temp2 ;
3031 PyObject * obj0 = 0 ;
3032 PyObject * obj1 = 0 ;
3033 char *kwnames[] = {
3034 (char *) "self",(char *) "pt", NULL
3035 };
3036
3037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3040 {
3041 arg2 = &temp2;
3042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3043 }
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 result = (arg1)->operator +((wxPoint const &)*arg2);
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 {
3052 wxPoint * resultptr;
3053 resultptr = new wxPoint((wxPoint &) result);
3054 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3055 }
3056 return resultobj;
3057 fail:
3058 return NULL;
3059 }
3060
3061
3062 static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxPoint *arg1 = (wxPoint *) 0 ;
3065 wxPoint *arg2 = 0 ;
3066 wxPoint result;
3067 wxPoint temp2 ;
3068 PyObject * obj0 = 0 ;
3069 PyObject * obj1 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self",(char *) "pt", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3077 {
3078 arg2 = &temp2;
3079 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3080 }
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 result = (arg1)->operator -((wxPoint const &)*arg2);
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 {
3089 wxPoint * resultptr;
3090 resultptr = new wxPoint((wxPoint &) result);
3091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3092 }
3093 return resultobj;
3094 fail:
3095 return NULL;
3096 }
3097
3098
3099 static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3100 PyObject *resultobj;
3101 wxPoint *arg1 = (wxPoint *) 0 ;
3102 wxPoint *arg2 = 0 ;
3103 wxPoint *result;
3104 wxPoint temp2 ;
3105 PyObject * obj0 = 0 ;
3106 PyObject * obj1 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self",(char *) "pt", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 {
3115 arg2 = &temp2;
3116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3117 }
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 {
3121 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3122 result = (wxPoint *) &_result_ref;
3123 }
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxPoint *arg1 = (wxPoint *) 0 ;
3138 wxPoint *arg2 = 0 ;
3139 wxPoint *result;
3140 wxPoint temp2 ;
3141 PyObject * obj0 = 0 ;
3142 PyObject * obj1 = 0 ;
3143 char *kwnames[] = {
3144 (char *) "self",(char *) "pt", NULL
3145 };
3146
3147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3150 {
3151 arg2 = &temp2;
3152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3153 }
3154 {
3155 PyThreadState* __tstate = wxPyBeginAllowThreads();
3156 {
3157 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3158 result = (wxPoint *) &_result_ref;
3159 }
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3165 return resultobj;
3166 fail:
3167 return NULL;
3168 }
3169
3170
3171 static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj;
3173 wxPoint *arg1 = (wxPoint *) 0 ;
3174 long arg2 ;
3175 long arg3 ;
3176 PyObject * obj0 = 0 ;
3177 PyObject * obj1 = 0 ;
3178 PyObject * obj2 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self",(char *) "x",(char *) "y", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 arg2 = (long) SWIG_AsLong(obj1);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 arg3 = (long) SWIG_AsLong(obj2);
3189 if (PyErr_Occurred()) SWIG_fail;
3190 {
3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
3192 wxPoint_Set(arg1,arg2,arg3);
3193
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 Py_INCREF(Py_None); resultobj = Py_None;
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxPoint *arg1 = (wxPoint *) 0 ;
3207 PyObject *result;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 result = (PyObject *)wxPoint_Get(arg1);
3219
3220 wxPyEndAllowThreads(__tstate);
3221 if (PyErr_Occurred()) SWIG_fail;
3222 }
3223 resultobj = result;
3224 return resultobj;
3225 fail:
3226 return NULL;
3227 }
3228
3229
3230 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
3231 PyObject *obj;
3232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3233 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3234 Py_INCREF(obj);
3235 return Py_BuildValue((char *)"");
3236 }
3237 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 int arg1 = (int) 0 ;
3240 int arg2 = (int) 0 ;
3241 int arg3 = (int) 0 ;
3242 int arg4 = (int) 0 ;
3243 wxRect *result;
3244 PyObject * obj0 = 0 ;
3245 PyObject * obj1 = 0 ;
3246 PyObject * obj2 = 0 ;
3247 PyObject * obj3 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3253 if (obj0) {
3254 arg1 = (int) SWIG_AsInt(obj0);
3255 if (PyErr_Occurred()) SWIG_fail;
3256 }
3257 if (obj1) {
3258 arg2 = (int) SWIG_AsInt(obj1);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 if (obj2) {
3262 arg3 = (int) SWIG_AsInt(obj2);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 if (obj3) {
3266 arg4 = (int) SWIG_AsInt(obj3);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject *resultobj;
3285 wxPoint *arg1 = 0 ;
3286 wxPoint *arg2 = 0 ;
3287 wxRect *result;
3288 wxPoint temp1 ;
3289 wxPoint temp2 ;
3290 PyObject * obj0 = 0 ;
3291 PyObject * obj1 = 0 ;
3292 char *kwnames[] = {
3293 (char *) "topLeft",(char *) "bottomRight", NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3297 {
3298 arg1 = &temp1;
3299 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3300 }
3301 {
3302 arg2 = &temp2;
3303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3304 }
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3313 return resultobj;
3314 fail:
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 wxPoint *arg1 = 0 ;
3322 wxSize *arg2 = 0 ;
3323 wxRect *result;
3324 wxPoint temp1 ;
3325 wxSize temp2 ;
3326 PyObject * obj0 = 0 ;
3327 PyObject * obj1 = 0 ;
3328 char *kwnames[] = {
3329 (char *) "pos",(char *) "size", NULL
3330 };
3331
3332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3333 {
3334 arg1 = &temp1;
3335 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3336 }
3337 {
3338 arg2 = &temp2;
3339 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3340 }
3341 {
3342 PyThreadState* __tstate = wxPyBeginAllowThreads();
3343 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3344
3345 wxPyEndAllowThreads(__tstate);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 }
3348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3349 return resultobj;
3350 fail:
3351 return NULL;
3352 }
3353
3354
3355 static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3356 PyObject *resultobj;
3357 wxRect *arg1 = (wxRect *) 0 ;
3358 PyObject * obj0 = 0 ;
3359 char *kwnames[] = {
3360 (char *) "self", NULL
3361 };
3362
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 delete arg1;
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 Py_INCREF(Py_None); resultobj = Py_None;
3374 return resultobj;
3375 fail:
3376 return NULL;
3377 }
3378
3379
3380 static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3381 PyObject *resultobj;
3382 wxRect *arg1 = (wxRect *) 0 ;
3383 int result;
3384 PyObject * obj0 = 0 ;
3385 char *kwnames[] = {
3386 (char *) "self", NULL
3387 };
3388
3389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3392 {
3393 PyThreadState* __tstate = wxPyBeginAllowThreads();
3394 result = (int)((wxRect const *)arg1)->GetX();
3395
3396 wxPyEndAllowThreads(__tstate);
3397 if (PyErr_Occurred()) SWIG_fail;
3398 }
3399 resultobj = SWIG_FromInt((int)result);
3400 return resultobj;
3401 fail:
3402 return NULL;
3403 }
3404
3405
3406 static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3407 PyObject *resultobj;
3408 wxRect *arg1 = (wxRect *) 0 ;
3409 int arg2 ;
3410 PyObject * obj0 = 0 ;
3411 PyObject * obj1 = 0 ;
3412 char *kwnames[] = {
3413 (char *) "self",(char *) "x", NULL
3414 };
3415
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3419 arg2 = (int) SWIG_AsInt(obj1);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 {
3422 PyThreadState* __tstate = wxPyBeginAllowThreads();
3423 (arg1)->SetX(arg2);
3424
3425 wxPyEndAllowThreads(__tstate);
3426 if (PyErr_Occurred()) SWIG_fail;
3427 }
3428 Py_INCREF(Py_None); resultobj = Py_None;
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3436 PyObject *resultobj;
3437 wxRect *arg1 = (wxRect *) 0 ;
3438 int result;
3439 PyObject * obj0 = 0 ;
3440 char *kwnames[] = {
3441 (char *) "self", NULL
3442 };
3443
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 result = (int)(arg1)->GetY();
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 resultobj = SWIG_FromInt((int)result);
3455 return resultobj;
3456 fail:
3457 return NULL;
3458 }
3459
3460
3461 static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject *resultobj;
3463 wxRect *arg1 = (wxRect *) 0 ;
3464 int arg2 ;
3465 PyObject * obj0 = 0 ;
3466 PyObject * obj1 = 0 ;
3467 char *kwnames[] = {
3468 (char *) "self",(char *) "y", NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3474 arg2 = (int) SWIG_AsInt(obj1);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 (arg1)->SetY(arg2);
3479
3480 wxPyEndAllowThreads(__tstate);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 Py_INCREF(Py_None); resultobj = Py_None;
3484 return resultobj;
3485 fail:
3486 return NULL;
3487 }
3488
3489
3490 static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject *resultobj;
3492 wxRect *arg1 = (wxRect *) 0 ;
3493 int result;
3494 PyObject * obj0 = 0 ;
3495 char *kwnames[] = {
3496 (char *) "self", NULL
3497 };
3498
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 result = (int)((wxRect const *)arg1)->GetWidth();
3505
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 resultobj = SWIG_FromInt((int)result);
3510 return resultobj;
3511 fail:
3512 return NULL;
3513 }
3514
3515
3516 static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj;
3518 wxRect *arg1 = (wxRect *) 0 ;
3519 int arg2 ;
3520 PyObject * obj0 = 0 ;
3521 PyObject * obj1 = 0 ;
3522 char *kwnames[] = {
3523 (char *) "self",(char *) "w", NULL
3524 };
3525
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3529 arg2 = (int) SWIG_AsInt(obj1);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 (arg1)->SetWidth(arg2);
3534
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 Py_INCREF(Py_None); resultobj = Py_None;
3539 return resultobj;
3540 fail:
3541 return NULL;
3542 }
3543
3544
3545 static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject *resultobj;
3547 wxRect *arg1 = (wxRect *) 0 ;
3548 int result;
3549 PyObject * obj0 = 0 ;
3550 char *kwnames[] = {
3551 (char *) "self", NULL
3552 };
3553
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (int)((wxRect const *)arg1)->GetHeight();
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = SWIG_FromInt((int)result);
3565 return resultobj;
3566 fail:
3567 return NULL;
3568 }
3569
3570
3571 static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3572 PyObject *resultobj;
3573 wxRect *arg1 = (wxRect *) 0 ;
3574 int arg2 ;
3575 PyObject * obj0 = 0 ;
3576 PyObject * obj1 = 0 ;
3577 char *kwnames[] = {
3578 (char *) "self",(char *) "h", NULL
3579 };
3580
3581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3584 arg2 = (int) SWIG_AsInt(obj1);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 (arg1)->SetHeight(arg2);
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 Py_INCREF(Py_None); resultobj = Py_None;
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj;
3602 wxRect *arg1 = (wxRect *) 0 ;
3603 wxPoint result;
3604 PyObject * obj0 = 0 ;
3605 char *kwnames[] = {
3606 (char *) "self", NULL
3607 };
3608
3609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 result = ((wxRect const *)arg1)->GetPosition();
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 {
3620 wxPoint * resultptr;
3621 resultptr = new wxPoint((wxPoint &) result);
3622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3623 }
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj;
3632 wxRect *arg1 = (wxRect *) 0 ;
3633 wxPoint *arg2 = 0 ;
3634 wxPoint temp2 ;
3635 PyObject * obj0 = 0 ;
3636 PyObject * obj1 = 0 ;
3637 char *kwnames[] = {
3638 (char *) "self",(char *) "p", NULL
3639 };
3640
3641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3644 {
3645 arg2 = &temp2;
3646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 (arg1)->SetPosition((wxPoint const &)*arg2);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 Py_INCREF(Py_None); resultobj = Py_None;
3656 return resultobj;
3657 fail:
3658 return NULL;
3659 }
3660
3661
3662 static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3663 PyObject *resultobj;
3664 wxRect *arg1 = (wxRect *) 0 ;
3665 wxSize result;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "self", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 result = ((wxRect const *)arg1)->GetSize();
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 {
3682 wxSize * resultptr;
3683 resultptr = new wxSize((wxSize &) result);
3684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3685 }
3686 return resultobj;
3687 fail:
3688 return NULL;
3689 }
3690
3691
3692 static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3693 PyObject *resultobj;
3694 wxRect *arg1 = (wxRect *) 0 ;
3695 wxSize *arg2 = 0 ;
3696 wxSize temp2 ;
3697 PyObject * obj0 = 0 ;
3698 PyObject * obj1 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "self",(char *) "s", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3706 {
3707 arg2 = &temp2;
3708 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3709 }
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 (arg1)->SetSize((wxSize const &)*arg2);
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 wxRect *arg1 = (wxRect *) 0 ;
3727 wxPoint result;
3728 PyObject * obj0 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "self", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = ((wxRect const *)arg1)->GetTopLeft();
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 {
3744 wxPoint * resultptr;
3745 resultptr = new wxPoint((wxPoint &) result);
3746 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3747 }
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxRect *arg1 = (wxRect *) 0 ;
3757 wxPoint *arg2 = 0 ;
3758 wxPoint temp2 ;
3759 PyObject * obj0 = 0 ;
3760 PyObject * obj1 = 0 ;
3761 char *kwnames[] = {
3762 (char *) "self",(char *) "p", NULL
3763 };
3764
3765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3768 {
3769 arg2 = &temp2;
3770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3771 }
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 Py_INCREF(Py_None); resultobj = Py_None;
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxRect *arg1 = (wxRect *) 0 ;
3789 wxPoint result;
3790 PyObject * obj0 = 0 ;
3791 char *kwnames[] = {
3792 (char *) "self", NULL
3793 };
3794
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = ((wxRect const *)arg1)->GetBottomRight();
3801
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 {
3806 wxPoint * resultptr;
3807 resultptr = new wxPoint((wxPoint &) result);
3808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3809 }
3810 return resultobj;
3811 fail:
3812 return NULL;
3813 }
3814
3815
3816 static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj;
3818 wxRect *arg1 = (wxRect *) 0 ;
3819 wxPoint *arg2 = 0 ;
3820 wxPoint temp2 ;
3821 PyObject * obj0 = 0 ;
3822 PyObject * obj1 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "self",(char *) "p", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3830 {
3831 arg2 = &temp2;
3832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3833 }
3834 {
3835 PyThreadState* __tstate = wxPyBeginAllowThreads();
3836 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3837
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 }
3841 Py_INCREF(Py_None); resultobj = Py_None;
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3849 PyObject *resultobj;
3850 wxRect *arg1 = (wxRect *) 0 ;
3851 int result;
3852 PyObject * obj0 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 result = (int)((wxRect const *)arg1)->GetLeft();
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 resultobj = SWIG_FromInt((int)result);
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxRect *arg1 = (wxRect *) 0 ;
3877 int result;
3878 PyObject * obj0 = 0 ;
3879 char *kwnames[] = {
3880 (char *) "self", NULL
3881 };
3882
3883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3886 {
3887 PyThreadState* __tstate = wxPyBeginAllowThreads();
3888 result = (int)((wxRect const *)arg1)->GetTop();
3889
3890 wxPyEndAllowThreads(__tstate);
3891 if (PyErr_Occurred()) SWIG_fail;
3892 }
3893 resultobj = SWIG_FromInt((int)result);
3894 return resultobj;
3895 fail:
3896 return NULL;
3897 }
3898
3899
3900 static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3901 PyObject *resultobj;
3902 wxRect *arg1 = (wxRect *) 0 ;
3903 int result;
3904 PyObject * obj0 = 0 ;
3905 char *kwnames[] = {
3906 (char *) "self", NULL
3907 };
3908
3909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (int)((wxRect const *)arg1)->GetBottom();
3915
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 resultobj = SWIG_FromInt((int)result);
3920 return resultobj;
3921 fail:
3922 return NULL;
3923 }
3924
3925
3926 static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3927 PyObject *resultobj;
3928 wxRect *arg1 = (wxRect *) 0 ;
3929 int result;
3930 PyObject * obj0 = 0 ;
3931 char *kwnames[] = {
3932 (char *) "self", NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
3936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 result = (int)((wxRect const *)arg1)->GetRight();
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 resultobj = SWIG_FromInt((int)result);
3946 return resultobj;
3947 fail:
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 wxRect *arg1 = (wxRect *) 0 ;
3955 int arg2 ;
3956 PyObject * obj0 = 0 ;
3957 PyObject * obj1 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "self",(char *) "left", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
3963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3965 arg2 = (int) SWIG_AsInt(obj1);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 (arg1)->SetLeft(arg2);
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 Py_INCREF(Py_None); resultobj = Py_None;
3975 return resultobj;
3976 fail:
3977 return NULL;
3978 }
3979
3980
3981 static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3982 PyObject *resultobj;
3983 wxRect *arg1 = (wxRect *) 0 ;
3984 int arg2 ;
3985 PyObject * obj0 = 0 ;
3986 PyObject * obj1 = 0 ;
3987 char *kwnames[] = {
3988 (char *) "self",(char *) "right", NULL
3989 };
3990
3991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
3992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3994 arg2 = (int) SWIG_AsInt(obj1);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 {
3997 PyThreadState* __tstate = wxPyBeginAllowThreads();
3998 (arg1)->SetRight(arg2);
3999
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 Py_INCREF(Py_None); resultobj = Py_None;
4004 return resultobj;
4005 fail:
4006 return NULL;
4007 }
4008
4009
4010 static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
4011 PyObject *resultobj;
4012 wxRect *arg1 = (wxRect *) 0 ;
4013 int arg2 ;
4014 PyObject * obj0 = 0 ;
4015 PyObject * obj1 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "self",(char *) "top", NULL
4018 };
4019
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4023 arg2 = (int) SWIG_AsInt(obj1);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 (arg1)->SetTop(arg2);
4028
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 Py_INCREF(Py_None); resultobj = Py_None;
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj;
4041 wxRect *arg1 = (wxRect *) 0 ;
4042 int arg2 ;
4043 PyObject * obj0 = 0 ;
4044 PyObject * obj1 = 0 ;
4045 char *kwnames[] = {
4046 (char *) "self",(char *) "bottom", NULL
4047 };
4048
4049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4052 arg2 = (int) SWIG_AsInt(obj1);
4053 if (PyErr_Occurred()) SWIG_fail;
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 (arg1)->SetBottom(arg2);
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 Py_INCREF(Py_None); resultobj = Py_None;
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj;
4070 wxRect *arg1 = (wxRect *) 0 ;
4071 int arg2 ;
4072 int arg3 ;
4073 wxRect *result;
4074 PyObject * obj0 = 0 ;
4075 PyObject * obj1 = 0 ;
4076 PyObject * obj2 = 0 ;
4077 char *kwnames[] = {
4078 (char *) "self",(char *) "dx",(char *) "dy", NULL
4079 };
4080
4081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4084 arg2 = (int) SWIG_AsInt(obj1);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 arg3 = (int) SWIG_AsInt(obj2);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 {
4089 PyThreadState* __tstate = wxPyBeginAllowThreads();
4090 {
4091 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4092 result = (wxRect *) &_result_ref;
4093 }
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4099 return resultobj;
4100 fail:
4101 return NULL;
4102 }
4103
4104
4105 static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj;
4107 wxRect *arg1 = (wxRect *) 0 ;
4108 int arg2 ;
4109 int arg3 ;
4110 wxRect *result;
4111 PyObject * obj0 = 0 ;
4112 PyObject * obj1 = 0 ;
4113 PyObject * obj2 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "self",(char *) "dx",(char *) "dy", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4121 arg2 = (int) SWIG_AsInt(obj1);
4122 if (PyErr_Occurred()) SWIG_fail;
4123 arg3 = (int) SWIG_AsInt(obj2);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 {
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 {
4128 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4129 result = (wxRect *) &_result_ref;
4130 }
4131
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4136 return resultobj;
4137 fail:
4138 return NULL;
4139 }
4140
4141
4142 static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4143 PyObject *resultobj;
4144 wxRect *arg1 = (wxRect *) 0 ;
4145 int arg2 ;
4146 int arg3 ;
4147 PyObject * obj0 = 0 ;
4148 PyObject * obj1 = 0 ;
4149 PyObject * obj2 = 0 ;
4150 char *kwnames[] = {
4151 (char *) "self",(char *) "dx",(char *) "dy", NULL
4152 };
4153
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4157 arg2 = (int) SWIG_AsInt(obj1);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 arg3 = (int) SWIG_AsInt(obj2);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 (arg1)->Offset(arg2,arg3);
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 Py_INCREF(Py_None); resultobj = Py_None;
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 wxRect *arg1 = (wxRect *) 0 ;
4178 wxPoint *arg2 = 0 ;
4179 wxPoint temp2 ;
4180 PyObject * obj0 = 0 ;
4181 PyObject * obj1 = 0 ;
4182 char *kwnames[] = {
4183 (char *) "self",(char *) "pt", NULL
4184 };
4185
4186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4189 {
4190 arg2 = &temp2;
4191 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4192 }
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 (arg1)->Offset((wxPoint const &)*arg2);
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 Py_INCREF(Py_None); resultobj = Py_None;
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj;
4209 wxRect *arg1 = (wxRect *) 0 ;
4210 wxRect *arg2 = 0 ;
4211 wxRect *result;
4212 wxRect temp2 ;
4213 PyObject * obj0 = 0 ;
4214 PyObject * obj1 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self",(char *) "rect", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4222 {
4223 arg2 = &temp2;
4224 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4225 }
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 {
4229 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4230 result = (wxRect *) &_result_ref;
4231 }
4232
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4237 return resultobj;
4238 fail:
4239 return NULL;
4240 }
4241
4242
4243 static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj;
4245 wxRect *arg1 = (wxRect *) 0 ;
4246 wxRect *arg2 = 0 ;
4247 wxRect result;
4248 wxRect temp2 ;
4249 PyObject * obj0 = 0 ;
4250 PyObject * obj1 = 0 ;
4251 char *kwnames[] = {
4252 (char *) "self",(char *) "rect", NULL
4253 };
4254
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4258 {
4259 arg2 = &temp2;
4260 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4261 }
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 {
4270 wxRect * resultptr;
4271 resultptr = new wxRect((wxRect &) result);
4272 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4273 }
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4281 PyObject *resultobj;
4282 wxRect *arg1 = (wxRect *) 0 ;
4283 wxRect *arg2 = 0 ;
4284 wxRect *result;
4285 wxRect temp2 ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self",(char *) "rect", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4295 {
4296 arg2 = &temp2;
4297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4298 }
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 {
4302 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4303 result = (wxRect *) &_result_ref;
4304 }
4305
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj;
4318 wxRect *arg1 = (wxRect *) 0 ;
4319 wxRect *arg2 = 0 ;
4320 bool result;
4321 wxRect temp2 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self",(char *) "rect", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4331 {
4332 arg2 = &temp2;
4333 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4334 }
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4338
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 {
4343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4344 }
4345 return resultobj;
4346 fail:
4347 return NULL;
4348 }
4349
4350
4351 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4352 PyObject *resultobj;
4353 wxRect *arg1 = (wxRect *) 0 ;
4354 wxRect *arg2 = 0 ;
4355 bool result;
4356 wxRect temp2 ;
4357 PyObject * obj0 = 0 ;
4358 PyObject * obj1 = 0 ;
4359 char *kwnames[] = {
4360 (char *) "self",(char *) "rect", NULL
4361 };
4362
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4366 {
4367 arg2 = &temp2;
4368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4369 }
4370 {
4371 PyThreadState* __tstate = wxPyBeginAllowThreads();
4372 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4373
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 {
4378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4379 }
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj;
4388 wxRect *arg1 = (wxRect *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 bool result;
4392 PyObject * obj0 = 0 ;
4393 PyObject * obj1 = 0 ;
4394 PyObject * obj2 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "self",(char *) "x",(char *) "y", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4402 arg2 = (int) SWIG_AsInt(obj1);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 arg3 = (int) SWIG_AsInt(obj2);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 {
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4409
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 {
4414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4415 }
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 wxRect *arg1 = (wxRect *) 0 ;
4425 wxPoint *arg2 = 0 ;
4426 bool result;
4427 wxPoint temp2 ;
4428 PyObject * obj0 = 0 ;
4429 PyObject * obj1 = 0 ;
4430 char *kwnames[] = {
4431 (char *) "self",(char *) "pt", NULL
4432 };
4433
4434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4437 {
4438 arg2 = &temp2;
4439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4440 }
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4444
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 {
4449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4450 }
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj;
4459 wxRect *arg1 = (wxRect *) 0 ;
4460 wxRect *arg2 = 0 ;
4461 bool result;
4462 wxRect temp2 ;
4463 PyObject * obj0 = 0 ;
4464 PyObject * obj1 = 0 ;
4465 char *kwnames[] = {
4466 (char *) "self",(char *) "rect", NULL
4467 };
4468
4469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4472 {
4473 arg2 = &temp2;
4474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4475 }
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 {
4484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4485 }
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj;
4494 wxRect *arg1 = (wxRect *) 0 ;
4495 int arg2 ;
4496 PyObject * obj0 = 0 ;
4497 PyObject * obj1 = 0 ;
4498 char *kwnames[] = {
4499 (char *) "self",(char *) "x", NULL
4500 };
4501
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4505 arg2 = (int) SWIG_AsInt(obj1);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 if (arg1) (arg1)->x = arg2;
4508
4509 Py_INCREF(Py_None); resultobj = Py_None;
4510 return resultobj;
4511 fail:
4512 return NULL;
4513 }
4514
4515
4516 static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj;
4518 wxRect *arg1 = (wxRect *) 0 ;
4519 int result;
4520 PyObject * obj0 = 0 ;
4521 char *kwnames[] = {
4522 (char *) "self", NULL
4523 };
4524
4525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4528 result = (int) ((arg1)->x);
4529
4530 resultobj = SWIG_FromInt((int)result);
4531 return resultobj;
4532 fail:
4533 return NULL;
4534 }
4535
4536
4537 static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4538 PyObject *resultobj;
4539 wxRect *arg1 = (wxRect *) 0 ;
4540 int arg2 ;
4541 PyObject * obj0 = 0 ;
4542 PyObject * obj1 = 0 ;
4543 char *kwnames[] = {
4544 (char *) "self",(char *) "y", NULL
4545 };
4546
4547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4550 arg2 = (int) SWIG_AsInt(obj1);
4551 if (PyErr_Occurred()) SWIG_fail;
4552 if (arg1) (arg1)->y = arg2;
4553
4554 Py_INCREF(Py_None); resultobj = Py_None;
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 wxRect *arg1 = (wxRect *) 0 ;
4564 int result;
4565 PyObject * obj0 = 0 ;
4566 char *kwnames[] = {
4567 (char *) "self", NULL
4568 };
4569
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4573 result = (int) ((arg1)->y);
4574
4575 resultobj = SWIG_FromInt((int)result);
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxRect *arg1 = (wxRect *) 0 ;
4585 int arg2 ;
4586 PyObject * obj0 = 0 ;
4587 PyObject * obj1 = 0 ;
4588 char *kwnames[] = {
4589 (char *) "self",(char *) "width", NULL
4590 };
4591
4592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4595 arg2 = (int) SWIG_AsInt(obj1);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 if (arg1) (arg1)->width = arg2;
4598
4599 Py_INCREF(Py_None); resultobj = Py_None;
4600 return resultobj;
4601 fail:
4602 return NULL;
4603 }
4604
4605
4606 static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj;
4608 wxRect *arg1 = (wxRect *) 0 ;
4609 int result;
4610 PyObject * obj0 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "self", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4618 result = (int) ((arg1)->width);
4619
4620 resultobj = SWIG_FromInt((int)result);
4621 return resultobj;
4622 fail:
4623 return NULL;
4624 }
4625
4626
4627 static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 wxRect *arg1 = (wxRect *) 0 ;
4630 int arg2 ;
4631 PyObject * obj0 = 0 ;
4632 PyObject * obj1 = 0 ;
4633 char *kwnames[] = {
4634 (char *) "self",(char *) "height", NULL
4635 };
4636
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4640 arg2 = (int) SWIG_AsInt(obj1);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 if (arg1) (arg1)->height = arg2;
4643
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxRect *arg1 = (wxRect *) 0 ;
4654 int result;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4663 result = (int) ((arg1)->height);
4664
4665 resultobj = SWIG_FromInt((int)result);
4666 return resultobj;
4667 fail:
4668 return NULL;
4669 }
4670
4671
4672 static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4673 PyObject *resultobj;
4674 wxRect *arg1 = (wxRect *) 0 ;
4675 int arg2 = (int) 0 ;
4676 int arg3 = (int) 0 ;
4677 int arg4 = (int) 0 ;
4678 int arg5 = (int) 0 ;
4679 PyObject * obj0 = 0 ;
4680 PyObject * obj1 = 0 ;
4681 PyObject * obj2 = 0 ;
4682 PyObject * obj3 = 0 ;
4683 PyObject * obj4 = 0 ;
4684 char *kwnames[] = {
4685 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4686 };
4687
4688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4691 if (obj1) {
4692 arg2 = (int) SWIG_AsInt(obj1);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 if (obj2) {
4696 arg3 = (int) SWIG_AsInt(obj2);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 if (obj3) {
4700 arg4 = (int) SWIG_AsInt(obj3);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 if (obj4) {
4704 arg5 = (int) SWIG_AsInt(obj4);
4705 if (PyErr_Occurred()) SWIG_fail;
4706 }
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4710
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 Py_INCREF(Py_None); resultobj = Py_None;
4715 return resultobj;
4716 fail:
4717 return NULL;
4718 }
4719
4720
4721 static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4722 PyObject *resultobj;
4723 wxRect *arg1 = (wxRect *) 0 ;
4724 PyObject *result;
4725 PyObject * obj0 = 0 ;
4726 char *kwnames[] = {
4727 (char *) "self", NULL
4728 };
4729
4730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
4731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 result = (PyObject *)wxRect_Get(arg1);
4736
4737 wxPyEndAllowThreads(__tstate);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 resultobj = result;
4741 return resultobj;
4742 fail:
4743 return NULL;
4744 }
4745
4746
4747 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4748 PyObject *obj;
4749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4750 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4751 Py_INCREF(obj);
4752 return Py_BuildValue((char *)"");
4753 }
4754 static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 wxRect *arg1 = (wxRect *) 0 ;
4757 wxRect *arg2 = (wxRect *) 0 ;
4758 PyObject *result;
4759 PyObject * obj0 = 0 ;
4760 PyObject * obj1 = 0 ;
4761 char *kwnames[] = {
4762 (char *) "r1",(char *) "r2", NULL
4763 };
4764
4765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
4769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (PyObject *)wxIntersectRect(arg1,arg2);
4773
4774 wxPyEndAllowThreads(__tstate);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 }
4777 resultobj = result;
4778 return resultobj;
4779 fail:
4780 return NULL;
4781 }
4782
4783
4784 static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 double arg1 = (double) 0.0 ;
4787 double arg2 = (double) 0.0 ;
4788 wxPoint2D *result;
4789 PyObject * obj0 = 0 ;
4790 PyObject * obj1 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "x",(char *) "y", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4796 if (obj0) {
4797 arg1 = (double) SWIG_AsDouble(obj0);
4798 if (PyErr_Occurred()) SWIG_fail;
4799 }
4800 if (obj1) {
4801 arg2 = (double) SWIG_AsDouble(obj1);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 wxPoint2D *arg1 = 0 ;
4821 wxPoint2D *result;
4822 wxPoint2D temp1 ;
4823 PyObject * obj0 = 0 ;
4824 char *kwnames[] = {
4825 (char *) "pt", NULL
4826 };
4827
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4829 {
4830 arg1 = &temp1;
4831 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4832 }
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4836
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4841 return resultobj;
4842 fail:
4843 return NULL;
4844 }
4845
4846
4847 static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4848 PyObject *resultobj;
4849 wxPoint *arg1 = 0 ;
4850 wxPoint2D *result;
4851 wxPoint temp1 ;
4852 PyObject * obj0 = 0 ;
4853 char *kwnames[] = {
4854 (char *) "pt", NULL
4855 };
4856
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4858 {
4859 arg1 = &temp1;
4860 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4861 }
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4865
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4877 PyObject *resultobj;
4878 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4879 int *arg2 = (int *) 0 ;
4880 int *arg3 = (int *) 0 ;
4881 int temp2 ;
4882 int temp3 ;
4883 PyObject * obj0 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self", NULL
4886 };
4887
4888 arg2 = &temp2;
4889 arg3 = &temp3;
4890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4893 {
4894 PyThreadState* __tstate = wxPyBeginAllowThreads();
4895 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4896
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 Py_INCREF(Py_None); resultobj = Py_None;
4901 {
4902 PyObject *o = PyInt_FromLong((long) (*arg2));
4903 resultobj = t_output_helper(resultobj,o);
4904 }
4905 {
4906 PyObject *o = PyInt_FromLong((long) (*arg3));
4907 resultobj = t_output_helper(resultobj,o);
4908 }
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4918 int *arg2 = (int *) 0 ;
4919 int *arg3 = (int *) 0 ;
4920 int temp2 ;
4921 int temp3 ;
4922 PyObject * obj0 = 0 ;
4923 char *kwnames[] = {
4924 (char *) "self", NULL
4925 };
4926
4927 arg2 = &temp2;
4928 arg3 = &temp3;
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 Py_INCREF(Py_None); resultobj = Py_None;
4940 {
4941 PyObject *o = PyInt_FromLong((long) (*arg2));
4942 resultobj = t_output_helper(resultobj,o);
4943 }
4944 {
4945 PyObject *o = PyInt_FromLong((long) (*arg3));
4946 resultobj = t_output_helper(resultobj,o);
4947 }
4948 return resultobj;
4949 fail:
4950 return NULL;
4951 }
4952
4953
4954 static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4957 double result;
4958 PyObject * obj0 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 resultobj = SWIG_FromDouble((double)result);
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
4981 PyObject *resultobj;
4982 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4983 double result;
4984 PyObject * obj0 = 0 ;
4985 char *kwnames[] = {
4986 (char *) "self", NULL
4987 };
4988
4989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
4990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
4995
4996 wxPyEndAllowThreads(__tstate);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 }
4999 resultobj = SWIG_FromDouble((double)result);
5000 return resultobj;
5001 fail:
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5009 double arg2 ;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 char *kwnames[] = {
5013 (char *) "self",(char *) "length", NULL
5014 };
5015
5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5019 arg2 = (double) SWIG_AsDouble(obj1);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->SetVectorLength(arg2);
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 Py_INCREF(Py_None); resultobj = Py_None;
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj;
5037 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5038 double arg2 ;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 char *kwnames[] = {
5042 (char *) "self",(char *) "degrees", NULL
5043 };
5044
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5048 arg2 = (double) SWIG_AsDouble(obj1);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 (arg1)->SetVectorAngle(arg2);
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 Py_INCREF(Py_None); resultobj = Py_None;
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj;
5066 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5067 wxPoint2D *arg2 = 0 ;
5068 double result;
5069 wxPoint2D temp2 ;
5070 PyObject * obj0 = 0 ;
5071 PyObject * obj1 = 0 ;
5072 char *kwnames[] = {
5073 (char *) "self",(char *) "pt", NULL
5074 };
5075
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5079 {
5080 arg2 = &temp2;
5081 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5082 }
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_FromDouble((double)result);
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5100 wxPoint2D *arg2 = 0 ;
5101 double result;
5102 wxPoint2D temp2 ;
5103 PyObject * obj0 = 0 ;
5104 PyObject * obj1 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self",(char *) "pt", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 {
5113 arg2 = &temp2;
5114 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5115 }
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_FromDouble((double)result);
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5133 wxPoint2D *arg2 = 0 ;
5134 double result;
5135 wxPoint2D temp2 ;
5136 PyObject * obj0 = 0 ;
5137 PyObject * obj1 = 0 ;
5138 char *kwnames[] = {
5139 (char *) "self",(char *) "vec", NULL
5140 };
5141
5142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5145 {
5146 arg2 = &temp2;
5147 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5148 }
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 }
5156 resultobj = SWIG_FromDouble((double)result);
5157 return resultobj;
5158 fail:
5159 return NULL;
5160 }
5161
5162
5163 static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5164 PyObject *resultobj;
5165 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5166 wxPoint2D *arg2 = 0 ;
5167 double result;
5168 wxPoint2D temp2 ;
5169 PyObject * obj0 = 0 ;
5170 PyObject * obj1 = 0 ;
5171 char *kwnames[] = {
5172 (char *) "self",(char *) "vec", NULL
5173 };
5174
5175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5178 {
5179 arg2 = &temp2;
5180 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5181 }
5182 {
5183 PyThreadState* __tstate = wxPyBeginAllowThreads();
5184 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5185
5186 wxPyEndAllowThreads(__tstate);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 resultobj = SWIG_FromDouble((double)result);
5190 return resultobj;
5191 fail:
5192 return NULL;
5193 }
5194
5195
5196 static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
5197 PyObject *resultobj;
5198 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5199 wxPoint2D result;
5200 PyObject * obj0 = 0 ;
5201 char *kwnames[] = {
5202 (char *) "self", NULL
5203 };
5204
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (arg1)->operator -();
5211
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 {
5216 wxPoint2D * resultptr;
5217 resultptr = new wxPoint2D((wxPoint2D &) result);
5218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5219 }
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj;
5228 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5229 wxPoint2D *arg2 = 0 ;
5230 wxPoint2D *result;
5231 wxPoint2D temp2 ;
5232 PyObject * obj0 = 0 ;
5233 PyObject * obj1 = 0 ;
5234 char *kwnames[] = {
5235 (char *) "self",(char *) "pt", NULL
5236 };
5237
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5241 {
5242 arg2 = &temp2;
5243 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5244 }
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 {
5248 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5249 result = (wxPoint2D *) &_result_ref;
5250 }
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5256 return resultobj;
5257 fail:
5258 return NULL;
5259 }
5260
5261
5262 static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5265 wxPoint2D *arg2 = 0 ;
5266 wxPoint2D *result;
5267 wxPoint2D temp2 ;
5268 PyObject * obj0 = 0 ;
5269 PyObject * obj1 = 0 ;
5270 char *kwnames[] = {
5271 (char *) "self",(char *) "pt", NULL
5272 };
5273
5274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5277 {
5278 arg2 = &temp2;
5279 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 {
5284 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5285 result = (wxPoint2D *) &_result_ref;
5286 }
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5301 wxPoint2D *arg2 = 0 ;
5302 wxPoint2D *result;
5303 wxPoint2D temp2 ;
5304 PyObject * obj0 = 0 ;
5305 PyObject * obj1 = 0 ;
5306 char *kwnames[] = {
5307 (char *) "self",(char *) "pt", NULL
5308 };
5309
5310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5313 {
5314 arg2 = &temp2;
5315 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5316 }
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 {
5320 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5321 result = (wxPoint2D *) &_result_ref;
5322 }
5323
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 }
5327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5328 return resultobj;
5329 fail:
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5337 wxPoint2D *arg2 = 0 ;
5338 wxPoint2D *result;
5339 wxPoint2D temp2 ;
5340 PyObject * obj0 = 0 ;
5341 PyObject * obj1 = 0 ;
5342 char *kwnames[] = {
5343 (char *) "self",(char *) "pt", NULL
5344 };
5345
5346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5349 {
5350 arg2 = &temp2;
5351 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5352 }
5353 {
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 {
5356 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5357 result = (wxPoint2D *) &_result_ref;
5358 }
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj;
5372 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5373 wxPoint2D *arg2 = 0 ;
5374 bool result;
5375 wxPoint2D temp2 ;
5376 PyObject * obj0 = 0 ;
5377 PyObject * obj1 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self",(char *) "pt", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5385 {
5386 arg2 = &temp2;
5387 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 {
5397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5398 }
5399 return resultobj;
5400 fail:
5401 return NULL;
5402 }
5403
5404
5405 static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj;
5407 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5408 wxPoint2D *arg2 = 0 ;
5409 bool result;
5410 wxPoint2D temp2 ;
5411 PyObject * obj0 = 0 ;
5412 PyObject * obj1 = 0 ;
5413 char *kwnames[] = {
5414 (char *) "self",(char *) "pt", NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5420 {
5421 arg2 = &temp2;
5422 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5423 }
5424 {
5425 PyThreadState* __tstate = wxPyBeginAllowThreads();
5426 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5427
5428 wxPyEndAllowThreads(__tstate);
5429 if (PyErr_Occurred()) SWIG_fail;
5430 }
5431 {
5432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5433 }
5434 return resultobj;
5435 fail:
5436 return NULL;
5437 }
5438
5439
5440 static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj;
5442 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5443 double arg2 ;
5444 PyObject * obj0 = 0 ;
5445 PyObject * obj1 = 0 ;
5446 char *kwnames[] = {
5447 (char *) "self",(char *) "m_x", NULL
5448 };
5449
5450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5453 arg2 = (double) SWIG_AsDouble(obj1);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 if (arg1) (arg1)->m_x = arg2;
5456
5457 Py_INCREF(Py_None); resultobj = Py_None;
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj;
5466 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5467 double result;
5468 PyObject * obj0 = 0 ;
5469 char *kwnames[] = {
5470 (char *) "self", NULL
5471 };
5472
5473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5476 result = (double) ((arg1)->m_x);
5477
5478 resultobj = SWIG_FromDouble((double)result);
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj;
5487 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5488 double arg2 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "self",(char *) "m_y", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5498 arg2 = (double) SWIG_AsDouble(obj1);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 if (arg1) (arg1)->m_y = arg2;
5501
5502 Py_INCREF(Py_None); resultobj = Py_None;
5503 return resultobj;
5504 fail:
5505 return NULL;
5506 }
5507
5508
5509 static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5510 PyObject *resultobj;
5511 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5512 double result;
5513 PyObject * obj0 = 0 ;
5514 char *kwnames[] = {
5515 (char *) "self", NULL
5516 };
5517
5518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5521 result = (double) ((arg1)->m_y);
5522
5523 resultobj = SWIG_FromDouble((double)result);
5524 return resultobj;
5525 fail:
5526 return NULL;
5527 }
5528
5529
5530 static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5533 double arg2 = (double) 0 ;
5534 double arg3 = (double) 0 ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5537 PyObject * obj2 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self",(char *) "x",(char *) "y", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5545 if (obj1) {
5546 arg2 = (double) SWIG_AsDouble(obj1);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 if (obj2) {
5550 arg3 = (double) SWIG_AsDouble(obj2);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 wxPoint2D_Set(arg1,arg2,arg3);
5556
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 Py_INCREF(Py_None); resultobj = Py_None;
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj;
5569 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5570 PyObject *result;
5571 PyObject * obj0 = 0 ;
5572 char *kwnames[] = {
5573 (char *) "self", NULL
5574 };
5575
5576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (PyObject *)wxPoint2D_Get(arg1);
5582
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 resultobj = result;
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5594 PyObject *obj;
5595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5596 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5597 Py_INCREF(obj);
5598 return Py_BuildValue((char *)"");
5599 }
5600 static int _wrap_DefaultPosition_set(PyObject *_val) {
5601 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5602 return 1;
5603 }
5604
5605
5606 static PyObject *_wrap_DefaultPosition_get() {
5607 PyObject *pyobj;
5608
5609 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5610 return pyobj;
5611 }
5612
5613
5614 static int _wrap_DefaultSize_set(PyObject *_val) {
5615 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5616 return 1;
5617 }
5618
5619
5620 static PyObject *_wrap_DefaultSize_get() {
5621 PyObject *pyobj;
5622
5623 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5624 return pyobj;
5625 }
5626
5627
5628 static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5629 PyObject *resultobj;
5630 PyObject *arg1 = (PyObject *) 0 ;
5631 wxPyInputStream *result;
5632 PyObject * obj0 = 0 ;
5633 char *kwnames[] = {
5634 (char *) "p", NULL
5635 };
5636
5637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5638 arg1 = obj0;
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5642
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
5647 return resultobj;
5648 fail:
5649 return NULL;
5650 }
5651
5652
5653 static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj;
5655 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 (arg1)->close();
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 Py_INCREF(Py_None); resultobj = Py_None;
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5681 PyObject * obj0 = 0 ;
5682 char *kwnames[] = {
5683 (char *) "self", NULL
5684 };
5685
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 (arg1)->flush();
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
5696 Py_INCREF(Py_None); resultobj = Py_None;
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5704 PyObject *resultobj;
5705 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5706 bool result;
5707 PyObject * obj0 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5715 {
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 result = (bool)(arg1)->eof();
5718
5719 wxPyEndAllowThreads(__tstate);
5720 if (PyErr_Occurred()) SWIG_fail;
5721 }
5722 {
5723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5724 }
5725 return resultobj;
5726 fail:
5727 return NULL;
5728 }
5729
5730
5731 static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj;
5733 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5734 int arg2 = (int) -1 ;
5735 PyObject *result;
5736 PyObject * obj0 = 0 ;
5737 PyObject * obj1 = 0 ;
5738 char *kwnames[] = {
5739 (char *) "self",(char *) "size", NULL
5740 };
5741
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
5743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5745 if (obj1) {
5746 arg2 = (int) SWIG_AsInt(obj1);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = (PyObject *)(arg1)->read(arg2);
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 resultobj = result;
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5766 int arg2 = (int) -1 ;
5767 PyObject *result;
5768 PyObject * obj0 = 0 ;
5769 PyObject * obj1 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self",(char *) "size", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 if (obj1) {
5778 arg2 = (int) SWIG_AsInt(obj1);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (PyObject *)(arg1)->readline(arg2);
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = result;
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj;
5797 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5798 int arg2 = (int) -1 ;
5799 PyObject *result;
5800 PyObject * obj0 = 0 ;
5801 PyObject * obj1 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self",(char *) "sizehint", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 if (obj1) {
5810 arg2 = (int) SWIG_AsInt(obj1);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = (PyObject *)(arg1)->readlines(arg2);
5816
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = result;
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5830 int arg2 ;
5831 int arg3 = (int) 0 ;
5832 PyObject * obj0 = 0 ;
5833 PyObject * obj1 = 0 ;
5834 PyObject * obj2 = 0 ;
5835 char *kwnames[] = {
5836 (char *) "self",(char *) "offset",(char *) "whence", NULL
5837 };
5838
5839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
5840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5842 arg2 = (int) SWIG_AsInt(obj1);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 if (obj2) {
5845 arg3 = (int) SWIG_AsInt(obj2);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->seek(arg2,arg3);
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 Py_INCREF(Py_None); resultobj = Py_None;
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5865 int result;
5866 PyObject * obj0 = 0 ;
5867 char *kwnames[] = {
5868 (char *) "self", NULL
5869 };
5870
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = (int)(arg1)->tell();
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_FromInt((int)result);
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5891 char result;
5892 PyObject * obj0 = 0 ;
5893 char *kwnames[] = {
5894 (char *) "self", NULL
5895 };
5896
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 result = (char)(arg1)->Peek();
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 resultobj = SWIG_FromChar((char)result);
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5917 char result;
5918 PyObject * obj0 = 0 ;
5919 char *kwnames[] = {
5920 (char *) "self", NULL
5921 };
5922
5923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
5924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 result = (char)(arg1)->GetC();
5929
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 resultobj = SWIG_FromChar((char)result);
5934 return resultobj;
5935 fail:
5936 return NULL;
5937 }
5938
5939
5940 static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj;
5942 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5943 size_t result;
5944 PyObject * obj0 = 0 ;
5945 char *kwnames[] = {
5946 (char *) "self", NULL
5947 };
5948
5949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
5950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 result = (size_t)(arg1)->LastRead();
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5967 PyObject *resultobj;
5968 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5969 bool result;
5970 PyObject * obj0 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (bool)(arg1)->CanRead();
5981
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 {
5986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5987 }
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5995 PyObject *resultobj;
5996 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5997 bool result;
5998 PyObject * obj0 = 0 ;
5999 char *kwnames[] = {
6000 (char *) "self", NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",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 = (bool)(arg1)->Eof();
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 {
6014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6015 }
6016 return resultobj;
6017 fail:
6018 return NULL;
6019 }
6020
6021
6022 static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
6023 PyObject *resultobj;
6024 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6025 char arg2 ;
6026 bool result;
6027 PyObject * obj0 = 0 ;
6028 PyObject * obj1 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "self",(char *) "c", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6036 arg2 = (char) SWIG_AsChar(obj1);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)(arg1)->Ungetch(arg2);
6041
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 {
6046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6047 }
6048 return resultobj;
6049 fail:
6050 return NULL;
6051 }
6052
6053
6054 static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
6055 PyObject *resultobj;
6056 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6057 long arg2 ;
6058 int arg3 = (int) wxFromStart ;
6059 long result;
6060 PyObject * obj0 = 0 ;
6061 PyObject * obj1 = 0 ;
6062 PyObject * obj2 = 0 ;
6063 char *kwnames[] = {
6064 (char *) "self",(char *) "pos",(char *) "mode", NULL
6065 };
6066
6067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6070 arg2 = (long) SWIG_AsLong(obj1);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 if (obj2) {
6073 arg3 = (wxSeekMode) SWIG_AsInt(obj2);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 resultobj = SWIG_FromLong((long)result);
6084 return resultobj;
6085 fail:
6086 return NULL;
6087 }
6088
6089
6090 static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj;
6092 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6093 long result;
6094 PyObject * obj0 = 0 ;
6095 char *kwnames[] = {
6096 (char *) "self", NULL
6097 };
6098
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 result = (long)(arg1)->TellI();
6105
6106 wxPyEndAllowThreads(__tstate);
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 resultobj = SWIG_FromLong((long)result);
6110 return resultobj;
6111 fail:
6112 return NULL;
6113 }
6114
6115
6116 static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
6117 PyObject *obj;
6118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6119 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6120 Py_INCREF(obj);
6121 return Py_BuildValue((char *)"");
6122 }
6123 static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
6124 PyObject *resultobj;
6125 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6126 PyObject *arg2 = (PyObject *) 0 ;
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self",(char *) "obj", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 arg2 = obj1;
6137 {
6138 PyThreadState* __tstate = wxPyBeginAllowThreads();
6139 wxOutputStream_write(arg1,arg2);
6140
6141 wxPyEndAllowThreads(__tstate);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 }
6144 Py_INCREF(Py_None); resultobj = Py_None;
6145 return resultobj;
6146 fail:
6147 return NULL;
6148 }
6149
6150
6151 static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
6152 PyObject *obj;
6153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6154 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6155 Py_INCREF(obj);
6156 return Py_BuildValue((char *)"");
6157 }
6158 static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6159 PyObject *resultobj;
6160 wxInputStream *arg1 = (wxInputStream *) 0 ;
6161 wxString *arg2 = 0 ;
6162 wxString *arg3 = 0 ;
6163 wxString *arg4 = 0 ;
6164 wxDateTime arg5 ;
6165 wxFSFile *result;
6166 wxPyInputStream *temp1 ;
6167 bool created1 ;
6168 bool temp2 = False ;
6169 bool temp3 = False ;
6170 bool temp4 = False ;
6171 wxDateTime *argp5 ;
6172 PyObject * obj0 = 0 ;
6173 PyObject * obj1 = 0 ;
6174 PyObject * obj2 = 0 ;
6175 PyObject * obj3 = 0 ;
6176 PyObject * obj4 = 0 ;
6177 char *kwnames[] = {
6178 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6179 };
6180
6181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6182 {
6183 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6184 arg1 = temp1->m_wxis;
6185 created1 = False;
6186 } else {
6187 PyErr_Clear(); // clear the failure of the wxPyConvert above
6188 arg1 = wxPyCBInputStream_create(obj0, False);
6189 if (arg1 == NULL) {
6190 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6191 SWIG_fail;
6192 }
6193 created1 = True;
6194 }
6195 }
6196 {
6197 arg2 = wxString_in_helper(obj1);
6198 if (arg2 == NULL) SWIG_fail;
6199 temp2 = True;
6200 }
6201 {
6202 arg3 = wxString_in_helper(obj2);
6203 if (arg3 == NULL) SWIG_fail;
6204 temp3 = True;
6205 }
6206 {
6207 arg4 = wxString_in_helper(obj3);
6208 if (arg4 == NULL) SWIG_fail;
6209 temp4 = True;
6210 }
6211 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6212 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6213 arg5 = *argp5;
6214 {
6215 PyThreadState* __tstate = wxPyBeginAllowThreads();
6216 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6217
6218 wxPyEndAllowThreads(__tstate);
6219 if (PyErr_Occurred()) SWIG_fail;
6220 }
6221 {
6222 resultobj = wxPyMake_wxObject(result);
6223 }
6224 {
6225 if (created1)
6226 delete arg1;
6227 }
6228 {
6229 if (temp2)
6230 delete arg2;
6231 }
6232 {
6233 if (temp3)
6234 delete arg3;
6235 }
6236 {
6237 if (temp4)
6238 delete arg4;
6239 }
6240 return resultobj;
6241 fail:
6242 {
6243 if (created1)
6244 delete arg1;
6245 }
6246 {
6247 if (temp2)
6248 delete arg2;
6249 }
6250 {
6251 if (temp3)
6252 delete arg3;
6253 }
6254 {
6255 if (temp4)
6256 delete arg4;
6257 }
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxFSFile *arg1 = (wxFSFile *) 0 ;
6265 PyObject * obj0 = 0 ;
6266 char *kwnames[] = {
6267 (char *) "self", NULL
6268 };
6269
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 delete arg1;
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 Py_INCREF(Py_None); resultobj = Py_None;
6281 return resultobj;
6282 fail:
6283 return NULL;
6284 }
6285
6286
6287 static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj;
6289 wxFSFile *arg1 = (wxFSFile *) 0 ;
6290 wxInputStream *result;
6291 PyObject * obj0 = 0 ;
6292 char *kwnames[] = {
6293 (char *) "self", NULL
6294 };
6295
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6299 {
6300 PyThreadState* __tstate = wxPyBeginAllowThreads();
6301 result = (wxInputStream *)(arg1)->GetStream();
6302
6303 wxPyEndAllowThreads(__tstate);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 wxPyInputStream * _ptr = NULL;
6308
6309 if (result) {
6310 _ptr = new wxPyInputStream(result);
6311 }
6312 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
6313 }
6314 return resultobj;
6315 fail:
6316 return NULL;
6317 }
6318
6319
6320 static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj;
6322 wxFSFile *arg1 = (wxFSFile *) 0 ;
6323 wxString *result;
6324 PyObject * obj0 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "self", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 {
6335 wxString const &_result_ref = (arg1)->GetMimeType();
6336 result = (wxString *) &_result_ref;
6337 }
6338
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 {
6343 #if wxUSE_UNICODE
6344 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6345 #else
6346 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6347 #endif
6348 }
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6356 PyObject *resultobj;
6357 wxFSFile *arg1 = (wxFSFile *) 0 ;
6358 wxString *result;
6359 PyObject * obj0 = 0 ;
6360 char *kwnames[] = {
6361 (char *) "self", NULL
6362 };
6363
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 {
6370 wxString const &_result_ref = (arg1)->GetLocation();
6371 result = (wxString *) &_result_ref;
6372 }
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 {
6378 #if wxUSE_UNICODE
6379 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6380 #else
6381 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6382 #endif
6383 }
6384 return resultobj;
6385 fail:
6386 return NULL;
6387 }
6388
6389
6390 static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6391 PyObject *resultobj;
6392 wxFSFile *arg1 = (wxFSFile *) 0 ;
6393 wxString *result;
6394 PyObject * obj0 = 0 ;
6395 char *kwnames[] = {
6396 (char *) "self", NULL
6397 };
6398
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6402 {
6403 PyThreadState* __tstate = wxPyBeginAllowThreads();
6404 {
6405 wxString const &_result_ref = (arg1)->GetAnchor();
6406 result = (wxString *) &_result_ref;
6407 }
6408
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 {
6413 #if wxUSE_UNICODE
6414 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6415 #else
6416 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6417 #endif
6418 }
6419 return resultobj;
6420 fail:
6421 return NULL;
6422 }
6423
6424
6425 static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6426 PyObject *resultobj;
6427 wxFSFile *arg1 = (wxFSFile *) 0 ;
6428 wxDateTime result;
6429 PyObject * obj0 = 0 ;
6430 char *kwnames[] = {
6431 (char *) "self", NULL
6432 };
6433
6434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6437 {
6438 PyThreadState* __tstate = wxPyBeginAllowThreads();
6439 result = (arg1)->GetModificationTime();
6440
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 {
6445 wxDateTime * resultptr;
6446 resultptr = new wxDateTime((wxDateTime &) result);
6447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6448 }
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6456 PyObject *obj;
6457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6458 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6459 Py_INCREF(obj);
6460 return Py_BuildValue((char *)"");
6461 }
6462 static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6463 PyObject *obj;
6464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6465 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6466 Py_INCREF(obj);
6467 return Py_BuildValue((char *)"");
6468 }
6469 static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxPyFileSystemHandler *result;
6472 char *kwnames[] = {
6473 NULL
6474 };
6475
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6494 PyObject *arg2 = (PyObject *) 0 ;
6495 PyObject *arg3 = (PyObject *) 0 ;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 PyObject * obj2 = 0 ;
6499 char *kwnames[] = {
6500 (char *) "self",(char *) "self",(char *) "_class", NULL
6501 };
6502
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6506 arg2 = obj1;
6507 arg3 = obj2;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 (arg1)->_setCallbackInfo(arg2,arg3);
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 Py_INCREF(Py_None); resultobj = Py_None;
6516 return resultobj;
6517 fail:
6518 return NULL;
6519 }
6520
6521
6522 static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6523 PyObject *resultobj;
6524 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6525 wxString *arg2 = 0 ;
6526 bool result;
6527 bool temp2 = False ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "self",(char *) "location", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6537 {
6538 arg2 = wxString_in_helper(obj1);
6539 if (arg2 == NULL) SWIG_fail;
6540 temp2 = True;
6541 }
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6545
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 {
6550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6551 }
6552 {
6553 if (temp2)
6554 delete arg2;
6555 }
6556 return resultobj;
6557 fail:
6558 {
6559 if (temp2)
6560 delete arg2;
6561 }
6562 return NULL;
6563 }
6564
6565
6566 static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj;
6568 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6569 wxFileSystem *arg2 = 0 ;
6570 wxString *arg3 = 0 ;
6571 wxFSFile *result;
6572 bool temp3 = False ;
6573 PyObject * obj0 = 0 ;
6574 PyObject * obj1 = 0 ;
6575 PyObject * obj2 = 0 ;
6576 char *kwnames[] = {
6577 (char *) "self",(char *) "fs",(char *) "location", NULL
6578 };
6579
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6584 SWIG_POINTER_EXCEPTION | 0)) == -1)
6585 SWIG_fail;
6586 if (arg2 == NULL) {
6587 PyErr_SetString(PyExc_TypeError,"null reference");
6588 SWIG_fail;
6589 }
6590 {
6591 arg3 = wxString_in_helper(obj2);
6592 if (arg3 == NULL) SWIG_fail;
6593 temp3 = True;
6594 }
6595 {
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = wxPyMake_wxObject(result);
6604 }
6605 {
6606 if (temp3)
6607 delete arg3;
6608 }
6609 return resultobj;
6610 fail:
6611 {
6612 if (temp3)
6613 delete arg3;
6614 }
6615 return NULL;
6616 }
6617
6618
6619 static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6620 PyObject *resultobj;
6621 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6622 wxString *arg2 = 0 ;
6623 int arg3 = (int) 0 ;
6624 wxString result;
6625 bool temp2 = False ;
6626 PyObject * obj0 = 0 ;
6627 PyObject * obj1 = 0 ;
6628 PyObject * obj2 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self",(char *) "spec",(char *) "flags", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6636 {
6637 arg2 = wxString_in_helper(obj1);
6638 if (arg2 == NULL) SWIG_fail;
6639 temp2 = True;
6640 }
6641 if (obj2) {
6642 arg3 = (int) SWIG_AsInt(obj2);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 {
6646 PyThreadState* __tstate = wxPyBeginAllowThreads();
6647 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6648
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
6652 {
6653 #if wxUSE_UNICODE
6654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6655 #else
6656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6657 #endif
6658 }
6659 {
6660 if (temp2)
6661 delete arg2;
6662 }
6663 return resultobj;
6664 fail:
6665 {
6666 if (temp2)
6667 delete arg2;
6668 }
6669 return NULL;
6670 }
6671
6672
6673 static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6674 PyObject *resultobj;
6675 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6676 wxString result;
6677 PyObject * obj0 = 0 ;
6678 char *kwnames[] = {
6679 (char *) "self", NULL
6680 };
6681
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6685 {
6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
6687 result = (arg1)->FindNext();
6688
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 #if wxUSE_UNICODE
6694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6695 #else
6696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6697 #endif
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj;
6707 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6708 wxString *arg2 = 0 ;
6709 wxString result;
6710 bool temp2 = False ;
6711 PyObject * obj0 = 0 ;
6712 PyObject * obj1 = 0 ;
6713 char *kwnames[] = {
6714 (char *) "self",(char *) "location", NULL
6715 };
6716
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6720 {
6721 arg2 = wxString_in_helper(obj1);
6722 if (arg2 == NULL) SWIG_fail;
6723 temp2 = True;
6724 }
6725 {
6726 PyThreadState* __tstate = wxPyBeginAllowThreads();
6727 result = (arg1)->GetProtocol((wxString const &)*arg2);
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_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6756 wxString *arg2 = 0 ;
6757 wxString result;
6758 bool temp2 = False ;
6759 PyObject * obj0 = 0 ;
6760 PyObject * obj1 = 0 ;
6761 char *kwnames[] = {
6762 (char *) "self",(char *) "location", NULL
6763 };
6764
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6768 {
6769 arg2 = wxString_in_helper(obj1);
6770 if (arg2 == NULL) SWIG_fail;
6771 temp2 = True;
6772 }
6773 {
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6776
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 {
6781 #if wxUSE_UNICODE
6782 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6783 #else
6784 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6785 #endif
6786 }
6787 {
6788 if (temp2)
6789 delete arg2;
6790 }
6791 return resultobj;
6792 fail:
6793 {
6794 if (temp2)
6795 delete arg2;
6796 }
6797 return NULL;
6798 }
6799
6800
6801 static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj;
6803 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6804 wxString *arg2 = 0 ;
6805 wxString result;
6806 bool temp2 = False ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 char *kwnames[] = {
6810 (char *) "self",(char *) "location", NULL
6811 };
6812
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6816 {
6817 arg2 = wxString_in_helper(obj1);
6818 if (arg2 == NULL) SWIG_fail;
6819 temp2 = True;
6820 }
6821 {
6822 PyThreadState* __tstate = wxPyBeginAllowThreads();
6823 result = (arg1)->GetAnchor((wxString const &)*arg2);
6824
6825 wxPyEndAllowThreads(__tstate);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 {
6829 #if wxUSE_UNICODE
6830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6831 #else
6832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6833 #endif
6834 }
6835 {
6836 if (temp2)
6837 delete arg2;
6838 }
6839 return resultobj;
6840 fail:
6841 {
6842 if (temp2)
6843 delete arg2;
6844 }
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6852 wxString *arg2 = 0 ;
6853 wxString result;
6854 bool temp2 = False ;
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 char *kwnames[] = {
6858 (char *) "self",(char *) "location", NULL
6859 };
6860
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6864 {
6865 arg2 = wxString_in_helper(obj1);
6866 if (arg2 == NULL) SWIG_fail;
6867 temp2 = True;
6868 }
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6872
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 {
6877 #if wxUSE_UNICODE
6878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6879 #else
6880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6881 #endif
6882 }
6883 {
6884 if (temp2)
6885 delete arg2;
6886 }
6887 return resultobj;
6888 fail:
6889 {
6890 if (temp2)
6891 delete arg2;
6892 }
6893 return NULL;
6894 }
6895
6896
6897 static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj;
6899 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6900 wxString *arg2 = 0 ;
6901 wxString result;
6902 bool temp2 = False ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char *kwnames[] = {
6906 (char *) "self",(char *) "location", NULL
6907 };
6908
6909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6912 {
6913 arg2 = wxString_in_helper(obj1);
6914 if (arg2 == NULL) SWIG_fail;
6915 temp2 = True;
6916 }
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
6920
6921 wxPyEndAllowThreads(__tstate);
6922 if (PyErr_Occurred()) SWIG_fail;
6923 }
6924 {
6925 #if wxUSE_UNICODE
6926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6927 #else
6928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6929 #endif
6930 }
6931 {
6932 if (temp2)
6933 delete arg2;
6934 }
6935 return resultobj;
6936 fail:
6937 {
6938 if (temp2)
6939 delete arg2;
6940 }
6941 return NULL;
6942 }
6943
6944
6945 static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6946 PyObject *obj;
6947 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6948 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
6949 Py_INCREF(obj);
6950 return Py_BuildValue((char *)"");
6951 }
6952 static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj;
6954 wxFileSystem *result;
6955 char *kwnames[] = {
6956 NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 result = (wxFileSystem *)new wxFileSystem();
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
6968 resultobj = wxPyMake_wxObject(result);
6969 }
6970 return resultobj;
6971 fail:
6972 return NULL;
6973 }
6974
6975
6976 static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj;
6978 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6979 PyObject * obj0 = 0 ;
6980 char *kwnames[] = {
6981 (char *) "self", NULL
6982 };
6983
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
6985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
6986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6987 {
6988 PyThreadState* __tstate = wxPyBeginAllowThreads();
6989 delete arg1;
6990
6991 wxPyEndAllowThreads(__tstate);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 Py_INCREF(Py_None); resultobj = Py_None;
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7004 wxString *arg2 = 0 ;
7005 bool arg3 = (bool) False ;
7006 bool temp2 = False ;
7007 PyObject * obj0 = 0 ;
7008 PyObject * obj1 = 0 ;
7009 PyObject * obj2 = 0 ;
7010 char *kwnames[] = {
7011 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7012 };
7013
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7017 {
7018 arg2 = wxString_in_helper(obj1);
7019 if (arg2 == NULL) SWIG_fail;
7020 temp2 = True;
7021 }
7022 if (obj2) {
7023 arg3 = (bool) SWIG_AsBool(obj2);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 Py_INCREF(Py_None); resultobj = Py_None;
7034 {
7035 if (temp2)
7036 delete arg2;
7037 }
7038 return resultobj;
7039 fail:
7040 {
7041 if (temp2)
7042 delete arg2;
7043 }
7044 return NULL;
7045 }
7046
7047
7048 static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj;
7050 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7051 wxString result;
7052 PyObject * obj0 = 0 ;
7053 char *kwnames[] = {
7054 (char *) "self", NULL
7055 };
7056
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (arg1)->GetPath();
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 {
7068 #if wxUSE_UNICODE
7069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7070 #else
7071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7072 #endif
7073 }
7074 return resultobj;
7075 fail:
7076 return NULL;
7077 }
7078
7079
7080 static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj;
7082 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7083 wxString *arg2 = 0 ;
7084 wxFSFile *result;
7085 bool temp2 = False ;
7086 PyObject * obj0 = 0 ;
7087 PyObject * obj1 = 0 ;
7088 char *kwnames[] = {
7089 (char *) "self",(char *) "location", NULL
7090 };
7091
7092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7095 {
7096 arg2 = wxString_in_helper(obj1);
7097 if (arg2 == NULL) SWIG_fail;
7098 temp2 = True;
7099 }
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 {
7108 resultobj = wxPyMake_wxObject(result);
7109 }
7110 {
7111 if (temp2)
7112 delete arg2;
7113 }
7114 return resultobj;
7115 fail:
7116 {
7117 if (temp2)
7118 delete arg2;
7119 }
7120 return NULL;
7121 }
7122
7123
7124 static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7127 wxString *arg2 = 0 ;
7128 int arg3 = (int) 0 ;
7129 wxString result;
7130 bool temp2 = False ;
7131 PyObject * obj0 = 0 ;
7132 PyObject * obj1 = 0 ;
7133 PyObject * obj2 = 0 ;
7134 char *kwnames[] = {
7135 (char *) "self",(char *) "spec",(char *) "flags", NULL
7136 };
7137
7138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7141 {
7142 arg2 = wxString_in_helper(obj1);
7143 if (arg2 == NULL) SWIG_fail;
7144 temp2 = True;
7145 }
7146 if (obj2) {
7147 arg3 = (int) SWIG_AsInt(obj2);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 {
7158 #if wxUSE_UNICODE
7159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7160 #else
7161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7162 #endif
7163 }
7164 {
7165 if (temp2)
7166 delete arg2;
7167 }
7168 return resultobj;
7169 fail:
7170 {
7171 if (temp2)
7172 delete arg2;
7173 }
7174 return NULL;
7175 }
7176
7177
7178 static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7181 wxString result;
7182 PyObject * obj0 = 0 ;
7183 char *kwnames[] = {
7184 (char *) "self", NULL
7185 };
7186
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7190 {
7191 PyThreadState* __tstate = wxPyBeginAllowThreads();
7192 result = (arg1)->FindNext();
7193
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 #if wxUSE_UNICODE
7199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7200 #else
7201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7202 #endif
7203 }
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj;
7212 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7213 PyObject * obj0 = 0 ;
7214 char *kwnames[] = {
7215 (char *) "handler", NULL
7216 };
7217
7218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 wxFileSystem::AddHandler(arg1);
7224
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 Py_INCREF(Py_None); resultobj = Py_None;
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
7236 PyObject *resultobj;
7237 char *kwnames[] = {
7238 NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7242 {
7243 PyThreadState* __tstate = wxPyBeginAllowThreads();
7244 wxFileSystem::CleanUpHandlers();
7245
7246 wxPyEndAllowThreads(__tstate);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 Py_INCREF(Py_None); resultobj = Py_None;
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxString *arg1 = 0 ;
7259 wxString result;
7260 bool temp1 = False ;
7261 PyObject * obj0 = 0 ;
7262 char *kwnames[] = {
7263 (char *) "filename", NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7267 {
7268 arg1 = wxString_in_helper(obj0);
7269 if (arg1 == NULL) SWIG_fail;
7270 temp1 = True;
7271 }
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 {
7280 #if wxUSE_UNICODE
7281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7282 #else
7283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7284 #endif
7285 }
7286 {
7287 if (temp1)
7288 delete arg1;
7289 }
7290 return resultobj;
7291 fail:
7292 {
7293 if (temp1)
7294 delete arg1;
7295 }
7296 return NULL;
7297 }
7298
7299
7300 static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
7301 PyObject *obj;
7302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7303 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7304 Py_INCREF(obj);
7305 return Py_BuildValue((char *)"");
7306 }
7307 static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxString *arg1 = 0 ;
7310 wxString result;
7311 bool temp1 = False ;
7312 PyObject * obj0 = 0 ;
7313 char *kwnames[] = {
7314 (char *) "url", NULL
7315 };
7316
7317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7318 {
7319 arg1 = wxString_in_helper(obj0);
7320 if (arg1 == NULL) SWIG_fail;
7321 temp1 = True;
7322 }
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 {
7331 #if wxUSE_UNICODE
7332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7333 #else
7334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7335 #endif
7336 }
7337 {
7338 if (temp1)
7339 delete arg1;
7340 }
7341 return resultobj;
7342 fail:
7343 {
7344 if (temp1)
7345 delete arg1;
7346 }
7347 return NULL;
7348 }
7349
7350
7351 static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7352 PyObject *resultobj;
7353 wxInternetFSHandler *result;
7354 char *kwnames[] = {
7355 NULL
7356 };
7357
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7359 {
7360 PyThreadState* __tstate = wxPyBeginAllowThreads();
7361 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7362
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7376 wxString *arg2 = 0 ;
7377 bool result;
7378 bool temp2 = False ;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 char *kwnames[] = {
7382 (char *) "self",(char *) "location", NULL
7383 };
7384
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7388 {
7389 arg2 = wxString_in_helper(obj1);
7390 if (arg2 == NULL) SWIG_fail;
7391 temp2 = True;
7392 }
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7396
7397 wxPyEndAllowThreads(__tstate);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 {
7401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7402 }
7403 {
7404 if (temp2)
7405 delete arg2;
7406 }
7407 return resultobj;
7408 fail:
7409 {
7410 if (temp2)
7411 delete arg2;
7412 }
7413 return NULL;
7414 }
7415
7416
7417 static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj;
7419 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7420 wxFileSystem *arg2 = 0 ;
7421 wxString *arg3 = 0 ;
7422 wxFSFile *result;
7423 bool temp3 = False ;
7424 PyObject * obj0 = 0 ;
7425 PyObject * obj1 = 0 ;
7426 PyObject * obj2 = 0 ;
7427 char *kwnames[] = {
7428 (char *) "self",(char *) "fs",(char *) "location", NULL
7429 };
7430
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7435 SWIG_POINTER_EXCEPTION | 0)) == -1)
7436 SWIG_fail;
7437 if (arg2 == NULL) {
7438 PyErr_SetString(PyExc_TypeError,"null reference");
7439 SWIG_fail;
7440 }
7441 {
7442 arg3 = wxString_in_helper(obj2);
7443 if (arg3 == NULL) SWIG_fail;
7444 temp3 = True;
7445 }
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7449
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 {
7454 resultobj = wxPyMake_wxObject(result);
7455 }
7456 {
7457 if (temp3)
7458 delete arg3;
7459 }
7460 return resultobj;
7461 fail:
7462 {
7463 if (temp3)
7464 delete arg3;
7465 }
7466 return NULL;
7467 }
7468
7469
7470 static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7471 PyObject *obj;
7472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7473 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7474 Py_INCREF(obj);
7475 return Py_BuildValue((char *)"");
7476 }
7477 static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7478 PyObject *resultobj;
7479 wxZipFSHandler *result;
7480 char *kwnames[] = {
7481 NULL
7482 };
7483
7484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7485 {
7486 PyThreadState* __tstate = wxPyBeginAllowThreads();
7487 result = (wxZipFSHandler *)new wxZipFSHandler();
7488
7489 wxPyEndAllowThreads(__tstate);
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7500 PyObject *resultobj;
7501 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7502 wxString *arg2 = 0 ;
7503 bool result;
7504 bool temp2 = False ;
7505 PyObject * obj0 = 0 ;
7506 PyObject * obj1 = 0 ;
7507 char *kwnames[] = {
7508 (char *) "self",(char *) "location", NULL
7509 };
7510
7511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7514 {
7515 arg2 = wxString_in_helper(obj1);
7516 if (arg2 == NULL) SWIG_fail;
7517 temp2 = True;
7518 }
7519 {
7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
7521 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7522
7523 wxPyEndAllowThreads(__tstate);
7524 if (PyErr_Occurred()) SWIG_fail;
7525 }
7526 {
7527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7528 }
7529 {
7530 if (temp2)
7531 delete arg2;
7532 }
7533 return resultobj;
7534 fail:
7535 {
7536 if (temp2)
7537 delete arg2;
7538 }
7539 return NULL;
7540 }
7541
7542
7543 static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj;
7545 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7546 wxFileSystem *arg2 = 0 ;
7547 wxString *arg3 = 0 ;
7548 wxFSFile *result;
7549 bool temp3 = False ;
7550 PyObject * obj0 = 0 ;
7551 PyObject * obj1 = 0 ;
7552 PyObject * obj2 = 0 ;
7553 char *kwnames[] = {
7554 (char *) "self",(char *) "fs",(char *) "location", NULL
7555 };
7556
7557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7561 SWIG_POINTER_EXCEPTION | 0)) == -1)
7562 SWIG_fail;
7563 if (arg2 == NULL) {
7564 PyErr_SetString(PyExc_TypeError,"null reference");
7565 SWIG_fail;
7566 }
7567 {
7568 arg3 = wxString_in_helper(obj2);
7569 if (arg3 == NULL) SWIG_fail;
7570 temp3 = True;
7571 }
7572 {
7573 PyThreadState* __tstate = wxPyBeginAllowThreads();
7574 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7575
7576 wxPyEndAllowThreads(__tstate);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 {
7580 resultobj = wxPyMake_wxObject(result);
7581 }
7582 {
7583 if (temp3)
7584 delete arg3;
7585 }
7586 return resultobj;
7587 fail:
7588 {
7589 if (temp3)
7590 delete arg3;
7591 }
7592 return NULL;
7593 }
7594
7595
7596 static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7597 PyObject *resultobj;
7598 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7599 wxString *arg2 = 0 ;
7600 int arg3 = (int) 0 ;
7601 wxString result;
7602 bool temp2 = False ;
7603 PyObject * obj0 = 0 ;
7604 PyObject * obj1 = 0 ;
7605 PyObject * obj2 = 0 ;
7606 char *kwnames[] = {
7607 (char *) "self",(char *) "spec",(char *) "flags", NULL
7608 };
7609
7610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7613 {
7614 arg2 = wxString_in_helper(obj1);
7615 if (arg2 == NULL) SWIG_fail;
7616 temp2 = True;
7617 }
7618 if (obj2) {
7619 arg3 = (int) SWIG_AsInt(obj2);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 {
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7625
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 {
7630 #if wxUSE_UNICODE
7631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7632 #else
7633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7634 #endif
7635 }
7636 {
7637 if (temp2)
7638 delete arg2;
7639 }
7640 return resultobj;
7641 fail:
7642 {
7643 if (temp2)
7644 delete arg2;
7645 }
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj;
7652 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7653 wxString result;
7654 PyObject * obj0 = 0 ;
7655 char *kwnames[] = {
7656 (char *) "self", NULL
7657 };
7658
7659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (arg1)->FindNext();
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 #if wxUSE_UNICODE
7671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7672 #else
7673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7674 #endif
7675 }
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7683 PyObject *obj;
7684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7685 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7686 Py_INCREF(obj);
7687 return Py_BuildValue((char *)"");
7688 }
7689 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj;
7691 wxString *arg1 = 0 ;
7692 wxImage *arg2 = 0 ;
7693 long arg3 ;
7694 bool temp1 = False ;
7695 PyObject * obj0 = 0 ;
7696 PyObject * obj1 = 0 ;
7697 PyObject * obj2 = 0 ;
7698 char *kwnames[] = {
7699 (char *) "filename",(char *) "image",(char *) "type", NULL
7700 };
7701
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7703 {
7704 arg1 = wxString_in_helper(obj0);
7705 if (arg1 == NULL) SWIG_fail;
7706 temp1 = True;
7707 }
7708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
7709 SWIG_POINTER_EXCEPTION | 0)) == -1)
7710 SWIG_fail;
7711 if (arg2 == NULL) {
7712 PyErr_SetString(PyExc_TypeError,"null reference");
7713 SWIG_fail;
7714 }
7715 arg3 = (long) SWIG_AsLong(obj2);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 Py_INCREF(Py_None); resultobj = Py_None;
7725 {
7726 if (temp1)
7727 delete arg1;
7728 }
7729 return resultobj;
7730 fail:
7731 {
7732 if (temp1)
7733 delete arg1;
7734 }
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxString *arg1 = 0 ;
7742 wxBitmap *arg2 = 0 ;
7743 long arg3 ;
7744 bool temp1 = False ;
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 PyObject * obj2 = 0 ;
7748 char *kwnames[] = {
7749 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
7753 {
7754 arg1 = wxString_in_helper(obj0);
7755 if (arg1 == NULL) SWIG_fail;
7756 temp1 = True;
7757 }
7758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
7759 SWIG_POINTER_EXCEPTION | 0)) == -1)
7760 SWIG_fail;
7761 if (arg2 == NULL) {
7762 PyErr_SetString(PyExc_TypeError,"null reference");
7763 SWIG_fail;
7764 }
7765 arg3 = (long) SWIG_AsLong(obj2);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 Py_INCREF(Py_None); resultobj = Py_None;
7775 {
7776 if (temp1)
7777 delete arg1;
7778 }
7779 return resultobj;
7780 fail:
7781 {
7782 if (temp1)
7783 delete arg1;
7784 }
7785 return NULL;
7786 }
7787
7788
7789 static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj;
7791 wxString *arg1 = 0 ;
7792 PyObject *arg2 = (PyObject *) 0 ;
7793 bool temp1 = False ;
7794 PyObject * obj0 = 0 ;
7795 PyObject * obj1 = 0 ;
7796 char *kwnames[] = {
7797 (char *) "filename",(char *) "data", NULL
7798 };
7799
7800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7801 {
7802 arg1 = wxString_in_helper(obj0);
7803 if (arg1 == NULL) SWIG_fail;
7804 temp1 = True;
7805 }
7806 arg2 = obj1;
7807 {
7808 PyThreadState* __tstate = wxPyBeginAllowThreads();
7809 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7810
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 Py_INCREF(Py_None); resultobj = Py_None;
7815 {
7816 if (temp1)
7817 delete arg1;
7818 }
7819 return resultobj;
7820 fail:
7821 {
7822 if (temp1)
7823 delete arg1;
7824 }
7825 return NULL;
7826 }
7827
7828
7829 static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7830 PyObject *resultobj;
7831 wxMemoryFSHandler *result;
7832 char *kwnames[] = {
7833 NULL
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7837 {
7838 PyThreadState* __tstate = wxPyBeginAllowThreads();
7839 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7840
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj;
7853 wxString *arg1 = 0 ;
7854 bool temp1 = False ;
7855 PyObject * obj0 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "filename", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7861 {
7862 arg1 = wxString_in_helper(obj0);
7863 if (arg1 == NULL) SWIG_fail;
7864 temp1 = True;
7865 }
7866 {
7867 PyThreadState* __tstate = wxPyBeginAllowThreads();
7868 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7869
7870 wxPyEndAllowThreads(__tstate);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 Py_INCREF(Py_None); resultobj = Py_None;
7874 {
7875 if (temp1)
7876 delete arg1;
7877 }
7878 return resultobj;
7879 fail:
7880 {
7881 if (temp1)
7882 delete arg1;
7883 }
7884 return NULL;
7885 }
7886
7887
7888 static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7891 wxString *arg2 = 0 ;
7892 bool result;
7893 bool temp2 = False ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "self",(char *) "location", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7903 {
7904 arg2 = wxString_in_helper(obj1);
7905 if (arg2 == NULL) SWIG_fail;
7906 temp2 = True;
7907 }
7908 {
7909 PyThreadState* __tstate = wxPyBeginAllowThreads();
7910 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7911
7912 wxPyEndAllowThreads(__tstate);
7913 if (PyErr_Occurred()) SWIG_fail;
7914 }
7915 {
7916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7917 }
7918 {
7919 if (temp2)
7920 delete arg2;
7921 }
7922 return resultobj;
7923 fail:
7924 {
7925 if (temp2)
7926 delete arg2;
7927 }
7928 return NULL;
7929 }
7930
7931
7932 static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7933 PyObject *resultobj;
7934 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7935 wxFileSystem *arg2 = 0 ;
7936 wxString *arg3 = 0 ;
7937 wxFSFile *result;
7938 bool temp3 = False ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 PyObject * obj2 = 0 ;
7942 char *kwnames[] = {
7943 (char *) "self",(char *) "fs",(char *) "location", NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
7948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7949 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7950 SWIG_POINTER_EXCEPTION | 0)) == -1)
7951 SWIG_fail;
7952 if (arg2 == NULL) {
7953 PyErr_SetString(PyExc_TypeError,"null reference");
7954 SWIG_fail;
7955 }
7956 {
7957 arg3 = wxString_in_helper(obj2);
7958 if (arg3 == NULL) SWIG_fail;
7959 temp3 = True;
7960 }
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = wxPyMake_wxObject(result);
7970 }
7971 {
7972 if (temp3)
7973 delete arg3;
7974 }
7975 return resultobj;
7976 fail:
7977 {
7978 if (temp3)
7979 delete arg3;
7980 }
7981 return NULL;
7982 }
7983
7984
7985 static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7986 PyObject *resultobj;
7987 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7988 wxString *arg2 = 0 ;
7989 int arg3 = (int) 0 ;
7990 wxString result;
7991 bool temp2 = False ;
7992 PyObject * obj0 = 0 ;
7993 PyObject * obj1 = 0 ;
7994 PyObject * obj2 = 0 ;
7995 char *kwnames[] = {
7996 (char *) "self",(char *) "spec",(char *) "flags", NULL
7997 };
7998
7999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8002 {
8003 arg2 = wxString_in_helper(obj1);
8004 if (arg2 == NULL) SWIG_fail;
8005 temp2 = True;
8006 }
8007 if (obj2) {
8008 arg3 = (int) SWIG_AsInt(obj2);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 #if wxUSE_UNICODE
8020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8021 #else
8022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8023 #endif
8024 }
8025 {
8026 if (temp2)
8027 delete arg2;
8028 }
8029 return resultobj;
8030 fail:
8031 {
8032 if (temp2)
8033 delete arg2;
8034 }
8035 return NULL;
8036 }
8037
8038
8039 static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj;
8041 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8042 wxString result;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "self", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 result = (arg1)->FindNext();
8054
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 {
8059 #if wxUSE_UNICODE
8060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8061 #else
8062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8063 #endif
8064 }
8065 return resultobj;
8066 fail:
8067 return NULL;
8068 }
8069
8070
8071 static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
8072 PyObject *obj;
8073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8074 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8075 Py_INCREF(obj);
8076 return Py_BuildValue((char *)"");
8077 }
8078 static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8081 wxString result;
8082 PyObject * obj0 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "self", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 {
8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
8092 result = (arg1)->GetName();
8093
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 {
8098 #if wxUSE_UNICODE
8099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8100 #else
8101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8102 #endif
8103 }
8104 return resultobj;
8105 fail:
8106 return NULL;
8107 }
8108
8109
8110 static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8111 PyObject *resultobj;
8112 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8113 wxString result;
8114 PyObject * obj0 = 0 ;
8115 char *kwnames[] = {
8116 (char *) "self", NULL
8117 };
8118
8119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8122 {
8123 PyThreadState* __tstate = wxPyBeginAllowThreads();
8124 result = (arg1)->GetExtension();
8125
8126 wxPyEndAllowThreads(__tstate);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 {
8130 #if wxUSE_UNICODE
8131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8132 #else
8133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8134 #endif
8135 }
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj;
8144 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8145 long result;
8146 PyObject * obj0 = 0 ;
8147 char *kwnames[] = {
8148 (char *) "self", NULL
8149 };
8150
8151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 result = (long)(arg1)->GetType();
8157
8158 wxPyEndAllowThreads(__tstate);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 resultobj = SWIG_FromLong((long)result);
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj;
8170 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8171 wxString result;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (arg1)->GetMimeType();
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 {
8188 #if wxUSE_UNICODE
8189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8190 #else
8191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8192 #endif
8193 }
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj;
8202 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8203 wxString *arg2 = 0 ;
8204 bool result;
8205 bool temp2 = False ;
8206 PyObject * obj0 = 0 ;
8207 PyObject * obj1 = 0 ;
8208 char *kwnames[] = {
8209 (char *) "self",(char *) "name", NULL
8210 };
8211
8212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8215 {
8216 arg2 = wxString_in_helper(obj1);
8217 if (arg2 == NULL) SWIG_fail;
8218 temp2 = True;
8219 }
8220 {
8221 PyThreadState* __tstate = wxPyBeginAllowThreads();
8222 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8223
8224 wxPyEndAllowThreads(__tstate);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 }
8227 {
8228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8229 }
8230 {
8231 if (temp2)
8232 delete arg2;
8233 }
8234 return resultobj;
8235 fail:
8236 {
8237 if (temp2)
8238 delete arg2;
8239 }
8240 return NULL;
8241 }
8242
8243
8244 static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj;
8246 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8247 wxString *arg2 = 0 ;
8248 bool temp2 = False ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "name", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 {
8259 arg2 = wxString_in_helper(obj1);
8260 if (arg2 == NULL) SWIG_fail;
8261 temp2 = True;
8262 }
8263 {
8264 PyThreadState* __tstate = wxPyBeginAllowThreads();
8265 (arg1)->SetName((wxString const &)*arg2);
8266
8267 wxPyEndAllowThreads(__tstate);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 Py_INCREF(Py_None); resultobj = Py_None;
8271 {
8272 if (temp2)
8273 delete arg2;
8274 }
8275 return resultobj;
8276 fail:
8277 {
8278 if (temp2)
8279 delete arg2;
8280 }
8281 return NULL;
8282 }
8283
8284
8285 static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8286 PyObject *resultobj;
8287 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8288 wxString *arg2 = 0 ;
8289 bool temp2 = False ;
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char *kwnames[] = {
8293 (char *) "self",(char *) "extension", NULL
8294 };
8295
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8299 {
8300 arg2 = wxString_in_helper(obj1);
8301 if (arg2 == NULL) SWIG_fail;
8302 temp2 = True;
8303 }
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 (arg1)->SetExtension((wxString const &)*arg2);
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 Py_INCREF(Py_None); resultobj = Py_None;
8312 {
8313 if (temp2)
8314 delete arg2;
8315 }
8316 return resultobj;
8317 fail:
8318 {
8319 if (temp2)
8320 delete arg2;
8321 }
8322 return NULL;
8323 }
8324
8325
8326 static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8327 PyObject *resultobj;
8328 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8329 long arg2 ;
8330 PyObject * obj0 = 0 ;
8331 PyObject * obj1 = 0 ;
8332 char *kwnames[] = {
8333 (char *) "self",(char *) "type", NULL
8334 };
8335
8336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8339 arg2 = (long) SWIG_AsLong(obj1);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 (arg1)->SetType(arg2);
8344
8345 wxPyEndAllowThreads(__tstate);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 Py_INCREF(Py_None); resultobj = Py_None;
8349 return resultobj;
8350 fail:
8351 return NULL;
8352 }
8353
8354
8355 static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8356 PyObject *resultobj;
8357 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8358 wxString *arg2 = 0 ;
8359 bool temp2 = False ;
8360 PyObject * obj0 = 0 ;
8361 PyObject * obj1 = 0 ;
8362 char *kwnames[] = {
8363 (char *) "self",(char *) "mimetype", NULL
8364 };
8365
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8369 {
8370 arg2 = wxString_in_helper(obj1);
8371 if (arg2 == NULL) SWIG_fail;
8372 temp2 = True;
8373 }
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 (arg1)->SetMimeType((wxString const &)*arg2);
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 Py_INCREF(Py_None); resultobj = Py_None;
8382 {
8383 if (temp2)
8384 delete arg2;
8385 }
8386 return resultobj;
8387 fail:
8388 {
8389 if (temp2)
8390 delete arg2;
8391 }
8392 return NULL;
8393 }
8394
8395
8396 static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
8397 PyObject *obj;
8398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8399 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8400 Py_INCREF(obj);
8401 return Py_BuildValue((char *)"");
8402 }
8403 static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
8404 PyObject *resultobj;
8405 wxImageHistogram *result;
8406 char *kwnames[] = {
8407 NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8411 {
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (wxImageHistogram *)new wxImageHistogram();
8414
8415 wxPyEndAllowThreads(__tstate);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8419 return resultobj;
8420 fail:
8421 return NULL;
8422 }
8423
8424
8425 static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 unsigned char arg1 ;
8428 unsigned char arg2 ;
8429 unsigned char arg3 ;
8430 unsigned long result;
8431 PyObject * obj0 = 0 ;
8432 PyObject * obj1 = 0 ;
8433 PyObject * obj2 = 0 ;
8434 char *kwnames[] = {
8435 (char *) "r",(char *) "g",(char *) "b", NULL
8436 };
8437
8438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8439 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 {
8446 PyThreadState* __tstate = wxPyBeginAllowThreads();
8447 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8448
8449 wxPyEndAllowThreads(__tstate);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8453 return resultobj;
8454 fail:
8455 return NULL;
8456 }
8457
8458
8459 static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8462 unsigned char *arg2 = (unsigned char *) 0 ;
8463 unsigned char *arg3 = (unsigned char *) 0 ;
8464 unsigned char *arg4 = (unsigned char *) 0 ;
8465 unsigned char arg5 = (unsigned char) 1 ;
8466 unsigned char arg6 = (unsigned char) 0 ;
8467 unsigned char arg7 = (unsigned char) 0 ;
8468 bool result;
8469 unsigned char temp2 ;
8470 unsigned char temp3 ;
8471 unsigned char temp4 ;
8472 PyObject * obj0 = 0 ;
8473 PyObject * obj1 = 0 ;
8474 PyObject * obj2 = 0 ;
8475 PyObject * obj3 = 0 ;
8476 char *kwnames[] = {
8477 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8478 };
8479
8480 arg2 = &temp2;
8481 arg3 = &temp3;
8482 arg4 = &temp4;
8483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8486 if (obj1) {
8487 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 if (obj2) {
8491 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 if (obj3) {
8495 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 }
8498 {
8499 PyThreadState* __tstate = wxPyBeginAllowThreads();
8500 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8501
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 {
8506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8507 }
8508 {
8509 PyObject *o = PyInt_FromLong((long) (*arg2));
8510 resultobj = t_output_helper(resultobj,o);
8511 }
8512 {
8513 PyObject *o = PyInt_FromLong((long) (*arg3));
8514 resultobj = t_output_helper(resultobj,o);
8515 }
8516 {
8517 PyObject *o = PyInt_FromLong((long) (*arg4));
8518 resultobj = t_output_helper(resultobj,o);
8519 }
8520 return resultobj;
8521 fail:
8522 return NULL;
8523 }
8524
8525
8526 static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8527 PyObject *obj;
8528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8529 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8530 Py_INCREF(obj);
8531 return Py_BuildValue((char *)"");
8532 }
8533 static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj;
8535 wxString *arg1 = 0 ;
8536 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8537 int arg3 = (int) -1 ;
8538 wxImage *result;
8539 bool temp1 = False ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 PyObject * obj2 = 0 ;
8543 char *kwnames[] = {
8544 (char *) "name",(char *) "type",(char *) "index", NULL
8545 };
8546
8547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8548 {
8549 arg1 = wxString_in_helper(obj0);
8550 if (arg1 == NULL) SWIG_fail;
8551 temp1 = True;
8552 }
8553 if (obj1) {
8554 arg2 = (long) SWIG_AsLong(obj1);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 if (obj2) {
8558 arg3 = (int) SWIG_AsInt(obj2);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 {
8562 PyThreadState* __tstate = wxPyBeginAllowThreads();
8563 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8564
8565 wxPyEndAllowThreads(__tstate);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
8568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8569 {
8570 if (temp1)
8571 delete arg1;
8572 }
8573 return resultobj;
8574 fail:
8575 {
8576 if (temp1)
8577 delete arg1;
8578 }
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 wxImage *arg1 = (wxImage *) 0 ;
8586 PyObject * obj0 = 0 ;
8587 char *kwnames[] = {
8588 (char *) "self", NULL
8589 };
8590
8591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 delete arg1;
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 Py_INCREF(Py_None); resultobj = Py_None;
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj;
8610 wxString *arg1 = 0 ;
8611 wxString *arg2 = 0 ;
8612 int arg3 = (int) -1 ;
8613 wxImage *result;
8614 bool temp1 = False ;
8615 bool temp2 = False ;
8616 PyObject * obj0 = 0 ;
8617 PyObject * obj1 = 0 ;
8618 PyObject * obj2 = 0 ;
8619 char *kwnames[] = {
8620 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8621 };
8622
8623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8624 {
8625 arg1 = wxString_in_helper(obj0);
8626 if (arg1 == NULL) SWIG_fail;
8627 temp1 = True;
8628 }
8629 {
8630 arg2 = wxString_in_helper(obj1);
8631 if (arg2 == NULL) SWIG_fail;
8632 temp2 = True;
8633 }
8634 if (obj2) {
8635 arg3 = (int) SWIG_AsInt(obj2);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8646 {
8647 if (temp1)
8648 delete arg1;
8649 }
8650 {
8651 if (temp2)
8652 delete arg2;
8653 }
8654 return resultobj;
8655 fail:
8656 {
8657 if (temp1)
8658 delete arg1;
8659 }
8660 {
8661 if (temp2)
8662 delete arg2;
8663 }
8664 return NULL;
8665 }
8666
8667
8668 static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxInputStream *arg1 = 0 ;
8671 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8672 int arg3 = (int) -1 ;
8673 wxImage *result;
8674 wxPyInputStream *temp1 ;
8675 bool created1 ;
8676 PyObject * obj0 = 0 ;
8677 PyObject * obj1 = 0 ;
8678 PyObject * obj2 = 0 ;
8679 char *kwnames[] = {
8680 (char *) "stream",(char *) "type",(char *) "index", NULL
8681 };
8682
8683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8684 {
8685 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8686 arg1 = temp1->m_wxis;
8687 created1 = False;
8688 } else {
8689 PyErr_Clear(); // clear the failure of the wxPyConvert above
8690 arg1 = wxPyCBInputStream_create(obj0, False);
8691 if (arg1 == NULL) {
8692 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8693 SWIG_fail;
8694 }
8695 created1 = True;
8696 }
8697 }
8698 if (obj1) {
8699 arg2 = (long) SWIG_AsLong(obj1);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 if (obj2) {
8703 arg3 = (int) SWIG_AsInt(obj2);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8714 {
8715 if (created1)
8716 delete arg1;
8717 }
8718 return resultobj;
8719 fail:
8720 {
8721 if (created1)
8722 delete arg1;
8723 }
8724 return NULL;
8725 }
8726
8727
8728 static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj;
8730 wxInputStream *arg1 = 0 ;
8731 wxString *arg2 = 0 ;
8732 int arg3 = (int) -1 ;
8733 wxImage *result;
8734 wxPyInputStream *temp1 ;
8735 bool created1 ;
8736 bool temp2 = False ;
8737 PyObject * obj0 = 0 ;
8738 PyObject * obj1 = 0 ;
8739 PyObject * obj2 = 0 ;
8740 char *kwnames[] = {
8741 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8742 };
8743
8744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8745 {
8746 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8747 arg1 = temp1->m_wxis;
8748 created1 = False;
8749 } else {
8750 PyErr_Clear(); // clear the failure of the wxPyConvert above
8751 arg1 = wxPyCBInputStream_create(obj0, False);
8752 if (arg1 == NULL) {
8753 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8754 SWIG_fail;
8755 }
8756 created1 = True;
8757 }
8758 }
8759 {
8760 arg2 = wxString_in_helper(obj1);
8761 if (arg2 == NULL) SWIG_fail;
8762 temp2 = True;
8763 }
8764 if (obj2) {
8765 arg3 = (int) SWIG_AsInt(obj2);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8776 {
8777 if (created1)
8778 delete arg1;
8779 }
8780 {
8781 if (temp2)
8782 delete arg2;
8783 }
8784 return resultobj;
8785 fail:
8786 {
8787 if (created1)
8788 delete arg1;
8789 }
8790 {
8791 if (temp2)
8792 delete arg2;
8793 }
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 int arg1 = (int) 0 ;
8801 int arg2 = (int) 0 ;
8802 bool arg3 = (bool) True ;
8803 wxImage *result;
8804 PyObject * obj0 = 0 ;
8805 PyObject * obj1 = 0 ;
8806 PyObject * obj2 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "width",(char *) "height",(char *) "clear", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
8812 if (obj0) {
8813 arg1 = (int) SWIG_AsInt(obj0);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 if (obj1) {
8817 arg2 = (int) SWIG_AsInt(obj1);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 if (obj2) {
8821 arg3 = (bool) SWIG_AsBool(obj2);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 }
8831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8839 PyObject *resultobj;
8840 wxBitmap *arg1 = 0 ;
8841 wxImage *result;
8842 PyObject * obj0 = 0 ;
8843 char *kwnames[] = {
8844 (char *) "bitmap", NULL
8845 };
8846
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
8849 SWIG_POINTER_EXCEPTION | 0)) == -1)
8850 SWIG_fail;
8851 if (arg1 == NULL) {
8852 PyErr_SetString(PyExc_TypeError,"null reference");
8853 SWIG_fail;
8854 }
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8870 PyObject *resultobj;
8871 int arg1 ;
8872 int arg2 ;
8873 unsigned char *arg3 = (unsigned char *) 0 ;
8874 wxImage *result;
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8877 PyObject * obj2 = 0 ;
8878 char *kwnames[] = {
8879 (char *) "width",(char *) "height",(char *) "data", NULL
8880 };
8881
8882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8883 arg1 = (int) SWIG_AsInt(obj0);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 arg2 = (int) SWIG_AsInt(obj1);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
8888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8889 {
8890 PyThreadState* __tstate = wxPyBeginAllowThreads();
8891 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8892
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8897 return resultobj;
8898 fail:
8899 return NULL;
8900 }
8901
8902
8903 static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8904 PyObject *resultobj;
8905 wxImage *arg1 = (wxImage *) 0 ;
8906 int arg2 ;
8907 int arg3 ;
8908 PyObject * obj0 = 0 ;
8909 PyObject * obj1 = 0 ;
8910 PyObject * obj2 = 0 ;
8911 char *kwnames[] = {
8912 (char *) "self",(char *) "width",(char *) "height", NULL
8913 };
8914
8915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8918 arg2 = (int) SWIG_AsInt(obj1);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 arg3 = (int) SWIG_AsInt(obj2);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 {
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 (arg1)->Create(arg2,arg3);
8925
8926 wxPyEndAllowThreads(__tstate);
8927 if (PyErr_Occurred()) SWIG_fail;
8928 }
8929 Py_INCREF(Py_None); resultobj = Py_None;
8930 return resultobj;
8931 fail:
8932 return NULL;
8933 }
8934
8935
8936 static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj;
8938 wxImage *arg1 = (wxImage *) 0 ;
8939 PyObject * obj0 = 0 ;
8940 char *kwnames[] = {
8941 (char *) "self", NULL
8942 };
8943
8944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
8945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8947 {
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 (arg1)->Destroy();
8950
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 Py_INCREF(Py_None); resultobj = Py_None;
8955 return resultobj;
8956 fail:
8957 return NULL;
8958 }
8959
8960
8961 static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
8962 PyObject *resultobj;
8963 wxImage *arg1 = (wxImage *) 0 ;
8964 int arg2 ;
8965 int arg3 ;
8966 SwigValueWrapper< wxImage > result;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 PyObject * obj2 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self",(char *) "width",(char *) "height", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8977 arg2 = (int) SWIG_AsInt(obj1);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 arg3 = (int) SWIG_AsInt(obj2);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (arg1)->Scale(arg2,arg3);
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
8988 {
8989 wxImage * resultptr;
8990 resultptr = new wxImage((wxImage &) result);
8991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
8992 }
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxImage *arg1 = (wxImage *) 0 ;
9002 int arg2 ;
9003 int arg3 ;
9004 SwigValueWrapper< wxImage > result;
9005 PyObject * obj0 = 0 ;
9006 PyObject * obj1 = 0 ;
9007 PyObject * obj2 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 arg2 = (int) SWIG_AsInt(obj1);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 arg3 = (int) SWIG_AsInt(obj2);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 {
9020 PyThreadState* __tstate = wxPyBeginAllowThreads();
9021 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9022
9023 wxPyEndAllowThreads(__tstate);
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 {
9027 wxImage * resultptr;
9028 resultptr = new wxImage((wxImage &) result);
9029 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9030 }
9031 return resultobj;
9032 fail:
9033 return NULL;
9034 }
9035
9036
9037 static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
9038 PyObject *resultobj;
9039 wxImage *arg1 = (wxImage *) 0 ;
9040 int arg2 ;
9041 int arg3 ;
9042 wxImage *result;
9043 PyObject * obj0 = 0 ;
9044 PyObject * obj1 = 0 ;
9045 PyObject * obj2 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "self",(char *) "width",(char *) "height", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9053 arg2 = (int) SWIG_AsInt(obj1);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 arg3 = (int) SWIG_AsInt(obj2);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 {
9060 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9061 result = (wxImage *) &_result_ref;
9062 }
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9068 return resultobj;
9069 fail:
9070 return NULL;
9071 }
9072
9073
9074 static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
9075 PyObject *resultobj;
9076 wxImage *arg1 = (wxImage *) 0 ;
9077 int arg2 ;
9078 int arg3 ;
9079 unsigned char arg4 ;
9080 unsigned char arg5 ;
9081 unsigned char arg6 ;
9082 PyObject * obj0 = 0 ;
9083 PyObject * obj1 = 0 ;
9084 PyObject * obj2 = 0 ;
9085 PyObject * obj3 = 0 ;
9086 PyObject * obj4 = 0 ;
9087 PyObject * obj5 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 arg2 = (int) SWIG_AsInt(obj1);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 arg3 = (int) SWIG_AsInt(obj2);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 {
9106 PyThreadState* __tstate = wxPyBeginAllowThreads();
9107 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9108
9109 wxPyEndAllowThreads(__tstate);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 Py_INCREF(Py_None); resultobj = Py_None;
9113 return resultobj;
9114 fail:
9115 return NULL;
9116 }
9117
9118
9119 static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
9120 PyObject *resultobj;
9121 wxImage *arg1 = (wxImage *) 0 ;
9122 int arg2 ;
9123 int arg3 ;
9124 unsigned char result;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 PyObject * obj2 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self",(char *) "x",(char *) "y", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 arg2 = (int) SWIG_AsInt(obj1);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 arg3 = (int) SWIG_AsInt(obj2);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9142
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9147 return resultobj;
9148 fail:
9149 return NULL;
9150 }
9151
9152
9153 static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
9154 PyObject *resultobj;
9155 wxImage *arg1 = (wxImage *) 0 ;
9156 int arg2 ;
9157 int arg3 ;
9158 unsigned char result;
9159 PyObject * obj0 = 0 ;
9160 PyObject * obj1 = 0 ;
9161 PyObject * obj2 = 0 ;
9162 char *kwnames[] = {
9163 (char *) "self",(char *) "x",(char *) "y", NULL
9164 };
9165
9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9169 arg2 = (int) SWIG_AsInt(obj1);
9170 if (PyErr_Occurred()) SWIG_fail;
9171 arg3 = (int) SWIG_AsInt(obj2);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 {
9174 PyThreadState* __tstate = wxPyBeginAllowThreads();
9175 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9176
9177 wxPyEndAllowThreads(__tstate);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9181 return resultobj;
9182 fail:
9183 return NULL;
9184 }
9185
9186
9187 static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj;
9189 wxImage *arg1 = (wxImage *) 0 ;
9190 int arg2 ;
9191 int arg3 ;
9192 unsigned char result;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 PyObject * obj2 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self",(char *) "x",(char *) "y", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 arg2 = (int) SWIG_AsInt(obj1);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 arg3 = (int) SWIG_AsInt(obj2);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9215 return resultobj;
9216 fail:
9217 return NULL;
9218 }
9219
9220
9221 static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxImage *arg1 = (wxImage *) 0 ;
9224 int arg2 ;
9225 int arg3 ;
9226 unsigned char arg4 ;
9227 PyObject * obj0 = 0 ;
9228 PyObject * obj1 = 0 ;
9229 PyObject * obj2 = 0 ;
9230 PyObject * obj3 = 0 ;
9231 char *kwnames[] = {
9232 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9233 };
9234
9235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9238 arg2 = (int) SWIG_AsInt(obj1);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 arg3 = (int) SWIG_AsInt(obj2);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->SetAlpha(arg2,arg3,arg4);
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 Py_INCREF(Py_None); resultobj = Py_None;
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxImage *arg1 = (wxImage *) 0 ;
9261 int arg2 ;
9262 int arg3 ;
9263 unsigned char result;
9264 PyObject * obj0 = 0 ;
9265 PyObject * obj1 = 0 ;
9266 PyObject * obj2 = 0 ;
9267 char *kwnames[] = {
9268 (char *) "self",(char *) "x",(char *) "y", NULL
9269 };
9270
9271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
9272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9274 arg2 = (int) SWIG_AsInt(obj1);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 arg3 = (int) SWIG_AsInt(obj2);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9286 return resultobj;
9287 fail:
9288 return NULL;
9289 }
9290
9291
9292 static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9293 PyObject *resultobj;
9294 wxImage *arg1 = (wxImage *) 0 ;
9295 bool result;
9296 PyObject * obj0 = 0 ;
9297 char *kwnames[] = {
9298 (char *) "self", NULL
9299 };
9300
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9304 {
9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9306 result = (bool)(arg1)->HasAlpha();
9307
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 }
9311 {
9312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9313 }
9314 return resultobj;
9315 fail:
9316 return NULL;
9317 }
9318
9319
9320 static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9321 PyObject *resultobj;
9322 wxImage *arg1 = (wxImage *) 0 ;
9323 byte *arg2 = (byte *) 0 ;
9324 byte *arg3 = (byte *) 0 ;
9325 byte *arg4 = (byte *) 0 ;
9326 byte arg5 = (byte) 0 ;
9327 byte arg6 = (byte) 0 ;
9328 byte arg7 = (byte) 0 ;
9329 bool result;
9330 byte temp2 ;
9331 byte temp3 ;
9332 byte temp4 ;
9333 PyObject * obj0 = 0 ;
9334 PyObject * obj1 = 0 ;
9335 PyObject * obj2 = 0 ;
9336 PyObject * obj3 = 0 ;
9337 char *kwnames[] = {
9338 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9339 };
9340
9341 arg2 = &temp2;
9342 arg3 = &temp3;
9343 arg4 = &temp4;
9344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9347 if (obj1) {
9348 arg5 = (byte) SWIG_AsUnsignedChar(obj1);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 if (obj2) {
9352 arg6 = (byte) SWIG_AsUnsignedChar(obj2);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 if (obj3) {
9356 arg7 = (byte) SWIG_AsUnsignedChar(obj3);
9357 if (PyErr_Occurred()) SWIG_fail;
9358 }
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9368 }
9369 {
9370 PyObject *o = PyInt_FromLong((long) (*arg2));
9371 resultobj = t_output_helper(resultobj,o);
9372 }
9373 {
9374 PyObject *o = PyInt_FromLong((long) (*arg3));
9375 resultobj = t_output_helper(resultobj,o);
9376 }
9377 {
9378 PyObject *o = PyInt_FromLong((long) (*arg4));
9379 resultobj = t_output_helper(resultobj,o);
9380 }
9381 return resultobj;
9382 fail:
9383 return NULL;
9384 }
9385
9386
9387 static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxImage *arg1 = (wxImage *) 0 ;
9390 wxImage *arg2 = 0 ;
9391 byte arg3 ;
9392 byte arg4 ;
9393 byte arg5 ;
9394 bool result;
9395 PyObject * obj0 = 0 ;
9396 PyObject * obj1 = 0 ;
9397 PyObject * obj2 = 0 ;
9398 PyObject * obj3 = 0 ;
9399 PyObject * obj4 = 0 ;
9400 char *kwnames[] = {
9401 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9402 };
9403
9404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9408 SWIG_POINTER_EXCEPTION | 0)) == -1)
9409 SWIG_fail;
9410 if (arg2 == NULL) {
9411 PyErr_SetString(PyExc_TypeError,"null reference");
9412 SWIG_fail;
9413 }
9414 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 arg5 = (byte) SWIG_AsUnsignedChar(obj4);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 {
9421 PyThreadState* __tstate = wxPyBeginAllowThreads();
9422 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9423
9424 wxPyEndAllowThreads(__tstate);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 {
9428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9429 }
9430 return resultobj;
9431 fail:
9432 return NULL;
9433 }
9434
9435
9436 static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj;
9438 wxString *arg1 = 0 ;
9439 bool result;
9440 bool temp1 = False ;
9441 PyObject * obj0 = 0 ;
9442 char *kwnames[] = {
9443 (char *) "name", NULL
9444 };
9445
9446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9447 {
9448 arg1 = wxString_in_helper(obj0);
9449 if (arg1 == NULL) SWIG_fail;
9450 temp1 = True;
9451 }
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9455
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 {
9460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9461 }
9462 {
9463 if (temp1)
9464 delete arg1;
9465 }
9466 return resultobj;
9467 fail:
9468 {
9469 if (temp1)
9470 delete arg1;
9471 }
9472 return NULL;
9473 }
9474
9475
9476 static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 wxString *arg1 = 0 ;
9479 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9480 int result;
9481 bool temp1 = False ;
9482 PyObject * obj0 = 0 ;
9483 PyObject * obj1 = 0 ;
9484 char *kwnames[] = {
9485 (char *) "name",(char *) "type", NULL
9486 };
9487
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9489 {
9490 arg1 = wxString_in_helper(obj0);
9491 if (arg1 == NULL) SWIG_fail;
9492 temp1 = True;
9493 }
9494 if (obj1) {
9495 arg2 = (long) SWIG_AsLong(obj1);
9496 if (PyErr_Occurred()) SWIG_fail;
9497 }
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 resultobj = SWIG_FromInt((int)result);
9506 {
9507 if (temp1)
9508 delete arg1;
9509 }
9510 return resultobj;
9511 fail:
9512 {
9513 if (temp1)
9514 delete arg1;
9515 }
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxImage *arg1 = (wxImage *) 0 ;
9523 wxString *arg2 = 0 ;
9524 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9525 int arg4 = (int) -1 ;
9526 bool result;
9527 bool temp2 = False ;
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 PyObject * obj2 = 0 ;
9531 PyObject * obj3 = 0 ;
9532 char *kwnames[] = {
9533 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9534 };
9535
9536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9539 {
9540 arg2 = wxString_in_helper(obj1);
9541 if (arg2 == NULL) SWIG_fail;
9542 temp2 = True;
9543 }
9544 if (obj2) {
9545 arg3 = (long) SWIG_AsLong(obj2);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 if (obj3) {
9549 arg4 = (int) SWIG_AsInt(obj3);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 {
9560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9561 }
9562 {
9563 if (temp2)
9564 delete arg2;
9565 }
9566 return resultobj;
9567 fail:
9568 {
9569 if (temp2)
9570 delete arg2;
9571 }
9572 return NULL;
9573 }
9574
9575
9576 static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj;
9578 wxImage *arg1 = (wxImage *) 0 ;
9579 wxString *arg2 = 0 ;
9580 wxString *arg3 = 0 ;
9581 int arg4 = (int) -1 ;
9582 bool result;
9583 bool temp2 = False ;
9584 bool temp3 = False ;
9585 PyObject * obj0 = 0 ;
9586 PyObject * obj1 = 0 ;
9587 PyObject * obj2 = 0 ;
9588 PyObject * obj3 = 0 ;
9589 char *kwnames[] = {
9590 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9591 };
9592
9593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9596 {
9597 arg2 = wxString_in_helper(obj1);
9598 if (arg2 == NULL) SWIG_fail;
9599 temp2 = True;
9600 }
9601 {
9602 arg3 = wxString_in_helper(obj2);
9603 if (arg3 == NULL) SWIG_fail;
9604 temp3 = True;
9605 }
9606 if (obj3) {
9607 arg4 = (int) SWIG_AsInt(obj3);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 {
9618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9619 }
9620 {
9621 if (temp2)
9622 delete arg2;
9623 }
9624 {
9625 if (temp3)
9626 delete arg3;
9627 }
9628 return resultobj;
9629 fail:
9630 {
9631 if (temp2)
9632 delete arg2;
9633 }
9634 {
9635 if (temp3)
9636 delete arg3;
9637 }
9638 return NULL;
9639 }
9640
9641
9642 static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 wxImage *arg1 = (wxImage *) 0 ;
9645 wxString *arg2 = 0 ;
9646 int arg3 ;
9647 bool result;
9648 bool temp2 = False ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 PyObject * obj2 = 0 ;
9652 char *kwnames[] = {
9653 (char *) "self",(char *) "name",(char *) "type", NULL
9654 };
9655
9656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9659 {
9660 arg2 = wxString_in_helper(obj1);
9661 if (arg2 == NULL) SWIG_fail;
9662 temp2 = True;
9663 }
9664 arg3 = (int) SWIG_AsInt(obj2);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9669
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 {
9674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9675 }
9676 {
9677 if (temp2)
9678 delete arg2;
9679 }
9680 return resultobj;
9681 fail:
9682 {
9683 if (temp2)
9684 delete arg2;
9685 }
9686 return NULL;
9687 }
9688
9689
9690 static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9691 PyObject *resultobj;
9692 wxImage *arg1 = (wxImage *) 0 ;
9693 wxString *arg2 = 0 ;
9694 wxString *arg3 = 0 ;
9695 bool result;
9696 bool temp2 = False ;
9697 bool temp3 = False ;
9698 PyObject * obj0 = 0 ;
9699 PyObject * obj1 = 0 ;
9700 PyObject * obj2 = 0 ;
9701 char *kwnames[] = {
9702 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9703 };
9704
9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9708 {
9709 arg2 = wxString_in_helper(obj1);
9710 if (arg2 == NULL) SWIG_fail;
9711 temp2 = True;
9712 }
9713 {
9714 arg3 = wxString_in_helper(obj2);
9715 if (arg3 == NULL) SWIG_fail;
9716 temp3 = True;
9717 }
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9721
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 {
9726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9727 }
9728 {
9729 if (temp2)
9730 delete arg2;
9731 }
9732 {
9733 if (temp3)
9734 delete arg3;
9735 }
9736 return resultobj;
9737 fail:
9738 {
9739 if (temp2)
9740 delete arg2;
9741 }
9742 {
9743 if (temp3)
9744 delete arg3;
9745 }
9746 return NULL;
9747 }
9748
9749
9750 static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj;
9752 wxInputStream *arg1 = 0 ;
9753 bool result;
9754 wxPyInputStream *temp1 ;
9755 bool created1 ;
9756 PyObject * obj0 = 0 ;
9757 char *kwnames[] = {
9758 (char *) "stream", NULL
9759 };
9760
9761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9762 {
9763 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9764 arg1 = temp1->m_wxis;
9765 created1 = False;
9766 } else {
9767 PyErr_Clear(); // clear the failure of the wxPyConvert above
9768 arg1 = wxPyCBInputStream_create(obj0, False);
9769 if (arg1 == NULL) {
9770 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9771 SWIG_fail;
9772 }
9773 created1 = True;
9774 }
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (bool)wxImage::CanRead(*arg1);
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 {
9784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9785 }
9786 {
9787 if (created1)
9788 delete arg1;
9789 }
9790 return resultobj;
9791 fail:
9792 {
9793 if (created1)
9794 delete arg1;
9795 }
9796 return NULL;
9797 }
9798
9799
9800 static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9801 PyObject *resultobj;
9802 wxImage *arg1 = (wxImage *) 0 ;
9803 wxInputStream *arg2 = 0 ;
9804 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9805 int arg4 = (int) -1 ;
9806 bool result;
9807 wxPyInputStream *temp2 ;
9808 bool created2 ;
9809 PyObject * obj0 = 0 ;
9810 PyObject * obj1 = 0 ;
9811 PyObject * obj2 = 0 ;
9812 PyObject * obj3 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9820 {
9821 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9822 arg2 = temp2->m_wxis;
9823 created2 = False;
9824 } else {
9825 PyErr_Clear(); // clear the failure of the wxPyConvert above
9826 arg2 = wxPyCBInputStream_create(obj1, False);
9827 if (arg2 == NULL) {
9828 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9829 SWIG_fail;
9830 }
9831 created2 = True;
9832 }
9833 }
9834 if (obj2) {
9835 arg3 = (long) SWIG_AsLong(obj2);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 if (obj3) {
9839 arg4 = (int) SWIG_AsInt(obj3);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 {
9850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9851 }
9852 {
9853 if (created2)
9854 delete arg2;
9855 }
9856 return resultobj;
9857 fail:
9858 {
9859 if (created2)
9860 delete arg2;
9861 }
9862 return NULL;
9863 }
9864
9865
9866 static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj;
9868 wxImage *arg1 = (wxImage *) 0 ;
9869 wxInputStream *arg2 = 0 ;
9870 wxString *arg3 = 0 ;
9871 int arg4 = (int) -1 ;
9872 bool result;
9873 wxPyInputStream *temp2 ;
9874 bool created2 ;
9875 bool temp3 = False ;
9876 PyObject * obj0 = 0 ;
9877 PyObject * obj1 = 0 ;
9878 PyObject * obj2 = 0 ;
9879 PyObject * obj3 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9889 arg2 = temp2->m_wxis;
9890 created2 = False;
9891 } else {
9892 PyErr_Clear(); // clear the failure of the wxPyConvert above
9893 arg2 = wxPyCBInputStream_create(obj1, False);
9894 if (arg2 == NULL) {
9895 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9896 SWIG_fail;
9897 }
9898 created2 = True;
9899 }
9900 }
9901 {
9902 arg3 = wxString_in_helper(obj2);
9903 if (arg3 == NULL) SWIG_fail;
9904 temp3 = True;
9905 }
9906 if (obj3) {
9907 arg4 = (int) SWIG_AsInt(obj3);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
9913
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 {
9918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9919 }
9920 {
9921 if (created2)
9922 delete arg2;
9923 }
9924 {
9925 if (temp3)
9926 delete arg3;
9927 }
9928 return resultobj;
9929 fail:
9930 {
9931 if (created2)
9932 delete arg2;
9933 }
9934 {
9935 if (temp3)
9936 delete arg3;
9937 }
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj;
9944 wxImage *arg1 = (wxImage *) 0 ;
9945 bool result;
9946 PyObject * obj0 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 result = (bool)(arg1)->Ok();
9957
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 {
9962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9963 }
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj;
9972 wxImage *arg1 = (wxImage *) 0 ;
9973 int result;
9974 PyObject * obj0 = 0 ;
9975 char *kwnames[] = {
9976 (char *) "self", NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
9980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 result = (int)(arg1)->GetWidth();
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 resultobj = SWIG_FromInt((int)result);
9990 return resultobj;
9991 fail:
9992 return NULL;
9993 }
9994
9995
9996 static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject *resultobj;
9998 wxImage *arg1 = (wxImage *) 0 ;
9999 int result;
10000 PyObject * obj0 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = (int)(arg1)->GetHeight();
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 resultobj = SWIG_FromInt((int)result);
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxImage *arg1 = (wxImage *) 0 ;
10025 wxSize result;
10026 PyObject * obj0 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = wxImage_GetSize(arg1);
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 {
10042 wxSize * resultptr;
10043 resultptr = new wxSize((wxSize &) result);
10044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10045 }
10046 return resultobj;
10047 fail:
10048 return NULL;
10049 }
10050
10051
10052 static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
10053 PyObject *resultobj;
10054 wxImage *arg1 = (wxImage *) 0 ;
10055 wxRect *arg2 = 0 ;
10056 SwigValueWrapper< wxImage > result;
10057 wxRect temp2 ;
10058 PyObject * obj0 = 0 ;
10059 PyObject * obj1 = 0 ;
10060 char *kwnames[] = {
10061 (char *) "self",(char *) "rect", NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10067 {
10068 arg2 = &temp2;
10069 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10070 }
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 {
10079 wxImage * resultptr;
10080 resultptr = new wxImage((wxImage &) result);
10081 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10082 }
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj;
10091 wxImage *arg1 = (wxImage *) 0 ;
10092 SwigValueWrapper< wxImage > result;
10093 PyObject * obj0 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (arg1)->Copy();
10104
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 {
10109 wxImage * resultptr;
10110 resultptr = new wxImage((wxImage &) result);
10111 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10112 }
10113 return resultobj;
10114 fail:
10115 return NULL;
10116 }
10117
10118
10119 static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj;
10121 wxImage *arg1 = (wxImage *) 0 ;
10122 wxImage *arg2 = 0 ;
10123 int arg3 ;
10124 int arg4 ;
10125 PyObject * obj0 = 0 ;
10126 PyObject * obj1 = 0 ;
10127 PyObject * obj2 = 0 ;
10128 PyObject * obj3 = 0 ;
10129 char *kwnames[] = {
10130 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10131 };
10132
10133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10136 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10137 SWIG_POINTER_EXCEPTION | 0)) == -1)
10138 SWIG_fail;
10139 if (arg2 == NULL) {
10140 PyErr_SetString(PyExc_TypeError,"null reference");
10141 SWIG_fail;
10142 }
10143 arg3 = (int) SWIG_AsInt(obj2);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 arg4 = (int) SWIG_AsInt(obj3);
10146 if (PyErr_Occurred()) SWIG_fail;
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10150
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 Py_INCREF(Py_None); resultobj = Py_None;
10155 return resultobj;
10156 fail:
10157 return NULL;
10158 }
10159
10160
10161 static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10162 PyObject *resultobj;
10163 wxImage *arg1 = (wxImage *) 0 ;
10164 PyObject *result;
10165 PyObject * obj0 = 0 ;
10166 char *kwnames[] = {
10167 (char *) "self", NULL
10168 };
10169
10170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10173 {
10174 PyThreadState* __tstate = wxPyBeginAllowThreads();
10175 result = (PyObject *)wxImage_GetData(arg1);
10176
10177 wxPyEndAllowThreads(__tstate);
10178 if (PyErr_Occurred()) SWIG_fail;
10179 }
10180 resultobj = result;
10181 return resultobj;
10182 fail:
10183 return NULL;
10184 }
10185
10186
10187 static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10188 PyObject *resultobj;
10189 wxImage *arg1 = (wxImage *) 0 ;
10190 PyObject *arg2 = (PyObject *) 0 ;
10191 PyObject * obj0 = 0 ;
10192 PyObject * obj1 = 0 ;
10193 char *kwnames[] = {
10194 (char *) "self",(char *) "data", NULL
10195 };
10196
10197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10200 arg2 = obj1;
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 wxImage_SetData(arg1,arg2);
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 Py_INCREF(Py_None); resultobj = Py_None;
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxImage *arg1 = (wxImage *) 0 ;
10218 PyObject *result;
10219 PyObject * obj0 = 0 ;
10220 char *kwnames[] = {
10221 (char *) "self", NULL
10222 };
10223
10224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10230
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = result;
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj;
10243 wxImage *arg1 = (wxImage *) 0 ;
10244 PyObject *arg2 = (PyObject *) 0 ;
10245 PyObject * obj0 = 0 ;
10246 PyObject * obj1 = 0 ;
10247 char *kwnames[] = {
10248 (char *) "self",(char *) "data", NULL
10249 };
10250
10251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10254 arg2 = obj1;
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 wxImage_SetDataBuffer(arg1,arg2);
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 Py_INCREF(Py_None); resultobj = Py_None;
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxImage *arg1 = (wxImage *) 0 ;
10272 PyObject *result;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (PyObject *)wxImage_GetAlphaData(arg1);
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = result;
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxImage *arg1 = (wxImage *) 0 ;
10298 PyObject *arg2 = (PyObject *) 0 ;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "self",(char *) "data", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10308 arg2 = obj1;
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 wxImage_SetAlphaData(arg1,arg2);
10312
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 Py_INCREF(Py_None); resultobj = Py_None;
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj;
10325 wxImage *arg1 = (wxImage *) 0 ;
10326 PyObject *result;
10327 PyObject * obj0 = 0 ;
10328 char *kwnames[] = {
10329 (char *) "self", NULL
10330 };
10331
10332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10335 {
10336 PyThreadState* __tstate = wxPyBeginAllowThreads();
10337 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10338
10339 wxPyEndAllowThreads(__tstate);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 resultobj = result;
10343 return resultobj;
10344 fail:
10345 return NULL;
10346 }
10347
10348
10349 static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj;
10351 wxImage *arg1 = (wxImage *) 0 ;
10352 PyObject *arg2 = (PyObject *) 0 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 char *kwnames[] = {
10356 (char *) "self",(char *) "data", NULL
10357 };
10358
10359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10362 arg2 = obj1;
10363 {
10364 PyThreadState* __tstate = wxPyBeginAllowThreads();
10365 wxImage_SetAlphaBuffer(arg1,arg2);
10366
10367 wxPyEndAllowThreads(__tstate);
10368 if (PyErr_Occurred()) SWIG_fail;
10369 }
10370 Py_INCREF(Py_None); resultobj = Py_None;
10371 return resultobj;
10372 fail:
10373 return NULL;
10374 }
10375
10376
10377 static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10378 PyObject *resultobj;
10379 wxImage *arg1 = (wxImage *) 0 ;
10380 unsigned char arg2 ;
10381 unsigned char arg3 ;
10382 unsigned char arg4 ;
10383 PyObject * obj0 = 0 ;
10384 PyObject * obj1 = 0 ;
10385 PyObject * obj2 = 0 ;
10386 PyObject * obj3 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10394 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 {
10401 PyThreadState* __tstate = wxPyBeginAllowThreads();
10402 (arg1)->SetMaskColour(arg2,arg3,arg4);
10403
10404 wxPyEndAllowThreads(__tstate);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 }
10407 Py_INCREF(Py_None); resultobj = Py_None;
10408 return resultobj;
10409 fail:
10410 return NULL;
10411 }
10412
10413
10414 static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
10415 PyObject *resultobj;
10416 wxImage *arg1 = (wxImage *) 0 ;
10417 unsigned char result;
10418 PyObject * obj0 = 0 ;
10419 char *kwnames[] = {
10420 (char *) "self", NULL
10421 };
10422
10423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 result = (unsigned char)(arg1)->GetMaskRed();
10429
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10434 return resultobj;
10435 fail:
10436 return NULL;
10437 }
10438
10439
10440 static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj;
10442 wxImage *arg1 = (wxImage *) 0 ;
10443 unsigned char result;
10444 PyObject * obj0 = 0 ;
10445 char *kwnames[] = {
10446 (char *) "self", NULL
10447 };
10448
10449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 result = (unsigned char)(arg1)->GetMaskGreen();
10455
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj;
10468 wxImage *arg1 = (wxImage *) 0 ;
10469 unsigned char result;
10470 PyObject * obj0 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (unsigned char)(arg1)->GetMaskBlue();
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj;
10494 wxImage *arg1 = (wxImage *) 0 ;
10495 bool arg2 = (bool) True ;
10496 PyObject * obj0 = 0 ;
10497 PyObject * obj1 = 0 ;
10498 char *kwnames[] = {
10499 (char *) "self",(char *) "mask", NULL
10500 };
10501
10502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10505 if (obj1) {
10506 arg2 = (bool) SWIG_AsBool(obj1);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 (arg1)->SetMask(arg2);
10512
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 Py_INCREF(Py_None); resultobj = Py_None;
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10524 PyObject *resultobj;
10525 wxImage *arg1 = (wxImage *) 0 ;
10526 bool result;
10527 PyObject * obj0 = 0 ;
10528 char *kwnames[] = {
10529 (char *) "self", NULL
10530 };
10531
10532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (bool)(arg1)->HasMask();
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 {
10543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10544 }
10545 return resultobj;
10546 fail:
10547 return NULL;
10548 }
10549
10550
10551 static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10552 PyObject *resultobj;
10553 wxImage *arg1 = (wxImage *) 0 ;
10554 double arg2 ;
10555 wxPoint *arg3 = 0 ;
10556 bool arg4 = (bool) True ;
10557 wxPoint *arg5 = (wxPoint *) NULL ;
10558 SwigValueWrapper< wxImage > result;
10559 wxPoint temp3 ;
10560 PyObject * obj0 = 0 ;
10561 PyObject * obj1 = 0 ;
10562 PyObject * obj2 = 0 ;
10563 PyObject * obj3 = 0 ;
10564 PyObject * obj4 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 arg2 = (double) SWIG_AsDouble(obj1);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 {
10575 arg3 = &temp3;
10576 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10577 }
10578 if (obj3) {
10579 arg4 = (bool) SWIG_AsBool(obj3);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 if (obj4) {
10583 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
10584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10585 }
10586 {
10587 PyThreadState* __tstate = wxPyBeginAllowThreads();
10588 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10589
10590 wxPyEndAllowThreads(__tstate);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 }
10593 {
10594 wxImage * resultptr;
10595 resultptr = new wxImage((wxImage &) result);
10596 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10597 }
10598 return resultobj;
10599 fail:
10600 return NULL;
10601 }
10602
10603
10604 static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10605 PyObject *resultobj;
10606 wxImage *arg1 = (wxImage *) 0 ;
10607 bool arg2 = (bool) True ;
10608 SwigValueWrapper< wxImage > result;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "self",(char *) "clockwise", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10618 if (obj1) {
10619 arg2 = (bool) SWIG_AsBool(obj1);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 }
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (arg1)->Rotate90(arg2);
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 wxImage * resultptr;
10631 resultptr = new wxImage((wxImage &) result);
10632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10633 }
10634 return resultobj;
10635 fail:
10636 return NULL;
10637 }
10638
10639
10640 static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10641 PyObject *resultobj;
10642 wxImage *arg1 = (wxImage *) 0 ;
10643 bool arg2 = (bool) True ;
10644 SwigValueWrapper< wxImage > result;
10645 PyObject * obj0 = 0 ;
10646 PyObject * obj1 = 0 ;
10647 char *kwnames[] = {
10648 (char *) "self",(char *) "horizontally", NULL
10649 };
10650
10651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10654 if (obj1) {
10655 arg2 = (bool) SWIG_AsBool(obj1);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (arg1)->Mirror(arg2);
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 wxImage * resultptr;
10667 resultptr = new wxImage((wxImage &) result);
10668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10669 }
10670 return resultobj;
10671 fail:
10672 return NULL;
10673 }
10674
10675
10676 static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10677 PyObject *resultobj;
10678 wxImage *arg1 = (wxImage *) 0 ;
10679 unsigned char arg2 ;
10680 unsigned char arg3 ;
10681 unsigned char arg4 ;
10682 unsigned char arg5 ;
10683 unsigned char arg6 ;
10684 unsigned char arg7 ;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 PyObject * obj2 = 0 ;
10688 PyObject * obj3 = 0 ;
10689 PyObject * obj4 = 0 ;
10690 PyObject * obj5 = 0 ;
10691 PyObject * obj6 = 0 ;
10692 char *kwnames[] = {
10693 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10694 };
10695
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10699 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 Py_INCREF(Py_None); resultobj = Py_None;
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 wxImage *arg1 = (wxImage *) 0 ;
10728 unsigned char arg2 ;
10729 unsigned char arg3 ;
10730 unsigned char arg4 ;
10731 SwigValueWrapper< wxImage > result;
10732 PyObject * obj0 = 0 ;
10733 PyObject * obj1 = 0 ;
10734 PyObject * obj2 = 0 ;
10735 PyObject * obj3 = 0 ;
10736 char *kwnames[] = {
10737 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10738 };
10739
10740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10743 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10752
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 wxImage * resultptr;
10758 resultptr = new wxImage((wxImage &) result);
10759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10760 }
10761 return resultobj;
10762 fail:
10763 return NULL;
10764 }
10765
10766
10767 static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10768 PyObject *resultobj;
10769 wxImage *arg1 = (wxImage *) 0 ;
10770 wxString *arg2 = 0 ;
10771 wxString *arg3 = 0 ;
10772 bool temp2 = False ;
10773 bool temp3 = False ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 PyObject * obj2 = 0 ;
10777 char *kwnames[] = {
10778 (char *) "self",(char *) "name",(char *) "value", NULL
10779 };
10780
10781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10784 {
10785 arg2 = wxString_in_helper(obj1);
10786 if (arg2 == NULL) SWIG_fail;
10787 temp2 = True;
10788 }
10789 {
10790 arg3 = wxString_in_helper(obj2);
10791 if (arg3 == NULL) SWIG_fail;
10792 temp3 = True;
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10797
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 Py_INCREF(Py_None); resultobj = Py_None;
10802 {
10803 if (temp2)
10804 delete arg2;
10805 }
10806 {
10807 if (temp3)
10808 delete arg3;
10809 }
10810 return resultobj;
10811 fail:
10812 {
10813 if (temp2)
10814 delete arg2;
10815 }
10816 {
10817 if (temp3)
10818 delete arg3;
10819 }
10820 return NULL;
10821 }
10822
10823
10824 static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10825 PyObject *resultobj;
10826 wxImage *arg1 = (wxImage *) 0 ;
10827 wxString *arg2 = 0 ;
10828 int arg3 ;
10829 bool temp2 = False ;
10830 PyObject * obj0 = 0 ;
10831 PyObject * obj1 = 0 ;
10832 PyObject * obj2 = 0 ;
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "name",(char *) "value", NULL
10835 };
10836
10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
10838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10840 {
10841 arg2 = wxString_in_helper(obj1);
10842 if (arg2 == NULL) SWIG_fail;
10843 temp2 = True;
10844 }
10845 arg3 = (int) SWIG_AsInt(obj2);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 (arg1)->SetOption((wxString const &)*arg2,arg3);
10850
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 Py_INCREF(Py_None); resultobj = Py_None;
10855 {
10856 if (temp2)
10857 delete arg2;
10858 }
10859 return resultobj;
10860 fail:
10861 {
10862 if (temp2)
10863 delete arg2;
10864 }
10865 return NULL;
10866 }
10867
10868
10869 static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10870 PyObject *resultobj;
10871 wxImage *arg1 = (wxImage *) 0 ;
10872 wxString *arg2 = 0 ;
10873 wxString result;
10874 bool temp2 = False ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self",(char *) "name", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10884 {
10885 arg2 = wxString_in_helper(obj1);
10886 if (arg2 == NULL) SWIG_fail;
10887 temp2 = True;
10888 }
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
10892
10893 wxPyEndAllowThreads(__tstate);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 #if wxUSE_UNICODE
10898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10899 #else
10900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10901 #endif
10902 }
10903 {
10904 if (temp2)
10905 delete arg2;
10906 }
10907 return resultobj;
10908 fail:
10909 {
10910 if (temp2)
10911 delete arg2;
10912 }
10913 return NULL;
10914 }
10915
10916
10917 static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj;
10919 wxImage *arg1 = (wxImage *) 0 ;
10920 wxString *arg2 = 0 ;
10921 int result;
10922 bool temp2 = False ;
10923 PyObject * obj0 = 0 ;
10924 PyObject * obj1 = 0 ;
10925 char *kwnames[] = {
10926 (char *) "self",(char *) "name", NULL
10927 };
10928
10929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
10930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10932 {
10933 arg2 = wxString_in_helper(obj1);
10934 if (arg2 == NULL) SWIG_fail;
10935 temp2 = True;
10936 }
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
10940
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 resultobj = SWIG_FromInt((int)result);
10945 {
10946 if (temp2)
10947 delete arg2;
10948 }
10949 return resultobj;
10950 fail:
10951 {
10952 if (temp2)
10953 delete arg2;
10954 }
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxImage *arg1 = (wxImage *) 0 ;
10962 wxString *arg2 = 0 ;
10963 bool result;
10964 bool temp2 = False ;
10965 PyObject * obj0 = 0 ;
10966 PyObject * obj1 = 0 ;
10967 char *kwnames[] = {
10968 (char *) "self",(char *) "name", NULL
10969 };
10970
10971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
10972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10974 {
10975 arg2 = wxString_in_helper(obj1);
10976 if (arg2 == NULL) SWIG_fail;
10977 temp2 = True;
10978 }
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
10982
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 {
10987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10988 }
10989 {
10990 if (temp2)
10991 delete arg2;
10992 }
10993 return resultobj;
10994 fail:
10995 {
10996 if (temp2)
10997 delete arg2;
10998 }
10999 return NULL;
11000 }
11001
11002
11003 static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj;
11005 wxImage *arg1 = (wxImage *) 0 ;
11006 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11007 unsigned long result;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 char *kwnames[] = {
11011 (char *) "self",(char *) "stopafter", NULL
11012 };
11013
11014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11017 if (obj1) {
11018 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (unsigned long)(arg1)->CountColours(arg2);
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj;
11037 wxImage *arg1 = (wxImage *) 0 ;
11038 wxImageHistogram *arg2 = 0 ;
11039 unsigned long result;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self",(char *) "h", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11049 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11050 SWIG_POINTER_EXCEPTION | 0)) == -1)
11051 SWIG_fail;
11052 if (arg2 == NULL) {
11053 PyErr_SetString(PyExc_TypeError,"null reference");
11054 SWIG_fail;
11055 }
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11059
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 }
11063 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11064 return resultobj;
11065 fail:
11066 return NULL;
11067 }
11068
11069
11070 static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj;
11072 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11073 PyObject * obj0 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "handler", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 wxImage::AddHandler(arg1);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11098 PyObject * obj0 = 0 ;
11099 char *kwnames[] = {
11100 (char *) "handler", NULL
11101 };
11102
11103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 wxImage::InsertHandler(arg1);
11109
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 Py_INCREF(Py_None); resultobj = Py_None;
11114 return resultobj;
11115 fail:
11116 return NULL;
11117 }
11118
11119
11120 static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj;
11122 wxString *arg1 = 0 ;
11123 bool result;
11124 bool temp1 = False ;
11125 PyObject * obj0 = 0 ;
11126 char *kwnames[] = {
11127 (char *) "name", NULL
11128 };
11129
11130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11131 {
11132 arg1 = wxString_in_helper(obj0);
11133 if (arg1 == NULL) SWIG_fail;
11134 temp1 = True;
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 {
11144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11145 }
11146 {
11147 if (temp1)
11148 delete arg1;
11149 }
11150 return resultobj;
11151 fail:
11152 {
11153 if (temp1)
11154 delete arg1;
11155 }
11156 return NULL;
11157 }
11158
11159
11160 static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj;
11162 wxString result;
11163 char *kwnames[] = {
11164 NULL
11165 };
11166
11167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = wxImage::GetImageExtWildcard();
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 #if wxUSE_UNICODE
11177 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11178 #else
11179 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11180 #endif
11181 }
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxImage *arg1 = (wxImage *) 0 ;
11191 wxBitmap result;
11192 PyObject * obj0 = 0 ;
11193 char *kwnames[] = {
11194 (char *) "self", NULL
11195 };
11196
11197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
11198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 result = wxImage_ConvertToBitmap(arg1);
11203
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 {
11208 wxBitmap * resultptr;
11209 resultptr = new wxBitmap((wxBitmap &) result);
11210 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11211 }
11212 return resultobj;
11213 fail:
11214 return NULL;
11215 }
11216
11217
11218 static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11219 PyObject *resultobj;
11220 wxImage *arg1 = (wxImage *) 0 ;
11221 unsigned char arg2 ;
11222 unsigned char arg3 ;
11223 unsigned char arg4 ;
11224 wxBitmap result;
11225 PyObject * obj0 = 0 ;
11226 PyObject * obj1 = 0 ;
11227 PyObject * obj2 = 0 ;
11228 PyObject * obj3 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11236 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11245
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 {
11250 wxBitmap * resultptr;
11251 resultptr = new wxBitmap((wxBitmap &) result);
11252 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11253 }
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
11261 PyObject *obj;
11262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11263 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11264 Py_INCREF(obj);
11265 return Py_BuildValue((char *)"");
11266 }
11267 static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
11268 PyObject *resultobj;
11269 char *kwnames[] = {
11270 NULL
11271 };
11272
11273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail;
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 wxInitAllImageHandlers();
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 Py_INCREF(Py_None); resultobj = Py_None;
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 static int _wrap_NullImage_set(PyObject *_val) {
11289 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11290 return 1;
11291 }
11292
11293
11294 static PyObject *_wrap_NullImage_get() {
11295 PyObject *pyobj;
11296
11297 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11298 return pyobj;
11299 }
11300
11301
11302 static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) {
11303 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11304 return 1;
11305 }
11306
11307
11308 static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11309 PyObject *pyobj;
11310
11311 {
11312 #if wxUSE_UNICODE
11313 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11314 #else
11315 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11316 #endif
11317 }
11318 return pyobj;
11319 }
11320
11321
11322 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) {
11323 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11324 return 1;
11325 }
11326
11327
11328 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11329 PyObject *pyobj;
11330
11331 {
11332 #if wxUSE_UNICODE
11333 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11334 #else
11335 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11336 #endif
11337 }
11338 return pyobj;
11339 }
11340
11341
11342 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) {
11343 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11344 return 1;
11345 }
11346
11347
11348 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11349 PyObject *pyobj;
11350
11351 {
11352 #if wxUSE_UNICODE
11353 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11354 #else
11355 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11356 #endif
11357 }
11358 return pyobj;
11359 }
11360
11361
11362 static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) {
11363 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11364 return 1;
11365 }
11366
11367
11368 static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11369 PyObject *pyobj;
11370
11371 {
11372 #if wxUSE_UNICODE
11373 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11374 #else
11375 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11376 #endif
11377 }
11378 return pyobj;
11379 }
11380
11381
11382 static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) {
11383 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11384 return 1;
11385 }
11386
11387
11388 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11389 PyObject *pyobj;
11390
11391 {
11392 #if wxUSE_UNICODE
11393 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11394 #else
11395 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11396 #endif
11397 }
11398 return pyobj;
11399 }
11400
11401
11402 static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj;
11404 wxBMPHandler *result;
11405 char *kwnames[] = {
11406 NULL
11407 };
11408
11409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11410 {
11411 PyThreadState* __tstate = wxPyBeginAllowThreads();
11412 result = (wxBMPHandler *)new wxBMPHandler();
11413
11414 wxPyEndAllowThreads(__tstate);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11418 return resultobj;
11419 fail:
11420 return NULL;
11421 }
11422
11423
11424 static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11425 PyObject *obj;
11426 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11427 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11428 Py_INCREF(obj);
11429 return Py_BuildValue((char *)"");
11430 }
11431 static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11432 PyObject *resultobj;
11433 wxICOHandler *result;
11434 char *kwnames[] = {
11435 NULL
11436 };
11437
11438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 result = (wxICOHandler *)new wxICOHandler();
11442
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11454 PyObject *obj;
11455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11456 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11457 Py_INCREF(obj);
11458 return Py_BuildValue((char *)"");
11459 }
11460 static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj;
11462 wxCURHandler *result;
11463 char *kwnames[] = {
11464 NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (wxCURHandler *)new wxCURHandler();
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11483 PyObject *obj;
11484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11485 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11486 Py_INCREF(obj);
11487 return Py_BuildValue((char *)"");
11488 }
11489 static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj;
11491 wxANIHandler *result;
11492 char *kwnames[] = {
11493 NULL
11494 };
11495
11496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 result = (wxANIHandler *)new wxANIHandler();
11500
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11512 PyObject *obj;
11513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11514 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11515 Py_INCREF(obj);
11516 return Py_BuildValue((char *)"");
11517 }
11518 static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxPNGHandler *result;
11521 char *kwnames[] = {
11522 NULL
11523 };
11524
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11526 {
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 result = (wxPNGHandler *)new wxPNGHandler();
11529
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11534 return resultobj;
11535 fail:
11536 return NULL;
11537 }
11538
11539
11540 static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11541 PyObject *obj;
11542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11543 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11544 Py_INCREF(obj);
11545 return Py_BuildValue((char *)"");
11546 }
11547 static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11548 PyObject *resultobj;
11549 wxGIFHandler *result;
11550 char *kwnames[] = {
11551 NULL
11552 };
11553
11554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (wxGIFHandler *)new wxGIFHandler();
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11570 PyObject *obj;
11571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11572 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11573 Py_INCREF(obj);
11574 return Py_BuildValue((char *)"");
11575 }
11576 static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj;
11578 wxPCXHandler *result;
11579 char *kwnames[] = {
11580 NULL
11581 };
11582
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (wxPCXHandler *)new wxPCXHandler();
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11599 PyObject *obj;
11600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11601 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11602 Py_INCREF(obj);
11603 return Py_BuildValue((char *)"");
11604 }
11605 static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11606 PyObject *resultobj;
11607 wxJPEGHandler *result;
11608 char *kwnames[] = {
11609 NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 result = (wxJPEGHandler *)new wxJPEGHandler();
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
11621 return resultobj;
11622 fail:
11623 return NULL;
11624 }
11625
11626
11627 static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11628 PyObject *obj;
11629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11630 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11631 Py_INCREF(obj);
11632 return Py_BuildValue((char *)"");
11633 }
11634 static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj;
11636 wxPNMHandler *result;
11637 char *kwnames[] = {
11638 NULL
11639 };
11640
11641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 result = (wxPNMHandler *)new wxPNMHandler();
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
11650 return resultobj;
11651 fail:
11652 return NULL;
11653 }
11654
11655
11656 static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11657 PyObject *obj;
11658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11659 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11660 Py_INCREF(obj);
11661 return Py_BuildValue((char *)"");
11662 }
11663 static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11664 PyObject *resultobj;
11665 wxXPMHandler *result;
11666 char *kwnames[] = {
11667 NULL
11668 };
11669
11670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (wxXPMHandler *)new wxXPMHandler();
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
11679 return resultobj;
11680 fail:
11681 return NULL;
11682 }
11683
11684
11685 static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11686 PyObject *obj;
11687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11688 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11689 Py_INCREF(obj);
11690 return Py_BuildValue((char *)"");
11691 }
11692 static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11693 PyObject *resultobj;
11694 wxTIFFHandler *result;
11695 char *kwnames[] = {
11696 NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = (wxTIFFHandler *)new wxTIFFHandler();
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
11708 return resultobj;
11709 fail:
11710 return NULL;
11711 }
11712
11713
11714 static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11715 PyObject *obj;
11716 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11717 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11718 Py_INCREF(obj);
11719 return Py_BuildValue((char *)"");
11720 }
11721 static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj;
11723 wxEvtHandler *result;
11724 char *kwnames[] = {
11725 NULL
11726 };
11727
11728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (wxEvtHandler *)new wxEvtHandler();
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 {
11737 resultobj = wxPyMake_wxObject(result);
11738 }
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj;
11747 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11748 wxEvtHandler *result;
11749 PyObject * obj0 = 0 ;
11750 char *kwnames[] = {
11751 (char *) "self", NULL
11752 };
11753
11754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11760
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 {
11765 resultobj = wxPyMake_wxObject(result);
11766 }
11767 return resultobj;
11768 fail:
11769 return NULL;
11770 }
11771
11772
11773 static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11774 PyObject *resultobj;
11775 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11776 wxEvtHandler *result;
11777 PyObject * obj0 = 0 ;
11778 char *kwnames[] = {
11779 (char *) "self", NULL
11780 };
11781
11782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 {
11793 resultobj = wxPyMake_wxObject(result);
11794 }
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11804 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11805 PyObject * obj0 = 0 ;
11806 PyObject * obj1 = 0 ;
11807 char *kwnames[] = {
11808 (char *) "self",(char *) "handler", NULL
11809 };
11810
11811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 (arg1)->SetNextHandler(arg2);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 Py_INCREF(Py_None); resultobj = Py_None;
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11833 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
11836 char *kwnames[] = {
11837 (char *) "self",(char *) "handler", NULL
11838 };
11839
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 (arg1)->SetPreviousHandler(arg2);
11848
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 Py_INCREF(Py_None); resultobj = Py_None;
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj;
11861 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11862 bool result;
11863 PyObject * obj0 = 0 ;
11864 char *kwnames[] = {
11865 (char *) "self", NULL
11866 };
11867
11868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
11869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (bool)(arg1)->GetEvtHandlerEnabled();
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
11879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11880 }
11881 return resultobj;
11882 fail:
11883 return NULL;
11884 }
11885
11886
11887 static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11888 PyObject *resultobj;
11889 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11890 bool arg2 ;
11891 PyObject * obj0 = 0 ;
11892 PyObject * obj1 = 0 ;
11893 char *kwnames[] = {
11894 (char *) "self",(char *) "enabled", NULL
11895 };
11896
11897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
11898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11900 arg2 = (bool) SWIG_AsBool(obj1);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 {
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 (arg1)->SetEvtHandlerEnabled(arg2);
11905
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 Py_INCREF(Py_None); resultobj = Py_None;
11910 return resultobj;
11911 fail:
11912 return NULL;
11913 }
11914
11915
11916 static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11917 PyObject *resultobj;
11918 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11919 wxEvent *arg2 = 0 ;
11920 bool result;
11921 PyObject * obj0 = 0 ;
11922 PyObject * obj1 = 0 ;
11923 char *kwnames[] = {
11924 (char *) "self",(char *) "event", NULL
11925 };
11926
11927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
11928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11930 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
11931 SWIG_POINTER_EXCEPTION | 0)) == -1)
11932 SWIG_fail;
11933 if (arg2 == NULL) {
11934 PyErr_SetString(PyExc_TypeError,"null reference");
11935 SWIG_fail;
11936 }
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 result = (bool)(arg1)->ProcessEvent(*arg2);
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 {
11945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11946 }
11947 return resultobj;
11948 fail:
11949 return NULL;
11950 }
11951
11952
11953 static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11956 wxEvent *arg2 = 0 ;
11957 PyObject * obj0 = 0 ;
11958 PyObject * obj1 = 0 ;
11959 char *kwnames[] = {
11960 (char *) "self",(char *) "event", NULL
11961 };
11962
11963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
11964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
11967 SWIG_POINTER_EXCEPTION | 0)) == -1)
11968 SWIG_fail;
11969 if (arg2 == NULL) {
11970 PyErr_SetString(PyExc_TypeError,"null reference");
11971 SWIG_fail;
11972 }
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
11975 (arg1)->AddPendingEvent(*arg2);
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 Py_INCREF(Py_None); resultobj = Py_None;
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj;
11989 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11990 PyObject * obj0 = 0 ;
11991 char *kwnames[] = {
11992 (char *) "self", NULL
11993 };
11994
11995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
11996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 (arg1)->ProcessPendingEvents();
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 Py_INCREF(Py_None); resultobj = Py_None;
12006 return resultobj;
12007 fail:
12008 return NULL;
12009 }
12010
12011
12012 static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj;
12014 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12015 int arg2 ;
12016 int arg3 ;
12017 int arg4 ;
12018 PyObject *arg5 = (PyObject *) 0 ;
12019 PyObject * obj0 = 0 ;
12020 PyObject * obj1 = 0 ;
12021 PyObject * obj2 = 0 ;
12022 PyObject * obj3 = 0 ;
12023 PyObject * obj4 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12031 arg2 = (int) SWIG_AsInt(obj1);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 arg3 = (int) SWIG_AsInt(obj2);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 arg4 = (int) SWIG_AsInt(obj3);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 arg5 = obj4;
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 Py_INCREF(Py_None); resultobj = Py_None;
12046 return resultobj;
12047 fail:
12048 return NULL;
12049 }
12050
12051
12052 static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
12053 PyObject *resultobj;
12054 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12055 int arg2 ;
12056 int arg3 = (int) -1 ;
12057 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12058 bool result;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 PyObject * obj2 = 0 ;
12062 PyObject * obj3 = 0 ;
12063 char *kwnames[] = {
12064 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12065 };
12066
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12070 arg2 = (int) SWIG_AsInt(obj1);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 if (obj2) {
12073 arg3 = (int) SWIG_AsInt(obj2);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 if (obj3) {
12077 arg4 = (wxEventType) SWIG_AsInt(obj3);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12083
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 {
12088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12089 }
12090 return resultobj;
12091 fail:
12092 return NULL;
12093 }
12094
12095
12096 static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12097 PyObject *resultobj;
12098 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12099 PyObject *arg2 = (PyObject *) 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 char *kwnames[] = {
12103 (char *) "self",(char *) "_self", NULL
12104 };
12105
12106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12109 arg2 = obj1;
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 wxEvtHandler__setOORInfo(arg1,arg2);
12113
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) SWIG_fail;
12116 }
12117 Py_INCREF(Py_None); resultobj = Py_None;
12118 return resultobj;
12119 fail:
12120 return NULL;
12121 }
12122
12123
12124 static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
12125 PyObject *obj;
12126 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12127 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12128 Py_INCREF(obj);
12129 return Py_BuildValue((char *)"");
12130 }
12131 static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj;
12133 wxEventType result;
12134 char *kwnames[] = {
12135 NULL
12136 };
12137
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 result = (wxEventType)wxNewEventType();
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_FromInt((int)result);
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj;
12155 wxEvent *arg1 = (wxEvent *) 0 ;
12156 PyObject * obj0 = 0 ;
12157 char *kwnames[] = {
12158 (char *) "self", NULL
12159 };
12160
12161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 delete arg1;
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 Py_INCREF(Py_None); resultobj = Py_None;
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12179 PyObject *resultobj;
12180 wxEvent *arg1 = (wxEvent *) 0 ;
12181 wxEventType arg2 ;
12182 PyObject * obj0 = 0 ;
12183 PyObject * obj1 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self",(char *) "typ", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12191 arg2 = (wxEventType) SWIG_AsInt(obj1);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 (arg1)->SetEventType(arg2);
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_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxEvent *arg1 = (wxEvent *) 0 ;
12210 wxEventType result;
12211 PyObject * obj0 = 0 ;
12212 char *kwnames[] = {
12213 (char *) "self", NULL
12214 };
12215
12216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12222
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 resultobj = SWIG_FromInt((int)result);
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj;
12235 wxEvent *arg1 = (wxEvent *) 0 ;
12236 wxObject *result;
12237 PyObject * obj0 = 0 ;
12238 char *kwnames[] = {
12239 (char *) "self", NULL
12240 };
12241
12242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12248
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 {
12253 resultobj = wxPyMake_wxObject(result);
12254 }
12255 return resultobj;
12256 fail:
12257 return NULL;
12258 }
12259
12260
12261 static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 wxEvent *arg1 = (wxEvent *) 0 ;
12264 wxObject *arg2 = (wxObject *) 0 ;
12265 PyObject * obj0 = 0 ;
12266 PyObject * obj1 = 0 ;
12267 char *kwnames[] = {
12268 (char *) "self",(char *) "obj", NULL
12269 };
12270
12271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12276 {
12277 PyThreadState* __tstate = wxPyBeginAllowThreads();
12278 (arg1)->SetEventObject(arg2);
12279
12280 wxPyEndAllowThreads(__tstate);
12281 if (PyErr_Occurred()) SWIG_fail;
12282 }
12283 Py_INCREF(Py_None); resultobj = Py_None;
12284 return resultobj;
12285 fail:
12286 return NULL;
12287 }
12288
12289
12290 static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12291 PyObject *resultobj;
12292 wxEvent *arg1 = (wxEvent *) 0 ;
12293 long result;
12294 PyObject * obj0 = 0 ;
12295 char *kwnames[] = {
12296 (char *) "self", NULL
12297 };
12298
12299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 resultobj = SWIG_FromLong((long)result);
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxEvent *arg1 = (wxEvent *) 0 ;
12319 long arg2 = (long) 0 ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self",(char *) "ts", NULL
12324 };
12325
12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12329 if (obj1) {
12330 arg2 = (long) SWIG_AsLong(obj1);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 (arg1)->SetTimestamp(arg2);
12336
12337 wxPyEndAllowThreads(__tstate);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 Py_INCREF(Py_None); resultobj = Py_None;
12341 return resultobj;
12342 fail:
12343 return NULL;
12344 }
12345
12346
12347 static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj;
12349 wxEvent *arg1 = (wxEvent *) 0 ;
12350 int result;
12351 PyObject * obj0 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = (int)((wxEvent const *)arg1)->GetId();
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 resultobj = SWIG_FromInt((int)result);
12367 return resultobj;
12368 fail:
12369 return NULL;
12370 }
12371
12372
12373 static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12374 PyObject *resultobj;
12375 wxEvent *arg1 = (wxEvent *) 0 ;
12376 int arg2 ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self",(char *) "Id", NULL
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12386 arg2 = (int) SWIG_AsInt(obj1);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 {
12389 PyThreadState* __tstate = wxPyBeginAllowThreads();
12390 (arg1)->SetId(arg2);
12391
12392 wxPyEndAllowThreads(__tstate);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 }
12395 Py_INCREF(Py_None); resultobj = Py_None;
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxEvent *arg1 = (wxEvent *) 0 ;
12405 bool result;
12406 PyObject * obj0 = 0 ;
12407 char *kwnames[] = {
12408 (char *) "self", NULL
12409 };
12410
12411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 {
12422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12423 }
12424 return resultobj;
12425 fail:
12426 return NULL;
12427 }
12428
12429
12430 static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
12431 PyObject *resultobj;
12432 wxEvent *arg1 = (wxEvent *) 0 ;
12433 bool arg2 = (bool) True ;
12434 PyObject * obj0 = 0 ;
12435 PyObject * obj1 = 0 ;
12436 char *kwnames[] = {
12437 (char *) "self",(char *) "skip", NULL
12438 };
12439
12440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12443 if (obj1) {
12444 arg2 = (bool) SWIG_AsBool(obj1);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 (arg1)->Skip(arg2);
12450
12451 wxPyEndAllowThreads(__tstate);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 }
12454 Py_INCREF(Py_None); resultobj = Py_None;
12455 return resultobj;
12456 fail:
12457 return NULL;
12458 }
12459
12460
12461 static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12462 PyObject *resultobj;
12463 wxEvent *arg1 = (wxEvent *) 0 ;
12464 bool result;
12465 PyObject * obj0 = 0 ;
12466 char *kwnames[] = {
12467 (char *) "self", NULL
12468 };
12469
12470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12473 {
12474 PyThreadState* __tstate = wxPyBeginAllowThreads();
12475 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12476
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 {
12481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12482 }
12483 return resultobj;
12484 fail:
12485 return NULL;
12486 }
12487
12488
12489 static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj;
12491 wxEvent *arg1 = (wxEvent *) 0 ;
12492 bool result;
12493 PyObject * obj0 = 0 ;
12494 char *kwnames[] = {
12495 (char *) "self", NULL
12496 };
12497
12498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12504
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 {
12509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12510 }
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxEvent *arg1 = (wxEvent *) 0 ;
12520 int result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (int)(arg1)->StopPropagation();
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = SWIG_FromInt((int)result);
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxEvent *arg1 = (wxEvent *) 0 ;
12546 int arg2 ;
12547 PyObject * obj0 = 0 ;
12548 PyObject * obj1 = 0 ;
12549 char *kwnames[] = {
12550 (char *) "self",(char *) "propagationLevel", NULL
12551 };
12552
12553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12556 arg2 = (int) SWIG_AsInt(obj1);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 (arg1)->ResumePropagation(arg2);
12561
12562 wxPyEndAllowThreads(__tstate);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 }
12565 Py_INCREF(Py_None); resultobj = Py_None;
12566 return resultobj;
12567 fail:
12568 return NULL;
12569 }
12570
12571
12572 static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj;
12574 wxEvent *arg1 = (wxEvent *) 0 ;
12575 wxEvent *result;
12576 PyObject * obj0 = 0 ;
12577 char *kwnames[] = {
12578 (char *) "self", NULL
12579 };
12580
12581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 result = (wxEvent *)(arg1)->Clone();
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12599 PyObject *obj;
12600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12601 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12602 Py_INCREF(obj);
12603 return Py_BuildValue((char *)"");
12604 }
12605 static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj;
12607 wxEvent *arg1 = 0 ;
12608 wxPropagationDisabler *result;
12609 PyObject * obj0 = 0 ;
12610 char *kwnames[] = {
12611 (char *) "event", NULL
12612 };
12613
12614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12616 SWIG_POINTER_EXCEPTION | 0)) == -1)
12617 SWIG_fail;
12618 if (arg1 == NULL) {
12619 PyErr_SetString(PyExc_TypeError,"null reference");
12620 SWIG_fail;
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
12630 return resultobj;
12631 fail:
12632 return NULL;
12633 }
12634
12635
12636 static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12637 PyObject *resultobj;
12638 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12639 PyObject * obj0 = 0 ;
12640 char *kwnames[] = {
12641 (char *) "self", NULL
12642 };
12643
12644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
12646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 delete arg1;
12650
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 Py_INCREF(Py_None); resultobj = Py_None;
12655 return resultobj;
12656 fail:
12657 return NULL;
12658 }
12659
12660
12661 static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12662 PyObject *obj;
12663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12664 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12665 Py_INCREF(obj);
12666 return Py_BuildValue((char *)"");
12667 }
12668 static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj;
12670 wxEvent *arg1 = 0 ;
12671 wxPropagateOnce *result;
12672 PyObject * obj0 = 0 ;
12673 char *kwnames[] = {
12674 (char *) "event", NULL
12675 };
12676
12677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12679 SWIG_POINTER_EXCEPTION | 0)) == -1)
12680 SWIG_fail;
12681 if (arg1 == NULL) {
12682 PyErr_SetString(PyExc_TypeError,"null reference");
12683 SWIG_fail;
12684 }
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12700 PyObject *resultobj;
12701 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12702 PyObject * obj0 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self", NULL
12705 };
12706
12707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
12709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 delete arg1;
12713
12714 wxPyEndAllowThreads(__tstate);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 Py_INCREF(Py_None); resultobj = Py_None;
12718 return resultobj;
12719 fail:
12720 return NULL;
12721 }
12722
12723
12724 static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12725 PyObject *obj;
12726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12727 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12728 Py_INCREF(obj);
12729 return Py_BuildValue((char *)"");
12730 }
12731 static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12732 PyObject *resultobj;
12733 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12734 int arg2 = (int) 0 ;
12735 wxCommandEvent *result;
12736 PyObject * obj0 = 0 ;
12737 PyObject * obj1 = 0 ;
12738 char *kwnames[] = {
12739 (char *) "commandType",(char *) "winid", NULL
12740 };
12741
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12743 if (obj0) {
12744 arg1 = (wxEventType) SWIG_AsInt(obj0);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 if (obj1) {
12748 arg2 = (int) SWIG_AsInt(obj1);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12754
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
12759 return resultobj;
12760 fail:
12761 return NULL;
12762 }
12763
12764
12765 static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj;
12767 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12768 int result;
12769 PyObject * obj0 = 0 ;
12770 char *kwnames[] = {
12771 (char *) "self", NULL
12772 };
12773
12774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12777 {
12778 PyThreadState* __tstate = wxPyBeginAllowThreads();
12779 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12780
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 resultobj = SWIG_FromInt((int)result);
12785 return resultobj;
12786 fail:
12787 return NULL;
12788 }
12789
12790
12791 static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12792 PyObject *resultobj;
12793 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12794 wxString *arg2 = 0 ;
12795 bool temp2 = False ;
12796 PyObject * obj0 = 0 ;
12797 PyObject * obj1 = 0 ;
12798 char *kwnames[] = {
12799 (char *) "self",(char *) "s", NULL
12800 };
12801
12802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12805 {
12806 arg2 = wxString_in_helper(obj1);
12807 if (arg2 == NULL) SWIG_fail;
12808 temp2 = True;
12809 }
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 (arg1)->SetString((wxString const &)*arg2);
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 Py_INCREF(Py_None); resultobj = Py_None;
12818 {
12819 if (temp2)
12820 delete arg2;
12821 }
12822 return resultobj;
12823 fail:
12824 {
12825 if (temp2)
12826 delete arg2;
12827 }
12828 return NULL;
12829 }
12830
12831
12832 static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12833 PyObject *resultobj;
12834 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12835 wxString result;
12836 PyObject * obj0 = 0 ;
12837 char *kwnames[] = {
12838 (char *) "self", NULL
12839 };
12840
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12844 {
12845 PyThreadState* __tstate = wxPyBeginAllowThreads();
12846 result = ((wxCommandEvent const *)arg1)->GetString();
12847
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 {
12852 #if wxUSE_UNICODE
12853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12854 #else
12855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12856 #endif
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12867 bool result;
12868 PyObject * obj0 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 {
12884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12885 }
12886 return resultobj;
12887 fail:
12888 return NULL;
12889 }
12890
12891
12892 static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj;
12894 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12895 bool result;
12896 PyObject * obj0 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
12902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 {
12912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12913 }
12914 return resultobj;
12915 fail:
12916 return NULL;
12917 }
12918
12919
12920 static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj;
12922 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12923 long arg2 ;
12924 PyObject * obj0 = 0 ;
12925 PyObject * obj1 = 0 ;
12926 char *kwnames[] = {
12927 (char *) "self",(char *) "extraLong", NULL
12928 };
12929
12930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
12931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12933 arg2 = (long) SWIG_AsLong(obj1);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 (arg1)->SetExtraLong(arg2);
12938
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 Py_INCREF(Py_None); resultobj = Py_None;
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj;
12951 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12952 long result;
12953 PyObject * obj0 = 0 ;
12954 char *kwnames[] = {
12955 (char *) "self", NULL
12956 };
12957
12958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
12959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
12964
12965 wxPyEndAllowThreads(__tstate);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 }
12968 resultobj = SWIG_FromLong((long)result);
12969 return resultobj;
12970 fail:
12971 return NULL;
12972 }
12973
12974
12975 static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
12976 PyObject *resultobj;
12977 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12978 int arg2 ;
12979 PyObject * obj0 = 0 ;
12980 PyObject * obj1 = 0 ;
12981 char *kwnames[] = {
12982 (char *) "self",(char *) "i", NULL
12983 };
12984
12985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
12986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12988 arg2 = (int) SWIG_AsInt(obj1);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 {
12991 PyThreadState* __tstate = wxPyBeginAllowThreads();
12992 (arg1)->SetInt(arg2);
12993
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 Py_INCREF(Py_None); resultobj = Py_None;
12998 return resultobj;
12999 fail:
13000 return NULL;
13001 }
13002
13003
13004 static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj;
13006 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13007 long result;
13008 PyObject * obj0 = 0 ;
13009 char *kwnames[] = {
13010 (char *) "self", NULL
13011 };
13012
13013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13019
13020 wxPyEndAllowThreads(__tstate);
13021 if (PyErr_Occurred()) SWIG_fail;
13022 }
13023 resultobj = SWIG_FromLong((long)result);
13024 return resultobj;
13025 fail:
13026 return NULL;
13027 }
13028
13029
13030 static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
13031 PyObject *resultobj;
13032 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13033 wxEvent *result;
13034 PyObject * obj0 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "self", NULL
13037 };
13038
13039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13045
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13050 return resultobj;
13051 fail:
13052 return NULL;
13053 }
13054
13055
13056 static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
13057 PyObject *obj;
13058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13059 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13060 Py_INCREF(obj);
13061 return Py_BuildValue((char *)"");
13062 }
13063 static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13064 PyObject *resultobj;
13065 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13066 int arg2 = (int) 0 ;
13067 wxNotifyEvent *result;
13068 PyObject * obj0 = 0 ;
13069 PyObject * obj1 = 0 ;
13070 char *kwnames[] = {
13071 (char *) "commandType",(char *) "winid", NULL
13072 };
13073
13074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13075 if (obj0) {
13076 arg1 = (wxEventType) SWIG_AsInt(obj0);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 if (obj1) {
13080 arg2 = (int) SWIG_AsInt(obj1);
13081 if (PyErr_Occurred()) SWIG_fail;
13082 }
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13086
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13091 return resultobj;
13092 fail:
13093 return NULL;
13094 }
13095
13096
13097 static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
13098 PyObject *resultobj;
13099 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13100 PyObject * obj0 = 0 ;
13101 char *kwnames[] = {
13102 (char *) "self", NULL
13103 };
13104
13105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 (arg1)->Veto();
13111
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 Py_INCREF(Py_None); resultobj = Py_None;
13116 return resultobj;
13117 fail:
13118 return NULL;
13119 }
13120
13121
13122 static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj;
13124 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13125 PyObject * obj0 = 0 ;
13126 char *kwnames[] = {
13127 (char *) "self", NULL
13128 };
13129
13130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 (arg1)->Allow();
13136
13137 wxPyEndAllowThreads(__tstate);
13138 if (PyErr_Occurred()) SWIG_fail;
13139 }
13140 Py_INCREF(Py_None); resultobj = Py_None;
13141 return resultobj;
13142 fail:
13143 return NULL;
13144 }
13145
13146
13147 static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj;
13149 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13150 bool result;
13151 PyObject * obj0 = 0 ;
13152 char *kwnames[] = {
13153 (char *) "self", NULL
13154 };
13155
13156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (bool)(arg1)->IsAllowed();
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 {
13167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13168 }
13169 return resultobj;
13170 fail:
13171 return NULL;
13172 }
13173
13174
13175 static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
13176 PyObject *obj;
13177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13178 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13179 Py_INCREF(obj);
13180 return Py_BuildValue((char *)"");
13181 }
13182 static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj;
13184 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13185 int arg2 = (int) 0 ;
13186 int arg3 = (int) 0 ;
13187 int arg4 = (int) 0 ;
13188 wxScrollEvent *result;
13189 PyObject * obj0 = 0 ;
13190 PyObject * obj1 = 0 ;
13191 PyObject * obj2 = 0 ;
13192 PyObject * obj3 = 0 ;
13193 char *kwnames[] = {
13194 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13195 };
13196
13197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13198 if (obj0) {
13199 arg1 = (wxEventType) SWIG_AsInt(obj0);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 if (obj1) {
13203 arg2 = (int) SWIG_AsInt(obj1);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 if (obj2) {
13207 arg3 = (int) SWIG_AsInt(obj2);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 if (obj3) {
13211 arg4 = (int) SWIG_AsInt(obj3);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13217
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
13221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13222 return resultobj;
13223 fail:
13224 return NULL;
13225 }
13226
13227
13228 static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj;
13230 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13231 int result;
13232 PyObject * obj0 = 0 ;
13233 char *kwnames[] = {
13234 (char *) "self", NULL
13235 };
13236
13237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13243
13244 wxPyEndAllowThreads(__tstate);
13245 if (PyErr_Occurred()) SWIG_fail;
13246 }
13247 resultobj = SWIG_FromInt((int)result);
13248 return resultobj;
13249 fail:
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13257 int result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_FromInt((int)result);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13283 int arg2 ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 char *kwnames[] = {
13287 (char *) "self",(char *) "orient", NULL
13288 };
13289
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13293 arg2 = (int) SWIG_AsInt(obj1);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 (arg1)->SetOrientation(arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 Py_INCREF(Py_None); resultobj = Py_None;
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13312 int arg2 ;
13313 PyObject * obj0 = 0 ;
13314 PyObject * obj1 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self",(char *) "pos", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 arg2 = (int) SWIG_AsInt(obj1);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->SetPosition(arg2);
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 Py_INCREF(Py_None); resultobj = Py_None;
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
13339 PyObject *obj;
13340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13341 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13342 Py_INCREF(obj);
13343 return Py_BuildValue((char *)"");
13344 }
13345 static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13348 int arg2 = (int) 0 ;
13349 int arg3 = (int) 0 ;
13350 wxScrollWinEvent *result;
13351 PyObject * obj0 = 0 ;
13352 PyObject * obj1 = 0 ;
13353 PyObject * obj2 = 0 ;
13354 char *kwnames[] = {
13355 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13356 };
13357
13358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13359 if (obj0) {
13360 arg1 = (wxEventType) SWIG_AsInt(obj0);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 if (obj1) {
13364 arg2 = (int) SWIG_AsInt(obj1);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 }
13367 if (obj2) {
13368 arg3 = (int) SWIG_AsInt(obj2);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13388 int result;
13389 PyObject * obj0 = 0 ;
13390 char *kwnames[] = {
13391 (char *) "self", NULL
13392 };
13393
13394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 resultobj = SWIG_FromInt((int)result);
13405 return resultobj;
13406 fail:
13407 return NULL;
13408 }
13409
13410
13411 static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj;
13413 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13414 int result;
13415 PyObject * obj0 = 0 ;
13416 char *kwnames[] = {
13417 (char *) "self", NULL
13418 };
13419
13420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_FromInt((int)result);
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13440 int arg2 ;
13441 PyObject * obj0 = 0 ;
13442 PyObject * obj1 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self",(char *) "orient", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13450 arg2 = (int) SWIG_AsInt(obj1);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 (arg1)->SetOrientation(arg2);
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 Py_INCREF(Py_None); resultobj = Py_None;
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj;
13468 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13469 int arg2 ;
13470 PyObject * obj0 = 0 ;
13471 PyObject * obj1 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self",(char *) "pos", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 arg2 = (int) SWIG_AsInt(obj1);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 (arg1)->SetPosition(arg2);
13484
13485 wxPyEndAllowThreads(__tstate);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 }
13488 Py_INCREF(Py_None); resultobj = Py_None;
13489 return resultobj;
13490 fail:
13491 return NULL;
13492 }
13493
13494
13495 static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13496 PyObject *obj;
13497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13498 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13499 Py_INCREF(obj);
13500 return Py_BuildValue((char *)"");
13501 }
13502 static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj;
13504 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13505 wxMouseEvent *result;
13506 PyObject * obj0 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "mouseType", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13512 if (obj0) {
13513 arg1 = (wxEventType) SWIG_AsInt(obj0);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 {
13517 PyThreadState* __tstate = wxPyBeginAllowThreads();
13518 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13519
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 {
13524 resultobj = wxPyMake_wxObject(result);
13525 }
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13535 bool result;
13536 PyObject * obj0 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 {
13552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13553 }
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj;
13562 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13563 int arg2 = (int) wxMOUSE_BTN_ANY ;
13564 bool result;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self",(char *) "but", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13574 if (obj1) {
13575 arg2 = (int) SWIG_AsInt(obj1);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 {
13586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13587 }
13588 return resultobj;
13589 fail:
13590 return NULL;
13591 }
13592
13593
13594 static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13595 PyObject *resultobj;
13596 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13597 int arg2 = (int) wxMOUSE_BTN_ANY ;
13598 bool result;
13599 PyObject * obj0 = 0 ;
13600 PyObject * obj1 = 0 ;
13601 char *kwnames[] = {
13602 (char *) "self",(char *) "but", NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 if (obj1) {
13609 arg2 = (int) SWIG_AsInt(obj1);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13615
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 {
13620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13621 }
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj;
13630 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13631 int arg2 = (int) wxMOUSE_BTN_ANY ;
13632 bool result;
13633 PyObject * obj0 = 0 ;
13634 PyObject * obj1 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self",(char *) "but", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13642 if (obj1) {
13643 arg2 = (int) SWIG_AsInt(obj1);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13649
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 {
13654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13655 }
13656 return resultobj;
13657 fail:
13658 return NULL;
13659 }
13660
13661
13662 static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13663 PyObject *resultobj;
13664 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13665 int arg2 ;
13666 bool result;
13667 PyObject * obj0 = 0 ;
13668 PyObject * obj1 = 0 ;
13669 char *kwnames[] = {
13670 (char *) "self",(char *) "but", NULL
13671 };
13672
13673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
13674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13676 arg2 = (int) SWIG_AsInt(obj1);
13677 if (PyErr_Occurred()) SWIG_fail;
13678 {
13679 PyThreadState* __tstate = wxPyBeginAllowThreads();
13680 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13681
13682 wxPyEndAllowThreads(__tstate);
13683 if (PyErr_Occurred()) SWIG_fail;
13684 }
13685 {
13686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13687 }
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13695 PyObject *resultobj;
13696 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13697 int arg2 ;
13698 bool result;
13699 PyObject * obj0 = 0 ;
13700 PyObject * obj1 = 0 ;
13701 char *kwnames[] = {
13702 (char *) "self",(char *) "but", NULL
13703 };
13704
13705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
13706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13708 arg2 = (int) SWIG_AsInt(obj1);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13713
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13719 }
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13729 int result;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_FromInt((int)result);
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13755 bool result;
13756 PyObject * obj0 = 0 ;
13757 char *kwnames[] = {
13758 (char *) "self", NULL
13759 };
13760
13761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13767
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 {
13772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13773 }
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj;
13782 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13783 bool result;
13784 PyObject * obj0 = 0 ;
13785 char *kwnames[] = {
13786 (char *) "self", NULL
13787 };
13788
13789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13792 {
13793 PyThreadState* __tstate = wxPyBeginAllowThreads();
13794 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13795
13796 wxPyEndAllowThreads(__tstate);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 {
13800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13801 }
13802 return resultobj;
13803 fail:
13804 return NULL;
13805 }
13806
13807
13808 static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13809 PyObject *resultobj;
13810 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13811 bool result;
13812 PyObject * obj0 = 0 ;
13813 char *kwnames[] = {
13814 (char *) "self", NULL
13815 };
13816
13817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13823
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 {
13828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13829 }
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13839 bool result;
13840 PyObject * obj0 = 0 ;
13841 char *kwnames[] = {
13842 (char *) "self", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
13846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
13851
13852 wxPyEndAllowThreads(__tstate);
13853 if (PyErr_Occurred()) SWIG_fail;
13854 }
13855 {
13856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13857 }
13858 return resultobj;
13859 fail:
13860 return NULL;
13861 }
13862
13863
13864 static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj;
13866 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13867 bool result;
13868 PyObject * obj0 = 0 ;
13869 char *kwnames[] = {
13870 (char *) "self", NULL
13871 };
13872
13873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
13874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
13879
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 {
13884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13885 }
13886 return resultobj;
13887 fail:
13888 return NULL;
13889 }
13890
13891
13892 static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13893 PyObject *resultobj;
13894 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13895 bool result;
13896 PyObject * obj0 = 0 ;
13897 char *kwnames[] = {
13898 (char *) "self", NULL
13899 };
13900
13901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
13902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 {
13912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13913 }
13914 return resultobj;
13915 fail:
13916 return NULL;
13917 }
13918
13919
13920 static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13921 PyObject *resultobj;
13922 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13923 bool result;
13924 PyObject * obj0 = 0 ;
13925 char *kwnames[] = {
13926 (char *) "self", NULL
13927 };
13928
13929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
13930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13932 {
13933 PyThreadState* __tstate = wxPyBeginAllowThreads();
13934 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
13935
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 {
13940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13941 }
13942 return resultobj;
13943 fail:
13944 return NULL;
13945 }
13946
13947
13948 static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj;
13950 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13951 bool result;
13952 PyObject * obj0 = 0 ;
13953 char *kwnames[] = {
13954 (char *) "self", NULL
13955 };
13956
13957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
13958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13960 {
13961 PyThreadState* __tstate = wxPyBeginAllowThreads();
13962 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
13963
13964 wxPyEndAllowThreads(__tstate);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 {
13968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13969 }
13970 return resultobj;
13971 fail:
13972 return NULL;
13973 }
13974
13975
13976 static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj;
13978 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13979 bool result;
13980 PyObject * obj0 = 0 ;
13981 char *kwnames[] = {
13982 (char *) "self", NULL
13983 };
13984
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
13986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
13991
13992 wxPyEndAllowThreads(__tstate);
13993 if (PyErr_Occurred()) SWIG_fail;
13994 }
13995 {
13996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13997 }
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14007 bool result;
14008 PyObject * obj0 = 0 ;
14009 char *kwnames[] = {
14010 (char *) "self", NULL
14011 };
14012
14013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 {
14024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14025 }
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14033 PyObject *resultobj;
14034 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14035 bool result;
14036 PyObject * obj0 = 0 ;
14037 char *kwnames[] = {
14038 (char *) "self", NULL
14039 };
14040
14041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14047
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 {
14052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14053 }
14054 return resultobj;
14055 fail:
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj;
14062 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14063 bool result;
14064 PyObject * obj0 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self", NULL
14067 };
14068
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14072 {
14073 PyThreadState* __tstate = wxPyBeginAllowThreads();
14074 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14075
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 {
14080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14081 }
14082 return resultobj;
14083 fail:
14084 return NULL;
14085 }
14086
14087
14088 static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj;
14090 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14091 bool result;
14092 PyObject * obj0 = 0 ;
14093 char *kwnames[] = {
14094 (char *) "self", NULL
14095 };
14096
14097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14103
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 {
14108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14109 }
14110 return resultobj;
14111 fail:
14112 return NULL;
14113 }
14114
14115
14116 static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14117 PyObject *resultobj;
14118 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14119 bool result;
14120 PyObject * obj0 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 result = (bool)(arg1)->LeftIsDown();
14131
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 {
14136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14137 }
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14147 bool result;
14148 PyObject * obj0 = 0 ;
14149 char *kwnames[] = {
14150 (char *) "self", NULL
14151 };
14152
14153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (bool)(arg1)->MiddleIsDown();
14159
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 {
14164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14165 }
14166 return resultobj;
14167 fail:
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14175 bool result;
14176 PyObject * obj0 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = (bool)(arg1)->RightIsDown();
14187
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14193 }
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
14201 PyObject *resultobj;
14202 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14203 bool result;
14204 PyObject * obj0 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14212 {
14213 PyThreadState* __tstate = wxPyBeginAllowThreads();
14214 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14215
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 {
14220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14221 }
14222 return resultobj;
14223 fail:
14224 return NULL;
14225 }
14226
14227
14228 static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
14229 PyObject *resultobj;
14230 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14231 bool result;
14232 PyObject * obj0 = 0 ;
14233 char *kwnames[] = {
14234 (char *) "self", NULL
14235 };
14236
14237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14243
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 {
14248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14249 }
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
14257 PyObject *resultobj;
14258 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14259 bool result;
14260 PyObject * obj0 = 0 ;
14261 char *kwnames[] = {
14262 (char *) "self", NULL
14263 };
14264
14265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14271
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 {
14276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14277 }
14278 return resultobj;
14279 fail:
14280 return NULL;
14281 }
14282
14283
14284 static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj;
14286 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14287 bool result;
14288 PyObject * obj0 = 0 ;
14289 char *kwnames[] = {
14290 (char *) "self", NULL
14291 };
14292
14293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14296 {
14297 PyThreadState* __tstate = wxPyBeginAllowThreads();
14298 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14299
14300 wxPyEndAllowThreads(__tstate);
14301 if (PyErr_Occurred()) SWIG_fail;
14302 }
14303 {
14304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14305 }
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj;
14314 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14315 wxPoint result;
14316 PyObject * obj0 = 0 ;
14317 char *kwnames[] = {
14318 (char *) "self", NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 result = (arg1)->GetPosition();
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 {
14332 wxPoint * resultptr;
14333 resultptr = new wxPoint((wxPoint &) result);
14334 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14335 }
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj;
14344 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14345 long *arg2 = (long *) 0 ;
14346 long *arg3 = (long *) 0 ;
14347 long temp2 ;
14348 long temp3 ;
14349 PyObject * obj0 = 0 ;
14350 char *kwnames[] = {
14351 (char *) "self", NULL
14352 };
14353
14354 arg2 = &temp2;
14355 arg3 = &temp3;
14356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 (arg1)->GetPosition(arg2,arg3);
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 Py_INCREF(Py_None); resultobj = Py_None;
14367 {
14368 PyObject *o = PyInt_FromLong((long) (*arg2));
14369 resultobj = t_output_helper(resultobj,o);
14370 }
14371 {
14372 PyObject *o = PyInt_FromLong((long) (*arg3));
14373 resultobj = t_output_helper(resultobj,o);
14374 }
14375 return resultobj;
14376 fail:
14377 return NULL;
14378 }
14379
14380
14381 static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14382 PyObject *resultobj;
14383 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14384 wxDC *arg2 = 0 ;
14385 wxPoint result;
14386 PyObject * obj0 = 0 ;
14387 PyObject * obj1 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self",(char *) "dc", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14396 SWIG_POINTER_EXCEPTION | 0)) == -1)
14397 SWIG_fail;
14398 if (arg2 == NULL) {
14399 PyErr_SetString(PyExc_TypeError,"null reference");
14400 SWIG_fail;
14401 }
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14405
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 {
14410 wxPoint * resultptr;
14411 resultptr = new wxPoint((wxPoint &) result);
14412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14413 }
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14423 int result;
14424 PyObject * obj0 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (int)((wxMouseEvent const *)arg1)->GetX();
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 resultobj = SWIG_FromInt((int)result);
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj;
14448 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14449 int result;
14450 PyObject * obj0 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "self", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 result = (int)((wxMouseEvent const *)arg1)->GetY();
14461
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 resultobj = SWIG_FromInt((int)result);
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14475 int result;
14476 PyObject * obj0 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14487
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 resultobj = SWIG_FromInt((int)result);
14492 return resultobj;
14493 fail:
14494 return NULL;
14495 }
14496
14497
14498 static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
14499 PyObject *resultobj;
14500 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14501 int result;
14502 PyObject * obj0 = 0 ;
14503 char *kwnames[] = {
14504 (char *) "self", NULL
14505 };
14506
14507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14513
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 resultobj = SWIG_FromInt((int)result);
14518 return resultobj;
14519 fail:
14520 return NULL;
14521 }
14522
14523
14524 static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14525 PyObject *resultobj;
14526 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14527 int result;
14528 PyObject * obj0 = 0 ;
14529 char *kwnames[] = {
14530 (char *) "self", NULL
14531 };
14532
14533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14539
14540 wxPyEndAllowThreads(__tstate);
14541 if (PyErr_Occurred()) SWIG_fail;
14542 }
14543 resultobj = SWIG_FromInt((int)result);
14544 return resultobj;
14545 fail:
14546 return NULL;
14547 }
14548
14549
14550 static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj;
14552 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14553 bool result;
14554 PyObject * obj0 = 0 ;
14555 char *kwnames[] = {
14556 (char *) "self", NULL
14557 };
14558
14559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14562 {
14563 PyThreadState* __tstate = wxPyBeginAllowThreads();
14564 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14565
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 {
14570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14571 }
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj;
14580 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14581 int arg2 ;
14582 PyObject * obj0 = 0 ;
14583 PyObject * obj1 = 0 ;
14584 char *kwnames[] = {
14585 (char *) "self",(char *) "m_x", NULL
14586 };
14587
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14591 arg2 = (int) SWIG_AsInt(obj1);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 if (arg1) (arg1)->m_x = arg2;
14594
14595 Py_INCREF(Py_None); resultobj = Py_None;
14596 return resultobj;
14597 fail:
14598 return NULL;
14599 }
14600
14601
14602 static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14603 PyObject *resultobj;
14604 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14605 int result;
14606 PyObject * obj0 = 0 ;
14607 char *kwnames[] = {
14608 (char *) "self", NULL
14609 };
14610
14611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14614 result = (int) ((arg1)->m_x);
14615
14616 resultobj = SWIG_FromInt((int)result);
14617 return resultobj;
14618 fail:
14619 return NULL;
14620 }
14621
14622
14623 static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj;
14625 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14626 int arg2 ;
14627 PyObject * obj0 = 0 ;
14628 PyObject * obj1 = 0 ;
14629 char *kwnames[] = {
14630 (char *) "self",(char *) "m_y", NULL
14631 };
14632
14633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14636 arg2 = (int) SWIG_AsInt(obj1);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 if (arg1) (arg1)->m_y = arg2;
14639
14640 Py_INCREF(Py_None); resultobj = Py_None;
14641 return resultobj;
14642 fail:
14643 return NULL;
14644 }
14645
14646
14647 static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14648 PyObject *resultobj;
14649 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14650 int result;
14651 PyObject * obj0 = 0 ;
14652 char *kwnames[] = {
14653 (char *) "self", NULL
14654 };
14655
14656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14659 result = (int) ((arg1)->m_y);
14660
14661 resultobj = SWIG_FromInt((int)result);
14662 return resultobj;
14663 fail:
14664 return NULL;
14665 }
14666
14667
14668 static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj;
14670 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14671 bool arg2 ;
14672 PyObject * obj0 = 0 ;
14673 PyObject * obj1 = 0 ;
14674 char *kwnames[] = {
14675 (char *) "self",(char *) "m_leftDown", NULL
14676 };
14677
14678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14681 arg2 = (bool) SWIG_AsBool(obj1);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 if (arg1) (arg1)->m_leftDown = arg2;
14684
14685 Py_INCREF(Py_None); resultobj = Py_None;
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14693 PyObject *resultobj;
14694 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14695 bool result;
14696 PyObject * obj0 = 0 ;
14697 char *kwnames[] = {
14698 (char *) "self", NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14704 result = (bool) ((arg1)->m_leftDown);
14705
14706 {
14707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14708 }
14709 return resultobj;
14710 fail:
14711 return NULL;
14712 }
14713
14714
14715 static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj;
14717 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14718 bool arg2 ;
14719 PyObject * obj0 = 0 ;
14720 PyObject * obj1 = 0 ;
14721 char *kwnames[] = {
14722 (char *) "self",(char *) "m_middleDown", NULL
14723 };
14724
14725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14728 arg2 = (bool) SWIG_AsBool(obj1);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 if (arg1) (arg1)->m_middleDown = arg2;
14731
14732 Py_INCREF(Py_None); resultobj = Py_None;
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14742 bool result;
14743 PyObject * obj0 = 0 ;
14744 char *kwnames[] = {
14745 (char *) "self", NULL
14746 };
14747
14748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14751 result = (bool) ((arg1)->m_middleDown);
14752
14753 {
14754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14755 }
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj;
14764 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14765 bool arg2 ;
14766 PyObject * obj0 = 0 ;
14767 PyObject * obj1 = 0 ;
14768 char *kwnames[] = {
14769 (char *) "self",(char *) "m_rightDown", NULL
14770 };
14771
14772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14775 arg2 = (bool) SWIG_AsBool(obj1);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 if (arg1) (arg1)->m_rightDown = arg2;
14778
14779 Py_INCREF(Py_None); resultobj = Py_None;
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14789 bool result;
14790 PyObject * obj0 = 0 ;
14791 char *kwnames[] = {
14792 (char *) "self", NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 result = (bool) ((arg1)->m_rightDown);
14799
14800 {
14801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14802 }
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14812 bool arg2 ;
14813 PyObject * obj0 = 0 ;
14814 PyObject * obj1 = 0 ;
14815 char *kwnames[] = {
14816 (char *) "self",(char *) "m_controlDown", NULL
14817 };
14818
14819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14822 arg2 = (bool) SWIG_AsBool(obj1);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 if (arg1) (arg1)->m_controlDown = arg2;
14825
14826 Py_INCREF(Py_None); resultobj = Py_None;
14827 return resultobj;
14828 fail:
14829 return NULL;
14830 }
14831
14832
14833 static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14834 PyObject *resultobj;
14835 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14836 bool result;
14837 PyObject * obj0 = 0 ;
14838 char *kwnames[] = {
14839 (char *) "self", NULL
14840 };
14841
14842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14845 result = (bool) ((arg1)->m_controlDown);
14846
14847 {
14848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14849 }
14850 return resultobj;
14851 fail:
14852 return NULL;
14853 }
14854
14855
14856 static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14857 PyObject *resultobj;
14858 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14859 bool arg2 ;
14860 PyObject * obj0 = 0 ;
14861 PyObject * obj1 = 0 ;
14862 char *kwnames[] = {
14863 (char *) "self",(char *) "m_shiftDown", NULL
14864 };
14865
14866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14869 arg2 = (bool) SWIG_AsBool(obj1);
14870 if (PyErr_Occurred()) SWIG_fail;
14871 if (arg1) (arg1)->m_shiftDown = arg2;
14872
14873 Py_INCREF(Py_None); resultobj = Py_None;
14874 return resultobj;
14875 fail:
14876 return NULL;
14877 }
14878
14879
14880 static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj;
14882 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14883 bool result;
14884 PyObject * obj0 = 0 ;
14885 char *kwnames[] = {
14886 (char *) "self", NULL
14887 };
14888
14889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14892 result = (bool) ((arg1)->m_shiftDown);
14893
14894 {
14895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14896 }
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj;
14905 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14906 bool arg2 ;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "self",(char *) "m_altDown", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14916 arg2 = (bool) SWIG_AsBool(obj1);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 if (arg1) (arg1)->m_altDown = arg2;
14919
14920 Py_INCREF(Py_None); resultobj = Py_None;
14921 return resultobj;
14922 fail:
14923 return NULL;
14924 }
14925
14926
14927 static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj;
14929 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14930 bool result;
14931 PyObject * obj0 = 0 ;
14932 char *kwnames[] = {
14933 (char *) "self", NULL
14934 };
14935
14936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
14937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14939 result = (bool) ((arg1)->m_altDown);
14940
14941 {
14942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14943 }
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj;
14952 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14953 bool arg2 ;
14954 PyObject * obj0 = 0 ;
14955 PyObject * obj1 = 0 ;
14956 char *kwnames[] = {
14957 (char *) "self",(char *) "m_metaDown", NULL
14958 };
14959
14960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
14961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14963 arg2 = (bool) SWIG_AsBool(obj1);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 if (arg1) (arg1)->m_metaDown = arg2;
14966
14967 Py_INCREF(Py_None); resultobj = Py_None;
14968 return resultobj;
14969 fail:
14970 return NULL;
14971 }
14972
14973
14974 static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14975 PyObject *resultobj;
14976 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14977 bool result;
14978 PyObject * obj0 = 0 ;
14979 char *kwnames[] = {
14980 (char *) "self", NULL
14981 };
14982
14983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
14984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14986 result = (bool) ((arg1)->m_metaDown);
14987
14988 {
14989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14990 }
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14998 PyObject *resultobj;
14999 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15000 int arg2 ;
15001 PyObject * obj0 = 0 ;
15002 PyObject * obj1 = 0 ;
15003 char *kwnames[] = {
15004 (char *) "self",(char *) "m_wheelRotation", NULL
15005 };
15006
15007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15010 arg2 = (int) SWIG_AsInt(obj1);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 if (arg1) (arg1)->m_wheelRotation = arg2;
15013
15014 Py_INCREF(Py_None); resultobj = Py_None;
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj;
15023 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15024 int result;
15025 PyObject * obj0 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15033 result = (int) ((arg1)->m_wheelRotation);
15034
15035 resultobj = SWIG_FromInt((int)result);
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj;
15044 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15045 int arg2 ;
15046 PyObject * obj0 = 0 ;
15047 PyObject * obj1 = 0 ;
15048 char *kwnames[] = {
15049 (char *) "self",(char *) "m_wheelDelta", NULL
15050 };
15051
15052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15055 arg2 = (int) SWIG_AsInt(obj1);
15056 if (PyErr_Occurred()) SWIG_fail;
15057 if (arg1) (arg1)->m_wheelDelta = arg2;
15058
15059 Py_INCREF(Py_None); resultobj = Py_None;
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15067 PyObject *resultobj;
15068 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15069 int result;
15070 PyObject * obj0 = 0 ;
15071 char *kwnames[] = {
15072 (char *) "self", NULL
15073 };
15074
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15078 result = (int) ((arg1)->m_wheelDelta);
15079
15080 resultobj = SWIG_FromInt((int)result);
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15090 int arg2 ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "self",(char *) "m_linesPerAction", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15100 arg2 = (int) SWIG_AsInt(obj1);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 if (arg1) (arg1)->m_linesPerAction = arg2;
15103
15104 Py_INCREF(Py_None); resultobj = Py_None;
15105 return resultobj;
15106 fail:
15107 return NULL;
15108 }
15109
15110
15111 static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15112 PyObject *resultobj;
15113 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15114 int result;
15115 PyObject * obj0 = 0 ;
15116 char *kwnames[] = {
15117 (char *) "self", NULL
15118 };
15119
15120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15123 result = (int) ((arg1)->m_linesPerAction);
15124
15125 resultobj = SWIG_FromInt((int)result);
15126 return resultobj;
15127 fail:
15128 return NULL;
15129 }
15130
15131
15132 static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
15133 PyObject *obj;
15134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15135 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15136 Py_INCREF(obj);
15137 return Py_BuildValue((char *)"");
15138 }
15139 static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj;
15141 int arg1 = (int) 0 ;
15142 int arg2 = (int) 0 ;
15143 wxSetCursorEvent *result;
15144 PyObject * obj0 = 0 ;
15145 PyObject * obj1 = 0 ;
15146 char *kwnames[] = {
15147 (char *) "x",(char *) "y", NULL
15148 };
15149
15150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15151 if (obj0) {
15152 arg1 = (int) SWIG_AsInt(obj0);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 if (obj1) {
15156 arg2 = (int) SWIG_AsInt(obj1);
15157 if (PyErr_Occurred()) SWIG_fail;
15158 }
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15162
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj;
15175 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15176 int result;
15177 PyObject * obj0 = 0 ;
15178 char *kwnames[] = {
15179 (char *) "self", NULL
15180 };
15181
15182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15188
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 resultobj = SWIG_FromInt((int)result);
15193 return resultobj;
15194 fail:
15195 return NULL;
15196 }
15197
15198
15199 static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15200 PyObject *resultobj;
15201 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15202 int result;
15203 PyObject * obj0 = 0 ;
15204 char *kwnames[] = {
15205 (char *) "self", NULL
15206 };
15207
15208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15214
15215 wxPyEndAllowThreads(__tstate);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 resultobj = SWIG_FromInt((int)result);
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15228 wxCursor *arg2 = 0 ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self",(char *) "cursor", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15239 SWIG_POINTER_EXCEPTION | 0)) == -1)
15240 SWIG_fail;
15241 if (arg2 == NULL) {
15242 PyErr_SetString(PyExc_TypeError,"null reference");
15243 SWIG_fail;
15244 }
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 (arg1)->SetCursor((wxCursor const &)*arg2);
15248
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 Py_INCREF(Py_None); resultobj = Py_None;
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15260 PyObject *resultobj;
15261 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15262 wxCursor *result;
15263 PyObject * obj0 = 0 ;
15264 char *kwnames[] = {
15265 (char *) "self", NULL
15266 };
15267
15268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 {
15274 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15275 result = (wxCursor *) &_result_ref;
15276 }
15277
15278 wxPyEndAllowThreads(__tstate);
15279 if (PyErr_Occurred()) SWIG_fail;
15280 }
15281 {
15282 wxCursor* resultptr = new wxCursor(*result);
15283 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15284 }
15285 return resultobj;
15286 fail:
15287 return NULL;
15288 }
15289
15290
15291 static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15292 PyObject *resultobj;
15293 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15294 bool result;
15295 PyObject * obj0 = 0 ;
15296 char *kwnames[] = {
15297 (char *) "self", NULL
15298 };
15299
15300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15303 {
15304 PyThreadState* __tstate = wxPyBeginAllowThreads();
15305 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15306
15307 wxPyEndAllowThreads(__tstate);
15308 if (PyErr_Occurred()) SWIG_fail;
15309 }
15310 {
15311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15312 }
15313 return resultobj;
15314 fail:
15315 return NULL;
15316 }
15317
15318
15319 static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
15320 PyObject *obj;
15321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15322 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15323 Py_INCREF(obj);
15324 return Py_BuildValue((char *)"");
15325 }
15326 static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj;
15328 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15329 wxKeyEvent *result;
15330 PyObject * obj0 = 0 ;
15331 char *kwnames[] = {
15332 (char *) "keyType", NULL
15333 };
15334
15335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15336 if (obj0) {
15337 arg1 = (wxEventType) SWIG_AsInt(obj0);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15343
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15357 bool result;
15358 PyObject * obj0 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "self", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15366 {
15367 PyThreadState* __tstate = wxPyBeginAllowThreads();
15368 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15369
15370 wxPyEndAllowThreads(__tstate);
15371 if (PyErr_Occurred()) SWIG_fail;
15372 }
15373 {
15374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15375 }
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj;
15384 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15385 bool result;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 {
15402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15403 }
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15413 bool result;
15414 PyObject * obj0 = 0 ;
15415 char *kwnames[] = {
15416 (char *) "self", NULL
15417 };
15418
15419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15425
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 {
15430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15431 }
15432 return resultobj;
15433 fail:
15434 return NULL;
15435 }
15436
15437
15438 static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj;
15440 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15441 bool result;
15442 PyObject * obj0 = 0 ;
15443 char *kwnames[] = {
15444 (char *) "self", NULL
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15450 {
15451 PyThreadState* __tstate = wxPyBeginAllowThreads();
15452 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15453
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15459 }
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj;
15468 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15469 bool result;
15470 PyObject * obj0 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 {
15486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15487 }
15488 return resultobj;
15489 fail:
15490 return NULL;
15491 }
15492
15493
15494 static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15495 PyObject *resultobj;
15496 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15497 int result;
15498 PyObject * obj0 = 0 ;
15499 char *kwnames[] = {
15500 (char *) "self", NULL
15501 };
15502
15503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15506 {
15507 PyThreadState* __tstate = wxPyBeginAllowThreads();
15508 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15509
15510 wxPyEndAllowThreads(__tstate);
15511 if (PyErr_Occurred()) SWIG_fail;
15512 }
15513 resultobj = SWIG_FromInt((int)result);
15514 return resultobj;
15515 fail:
15516 return NULL;
15517 }
15518
15519
15520 static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj;
15522 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15523 int result;
15524 PyObject * obj0 = 0 ;
15525 char *kwnames[] = {
15526 (char *) "self", NULL
15527 };
15528
15529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail;
15530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (int)wxKeyEvent_GetUniChar(arg1);
15535
15536 wxPyEndAllowThreads(__tstate);
15537 if (PyErr_Occurred()) SWIG_fail;
15538 }
15539 resultobj = SWIG_FromInt((int)result);
15540 return resultobj;
15541 fail:
15542 return NULL;
15543 }
15544
15545
15546 static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15547 PyObject *resultobj;
15548 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15549 unsigned int result;
15550 PyObject * obj0 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15561
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15573 PyObject *resultobj;
15574 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15575 unsigned int result;
15576 PyObject * obj0 = 0 ;
15577 char *kwnames[] = {
15578 (char *) "self", NULL
15579 };
15580
15581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15587
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj;
15600 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15601 wxPoint result;
15602 PyObject * obj0 = 0 ;
15603 char *kwnames[] = {
15604 (char *) "self", NULL
15605 };
15606
15607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15610 {
15611 PyThreadState* __tstate = wxPyBeginAllowThreads();
15612 result = (arg1)->GetPosition();
15613
15614 wxPyEndAllowThreads(__tstate);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 {
15618 wxPoint * resultptr;
15619 resultptr = new wxPoint((wxPoint &) result);
15620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15621 }
15622 return resultobj;
15623 fail:
15624 return NULL;
15625 }
15626
15627
15628 static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15629 PyObject *resultobj;
15630 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15631 long *arg2 = (long *) 0 ;
15632 long *arg3 = (long *) 0 ;
15633 long temp2 ;
15634 long temp3 ;
15635 PyObject * obj0 = 0 ;
15636 char *kwnames[] = {
15637 (char *) "self", NULL
15638 };
15639
15640 arg2 = &temp2;
15641 arg3 = &temp3;
15642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 (arg1)->GetPosition(arg2,arg3);
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 Py_INCREF(Py_None); resultobj = Py_None;
15653 {
15654 PyObject *o = PyInt_FromLong((long) (*arg2));
15655 resultobj = t_output_helper(resultobj,o);
15656 }
15657 {
15658 PyObject *o = PyInt_FromLong((long) (*arg3));
15659 resultobj = t_output_helper(resultobj,o);
15660 }
15661 return resultobj;
15662 fail:
15663 return NULL;
15664 }
15665
15666
15667 static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15668 PyObject *resultobj;
15669 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15670 int result;
15671 PyObject * obj0 = 0 ;
15672 char *kwnames[] = {
15673 (char *) "self", NULL
15674 };
15675
15676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15679 {
15680 PyThreadState* __tstate = wxPyBeginAllowThreads();
15681 result = (int)((wxKeyEvent const *)arg1)->GetX();
15682
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_FromInt((int)result);
15687 return resultobj;
15688 fail:
15689 return NULL;
15690 }
15691
15692
15693 static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15694 PyObject *resultobj;
15695 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15696 int result;
15697 PyObject * obj0 = 0 ;
15698 char *kwnames[] = {
15699 (char *) "self", NULL
15700 };
15701
15702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 result = (int)((wxKeyEvent const *)arg1)->GetY();
15708
15709 wxPyEndAllowThreads(__tstate);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
15712 resultobj = SWIG_FromInt((int)result);
15713 return resultobj;
15714 fail:
15715 return NULL;
15716 }
15717
15718
15719 static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15720 PyObject *resultobj;
15721 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15722 int arg2 ;
15723 PyObject * obj0 = 0 ;
15724 PyObject * obj1 = 0 ;
15725 char *kwnames[] = {
15726 (char *) "self",(char *) "m_x", NULL
15727 };
15728
15729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15732 arg2 = (int) SWIG_AsInt(obj1);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 if (arg1) (arg1)->m_x = arg2;
15735
15736 Py_INCREF(Py_None); resultobj = Py_None;
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj;
15745 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15746 int result;
15747 PyObject * obj0 = 0 ;
15748 char *kwnames[] = {
15749 (char *) "self", NULL
15750 };
15751
15752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15755 result = (int) ((arg1)->m_x);
15756
15757 resultobj = SWIG_FromInt((int)result);
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj;
15766 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15767 int arg2 ;
15768 PyObject * obj0 = 0 ;
15769 PyObject * obj1 = 0 ;
15770 char *kwnames[] = {
15771 (char *) "self",(char *) "m_y", NULL
15772 };
15773
15774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15777 arg2 = (int) SWIG_AsInt(obj1);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 if (arg1) (arg1)->m_y = arg2;
15780
15781 Py_INCREF(Py_None); resultobj = Py_None;
15782 return resultobj;
15783 fail:
15784 return NULL;
15785 }
15786
15787
15788 static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj;
15790 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15791 int result;
15792 PyObject * obj0 = 0 ;
15793 char *kwnames[] = {
15794 (char *) "self", NULL
15795 };
15796
15797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15800 result = (int) ((arg1)->m_y);
15801
15802 resultobj = SWIG_FromInt((int)result);
15803 return resultobj;
15804 fail:
15805 return NULL;
15806 }
15807
15808
15809 static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15812 long arg2 ;
15813 PyObject * obj0 = 0 ;
15814 PyObject * obj1 = 0 ;
15815 char *kwnames[] = {
15816 (char *) "self",(char *) "m_keyCode", NULL
15817 };
15818
15819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
15820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15822 arg2 = (long) SWIG_AsLong(obj1);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 if (arg1) (arg1)->m_keyCode = arg2;
15825
15826 Py_INCREF(Py_None); resultobj = Py_None;
15827 return resultobj;
15828 fail:
15829 return NULL;
15830 }
15831
15832
15833 static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15834 PyObject *resultobj;
15835 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15836 long result;
15837 PyObject * obj0 = 0 ;
15838 char *kwnames[] = {
15839 (char *) "self", NULL
15840 };
15841
15842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15845 result = (long) ((arg1)->m_keyCode);
15846
15847 resultobj = SWIG_FromLong((long)result);
15848 return resultobj;
15849 fail:
15850 return NULL;
15851 }
15852
15853
15854 static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15855 PyObject *resultobj;
15856 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15857 bool arg2 ;
15858 PyObject * obj0 = 0 ;
15859 PyObject * obj1 = 0 ;
15860 char *kwnames[] = {
15861 (char *) "self",(char *) "m_controlDown", NULL
15862 };
15863
15864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15867 arg2 = (bool) SWIG_AsBool(obj1);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 if (arg1) (arg1)->m_controlDown = arg2;
15870
15871 Py_INCREF(Py_None); resultobj = Py_None;
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15879 PyObject *resultobj;
15880 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15881 bool result;
15882 PyObject * obj0 = 0 ;
15883 char *kwnames[] = {
15884 (char *) "self", NULL
15885 };
15886
15887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15890 result = (bool) ((arg1)->m_controlDown);
15891
15892 {
15893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15894 }
15895 return resultobj;
15896 fail:
15897 return NULL;
15898 }
15899
15900
15901 static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj;
15903 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15904 bool arg2 ;
15905 PyObject * obj0 = 0 ;
15906 PyObject * obj1 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self",(char *) "m_shiftDown", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15914 arg2 = (bool) SWIG_AsBool(obj1);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 if (arg1) (arg1)->m_shiftDown = arg2;
15917
15918 Py_INCREF(Py_None); resultobj = Py_None;
15919 return resultobj;
15920 fail:
15921 return NULL;
15922 }
15923
15924
15925 static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj;
15927 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15928 bool result;
15929 PyObject * obj0 = 0 ;
15930 char *kwnames[] = {
15931 (char *) "self", NULL
15932 };
15933
15934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 result = (bool) ((arg1)->m_shiftDown);
15938
15939 {
15940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15941 }
15942 return resultobj;
15943 fail:
15944 return NULL;
15945 }
15946
15947
15948 static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj;
15950 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15951 bool arg2 ;
15952 PyObject * obj0 = 0 ;
15953 PyObject * obj1 = 0 ;
15954 char *kwnames[] = {
15955 (char *) "self",(char *) "m_altDown", NULL
15956 };
15957
15958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15961 arg2 = (bool) SWIG_AsBool(obj1);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 if (arg1) (arg1)->m_altDown = arg2;
15964
15965 Py_INCREF(Py_None); resultobj = Py_None;
15966 return resultobj;
15967 fail:
15968 return NULL;
15969 }
15970
15971
15972 static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15973 PyObject *resultobj;
15974 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15975 bool result;
15976 PyObject * obj0 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15984 result = (bool) ((arg1)->m_altDown);
15985
15986 {
15987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15988 }
15989 return resultobj;
15990 fail:
15991 return NULL;
15992 }
15993
15994
15995 static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj;
15997 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15998 bool arg2 ;
15999 PyObject * obj0 = 0 ;
16000 PyObject * obj1 = 0 ;
16001 char *kwnames[] = {
16002 (char *) "self",(char *) "m_metaDown", NULL
16003 };
16004
16005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16008 arg2 = (bool) SWIG_AsBool(obj1);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 if (arg1) (arg1)->m_metaDown = arg2;
16011
16012 Py_INCREF(Py_None); resultobj = Py_None;
16013 return resultobj;
16014 fail:
16015 return NULL;
16016 }
16017
16018
16019 static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj;
16021 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16022 bool result;
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
16028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16031 result = (bool) ((arg1)->m_metaDown);
16032
16033 {
16034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16035 }
16036 return resultobj;
16037 fail:
16038 return NULL;
16039 }
16040
16041
16042 static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16043 PyObject *resultobj;
16044 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16045 bool arg2 ;
16046 PyObject * obj0 = 0 ;
16047 PyObject * obj1 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "self",(char *) "m_scanCode", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16055 arg2 = (bool) SWIG_AsBool(obj1);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 if (arg1) (arg1)->m_scanCode = arg2;
16058
16059 Py_INCREF(Py_None); resultobj = Py_None;
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj;
16068 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16069 bool result;
16070 PyObject * obj0 = 0 ;
16071 char *kwnames[] = {
16072 (char *) "self", NULL
16073 };
16074
16075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16078 result = (bool) ((arg1)->m_scanCode);
16079
16080 {
16081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16082 }
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16092 unsigned int arg2 ;
16093 PyObject * obj0 = 0 ;
16094 PyObject * obj1 = 0 ;
16095 char *kwnames[] = {
16096 (char *) "self",(char *) "m_rawCode", NULL
16097 };
16098
16099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16102 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 if (arg1) (arg1)->m_rawCode = arg2;
16105
16106 Py_INCREF(Py_None); resultobj = Py_None;
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj;
16115 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16116 unsigned int result;
16117 PyObject * obj0 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "self", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16125 result = (unsigned int) ((arg1)->m_rawCode);
16126
16127 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16128 return resultobj;
16129 fail:
16130 return NULL;
16131 }
16132
16133
16134 static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16135 PyObject *resultobj;
16136 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16137 unsigned int arg2 ;
16138 PyObject * obj0 = 0 ;
16139 PyObject * obj1 = 0 ;
16140 char *kwnames[] = {
16141 (char *) "self",(char *) "m_rawFlags", NULL
16142 };
16143
16144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16147 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16148 if (PyErr_Occurred()) SWIG_fail;
16149 if (arg1) (arg1)->m_rawFlags = arg2;
16150
16151 Py_INCREF(Py_None); resultobj = Py_None;
16152 return resultobj;
16153 fail:
16154 return NULL;
16155 }
16156
16157
16158 static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj;
16160 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16161 unsigned int result;
16162 PyObject * obj0 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "self", NULL
16165 };
16166
16167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16170 result = (unsigned int) ((arg1)->m_rawFlags);
16171
16172 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
16180 PyObject *obj;
16181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16182 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16183 Py_INCREF(obj);
16184 return Py_BuildValue((char *)"");
16185 }
16186 static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj;
16188 wxSize const &arg1_defvalue = wxDefaultSize ;
16189 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16190 int arg2 = (int) 0 ;
16191 wxSizeEvent *result;
16192 wxSize temp1 ;
16193 PyObject * obj0 = 0 ;
16194 PyObject * obj1 = 0 ;
16195 char *kwnames[] = {
16196 (char *) "sz",(char *) "winid", NULL
16197 };
16198
16199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16200 if (obj0) {
16201 {
16202 arg1 = &temp1;
16203 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16204 }
16205 }
16206 if (obj1) {
16207 arg2 = (int) SWIG_AsInt(obj1);
16208 if (PyErr_Occurred()) SWIG_fail;
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16213
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16218 return resultobj;
16219 fail:
16220 return NULL;
16221 }
16222
16223
16224 static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj;
16226 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16227 wxSize result;
16228 PyObject * obj0 = 0 ;
16229 char *kwnames[] = {
16230 (char *) "self", NULL
16231 };
16232
16233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 result = ((wxSizeEvent const *)arg1)->GetSize();
16239
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
16243 {
16244 wxSize * resultptr;
16245 resultptr = new wxSize((wxSize &) result);
16246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16247 }
16248 return resultobj;
16249 fail:
16250 return NULL;
16251 }
16252
16253
16254 static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16255 PyObject *resultobj;
16256 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16257 wxRect result;
16258 PyObject * obj0 = 0 ;
16259 char *kwnames[] = {
16260 (char *) "self", NULL
16261 };
16262
16263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16266 {
16267 PyThreadState* __tstate = wxPyBeginAllowThreads();
16268 result = ((wxSizeEvent const *)arg1)->GetRect();
16269
16270 wxPyEndAllowThreads(__tstate);
16271 if (PyErr_Occurred()) SWIG_fail;
16272 }
16273 {
16274 wxRect * resultptr;
16275 resultptr = new wxRect((wxRect &) result);
16276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16277 }
16278 return resultobj;
16279 fail:
16280 return NULL;
16281 }
16282
16283
16284 static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16285 PyObject *resultobj;
16286 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16287 wxRect arg2 ;
16288 wxRect *argp2 ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 char *kwnames[] = {
16292 (char *) "self",(char *) "rect", NULL
16293 };
16294
16295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16298 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16299 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16300 arg2 = *argp2;
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 (arg1)->SetRect(arg2);
16304
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 Py_INCREF(Py_None); resultobj = Py_None;
16309 return resultobj;
16310 fail:
16311 return NULL;
16312 }
16313
16314
16315 static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj;
16317 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16318 wxSize arg2 ;
16319 wxSize *argp2 ;
16320 PyObject * obj0 = 0 ;
16321 PyObject * obj1 = 0 ;
16322 char *kwnames[] = {
16323 (char *) "self",(char *) "size", NULL
16324 };
16325
16326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16329 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16330 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16331 arg2 = *argp2;
16332 {
16333 PyThreadState* __tstate = wxPyBeginAllowThreads();
16334 wxSizeEvent_SetSize(arg1,arg2);
16335
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
16339 Py_INCREF(Py_None); resultobj = Py_None;
16340 return resultobj;
16341 fail:
16342 return NULL;
16343 }
16344
16345
16346 static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16347 PyObject *resultobj;
16348 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16349 wxSize *arg2 = (wxSize *) 0 ;
16350 PyObject * obj0 = 0 ;
16351 PyObject * obj1 = 0 ;
16352 char *kwnames[] = {
16353 (char *) "self",(char *) "m_size", NULL
16354 };
16355
16356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16361 if (arg1) (arg1)->m_size = *arg2;
16362
16363 Py_INCREF(Py_None); resultobj = Py_None;
16364 return resultobj;
16365 fail:
16366 return NULL;
16367 }
16368
16369
16370 static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj;
16372 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16373 wxSize *result;
16374 PyObject * obj0 = 0 ;
16375 char *kwnames[] = {
16376 (char *) "self", NULL
16377 };
16378
16379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16382 result = (wxSize *)& ((arg1)->m_size);
16383
16384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16385 return resultobj;
16386 fail:
16387 return NULL;
16388 }
16389
16390
16391 static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj;
16393 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16394 wxRect *arg2 = (wxRect *) 0 ;
16395 PyObject * obj0 = 0 ;
16396 PyObject * obj1 = 0 ;
16397 char *kwnames[] = {
16398 (char *) "self",(char *) "m_rect", NULL
16399 };
16400
16401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16406 if (arg1) (arg1)->m_rect = *arg2;
16407
16408 Py_INCREF(Py_None); resultobj = Py_None;
16409 return resultobj;
16410 fail:
16411 return NULL;
16412 }
16413
16414
16415 static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16418 wxRect *result;
16419 PyObject * obj0 = 0 ;
16420 char *kwnames[] = {
16421 (char *) "self", NULL
16422 };
16423
16424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16427 result = (wxRect *)& ((arg1)->m_rect);
16428
16429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
16437 PyObject *obj;
16438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16439 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16440 Py_INCREF(obj);
16441 return Py_BuildValue((char *)"");
16442 }
16443 static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16444 PyObject *resultobj;
16445 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16446 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16447 int arg2 = (int) 0 ;
16448 wxMoveEvent *result;
16449 wxPoint temp1 ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char *kwnames[] = {
16453 (char *) "pos",(char *) "winid", NULL
16454 };
16455
16456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16457 if (obj0) {
16458 {
16459 arg1 = &temp1;
16460 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16461 }
16462 }
16463 if (obj1) {
16464 arg2 = (int) SWIG_AsInt(obj1);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16484 wxPoint result;
16485 PyObject * obj0 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = ((wxMoveEvent const *)arg1)->GetPosition();
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 wxPoint * resultptr;
16502 resultptr = new wxPoint((wxPoint &) result);
16503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16504 }
16505 return resultobj;
16506 fail:
16507 return NULL;
16508 }
16509
16510
16511 static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj;
16513 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16514 wxRect result;
16515 PyObject * obj0 = 0 ;
16516 char *kwnames[] = {
16517 (char *) "self", NULL
16518 };
16519
16520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 result = ((wxMoveEvent const *)arg1)->GetRect();
16526
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 {
16531 wxRect * resultptr;
16532 resultptr = new wxRect((wxRect &) result);
16533 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16534 }
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj;
16543 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16544 wxRect arg2 ;
16545 wxRect *argp2 ;
16546 PyObject * obj0 = 0 ;
16547 PyObject * obj1 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "self",(char *) "rect", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16555 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16556 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16557 arg2 = *argp2;
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 (arg1)->SetRect(arg2);
16561
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 Py_INCREF(Py_None); resultobj = Py_None;
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj;
16574 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16575 wxPoint arg2 ;
16576 wxPoint *argp2 ;
16577 PyObject * obj0 = 0 ;
16578 PyObject * obj1 = 0 ;
16579 char *kwnames[] = {
16580 (char *) "self",(char *) "pos", NULL
16581 };
16582
16583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16586 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16587 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16588 arg2 = *argp2;
16589 {
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
16591 wxMoveEvent_SetPosition(arg1,arg2);
16592
16593 wxPyEndAllowThreads(__tstate);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 Py_INCREF(Py_None); resultobj = Py_None;
16597 return resultobj;
16598 fail:
16599 return NULL;
16600 }
16601
16602
16603 static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16604 PyObject *resultobj;
16605 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16606 wxPoint *arg2 = (wxPoint *) 0 ;
16607 PyObject * obj0 = 0 ;
16608 PyObject * obj1 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self",(char *) "m_pos", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
16617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16618 if (arg1) (arg1)->m_pos = *arg2;
16619
16620 Py_INCREF(Py_None); resultobj = Py_None;
16621 return resultobj;
16622 fail:
16623 return NULL;
16624 }
16625
16626
16627 static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj;
16629 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16630 wxPoint *result;
16631 PyObject * obj0 = 0 ;
16632 char *kwnames[] = {
16633 (char *) "self", NULL
16634 };
16635
16636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16639 result = (wxPoint *)& ((arg1)->m_pos);
16640
16641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
16642 return resultobj;
16643 fail:
16644 return NULL;
16645 }
16646
16647
16648 static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj;
16650 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16651 wxRect *arg2 = (wxRect *) 0 ;
16652 PyObject * obj0 = 0 ;
16653 PyObject * obj1 = 0 ;
16654 char *kwnames[] = {
16655 (char *) "self",(char *) "m_rect", NULL
16656 };
16657
16658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16663 if (arg1) (arg1)->m_rect = *arg2;
16664
16665 Py_INCREF(Py_None); resultobj = Py_None;
16666 return resultobj;
16667 fail:
16668 return NULL;
16669 }
16670
16671
16672 static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16673 PyObject *resultobj;
16674 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16675 wxRect *result;
16676 PyObject * obj0 = 0 ;
16677 char *kwnames[] = {
16678 (char *) "self", NULL
16679 };
16680
16681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16684 result = (wxRect *)& ((arg1)->m_rect);
16685
16686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16687 return resultobj;
16688 fail:
16689 return NULL;
16690 }
16691
16692
16693 static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16694 PyObject *obj;
16695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16696 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16697 Py_INCREF(obj);
16698 return Py_BuildValue((char *)"");
16699 }
16700 static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16701 PyObject *resultobj;
16702 int arg1 = (int) 0 ;
16703 wxPaintEvent *result;
16704 PyObject * obj0 = 0 ;
16705 char *kwnames[] = {
16706 (char *) "Id", NULL
16707 };
16708
16709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16710 if (obj0) {
16711 arg1 = (int) SWIG_AsInt(obj0);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16717
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
16722 return resultobj;
16723 fail:
16724 return NULL;
16725 }
16726
16727
16728 static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16729 PyObject *obj;
16730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16731 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16732 Py_INCREF(obj);
16733 return Py_BuildValue((char *)"");
16734 }
16735 static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj;
16737 int arg1 = (int) 0 ;
16738 wxNcPaintEvent *result;
16739 PyObject * obj0 = 0 ;
16740 char *kwnames[] = {
16741 (char *) "winid", NULL
16742 };
16743
16744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16745 if (obj0) {
16746 arg1 = (int) SWIG_AsInt(obj0);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16752
16753 wxPyEndAllowThreads(__tstate);
16754 if (PyErr_Occurred()) SWIG_fail;
16755 }
16756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
16757 return resultobj;
16758 fail:
16759 return NULL;
16760 }
16761
16762
16763 static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16764 PyObject *obj;
16765 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16766 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16767 Py_INCREF(obj);
16768 return Py_BuildValue((char *)"");
16769 }
16770 static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16771 PyObject *resultobj;
16772 int arg1 = (int) 0 ;
16773 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16774 wxEraseEvent *result;
16775 PyObject * obj0 = 0 ;
16776 PyObject * obj1 = 0 ;
16777 char *kwnames[] = {
16778 (char *) "Id",(char *) "dc", NULL
16779 };
16780
16781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16782 if (obj0) {
16783 arg1 = (int) SWIG_AsInt(obj0);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 if (obj1) {
16787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
16788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16789 }
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16793
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
16798 return resultobj;
16799 fail:
16800 return NULL;
16801 }
16802
16803
16804 static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16805 PyObject *resultobj;
16806 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16807 wxDC *result;
16808 PyObject * obj0 = 0 ;
16809 char *kwnames[] = {
16810 (char *) "self", NULL
16811 };
16812
16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16819
16820 wxPyEndAllowThreads(__tstate);
16821 if (PyErr_Occurred()) SWIG_fail;
16822 }
16823 {
16824 resultobj = wxPyMake_wxObject(result);
16825 }
16826 return resultobj;
16827 fail:
16828 return NULL;
16829 }
16830
16831
16832 static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16833 PyObject *obj;
16834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16835 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16836 Py_INCREF(obj);
16837 return Py_BuildValue((char *)"");
16838 }
16839 static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj;
16841 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16842 int arg2 = (int) 0 ;
16843 wxFocusEvent *result;
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "type",(char *) "winid", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16851 if (obj0) {
16852 arg1 = (wxEventType) SWIG_AsInt(obj0);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 if (obj1) {
16856 arg2 = (int) SWIG_AsInt(obj1);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16862
16863 wxPyEndAllowThreads(__tstate);
16864 if (PyErr_Occurred()) SWIG_fail;
16865 }
16866 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16876 wxWindow *result;
16877 PyObject * obj0 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16888
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 resultobj = wxPyMake_wxObject(result);
16894 }
16895 return resultobj;
16896 fail:
16897 return NULL;
16898 }
16899
16900
16901 static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16902 PyObject *resultobj;
16903 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16904 wxWindow *arg2 = (wxWindow *) 0 ;
16905 PyObject * obj0 = 0 ;
16906 PyObject * obj1 = 0 ;
16907 char *kwnames[] = {
16908 (char *) "self",(char *) "win", NULL
16909 };
16910
16911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
16912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16916 {
16917 PyThreadState* __tstate = wxPyBeginAllowThreads();
16918 (arg1)->SetWindow(arg2);
16919
16920 wxPyEndAllowThreads(__tstate);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 }
16923 Py_INCREF(Py_None); resultobj = Py_None;
16924 return resultobj;
16925 fail:
16926 return NULL;
16927 }
16928
16929
16930 static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
16931 PyObject *obj;
16932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16933 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
16934 Py_INCREF(obj);
16935 return Py_BuildValue((char *)"");
16936 }
16937 static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16938 PyObject *resultobj;
16939 wxWindow *arg1 = (wxWindow *) NULL ;
16940 wxChildFocusEvent *result;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "win", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
16947 if (obj0) {
16948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16950 }
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
16954
16955 wxPyEndAllowThreads(__tstate);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
16959 return resultobj;
16960 fail:
16961 return NULL;
16962 }
16963
16964
16965 static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16966 PyObject *resultobj;
16967 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
16968 wxWindow *result;
16969 PyObject * obj0 = 0 ;
16970 char *kwnames[] = {
16971 (char *) "self", NULL
16972 };
16973
16974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
16976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16977 {
16978 PyThreadState* __tstate = wxPyBeginAllowThreads();
16979 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
16980
16981 wxPyEndAllowThreads(__tstate);
16982 if (PyErr_Occurred()) SWIG_fail;
16983 }
16984 {
16985 resultobj = wxPyMake_wxObject(result);
16986 }
16987 return resultobj;
16988 fail:
16989 return NULL;
16990 }
16991
16992
16993 static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
16994 PyObject *obj;
16995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16996 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
16997 Py_INCREF(obj);
16998 return Py_BuildValue((char *)"");
16999 }
17000 static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17001 PyObject *resultobj;
17002 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17003 bool arg2 = (bool) True ;
17004 int arg3 = (int) 0 ;
17005 wxActivateEvent *result;
17006 PyObject * obj0 = 0 ;
17007 PyObject * obj1 = 0 ;
17008 PyObject * obj2 = 0 ;
17009 char *kwnames[] = {
17010 (char *) "type",(char *) "active",(char *) "Id", NULL
17011 };
17012
17013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17014 if (obj0) {
17015 arg1 = (wxEventType) SWIG_AsInt(obj0);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 if (obj1) {
17019 arg2 = (bool) SWIG_AsBool(obj1);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 if (obj2) {
17023 arg3 = (int) SWIG_AsInt(obj2);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 {
17027 PyThreadState* __tstate = wxPyBeginAllowThreads();
17028 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17029
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17034 return resultobj;
17035 fail:
17036 return NULL;
17037 }
17038
17039
17040 static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
17041 PyObject *resultobj;
17042 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17043 bool result;
17044 PyObject * obj0 = 0 ;
17045 char *kwnames[] = {
17046 (char *) "self", NULL
17047 };
17048
17049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17055
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 {
17060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17061 }
17062 return resultobj;
17063 fail:
17064 return NULL;
17065 }
17066
17067
17068 static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
17069 PyObject *obj;
17070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17071 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17072 Py_INCREF(obj);
17073 return Py_BuildValue((char *)"");
17074 }
17075 static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj;
17077 int arg1 = (int) 0 ;
17078 wxInitDialogEvent *result;
17079 PyObject * obj0 = 0 ;
17080 char *kwnames[] = {
17081 (char *) "Id", NULL
17082 };
17083
17084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17085 if (obj0) {
17086 arg1 = (int) SWIG_AsInt(obj0);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17092
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
17104 PyObject *obj;
17105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17106 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17107 Py_INCREF(obj);
17108 return Py_BuildValue((char *)"");
17109 }
17110 static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17111 PyObject *resultobj;
17112 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17113 int arg2 = (int) 0 ;
17114 wxMenu *arg3 = (wxMenu *) NULL ;
17115 wxMenuEvent *result;
17116 PyObject * obj0 = 0 ;
17117 PyObject * obj1 = 0 ;
17118 PyObject * obj2 = 0 ;
17119 char *kwnames[] = {
17120 (char *) "type",(char *) "winid",(char *) "menu", NULL
17121 };
17122
17123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17124 if (obj0) {
17125 arg1 = (wxEventType) SWIG_AsInt(obj0);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 }
17128 if (obj1) {
17129 arg2 = (int) SWIG_AsInt(obj1);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 if (obj2) {
17133 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17135 }
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17139
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17144 return resultobj;
17145 fail:
17146 return NULL;
17147 }
17148
17149
17150 static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
17151 PyObject *resultobj;
17152 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17153 int result;
17154 PyObject * obj0 = 0 ;
17155 char *kwnames[] = {
17156 (char *) "self", NULL
17157 };
17158
17159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 resultobj = SWIG_FromInt((int)result);
17170 return resultobj;
17171 fail:
17172 return NULL;
17173 }
17174
17175
17176 static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
17177 PyObject *resultobj;
17178 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17179 bool result;
17180 PyObject * obj0 = 0 ;
17181 char *kwnames[] = {
17182 (char *) "self", NULL
17183 };
17184
17185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17191
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17197 }
17198 return resultobj;
17199 fail:
17200 return NULL;
17201 }
17202
17203
17204 static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
17205 PyObject *resultobj;
17206 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17207 wxMenu *result;
17208 PyObject * obj0 = 0 ;
17209 char *kwnames[] = {
17210 (char *) "self", NULL
17211 };
17212
17213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17219
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 {
17224 resultobj = wxPyMake_wxObject(result);
17225 }
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
17233 PyObject *obj;
17234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17235 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17236 Py_INCREF(obj);
17237 return Py_BuildValue((char *)"");
17238 }
17239 static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17240 PyObject *resultobj;
17241 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17242 int arg2 = (int) 0 ;
17243 wxCloseEvent *result;
17244 PyObject * obj0 = 0 ;
17245 PyObject * obj1 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "type",(char *) "winid", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17251 if (obj0) {
17252 arg1 = (wxEventType) SWIG_AsInt(obj0);
17253 if (PyErr_Occurred()) SWIG_fail;
17254 }
17255 if (obj1) {
17256 arg2 = (int) SWIG_AsInt(obj1);
17257 if (PyErr_Occurred()) SWIG_fail;
17258 }
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17262
17263 wxPyEndAllowThreads(__tstate);
17264 if (PyErr_Occurred()) SWIG_fail;
17265 }
17266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17267 return resultobj;
17268 fail:
17269 return NULL;
17270 }
17271
17272
17273 static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17274 PyObject *resultobj;
17275 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17276 bool arg2 ;
17277 PyObject * obj0 = 0 ;
17278 PyObject * obj1 = 0 ;
17279 char *kwnames[] = {
17280 (char *) "self",(char *) "logOff", NULL
17281 };
17282
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17286 arg2 = (bool) SWIG_AsBool(obj1);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 (arg1)->SetLoggingOff(arg2);
17291
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 Py_INCREF(Py_None); resultobj = Py_None;
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17305 bool result;
17306 PyObject * obj0 = 0 ;
17307 char *kwnames[] = {
17308 (char *) "self", NULL
17309 };
17310
17311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17314 {
17315 PyThreadState* __tstate = wxPyBeginAllowThreads();
17316 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17317
17318 wxPyEndAllowThreads(__tstate);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 }
17321 {
17322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17323 }
17324 return resultobj;
17325 fail:
17326 return NULL;
17327 }
17328
17329
17330 static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
17331 PyObject *resultobj;
17332 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17333 bool arg2 = (bool) True ;
17334 PyObject * obj0 = 0 ;
17335 PyObject * obj1 = 0 ;
17336 char *kwnames[] = {
17337 (char *) "self",(char *) "veto", NULL
17338 };
17339
17340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17343 if (obj1) {
17344 arg2 = (bool) SWIG_AsBool(obj1);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 (arg1)->Veto(arg2);
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 Py_INCREF(Py_None); resultobj = Py_None;
17355 return resultobj;
17356 fail:
17357 return NULL;
17358 }
17359
17360
17361 static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17362 PyObject *resultobj;
17363 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17364 bool arg2 ;
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj1 = 0 ;
17367 char *kwnames[] = {
17368 (char *) "self",(char *) "canVeto", NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17374 arg2 = (bool) SWIG_AsBool(obj1);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 (arg1)->SetCanVeto(arg2);
17379
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 Py_INCREF(Py_None); resultobj = Py_None;
17384 return resultobj;
17385 fail:
17386 return NULL;
17387 }
17388
17389
17390 static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17391 PyObject *resultobj;
17392 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17393 bool result;
17394 PyObject * obj0 = 0 ;
17395 char *kwnames[] = {
17396 (char *) "self", NULL
17397 };
17398
17399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17402 {
17403 PyThreadState* __tstate = wxPyBeginAllowThreads();
17404 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17405
17406 wxPyEndAllowThreads(__tstate);
17407 if (PyErr_Occurred()) SWIG_fail;
17408 }
17409 {
17410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17411 }
17412 return resultobj;
17413 fail:
17414 return NULL;
17415 }
17416
17417
17418 static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17419 PyObject *resultobj;
17420 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17421 bool result;
17422 PyObject * obj0 = 0 ;
17423 char *kwnames[] = {
17424 (char *) "self", NULL
17425 };
17426
17427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 {
17438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17439 }
17440 return resultobj;
17441 fail:
17442 return NULL;
17443 }
17444
17445
17446 static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
17447 PyObject *obj;
17448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17449 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17450 Py_INCREF(obj);
17451 return Py_BuildValue((char *)"");
17452 }
17453 static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17454 PyObject *resultobj;
17455 int arg1 = (int) 0 ;
17456 bool arg2 = (bool) False ;
17457 wxShowEvent *result;
17458 PyObject * obj0 = 0 ;
17459 PyObject * obj1 = 0 ;
17460 char *kwnames[] = {
17461 (char *) "winid",(char *) "show", NULL
17462 };
17463
17464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17465 if (obj0) {
17466 arg1 = (int) SWIG_AsInt(obj0);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 if (obj1) {
17470 arg2 = (bool) SWIG_AsBool(obj1);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 }
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17476
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj;
17489 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17490 bool arg2 ;
17491 PyObject * obj0 = 0 ;
17492 PyObject * obj1 = 0 ;
17493 char *kwnames[] = {
17494 (char *) "self",(char *) "show", NULL
17495 };
17496
17497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17500 arg2 = (bool) SWIG_AsBool(obj1);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 (arg1)->SetShow(arg2);
17505
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 Py_INCREF(Py_None); resultobj = Py_None;
17510 return resultobj;
17511 fail:
17512 return NULL;
17513 }
17514
17515
17516 static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj;
17518 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17519 bool result;
17520 PyObject * obj0 = 0 ;
17521 char *kwnames[] = {
17522 (char *) "self", NULL
17523 };
17524
17525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17528 {
17529 PyThreadState* __tstate = wxPyBeginAllowThreads();
17530 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17531
17532 wxPyEndAllowThreads(__tstate);
17533 if (PyErr_Occurred()) SWIG_fail;
17534 }
17535 {
17536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17537 }
17538 return resultobj;
17539 fail:
17540 return NULL;
17541 }
17542
17543
17544 static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
17545 PyObject *obj;
17546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17547 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17548 Py_INCREF(obj);
17549 return Py_BuildValue((char *)"");
17550 }
17551 static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17552 PyObject *resultobj;
17553 int arg1 = (int) 0 ;
17554 bool arg2 = (bool) True ;
17555 wxIconizeEvent *result;
17556 PyObject * obj0 = 0 ;
17557 PyObject * obj1 = 0 ;
17558 char *kwnames[] = {
17559 (char *) "id",(char *) "iconized", NULL
17560 };
17561
17562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17563 if (obj0) {
17564 arg1 = (int) SWIG_AsInt(obj0);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 if (obj1) {
17568 arg2 = (bool) SWIG_AsBool(obj1);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 {
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17574
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17579 return resultobj;
17580 fail:
17581 return NULL;
17582 }
17583
17584
17585 static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17586 PyObject *resultobj;
17587 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17588 bool result;
17589 PyObject * obj0 = 0 ;
17590 char *kwnames[] = {
17591 (char *) "self", NULL
17592 };
17593
17594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17597 {
17598 PyThreadState* __tstate = wxPyBeginAllowThreads();
17599 result = (bool)(arg1)->Iconized();
17600
17601 wxPyEndAllowThreads(__tstate);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 }
17604 {
17605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17606 }
17607 return resultobj;
17608 fail:
17609 return NULL;
17610 }
17611
17612
17613 static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17614 PyObject *obj;
17615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17616 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17617 Py_INCREF(obj);
17618 return Py_BuildValue((char *)"");
17619 }
17620 static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17621 PyObject *resultobj;
17622 int arg1 = (int) 0 ;
17623 wxMaximizeEvent *result;
17624 PyObject * obj0 = 0 ;
17625 char *kwnames[] = {
17626 (char *) "id", NULL
17627 };
17628
17629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17630 if (obj0) {
17631 arg1 = (int) SWIG_AsInt(obj0);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
17642 return resultobj;
17643 fail:
17644 return NULL;
17645 }
17646
17647
17648 static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17649 PyObject *obj;
17650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17651 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17652 Py_INCREF(obj);
17653 return Py_BuildValue((char *)"");
17654 }
17655 static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17656 PyObject *resultobj;
17657 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17658 wxPoint result;
17659 PyObject * obj0 = 0 ;
17660 char *kwnames[] = {
17661 (char *) "self", NULL
17662 };
17663
17664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17667 {
17668 PyThreadState* __tstate = wxPyBeginAllowThreads();
17669 result = (arg1)->GetPosition();
17670
17671 wxPyEndAllowThreads(__tstate);
17672 if (PyErr_Occurred()) SWIG_fail;
17673 }
17674 {
17675 wxPoint * resultptr;
17676 resultptr = new wxPoint((wxPoint &) result);
17677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17678 }
17679 return resultobj;
17680 fail:
17681 return NULL;
17682 }
17683
17684
17685 static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj;
17687 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17688 int result;
17689 PyObject * obj0 = 0 ;
17690 char *kwnames[] = {
17691 (char *) "self", NULL
17692 };
17693
17694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17697 {
17698 PyThreadState* __tstate = wxPyBeginAllowThreads();
17699 result = (int)(arg1)->GetNumberOfFiles();
17700
17701 wxPyEndAllowThreads(__tstate);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 }
17704 resultobj = SWIG_FromInt((int)result);
17705 return resultobj;
17706 fail:
17707 return NULL;
17708 }
17709
17710
17711 static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17712 PyObject *resultobj;
17713 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17714 PyObject *result;
17715 PyObject * obj0 = 0 ;
17716 char *kwnames[] = {
17717 (char *) "self", NULL
17718 };
17719
17720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17726
17727 wxPyEndAllowThreads(__tstate);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 }
17730 resultobj = result;
17731 return resultobj;
17732 fail:
17733 return NULL;
17734 }
17735
17736
17737 static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17738 PyObject *obj;
17739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17740 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17741 Py_INCREF(obj);
17742 return Py_BuildValue((char *)"");
17743 }
17744 static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj;
17746 int arg1 = (int) 0 ;
17747 wxUpdateUIEvent *result;
17748 PyObject * obj0 = 0 ;
17749 char *kwnames[] = {
17750 (char *) "commandId", NULL
17751 };
17752
17753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17754 if (obj0) {
17755 arg1 = (int) SWIG_AsInt(obj0);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
17758 {
17759 PyThreadState* __tstate = wxPyBeginAllowThreads();
17760 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17761
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
17766 return resultobj;
17767 fail:
17768 return NULL;
17769 }
17770
17771
17772 static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17773 PyObject *resultobj;
17774 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17775 bool result;
17776 PyObject * obj0 = 0 ;
17777 char *kwnames[] = {
17778 (char *) "self", NULL
17779 };
17780
17781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 {
17792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17793 }
17794 return resultobj;
17795 fail:
17796 return NULL;
17797 }
17798
17799
17800 static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj;
17802 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17803 bool result;
17804 PyObject * obj0 = 0 ;
17805 char *kwnames[] = {
17806 (char *) "self", NULL
17807 };
17808
17809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17815
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 {
17820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17821 }
17822 return resultobj;
17823 fail:
17824 return NULL;
17825 }
17826
17827
17828 static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj;
17830 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17831 wxString result;
17832 PyObject * obj0 = 0 ;
17833 char *kwnames[] = {
17834 (char *) "self", NULL
17835 };
17836
17837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17843
17844 wxPyEndAllowThreads(__tstate);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 {
17848 #if wxUSE_UNICODE
17849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17850 #else
17851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17852 #endif
17853 }
17854 return resultobj;
17855 fail:
17856 return NULL;
17857 }
17858
17859
17860 static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17861 PyObject *resultobj;
17862 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17863 bool result;
17864 PyObject * obj0 = 0 ;
17865 char *kwnames[] = {
17866 (char *) "self", NULL
17867 };
17868
17869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
17870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 {
17880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17881 }
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj;
17890 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17891 bool result;
17892 PyObject * obj0 = 0 ;
17893 char *kwnames[] = {
17894 (char *) "self", NULL
17895 };
17896
17897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
17898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 {
17908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17909 }
17910 return resultobj;
17911 fail:
17912 return NULL;
17913 }
17914
17915
17916 static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17917 PyObject *resultobj;
17918 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17919 bool result;
17920 PyObject * obj0 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17928 {
17929 PyThreadState* __tstate = wxPyBeginAllowThreads();
17930 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
17931
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 {
17936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17937 }
17938 return resultobj;
17939 fail:
17940 return NULL;
17941 }
17942
17943
17944 static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
17945 PyObject *resultobj;
17946 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17947 bool arg2 ;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 char *kwnames[] = {
17951 (char *) "self",(char *) "check", NULL
17952 };
17953
17954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
17955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17957 arg2 = (bool) SWIG_AsBool(obj1);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->Check(arg2);
17962
17963 wxPyEndAllowThreads(__tstate);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 Py_INCREF(Py_None); resultobj = Py_None;
17967 return resultobj;
17968 fail:
17969 return NULL;
17970 }
17971
17972
17973 static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
17974 PyObject *resultobj;
17975 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17976 bool arg2 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self",(char *) "enable", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 arg2 = (bool) SWIG_AsBool(obj1);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 (arg1)->Enable(arg2);
17991
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 Py_INCREF(Py_None); resultobj = Py_None;
17996 return resultobj;
17997 fail:
17998 return NULL;
17999 }
18000
18001
18002 static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18003 PyObject *resultobj;
18004 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18005 wxString *arg2 = 0 ;
18006 bool temp2 = False ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 char *kwnames[] = {
18010 (char *) "self",(char *) "text", NULL
18011 };
18012
18013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18016 {
18017 arg2 = wxString_in_helper(obj1);
18018 if (arg2 == NULL) SWIG_fail;
18019 temp2 = True;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 (arg1)->SetText((wxString const &)*arg2);
18024
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 Py_INCREF(Py_None); resultobj = Py_None;
18029 {
18030 if (temp2)
18031 delete arg2;
18032 }
18033 return resultobj;
18034 fail:
18035 {
18036 if (temp2)
18037 delete arg2;
18038 }
18039 return NULL;
18040 }
18041
18042
18043 static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj;
18045 long arg1 ;
18046 PyObject * obj0 = 0 ;
18047 char *kwnames[] = {
18048 (char *) "updateInterval", NULL
18049 };
18050
18051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18052 arg1 = (long) SWIG_AsLong(obj0);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 wxUpdateUIEvent::SetUpdateInterval(arg1);
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 Py_INCREF(Py_None); resultobj = Py_None;
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 long result;
18071 char *kwnames[] = {
18072 NULL
18073 };
18074
18075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 resultobj = SWIG_FromLong((long)result);
18084 return resultobj;
18085 fail:
18086 return NULL;
18087 }
18088
18089
18090 static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj;
18092 wxWindow *arg1 = (wxWindow *) 0 ;
18093 bool result;
18094 PyObject * obj0 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "win", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 {
18110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18111 }
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj;
18120 char *kwnames[] = {
18121 NULL
18122 };
18123
18124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18125 {
18126 PyThreadState* __tstate = wxPyBeginAllowThreads();
18127 wxUpdateUIEvent::ResetUpdateTime();
18128
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 Py_INCREF(Py_None); resultobj = Py_None;
18133 return resultobj;
18134 fail:
18135 return NULL;
18136 }
18137
18138
18139 static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj;
18141 int arg1 ;
18142 PyObject * obj0 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "mode", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18148 arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 {
18151 PyThreadState* __tstate = wxPyBeginAllowThreads();
18152 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18153
18154 wxPyEndAllowThreads(__tstate);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 }
18157 Py_INCREF(Py_None); resultobj = Py_None;
18158 return resultobj;
18159 fail:
18160 return NULL;
18161 }
18162
18163
18164 static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18165 PyObject *resultobj;
18166 int result;
18167 char *kwnames[] = {
18168 NULL
18169 };
18170
18171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 result = (int)wxUpdateUIEvent::GetMode();
18175
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_FromInt((int)result);
18180 return resultobj;
18181 fail:
18182 return NULL;
18183 }
18184
18185
18186 static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
18187 PyObject *obj;
18188 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18189 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18190 Py_INCREF(obj);
18191 return Py_BuildValue((char *)"");
18192 }
18193 static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj;
18195 wxSysColourChangedEvent *result;
18196 char *kwnames[] = {
18197 NULL
18198 };
18199
18200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18204
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18209 return resultobj;
18210 fail:
18211 return NULL;
18212 }
18213
18214
18215 static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
18216 PyObject *obj;
18217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18218 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18219 Py_INCREF(obj);
18220 return Py_BuildValue((char *)"");
18221 }
18222 static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18223 PyObject *resultobj;
18224 int arg1 = (int) 0 ;
18225 wxWindow *arg2 = (wxWindow *) NULL ;
18226 wxMouseCaptureChangedEvent *result;
18227 PyObject * obj0 = 0 ;
18228 PyObject * obj1 = 0 ;
18229 char *kwnames[] = {
18230 (char *) "winid",(char *) "gainedCapture", NULL
18231 };
18232
18233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18234 if (obj0) {
18235 arg1 = (int) SWIG_AsInt(obj0);
18236 if (PyErr_Occurred()) SWIG_fail;
18237 }
18238 if (obj1) {
18239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18241 }
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18245
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18250 return resultobj;
18251 fail:
18252 return NULL;
18253 }
18254
18255
18256 static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18257 PyObject *resultobj;
18258 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18259 wxWindow *result;
18260 PyObject * obj0 = 0 ;
18261 char *kwnames[] = {
18262 (char *) "self", NULL
18263 };
18264
18265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18271
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 {
18276 resultobj = wxPyMake_wxObject(result);
18277 }
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
18285 PyObject *obj;
18286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18287 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18288 Py_INCREF(obj);
18289 return Py_BuildValue((char *)"");
18290 }
18291 static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj;
18293 wxDisplayChangedEvent *result;
18294 char *kwnames[] = {
18295 NULL
18296 };
18297
18298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
18314 PyObject *obj;
18315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18316 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18317 Py_INCREF(obj);
18318 return Py_BuildValue((char *)"");
18319 }
18320 static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj;
18322 int arg1 = (int) 0 ;
18323 wxPaletteChangedEvent *result;
18324 PyObject * obj0 = 0 ;
18325 char *kwnames[] = {
18326 (char *) "id", NULL
18327 };
18328
18329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18330 if (obj0) {
18331 arg1 = (int) SWIG_AsInt(obj0);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18342 return resultobj;
18343 fail:
18344 return NULL;
18345 }
18346
18347
18348 static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj;
18350 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18351 wxWindow *arg2 = (wxWindow *) 0 ;
18352 PyObject * obj0 = 0 ;
18353 PyObject * obj1 = 0 ;
18354 char *kwnames[] = {
18355 (char *) "self",(char *) "win", NULL
18356 };
18357
18358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 (arg1)->SetChangedWindow(arg2);
18366
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 Py_INCREF(Py_None); resultobj = Py_None;
18371 return resultobj;
18372 fail:
18373 return NULL;
18374 }
18375
18376
18377 static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18378 PyObject *resultobj;
18379 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18380 wxWindow *result;
18381 PyObject * obj0 = 0 ;
18382 char *kwnames[] = {
18383 (char *) "self", NULL
18384 };
18385
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 result = (wxWindow *)(arg1)->GetChangedWindow();
18392
18393 wxPyEndAllowThreads(__tstate);
18394 if (PyErr_Occurred()) SWIG_fail;
18395 }
18396 {
18397 resultobj = wxPyMake_wxObject(result);
18398 }
18399 return resultobj;
18400 fail:
18401 return NULL;
18402 }
18403
18404
18405 static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
18406 PyObject *obj;
18407 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18408 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18409 Py_INCREF(obj);
18410 return Py_BuildValue((char *)"");
18411 }
18412 static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18413 PyObject *resultobj;
18414 int arg1 = (int) 0 ;
18415 wxQueryNewPaletteEvent *result;
18416 PyObject * obj0 = 0 ;
18417 char *kwnames[] = {
18418 (char *) "winid", NULL
18419 };
18420
18421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18422 if (obj0) {
18423 arg1 = (int) SWIG_AsInt(obj0);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18429
18430 wxPyEndAllowThreads(__tstate);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18434 return resultobj;
18435 fail:
18436 return NULL;
18437 }
18438
18439
18440 static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18441 PyObject *resultobj;
18442 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18443 bool arg2 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 char *kwnames[] = {
18447 (char *) "self",(char *) "realized", NULL
18448 };
18449
18450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18453 arg2 = (bool) SWIG_AsBool(obj1);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 (arg1)->SetPaletteRealized(arg2);
18458
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 Py_INCREF(Py_None); resultobj = Py_None;
18463 return resultobj;
18464 fail:
18465 return NULL;
18466 }
18467
18468
18469 static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18470 PyObject *resultobj;
18471 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18472 bool result;
18473 PyObject * obj0 = 0 ;
18474 char *kwnames[] = {
18475 (char *) "self", NULL
18476 };
18477
18478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18484
18485 wxPyEndAllowThreads(__tstate);
18486 if (PyErr_Occurred()) SWIG_fail;
18487 }
18488 {
18489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18490 }
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
18498 PyObject *obj;
18499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18500 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18501 Py_INCREF(obj);
18502 return Py_BuildValue((char *)"");
18503 }
18504 static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18505 PyObject *resultobj;
18506 wxNavigationKeyEvent *result;
18507 char *kwnames[] = {
18508 NULL
18509 };
18510
18511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18515
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18520 return resultobj;
18521 fail:
18522 return NULL;
18523 }
18524
18525
18526 static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18527 PyObject *resultobj;
18528 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18529 bool result;
18530 PyObject * obj0 = 0 ;
18531 char *kwnames[] = {
18532 (char *) "self", NULL
18533 };
18534
18535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18541
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 {
18546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18547 }
18548 return resultobj;
18549 fail:
18550 return NULL;
18551 }
18552
18553
18554 static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj;
18556 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18557 bool arg2 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 char *kwnames[] = {
18561 (char *) "self",(char *) "bForward", NULL
18562 };
18563
18564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18567 arg2 = (bool) SWIG_AsBool(obj1);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->SetDirection(arg2);
18572
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 Py_INCREF(Py_None); resultobj = Py_None;
18577 return resultobj;
18578 fail:
18579 return NULL;
18580 }
18581
18582
18583 static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj;
18585 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18586 bool result;
18587 PyObject * obj0 = 0 ;
18588 char *kwnames[] = {
18589 (char *) "self", NULL
18590 };
18591
18592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18598
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 {
18603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18604 }
18605 return resultobj;
18606 fail:
18607 return NULL;
18608 }
18609
18610
18611 static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18612 PyObject *resultobj;
18613 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18614 bool arg2 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 char *kwnames[] = {
18618 (char *) "self",(char *) "bIs", NULL
18619 };
18620
18621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18624 arg2 = (bool) SWIG_AsBool(obj1);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 (arg1)->SetWindowChange(arg2);
18629
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 Py_INCREF(Py_None); resultobj = Py_None;
18634 return resultobj;
18635 fail:
18636 return NULL;
18637 }
18638
18639
18640 static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18641 PyObject *resultobj;
18642 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18643 wxWindow *result;
18644 PyObject * obj0 = 0 ;
18645 char *kwnames[] = {
18646 (char *) "self", NULL
18647 };
18648
18649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18655
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 {
18660 resultobj = wxPyMake_wxObject(result);
18661 }
18662 return resultobj;
18663 fail:
18664 return NULL;
18665 }
18666
18667
18668 static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18669 PyObject *resultobj;
18670 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18671 wxWindow *arg2 = (wxWindow *) 0 ;
18672 PyObject * obj0 = 0 ;
18673 PyObject * obj1 = 0 ;
18674 char *kwnames[] = {
18675 (char *) "self",(char *) "win", NULL
18676 };
18677
18678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 (arg1)->SetCurrentFocus(arg2);
18686
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 Py_INCREF(Py_None); resultobj = Py_None;
18691 return resultobj;
18692 fail:
18693 return NULL;
18694 }
18695
18696
18697 static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18698 PyObject *obj;
18699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18700 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18701 Py_INCREF(obj);
18702 return Py_BuildValue((char *)"");
18703 }
18704 static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj;
18706 wxWindow *arg1 = (wxWindow *) NULL ;
18707 wxWindowCreateEvent *result;
18708 PyObject * obj0 = 0 ;
18709 char *kwnames[] = {
18710 (char *) "win", NULL
18711 };
18712
18713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18714 if (obj0) {
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18717 }
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18721
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
18726 return resultobj;
18727 fail:
18728 return NULL;
18729 }
18730
18731
18732 static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj;
18734 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18735 wxWindow *result;
18736 PyObject * obj0 = 0 ;
18737 char *kwnames[] = {
18738 (char *) "self", NULL
18739 };
18740
18741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
18743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18744 {
18745 PyThreadState* __tstate = wxPyBeginAllowThreads();
18746 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18747
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 {
18752 resultobj = wxPyMake_wxObject(result);
18753 }
18754 return resultobj;
18755 fail:
18756 return NULL;
18757 }
18758
18759
18760 static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18761 PyObject *obj;
18762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18763 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18764 Py_INCREF(obj);
18765 return Py_BuildValue((char *)"");
18766 }
18767 static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18768 PyObject *resultobj;
18769 wxWindow *arg1 = (wxWindow *) NULL ;
18770 wxWindowDestroyEvent *result;
18771 PyObject * obj0 = 0 ;
18772 char *kwnames[] = {
18773 (char *) "win", NULL
18774 };
18775
18776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18777 if (obj0) {
18778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18780 }
18781 {
18782 PyThreadState* __tstate = wxPyBeginAllowThreads();
18783 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18784
18785 wxPyEndAllowThreads(__tstate);
18786 if (PyErr_Occurred()) SWIG_fail;
18787 }
18788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj;
18797 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18798 wxWindow *result;
18799 PyObject * obj0 = 0 ;
18800 char *kwnames[] = {
18801 (char *) "self", NULL
18802 };
18803
18804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
18806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
18809 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18810
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 {
18815 resultobj = wxPyMake_wxObject(result);
18816 }
18817 return resultobj;
18818 fail:
18819 return NULL;
18820 }
18821
18822
18823 static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18824 PyObject *obj;
18825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18826 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18827 Py_INCREF(obj);
18828 return Py_BuildValue((char *)"");
18829 }
18830 static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj;
18832 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18833 int arg2 = (int) 0 ;
18834 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18835 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18836 wxContextMenuEvent *result;
18837 wxPoint temp3 ;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 PyObject * obj2 = 0 ;
18841 char *kwnames[] = {
18842 (char *) "type",(char *) "winid",(char *) "pt", NULL
18843 };
18844
18845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18846 if (obj0) {
18847 arg1 = (wxEventType) SWIG_AsInt(obj0);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 if (obj1) {
18851 arg2 = (int) SWIG_AsInt(obj1);
18852 if (PyErr_Occurred()) SWIG_fail;
18853 }
18854 if (obj2) {
18855 {
18856 arg3 = &temp3;
18857 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18858 }
18859 }
18860 {
18861 PyThreadState* __tstate = wxPyBeginAllowThreads();
18862 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18863
18864 wxPyEndAllowThreads(__tstate);
18865 if (PyErr_Occurred()) SWIG_fail;
18866 }
18867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
18868 return resultobj;
18869 fail:
18870 return NULL;
18871 }
18872
18873
18874 static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj;
18876 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18877 wxPoint *result;
18878 PyObject * obj0 = 0 ;
18879 char *kwnames[] = {
18880 (char *) "self", NULL
18881 };
18882
18883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
18884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
18885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18886 {
18887 PyThreadState* __tstate = wxPyBeginAllowThreads();
18888 {
18889 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
18890 result = (wxPoint *) &_result_ref;
18891 }
18892
18893 wxPyEndAllowThreads(__tstate);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 }
18896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18904 PyObject *resultobj;
18905 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18906 wxPoint *arg2 = 0 ;
18907 wxPoint temp2 ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 char *kwnames[] = {
18911 (char *) "self",(char *) "pos", NULL
18912 };
18913
18914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
18915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
18916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18917 {
18918 arg2 = &temp2;
18919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18920 }
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 (arg1)->SetPosition((wxPoint const &)*arg2);
18924
18925 wxPyEndAllowThreads(__tstate);
18926 if (PyErr_Occurred()) SWIG_fail;
18927 }
18928 Py_INCREF(Py_None); resultobj = Py_None;
18929 return resultobj;
18930 fail:
18931 return NULL;
18932 }
18933
18934
18935 static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
18936 PyObject *obj;
18937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18938 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
18939 Py_INCREF(obj);
18940 return Py_BuildValue((char *)"");
18941 }
18942 static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18943 PyObject *resultobj;
18944 wxIdleEvent *result;
18945 char *kwnames[] = {
18946 NULL
18947 };
18948
18949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 result = (wxIdleEvent *)new wxIdleEvent();
18953
18954 wxPyEndAllowThreads(__tstate);
18955 if (PyErr_Occurred()) SWIG_fail;
18956 }
18957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
18958 return resultobj;
18959 fail:
18960 return NULL;
18961 }
18962
18963
18964 static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
18965 PyObject *resultobj;
18966 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
18967 bool arg2 = (bool) True ;
18968 PyObject * obj0 = 0 ;
18969 PyObject * obj1 = 0 ;
18970 char *kwnames[] = {
18971 (char *) "self",(char *) "needMore", NULL
18972 };
18973
18974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
18975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
18976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18977 if (obj1) {
18978 arg2 = (bool) SWIG_AsBool(obj1);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 {
18982 PyThreadState* __tstate = wxPyBeginAllowThreads();
18983 (arg1)->RequestMore(arg2);
18984
18985 wxPyEndAllowThreads(__tstate);
18986 if (PyErr_Occurred()) SWIG_fail;
18987 }
18988 Py_INCREF(Py_None); resultobj = Py_None;
18989 return resultobj;
18990 fail:
18991 return NULL;
18992 }
18993
18994
18995 static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
18996 PyObject *resultobj;
18997 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
18998 bool result;
18999 PyObject * obj0 = 0 ;
19000 char *kwnames[] = {
19001 (char *) "self", NULL
19002 };
19003
19004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19010
19011 wxPyEndAllowThreads(__tstate);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 }
19014 {
19015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19016 }
19017 return resultobj;
19018 fail:
19019 return NULL;
19020 }
19021
19022
19023 static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19024 PyObject *resultobj;
19025 int arg1 ;
19026 PyObject * obj0 = 0 ;
19027 char *kwnames[] = {
19028 (char *) "mode", NULL
19029 };
19030
19031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19032 arg1 = (wxIdleMode) SWIG_AsInt(obj0);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 wxIdleEvent::SetMode((wxIdleMode )arg1);
19037
19038 wxPyEndAllowThreads(__tstate);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 }
19041 Py_INCREF(Py_None); resultobj = Py_None;
19042 return resultobj;
19043 fail:
19044 return NULL;
19045 }
19046
19047
19048 static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19049 PyObject *resultobj;
19050 int result;
19051 char *kwnames[] = {
19052 NULL
19053 };
19054
19055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19056 {
19057 PyThreadState* __tstate = wxPyBeginAllowThreads();
19058 result = (int)wxIdleEvent::GetMode();
19059
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 resultobj = SWIG_FromInt((int)result);
19064 return resultobj;
19065 fail:
19066 return NULL;
19067 }
19068
19069
19070 static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj;
19072 wxWindow *arg1 = (wxWindow *) 0 ;
19073 bool result;
19074 PyObject * obj0 = 0 ;
19075 char *kwnames[] = {
19076 (char *) "win", NULL
19077 };
19078
19079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 result = (bool)wxIdleEvent::CanSend(arg1);
19085
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 {
19090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19091 }
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
19099 PyObject *obj;
19100 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19101 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19102 Py_INCREF(obj);
19103 return Py_BuildValue((char *)"");
19104 }
19105 static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19106 PyObject *resultobj;
19107 int arg1 = (int) 0 ;
19108 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19109 wxPyEvent *result;
19110 PyObject * obj0 = 0 ;
19111 PyObject * obj1 = 0 ;
19112 char *kwnames[] = {
19113 (char *) "winid",(char *) "commandType", NULL
19114 };
19115
19116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19117 if (obj0) {
19118 arg1 = (int) SWIG_AsInt(obj0);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 if (obj1) {
19122 arg2 = (wxEventType) SWIG_AsInt(obj1);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 {
19126 PyThreadState* __tstate = wxPyBeginAllowThreads();
19127 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19128
19129 wxPyEndAllowThreads(__tstate);
19130 if (PyErr_Occurred()) SWIG_fail;
19131 }
19132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19133 return resultobj;
19134 fail:
19135 return NULL;
19136 }
19137
19138
19139 static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj;
19141 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19142 PyObject * obj0 = 0 ;
19143 char *kwnames[] = {
19144 (char *) "self", NULL
19145 };
19146
19147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 delete arg1;
19153
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 Py_INCREF(Py_None); resultobj = Py_None;
19158 return resultobj;
19159 fail:
19160 return NULL;
19161 }
19162
19163
19164 static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj;
19166 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19167 PyObject *arg2 = (PyObject *) 0 ;
19168 PyObject * obj0 = 0 ;
19169 PyObject * obj1 = 0 ;
19170 char *kwnames[] = {
19171 (char *) "self",(char *) "self", NULL
19172 };
19173
19174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19177 arg2 = obj1;
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->SetSelf(arg2);
19181
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 Py_INCREF(Py_None); resultobj = Py_None;
19186 return resultobj;
19187 fail:
19188 return NULL;
19189 }
19190
19191
19192 static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj;
19194 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19195 PyObject *result;
19196 PyObject * obj0 = 0 ;
19197 char *kwnames[] = {
19198 (char *) "self", NULL
19199 };
19200
19201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 result = (PyObject *)(arg1)->GetSelf();
19207
19208 wxPyEndAllowThreads(__tstate);
19209 if (PyErr_Occurred()) SWIG_fail;
19210 }
19211 resultobj = result;
19212 return resultobj;
19213 fail:
19214 return NULL;
19215 }
19216
19217
19218 static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
19219 PyObject *obj;
19220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19221 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19222 Py_INCREF(obj);
19223 return Py_BuildValue((char *)"");
19224 }
19225 static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19226 PyObject *resultobj;
19227 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19228 int arg2 = (int) 0 ;
19229 wxPyCommandEvent *result;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 char *kwnames[] = {
19233 (char *) "commandType",(char *) "id", NULL
19234 };
19235
19236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19237 if (obj0) {
19238 arg1 = (wxEventType) SWIG_AsInt(obj0);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 if (obj1) {
19242 arg2 = (int) SWIG_AsInt(obj1);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19248
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19253 return resultobj;
19254 fail:
19255 return NULL;
19256 }
19257
19258
19259 static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj;
19261 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19262 PyObject * obj0 = 0 ;
19263 char *kwnames[] = {
19264 (char *) "self", NULL
19265 };
19266
19267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19270 {
19271 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272 delete arg1;
19273
19274 wxPyEndAllowThreads(__tstate);
19275 if (PyErr_Occurred()) SWIG_fail;
19276 }
19277 Py_INCREF(Py_None); resultobj = Py_None;
19278 return resultobj;
19279 fail:
19280 return NULL;
19281 }
19282
19283
19284 static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19285 PyObject *resultobj;
19286 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19287 PyObject *arg2 = (PyObject *) 0 ;
19288 PyObject * obj0 = 0 ;
19289 PyObject * obj1 = 0 ;
19290 char *kwnames[] = {
19291 (char *) "self",(char *) "self", NULL
19292 };
19293
19294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19297 arg2 = obj1;
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 (arg1)->SetSelf(arg2);
19301
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 Py_INCREF(Py_None); resultobj = Py_None;
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj;
19314 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19315 PyObject *result;
19316 PyObject * obj0 = 0 ;
19317 char *kwnames[] = {
19318 (char *) "self", NULL
19319 };
19320
19321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19324 {
19325 PyThreadState* __tstate = wxPyBeginAllowThreads();
19326 result = (PyObject *)(arg1)->GetSelf();
19327
19328 wxPyEndAllowThreads(__tstate);
19329 if (PyErr_Occurred()) SWIG_fail;
19330 }
19331 resultobj = result;
19332 return resultobj;
19333 fail:
19334 return NULL;
19335 }
19336
19337
19338 static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
19339 PyObject *obj;
19340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19341 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19342 Py_INCREF(obj);
19343 return Py_BuildValue((char *)"");
19344 }
19345 static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 wxPyApp *result;
19348 char *kwnames[] = {
19349 NULL
19350 };
19351
19352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19353 {
19354 PyThreadState* __tstate = wxPyBeginAllowThreads();
19355 result = (wxPyApp *)new_wxPyApp();
19356
19357 wxPyEndAllowThreads(__tstate);
19358 if (PyErr_Occurred()) SWIG_fail;
19359 }
19360 {
19361 resultobj = wxPyMake_wxObject(result);
19362 }
19363 return resultobj;
19364 fail:
19365 return NULL;
19366 }
19367
19368
19369 static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19370 PyObject *resultobj;
19371 wxPyApp *arg1 = (wxPyApp *) 0 ;
19372 PyObject * obj0 = 0 ;
19373 char *kwnames[] = {
19374 (char *) "self", NULL
19375 };
19376
19377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 delete arg1;
19383
19384 wxPyEndAllowThreads(__tstate);
19385 if (PyErr_Occurred()) SWIG_fail;
19386 }
19387 Py_INCREF(Py_None); resultobj = Py_None;
19388 return resultobj;
19389 fail:
19390 return NULL;
19391 }
19392
19393
19394 static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19395 PyObject *resultobj;
19396 wxPyApp *arg1 = (wxPyApp *) 0 ;
19397 PyObject *arg2 = (PyObject *) 0 ;
19398 PyObject *arg3 = (PyObject *) 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 PyObject * obj2 = 0 ;
19402 char *kwnames[] = {
19403 (char *) "self",(char *) "self",(char *) "_class", NULL
19404 };
19405
19406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19409 arg2 = obj1;
19410 arg3 = obj2;
19411 {
19412 PyThreadState* __tstate = wxPyBeginAllowThreads();
19413 (arg1)->_setCallbackInfo(arg2,arg3);
19414
19415 wxPyEndAllowThreads(__tstate);
19416 if (PyErr_Occurred()) SWIG_fail;
19417 }
19418 Py_INCREF(Py_None); resultobj = Py_None;
19419 return resultobj;
19420 fail:
19421 return NULL;
19422 }
19423
19424
19425 static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19426 PyObject *resultobj;
19427 wxPyApp *arg1 = (wxPyApp *) 0 ;
19428 wxString result;
19429 PyObject * obj0 = 0 ;
19430 char *kwnames[] = {
19431 (char *) "self", NULL
19432 };
19433
19434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19437 {
19438 PyThreadState* __tstate = wxPyBeginAllowThreads();
19439 result = ((wxPyApp const *)arg1)->GetAppName();
19440
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 {
19445 #if wxUSE_UNICODE
19446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19447 #else
19448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19449 #endif
19450 }
19451 return resultobj;
19452 fail:
19453 return NULL;
19454 }
19455
19456
19457 static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19458 PyObject *resultobj;
19459 wxPyApp *arg1 = (wxPyApp *) 0 ;
19460 wxString *arg2 = 0 ;
19461 bool temp2 = False ;
19462 PyObject * obj0 = 0 ;
19463 PyObject * obj1 = 0 ;
19464 char *kwnames[] = {
19465 (char *) "self",(char *) "name", NULL
19466 };
19467
19468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19471 {
19472 arg2 = wxString_in_helper(obj1);
19473 if (arg2 == NULL) SWIG_fail;
19474 temp2 = True;
19475 }
19476 {
19477 PyThreadState* __tstate = wxPyBeginAllowThreads();
19478 (arg1)->SetAppName((wxString const &)*arg2);
19479
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 Py_INCREF(Py_None); resultobj = Py_None;
19484 {
19485 if (temp2)
19486 delete arg2;
19487 }
19488 return resultobj;
19489 fail:
19490 {
19491 if (temp2)
19492 delete arg2;
19493 }
19494 return NULL;
19495 }
19496
19497
19498 static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19499 PyObject *resultobj;
19500 wxPyApp *arg1 = (wxPyApp *) 0 ;
19501 wxString result;
19502 PyObject * obj0 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "self", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 result = ((wxPyApp const *)arg1)->GetClassName();
19513
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 {
19518 #if wxUSE_UNICODE
19519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19520 #else
19521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19522 #endif
19523 }
19524 return resultobj;
19525 fail:
19526 return NULL;
19527 }
19528
19529
19530 static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19531 PyObject *resultobj;
19532 wxPyApp *arg1 = (wxPyApp *) 0 ;
19533 wxString *arg2 = 0 ;
19534 bool temp2 = False ;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 char *kwnames[] = {
19538 (char *) "self",(char *) "name", NULL
19539 };
19540
19541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19544 {
19545 arg2 = wxString_in_helper(obj1);
19546 if (arg2 == NULL) SWIG_fail;
19547 temp2 = True;
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 (arg1)->SetClassName((wxString const &)*arg2);
19552
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 Py_INCREF(Py_None); resultobj = Py_None;
19557 {
19558 if (temp2)
19559 delete arg2;
19560 }
19561 return resultobj;
19562 fail:
19563 {
19564 if (temp2)
19565 delete arg2;
19566 }
19567 return NULL;
19568 }
19569
19570
19571 static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj;
19573 wxPyApp *arg1 = (wxPyApp *) 0 ;
19574 wxString *result;
19575 PyObject * obj0 = 0 ;
19576 char *kwnames[] = {
19577 (char *) "self", NULL
19578 };
19579
19580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
19581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 {
19586 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
19587 result = (wxString *) &_result_ref;
19588 }
19589
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 {
19594 #if wxUSE_UNICODE
19595 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19596 #else
19597 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19598 #endif
19599 }
19600 return resultobj;
19601 fail:
19602 return NULL;
19603 }
19604
19605
19606 static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19607 PyObject *resultobj;
19608 wxPyApp *arg1 = (wxPyApp *) 0 ;
19609 wxString *arg2 = 0 ;
19610 bool temp2 = False ;
19611 PyObject * obj0 = 0 ;
19612 PyObject * obj1 = 0 ;
19613 char *kwnames[] = {
19614 (char *) "self",(char *) "name", NULL
19615 };
19616
19617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19620 {
19621 arg2 = wxString_in_helper(obj1);
19622 if (arg2 == NULL) SWIG_fail;
19623 temp2 = True;
19624 }
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 (arg1)->SetVendorName((wxString const &)*arg2);
19628
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 Py_INCREF(Py_None); resultobj = Py_None;
19633 {
19634 if (temp2)
19635 delete arg2;
19636 }
19637 return resultobj;
19638 fail:
19639 {
19640 if (temp2)
19641 delete arg2;
19642 }
19643 return NULL;
19644 }
19645
19646
19647 static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19648 PyObject *resultobj;
19649 wxPyApp *arg1 = (wxPyApp *) 0 ;
19650 wxAppTraits *result;
19651 PyObject * obj0 = 0 ;
19652 char *kwnames[] = {
19653 (char *) "self", NULL
19654 };
19655
19656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19659 {
19660 PyThreadState* __tstate = wxPyBeginAllowThreads();
19661 result = (wxAppTraits *)(arg1)->GetTraits();
19662
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
19667 return resultobj;
19668 fail:
19669 return NULL;
19670 }
19671
19672
19673 static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj;
19675 wxPyApp *arg1 = (wxPyApp *) 0 ;
19676 PyObject * obj0 = 0 ;
19677 char *kwnames[] = {
19678 (char *) "self", NULL
19679 };
19680
19681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19684 {
19685 PyThreadState* __tstate = wxPyBeginAllowThreads();
19686 (arg1)->ProcessPendingEvents();
19687
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 Py_INCREF(Py_None); resultobj = Py_None;
19692 return resultobj;
19693 fail:
19694 return NULL;
19695 }
19696
19697
19698 static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj;
19700 wxPyApp *arg1 = (wxPyApp *) 0 ;
19701 bool arg2 = (bool) False ;
19702 bool result;
19703 PyObject * obj0 = 0 ;
19704 PyObject * obj1 = 0 ;
19705 char *kwnames[] = {
19706 (char *) "self",(char *) "onlyIfNeeded", NULL
19707 };
19708
19709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19712 if (obj1) {
19713 arg2 = (bool) SWIG_AsBool(obj1);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 {
19717 PyThreadState* __tstate = wxPyBeginAllowThreads();
19718 result = (bool)(arg1)->Yield(arg2);
19719
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 {
19724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19725 }
19726 return resultobj;
19727 fail:
19728 return NULL;
19729 }
19730
19731
19732 static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19733 PyObject *resultobj;
19734 wxPyApp *arg1 = (wxPyApp *) 0 ;
19735 PyObject * obj0 = 0 ;
19736 char *kwnames[] = {
19737 (char *) "self", NULL
19738 };
19739
19740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19743 {
19744 PyThreadState* __tstate = wxPyBeginAllowThreads();
19745 (arg1)->WakeUpIdle();
19746
19747 wxPyEndAllowThreads(__tstate);
19748 if (PyErr_Occurred()) SWIG_fail;
19749 }
19750 Py_INCREF(Py_None); resultobj = Py_None;
19751 return resultobj;
19752 fail:
19753 return NULL;
19754 }
19755
19756
19757 static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19758 PyObject *resultobj;
19759 wxPyApp *arg1 = (wxPyApp *) 0 ;
19760 int result;
19761 PyObject * obj0 = 0 ;
19762 char *kwnames[] = {
19763 (char *) "self", NULL
19764 };
19765
19766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19769 {
19770 PyThreadState* __tstate = wxPyBeginAllowThreads();
19771 result = (int)(arg1)->MainLoop();
19772
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 resultobj = SWIG_FromInt((int)result);
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxPyApp *arg1 = (wxPyApp *) 0 ;
19786 PyObject * obj0 = 0 ;
19787 char *kwnames[] = {
19788 (char *) "self", NULL
19789 };
19790
19791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 (arg1)->Exit();
19797
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 Py_INCREF(Py_None); resultobj = Py_None;
19802 return resultobj;
19803 fail:
19804 return NULL;
19805 }
19806
19807
19808 static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19809 PyObject *resultobj;
19810 wxPyApp *arg1 = (wxPyApp *) 0 ;
19811 PyObject * obj0 = 0 ;
19812 char *kwnames[] = {
19813 (char *) "self", NULL
19814 };
19815
19816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 (arg1)->ExitMainLoop();
19822
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 Py_INCREF(Py_None); resultobj = Py_None;
19827 return resultobj;
19828 fail:
19829 return NULL;
19830 }
19831
19832
19833 static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
19834 PyObject *resultobj;
19835 wxPyApp *arg1 = (wxPyApp *) 0 ;
19836 bool result;
19837 PyObject * obj0 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "self", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
19843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19845 {
19846 PyThreadState* __tstate = wxPyBeginAllowThreads();
19847 result = (bool)(arg1)->Pending();
19848
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 {
19853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19854 }
19855 return resultobj;
19856 fail:
19857 return NULL;
19858 }
19859
19860
19861 static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19862 PyObject *resultobj;
19863 wxPyApp *arg1 = (wxPyApp *) 0 ;
19864 bool result;
19865 PyObject * obj0 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
19871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 result = (bool)(arg1)->Dispatch();
19876
19877 wxPyEndAllowThreads(__tstate);
19878 if (PyErr_Occurred()) SWIG_fail;
19879 }
19880 {
19881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19882 }
19883 return resultobj;
19884 fail:
19885 return NULL;
19886 }
19887
19888
19889 static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19890 PyObject *resultobj;
19891 wxPyApp *arg1 = (wxPyApp *) 0 ;
19892 bool result;
19893 PyObject * obj0 = 0 ;
19894 char *kwnames[] = {
19895 (char *) "self", NULL
19896 };
19897
19898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
19899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 result = (bool)(arg1)->ProcessIdle();
19904
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 {
19909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19910 }
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19918 PyObject *resultobj;
19919 wxPyApp *arg1 = (wxPyApp *) 0 ;
19920 wxWindow *arg2 = (wxWindow *) 0 ;
19921 wxIdleEvent *arg3 = 0 ;
19922 bool result;
19923 PyObject * obj0 = 0 ;
19924 PyObject * obj1 = 0 ;
19925 PyObject * obj2 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self",(char *) "win",(char *) "event", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
19931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19935 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
19936 SWIG_POINTER_EXCEPTION | 0)) == -1)
19937 SWIG_fail;
19938 if (arg3 == NULL) {
19939 PyErr_SetString(PyExc_TypeError,"null reference");
19940 SWIG_fail;
19941 }
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
19945
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 {
19950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19951 }
19952 return resultobj;
19953 fail:
19954 return NULL;
19955 }
19956
19957
19958 static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj;
19960 wxPyApp *arg1 = (wxPyApp *) 0 ;
19961 bool result;
19962 PyObject * obj0 = 0 ;
19963 char *kwnames[] = {
19964 (char *) "self", NULL
19965 };
19966
19967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
19968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19970 {
19971 PyThreadState* __tstate = wxPyBeginAllowThreads();
19972 result = (bool)((wxPyApp const *)arg1)->IsActive();
19973
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 {
19978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19979 }
19980 return resultobj;
19981 fail:
19982 return NULL;
19983 }
19984
19985
19986 static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj;
19988 wxPyApp *arg1 = (wxPyApp *) 0 ;
19989 wxWindow *arg2 = (wxWindow *) 0 ;
19990 PyObject * obj0 = 0 ;
19991 PyObject * obj1 = 0 ;
19992 char *kwnames[] = {
19993 (char *) "self",(char *) "win", NULL
19994 };
19995
19996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
19997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 (arg1)->SetTopWindow(arg2);
20004
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 Py_INCREF(Py_None); resultobj = Py_None;
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj;
20017 wxPyApp *arg1 = (wxPyApp *) 0 ;
20018 wxWindow *result;
20019 PyObject * obj0 = 0 ;
20020 char *kwnames[] = {
20021 (char *) "self", NULL
20022 };
20023
20024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20027 {
20028 PyThreadState* __tstate = wxPyBeginAllowThreads();
20029 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20030
20031 wxPyEndAllowThreads(__tstate);
20032 if (PyErr_Occurred()) SWIG_fail;
20033 }
20034 {
20035 resultobj = wxPyMake_wxObject(result);
20036 }
20037 return resultobj;
20038 fail:
20039 return NULL;
20040 }
20041
20042
20043 static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20044 PyObject *resultobj;
20045 wxPyApp *arg1 = (wxPyApp *) 0 ;
20046 bool arg2 ;
20047 PyObject * obj0 = 0 ;
20048 PyObject * obj1 = 0 ;
20049 char *kwnames[] = {
20050 (char *) "self",(char *) "flag", NULL
20051 };
20052
20053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20056 arg2 = (bool) SWIG_AsBool(obj1);
20057 if (PyErr_Occurred()) SWIG_fail;
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 (arg1)->SetExitOnFrameDelete(arg2);
20061
20062 wxPyEndAllowThreads(__tstate);
20063 if (PyErr_Occurred()) SWIG_fail;
20064 }
20065 Py_INCREF(Py_None); resultobj = Py_None;
20066 return resultobj;
20067 fail:
20068 return NULL;
20069 }
20070
20071
20072 static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20073 PyObject *resultobj;
20074 wxPyApp *arg1 = (wxPyApp *) 0 ;
20075 bool result;
20076 PyObject * obj0 = 0 ;
20077 char *kwnames[] = {
20078 (char *) "self", NULL
20079 };
20080
20081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20087
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 {
20092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20093 }
20094 return resultobj;
20095 fail:
20096 return NULL;
20097 }
20098
20099
20100 static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj;
20102 wxPyApp *arg1 = (wxPyApp *) 0 ;
20103 bool arg2 ;
20104 PyObject * obj0 = 0 ;
20105 PyObject * obj1 = 0 ;
20106 char *kwnames[] = {
20107 (char *) "self",(char *) "flag", NULL
20108 };
20109
20110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20113 arg2 = (bool) SWIG_AsBool(obj1);
20114 if (PyErr_Occurred()) SWIG_fail;
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 (arg1)->SetUseBestVisual(arg2);
20118
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 Py_INCREF(Py_None); resultobj = Py_None;
20123 return resultobj;
20124 fail:
20125 return NULL;
20126 }
20127
20128
20129 static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20130 PyObject *resultobj;
20131 wxPyApp *arg1 = (wxPyApp *) 0 ;
20132 bool result;
20133 PyObject * obj0 = 0 ;
20134 char *kwnames[] = {
20135 (char *) "self", NULL
20136 };
20137
20138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20144
20145 wxPyEndAllowThreads(__tstate);
20146 if (PyErr_Occurred()) SWIG_fail;
20147 }
20148 {
20149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20150 }
20151 return resultobj;
20152 fail:
20153 return NULL;
20154 }
20155
20156
20157 static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj;
20159 wxPyApp *arg1 = (wxPyApp *) 0 ;
20160 int arg2 ;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 char *kwnames[] = {
20164 (char *) "self",(char *) "mode", NULL
20165 };
20166
20167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20170 arg2 = (int) SWIG_AsInt(obj1);
20171 if (PyErr_Occurred()) SWIG_fail;
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 (arg1)->SetPrintMode(arg2);
20175
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 Py_INCREF(Py_None); resultobj = Py_None;
20180 return resultobj;
20181 fail:
20182 return NULL;
20183 }
20184
20185
20186 static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj;
20188 wxPyApp *arg1 = (wxPyApp *) 0 ;
20189 int result;
20190 PyObject * obj0 = 0 ;
20191 char *kwnames[] = {
20192 (char *) "self", NULL
20193 };
20194
20195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20198 {
20199 PyThreadState* __tstate = wxPyBeginAllowThreads();
20200 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20201
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 resultobj = SWIG_FromInt((int)result);
20206 return resultobj;
20207 fail:
20208 return NULL;
20209 }
20210
20211
20212 static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20213 PyObject *resultobj;
20214 wxPyApp *arg1 = (wxPyApp *) 0 ;
20215 int arg2 ;
20216 PyObject * obj0 = 0 ;
20217 PyObject * obj1 = 0 ;
20218 char *kwnames[] = {
20219 (char *) "self",(char *) "mode", NULL
20220 };
20221
20222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20225 arg2 = (int) SWIG_AsInt(obj1);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 (arg1)->SetAssertMode(arg2);
20230
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 Py_INCREF(Py_None); resultobj = Py_None;
20235 return resultobj;
20236 fail:
20237 return NULL;
20238 }
20239
20240
20241 static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj;
20243 wxPyApp *arg1 = (wxPyApp *) 0 ;
20244 int result;
20245 PyObject * obj0 = 0 ;
20246 char *kwnames[] = {
20247 (char *) "self", NULL
20248 };
20249
20250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 result = (int)(arg1)->GetAssertMode();
20256
20257 wxPyEndAllowThreads(__tstate);
20258 if (PyErr_Occurred()) SWIG_fail;
20259 }
20260 resultobj = SWIG_FromInt((int)result);
20261 return resultobj;
20262 fail:
20263 return NULL;
20264 }
20265
20266
20267 static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20268 PyObject *resultobj;
20269 bool result;
20270 char *kwnames[] = {
20271 NULL
20272 };
20273
20274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20275 {
20276 PyThreadState* __tstate = wxPyBeginAllowThreads();
20277 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20278
20279 wxPyEndAllowThreads(__tstate);
20280 if (PyErr_Occurred()) SWIG_fail;
20281 }
20282 {
20283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20284 }
20285 return resultobj;
20286 fail:
20287 return NULL;
20288 }
20289
20290
20291 static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20292 PyObject *resultobj;
20293 long result;
20294 char *kwnames[] = {
20295 NULL
20296 };
20297
20298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = (long)wxPyApp::GetMacAboutMenuItemId();
20302
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 resultobj = SWIG_FromLong((long)result);
20307 return resultobj;
20308 fail:
20309 return NULL;
20310 }
20311
20312
20313 static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20314 PyObject *resultobj;
20315 long result;
20316 char *kwnames[] = {
20317 NULL
20318 };
20319
20320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20321 {
20322 PyThreadState* __tstate = wxPyBeginAllowThreads();
20323 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20324
20325 wxPyEndAllowThreads(__tstate);
20326 if (PyErr_Occurred()) SWIG_fail;
20327 }
20328 resultobj = SWIG_FromLong((long)result);
20329 return resultobj;
20330 fail:
20331 return NULL;
20332 }
20333
20334
20335 static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj;
20337 long result;
20338 char *kwnames[] = {
20339 NULL
20340 };
20341
20342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 result = (long)wxPyApp::GetMacExitMenuItemId();
20346
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_FromLong((long)result);
20351 return resultobj;
20352 fail:
20353 return NULL;
20354 }
20355
20356
20357 static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20358 PyObject *resultobj;
20359 wxString result;
20360 char *kwnames[] = {
20361 NULL
20362 };
20363
20364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20365 {
20366 PyThreadState* __tstate = wxPyBeginAllowThreads();
20367 result = wxPyApp::GetMacHelpMenuTitleName();
20368
20369 wxPyEndAllowThreads(__tstate);
20370 if (PyErr_Occurred()) SWIG_fail;
20371 }
20372 {
20373 #if wxUSE_UNICODE
20374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20375 #else
20376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20377 #endif
20378 }
20379 return resultobj;
20380 fail:
20381 return NULL;
20382 }
20383
20384
20385 static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20386 PyObject *resultobj;
20387 bool arg1 ;
20388 PyObject * obj0 = 0 ;
20389 char *kwnames[] = {
20390 (char *) "val", NULL
20391 };
20392
20393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20394 arg1 = (bool) SWIG_AsBool(obj0);
20395 if (PyErr_Occurred()) SWIG_fail;
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20399
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 Py_INCREF(Py_None); resultobj = Py_None;
20404 return resultobj;
20405 fail:
20406 return NULL;
20407 }
20408
20409
20410 static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20411 PyObject *resultobj;
20412 long arg1 ;
20413 PyObject * obj0 = 0 ;
20414 char *kwnames[] = {
20415 (char *) "val", NULL
20416 };
20417
20418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
20419 arg1 = (long) SWIG_AsLong(obj0);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 wxPyApp::SetMacAboutMenuItemId(arg1);
20424
20425 wxPyEndAllowThreads(__tstate);
20426 if (PyErr_Occurred()) SWIG_fail;
20427 }
20428 Py_INCREF(Py_None); resultobj = Py_None;
20429 return resultobj;
20430 fail:
20431 return NULL;
20432 }
20433
20434
20435 static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20436 PyObject *resultobj;
20437 long arg1 ;
20438 PyObject * obj0 = 0 ;
20439 char *kwnames[] = {
20440 (char *) "val", NULL
20441 };
20442
20443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
20444 arg1 = (long) SWIG_AsLong(obj0);
20445 if (PyErr_Occurred()) SWIG_fail;
20446 {
20447 PyThreadState* __tstate = wxPyBeginAllowThreads();
20448 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20449
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 Py_INCREF(Py_None); resultobj = Py_None;
20454 return resultobj;
20455 fail:
20456 return NULL;
20457 }
20458
20459
20460 static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20461 PyObject *resultobj;
20462 long arg1 ;
20463 PyObject * obj0 = 0 ;
20464 char *kwnames[] = {
20465 (char *) "val", NULL
20466 };
20467
20468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
20469 arg1 = (long) SWIG_AsLong(obj0);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 wxPyApp::SetMacExitMenuItemId(arg1);
20474
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 Py_INCREF(Py_None); resultobj = Py_None;
20479 return resultobj;
20480 fail:
20481 return NULL;
20482 }
20483
20484
20485 static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20486 PyObject *resultobj;
20487 wxString *arg1 = 0 ;
20488 bool temp1 = False ;
20489 PyObject * obj0 = 0 ;
20490 char *kwnames[] = {
20491 (char *) "val", NULL
20492 };
20493
20494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20495 {
20496 arg1 = wxString_in_helper(obj0);
20497 if (arg1 == NULL) SWIG_fail;
20498 temp1 = True;
20499 }
20500 {
20501 PyThreadState* __tstate = wxPyBeginAllowThreads();
20502 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20503
20504 wxPyEndAllowThreads(__tstate);
20505 if (PyErr_Occurred()) SWIG_fail;
20506 }
20507 Py_INCREF(Py_None); resultobj = Py_None;
20508 {
20509 if (temp1)
20510 delete arg1;
20511 }
20512 return resultobj;
20513 fail:
20514 {
20515 if (temp1)
20516 delete arg1;
20517 }
20518 return NULL;
20519 }
20520
20521
20522 static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20523 PyObject *resultobj;
20524 wxPyApp *arg1 = (wxPyApp *) 0 ;
20525 PyObject * obj0 = 0 ;
20526 char *kwnames[] = {
20527 (char *) "self", NULL
20528 };
20529
20530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20533 {
20534 PyThreadState* __tstate = wxPyBeginAllowThreads();
20535 (arg1)->_BootstrapApp();
20536
20537 wxPyEndAllowThreads(__tstate);
20538 if (PyErr_Occurred()) SWIG_fail;
20539 }
20540 Py_INCREF(Py_None); resultobj = Py_None;
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj;
20549 int result;
20550 char *kwnames[] = {
20551 NULL
20552 };
20553
20554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20555 {
20556 PyThreadState* __tstate = wxPyBeginAllowThreads();
20557 result = (int)PyApp_GetComCtl32Version();
20558
20559 wxPyEndAllowThreads(__tstate);
20560 if (PyErr_Occurred()) SWIG_fail;
20561 }
20562 resultobj = SWIG_FromInt((int)result);
20563 return resultobj;
20564 fail:
20565 return NULL;
20566 }
20567
20568
20569 static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
20570 PyObject *obj;
20571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20572 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20573 Py_INCREF(obj);
20574 return Py_BuildValue((char *)"");
20575 }
20576 static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20577 PyObject *resultobj;
20578 char *kwnames[] = {
20579 NULL
20580 };
20581
20582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
20583 {
20584 PyThreadState* __tstate = wxPyBeginAllowThreads();
20585 wxExit();
20586
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 Py_INCREF(Py_None); resultobj = Py_None;
20591 return resultobj;
20592 fail:
20593 return NULL;
20594 }
20595
20596
20597 static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj;
20599 bool result;
20600 char *kwnames[] = {
20601 NULL
20602 };
20603
20604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 result = (bool)wxYield();
20608
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 {
20613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20614 }
20615 return resultobj;
20616 fail:
20617 return NULL;
20618 }
20619
20620
20621 static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
20622 PyObject *resultobj;
20623 bool result;
20624 char *kwnames[] = {
20625 NULL
20626 };
20627
20628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 result = (bool)wxYieldIfNeeded();
20632
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 {
20637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20638 }
20639 return resultobj;
20640 fail:
20641 return NULL;
20642 }
20643
20644
20645 static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20646 PyObject *resultobj;
20647 wxWindow *arg1 = (wxWindow *) NULL ;
20648 bool arg2 = (bool) False ;
20649 bool result;
20650 PyObject * obj0 = 0 ;
20651 PyObject * obj1 = 0 ;
20652 char *kwnames[] = {
20653 (char *) "win",(char *) "onlyIfNeeded", NULL
20654 };
20655
20656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20657 if (obj0) {
20658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20660 }
20661 if (obj1) {
20662 arg2 = (bool) SWIG_AsBool(obj1);
20663 if (PyErr_Occurred()) SWIG_fail;
20664 }
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 result = (bool)wxSafeYield(arg1,arg2);
20668
20669 wxPyEndAllowThreads(__tstate);
20670 if (PyErr_Occurred()) SWIG_fail;
20671 }
20672 {
20673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20674 }
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj;
20683 char *kwnames[] = {
20684 NULL
20685 };
20686
20687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20688 {
20689 PyThreadState* __tstate = wxPyBeginAllowThreads();
20690 wxWakeUpIdle();
20691
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 Py_INCREF(Py_None); resultobj = Py_None;
20696 return resultobj;
20697 fail:
20698 return NULL;
20699 }
20700
20701
20702 static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20703 PyObject *resultobj;
20704 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20705 wxEvent *arg2 = 0 ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 char *kwnames[] = {
20709 (char *) "dest",(char *) "event", NULL
20710 };
20711
20712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
20714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
20716 SWIG_POINTER_EXCEPTION | 0)) == -1)
20717 SWIG_fail;
20718 if (arg2 == NULL) {
20719 PyErr_SetString(PyExc_TypeError,"null reference");
20720 SWIG_fail;
20721 }
20722 {
20723 PyThreadState* __tstate = wxPyBeginAllowThreads();
20724 wxPostEvent(arg1,*arg2);
20725
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 Py_INCREF(Py_None); resultobj = Py_None;
20730 return resultobj;
20731 fail:
20732 return NULL;
20733 }
20734
20735
20736 static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj;
20738 char *kwnames[] = {
20739 NULL
20740 };
20741
20742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 wxApp_CleanUp();
20746
20747 wxPyEndAllowThreads(__tstate);
20748 if (PyErr_Occurred()) SWIG_fail;
20749 }
20750 Py_INCREF(Py_None); resultobj = Py_None;
20751 return resultobj;
20752 fail:
20753 return NULL;
20754 }
20755
20756
20757 static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20758 PyObject *resultobj;
20759 wxPyApp *result;
20760 char *kwnames[] = {
20761 NULL
20762 };
20763
20764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 result = (wxPyApp *)wxGetApp();
20768
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 {
20773 resultobj = wxPyMake_wxObject(result);
20774 }
20775 return resultobj;
20776 fail:
20777 return NULL;
20778 }
20779
20780
20781 static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj;
20783 int arg1 = (int) 0 ;
20784 int arg2 = (int) 0 ;
20785 int arg3 = (int) 0 ;
20786 wxAcceleratorEntry *result;
20787 PyObject * obj0 = 0 ;
20788 PyObject * obj1 = 0 ;
20789 PyObject * obj2 = 0 ;
20790 char *kwnames[] = {
20791 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
20792 };
20793
20794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
20795 if (obj0) {
20796 arg1 = (int) SWIG_AsInt(obj0);
20797 if (PyErr_Occurred()) SWIG_fail;
20798 }
20799 if (obj1) {
20800 arg2 = (int) SWIG_AsInt(obj1);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 if (obj2) {
20804 arg3 = (int) SWIG_AsInt(obj2);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 {
20808 PyThreadState* __tstate = wxPyBeginAllowThreads();
20809 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
20810
20811 wxPyEndAllowThreads(__tstate);
20812 if (PyErr_Occurred()) SWIG_fail;
20813 }
20814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
20815 return resultobj;
20816 fail:
20817 return NULL;
20818 }
20819
20820
20821 static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20822 PyObject *resultobj;
20823 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20824 PyObject * obj0 = 0 ;
20825 char *kwnames[] = {
20826 (char *) "self", NULL
20827 };
20828
20829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20832 {
20833 PyThreadState* __tstate = wxPyBeginAllowThreads();
20834 delete arg1;
20835
20836 wxPyEndAllowThreads(__tstate);
20837 if (PyErr_Occurred()) SWIG_fail;
20838 }
20839 Py_INCREF(Py_None); resultobj = Py_None;
20840 return resultobj;
20841 fail:
20842 return NULL;
20843 }
20844
20845
20846 static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20847 PyObject *resultobj;
20848 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20849 int arg2 ;
20850 int arg3 ;
20851 int arg4 ;
20852 PyObject * obj0 = 0 ;
20853 PyObject * obj1 = 0 ;
20854 PyObject * obj2 = 0 ;
20855 PyObject * obj3 = 0 ;
20856 char *kwnames[] = {
20857 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
20858 };
20859
20860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20863 arg2 = (int) SWIG_AsInt(obj1);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 arg3 = (int) SWIG_AsInt(obj2);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 arg4 = (int) SWIG_AsInt(obj3);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 {
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 (arg1)->Set(arg2,arg3,arg4);
20872
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 Py_INCREF(Py_None); resultobj = Py_None;
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
20884 PyObject *resultobj;
20885 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20886 int result;
20887 PyObject * obj0 = 0 ;
20888 char *kwnames[] = {
20889 (char *) "self", NULL
20890 };
20891
20892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
20893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20895 {
20896 PyThreadState* __tstate = wxPyBeginAllowThreads();
20897 result = (int)(arg1)->GetFlags();
20898
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 resultobj = SWIG_FromInt((int)result);
20903 return resultobj;
20904 fail:
20905 return NULL;
20906 }
20907
20908
20909 static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj;
20911 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20912 int result;
20913 PyObject * obj0 = 0 ;
20914 char *kwnames[] = {
20915 (char *) "self", NULL
20916 };
20917
20918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
20919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20921 {
20922 PyThreadState* __tstate = wxPyBeginAllowThreads();
20923 result = (int)(arg1)->GetKeyCode();
20924
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_FromInt((int)result);
20929 return resultobj;
20930 fail:
20931 return NULL;
20932 }
20933
20934
20935 static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
20936 PyObject *resultobj;
20937 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20938 int result;
20939 PyObject * obj0 = 0 ;
20940 char *kwnames[] = {
20941 (char *) "self", NULL
20942 };
20943
20944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
20945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20947 {
20948 PyThreadState* __tstate = wxPyBeginAllowThreads();
20949 result = (int)(arg1)->GetCommand();
20950
20951 wxPyEndAllowThreads(__tstate);
20952 if (PyErr_Occurred()) SWIG_fail;
20953 }
20954 resultobj = SWIG_FromInt((int)result);
20955 return resultobj;
20956 fail:
20957 return NULL;
20958 }
20959
20960
20961 static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
20962 PyObject *obj;
20963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20964 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
20965 Py_INCREF(obj);
20966 return Py_BuildValue((char *)"");
20967 }
20968 static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
20969 PyObject *resultobj;
20970 int arg1 ;
20971 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
20972 wxAcceleratorTable *result;
20973 PyObject * obj0 = 0 ;
20974 char *kwnames[] = {
20975 (char *) "n", NULL
20976 };
20977
20978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
20979 {
20980 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
20981 if (arg2) arg1 = PyList_Size(obj0);
20982 else arg1 = 0;
20983 }
20984 {
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
20987
20988 wxPyEndAllowThreads(__tstate);
20989 if (PyErr_Occurred()) SWIG_fail;
20990 }
20991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
20992 {
20993 delete [] arg2;
20994 }
20995 return resultobj;
20996 fail:
20997 {
20998 delete [] arg2;
20999 }
21000 return NULL;
21001 }
21002
21003
21004 static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj;
21006 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21007 PyObject * obj0 = 0 ;
21008 char *kwnames[] = {
21009 (char *) "self", NULL
21010 };
21011
21012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 delete arg1;
21018
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 Py_INCREF(Py_None); resultobj = Py_None;
21023 return resultobj;
21024 fail:
21025 return NULL;
21026 }
21027
21028
21029 static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
21030 PyObject *resultobj;
21031 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21032 bool result;
21033 PyObject * obj0 = 0 ;
21034 char *kwnames[] = {
21035 (char *) "self", NULL
21036 };
21037
21038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21044
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 {
21049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21050 }
21051 return resultobj;
21052 fail:
21053 return NULL;
21054 }
21055
21056
21057 static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
21058 PyObject *obj;
21059 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21060 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21061 Py_INCREF(obj);
21062 return Py_BuildValue((char *)"");
21063 }
21064 static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
21065 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21066 return 1;
21067 }
21068
21069
21070 static PyObject *_wrap_NullAcceleratorTable_get() {
21071 PyObject *pyobj;
21072
21073 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21074 return pyobj;
21075 }
21076
21077
21078 static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj;
21080 wxString *arg1 = 0 ;
21081 wxAcceleratorEntry *result;
21082 bool temp1 = False ;
21083 PyObject * obj0 = 0 ;
21084 char *kwnames[] = {
21085 (char *) "label", NULL
21086 };
21087
21088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21089 {
21090 arg1 = wxString_in_helper(obj0);
21091 if (arg1 == NULL) SWIG_fail;
21092 temp1 = True;
21093 }
21094 {
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21097
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21102 {
21103 if (temp1)
21104 delete arg1;
21105 }
21106 return resultobj;
21107 fail:
21108 {
21109 if (temp1)
21110 delete arg1;
21111 }
21112 return NULL;
21113 }
21114
21115
21116 static int _wrap_PanelNameStr_set(PyObject *_val) {
21117 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21118 return 1;
21119 }
21120
21121
21122 static PyObject *_wrap_PanelNameStr_get() {
21123 PyObject *pyobj;
21124
21125 {
21126 #if wxUSE_UNICODE
21127 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21128 #else
21129 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21130 #endif
21131 }
21132 return pyobj;
21133 }
21134
21135
21136 static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj;
21138 wxVisualAttributes *result;
21139 char *kwnames[] = {
21140 NULL
21141 };
21142
21143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (wxVisualAttributes *)new_wxVisualAttributes();
21147
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj;
21160 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21161 PyObject * obj0 = 0 ;
21162 char *kwnames[] = {
21163 (char *) "self", NULL
21164 };
21165
21166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 delete_wxVisualAttributes(arg1);
21172
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 Py_INCREF(Py_None); resultobj = Py_None;
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21184 PyObject *resultobj;
21185 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21186 wxFont *arg2 = (wxFont *) 0 ;
21187 PyObject * obj0 = 0 ;
21188 PyObject * obj1 = 0 ;
21189 char *kwnames[] = {
21190 (char *) "self",(char *) "font", NULL
21191 };
21192
21193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21198 if (arg1) (arg1)->font = *arg2;
21199
21200 Py_INCREF(Py_None); resultobj = Py_None;
21201 return resultobj;
21202 fail:
21203 return NULL;
21204 }
21205
21206
21207 static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21208 PyObject *resultobj;
21209 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21210 wxFont *result;
21211 PyObject * obj0 = 0 ;
21212 char *kwnames[] = {
21213 (char *) "self", NULL
21214 };
21215
21216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21219 result = (wxFont *)& ((arg1)->font);
21220
21221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21222 return resultobj;
21223 fail:
21224 return NULL;
21225 }
21226
21227
21228 static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj;
21230 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21231 wxColour *arg2 = (wxColour *) 0 ;
21232 PyObject * obj0 = 0 ;
21233 PyObject * obj1 = 0 ;
21234 char *kwnames[] = {
21235 (char *) "self",(char *) "colFg", NULL
21236 };
21237
21238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21243 if (arg1) (arg1)->colFg = *arg2;
21244
21245 Py_INCREF(Py_None); resultobj = Py_None;
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj;
21254 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21255 wxColour *result;
21256 PyObject * obj0 = 0 ;
21257 char *kwnames[] = {
21258 (char *) "self", NULL
21259 };
21260
21261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21264 result = (wxColour *)& ((arg1)->colFg);
21265
21266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21267 return resultobj;
21268 fail:
21269 return NULL;
21270 }
21271
21272
21273 static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj;
21275 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21276 wxColour *arg2 = (wxColour *) 0 ;
21277 PyObject * obj0 = 0 ;
21278 PyObject * obj1 = 0 ;
21279 char *kwnames[] = {
21280 (char *) "self",(char *) "colBg", NULL
21281 };
21282
21283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21288 if (arg1) (arg1)->colBg = *arg2;
21289
21290 Py_INCREF(Py_None); resultobj = Py_None;
21291 return resultobj;
21292 fail:
21293 return NULL;
21294 }
21295
21296
21297 static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21298 PyObject *resultobj;
21299 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21300 wxColour *result;
21301 PyObject * obj0 = 0 ;
21302 char *kwnames[] = {
21303 (char *) "self", NULL
21304 };
21305
21306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21309 result = (wxColour *)& ((arg1)->colBg);
21310
21311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21312 return resultobj;
21313 fail:
21314 return NULL;
21315 }
21316
21317
21318 static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) {
21319 PyObject *obj;
21320 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21321 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21322 Py_INCREF(obj);
21323 return Py_BuildValue((char *)"");
21324 }
21325 static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
21326 PyObject *resultobj;
21327 wxWindow *arg1 = (wxWindow *) 0 ;
21328 int arg2 = (int) (int)-1 ;
21329 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21330 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21331 wxSize const &arg4_defvalue = wxDefaultSize ;
21332 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21333 long arg5 = (long) 0 ;
21334 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21335 wxString *arg6 = (wxString *) &arg6_defvalue ;
21336 wxWindow *result;
21337 wxPoint temp3 ;
21338 wxSize temp4 ;
21339 bool temp6 = False ;
21340 PyObject * obj0 = 0 ;
21341 PyObject * obj1 = 0 ;
21342 PyObject * obj2 = 0 ;
21343 PyObject * obj3 = 0 ;
21344 PyObject * obj4 = 0 ;
21345 PyObject * obj5 = 0 ;
21346 char *kwnames[] = {
21347 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21348 };
21349
21350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21353 if (obj1) {
21354 arg2 = (int const) SWIG_AsInt(obj1);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 if (obj2) {
21358 {
21359 arg3 = &temp3;
21360 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21361 }
21362 }
21363 if (obj3) {
21364 {
21365 arg4 = &temp4;
21366 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21367 }
21368 }
21369 if (obj4) {
21370 arg5 = (long) SWIG_AsLong(obj4);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 if (obj5) {
21374 {
21375 arg6 = wxString_in_helper(obj5);
21376 if (arg6 == NULL) SWIG_fail;
21377 temp6 = True;
21378 }
21379 }
21380 {
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21383
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 resultobj = wxPyMake_wxObject(result);
21389 }
21390 {
21391 if (temp6)
21392 delete arg6;
21393 }
21394 return resultobj;
21395 fail:
21396 {
21397 if (temp6)
21398 delete arg6;
21399 }
21400 return NULL;
21401 }
21402
21403
21404 static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
21405 PyObject *resultobj;
21406 wxWindow *result;
21407 char *kwnames[] = {
21408 NULL
21409 };
21410
21411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 result = (wxWindow *)new wxWindow();
21415
21416 wxPyEndAllowThreads(__tstate);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 }
21419 {
21420 resultobj = wxPyMake_wxObject(result);
21421 }
21422 return resultobj;
21423 fail:
21424 return NULL;
21425 }
21426
21427
21428 static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21429 PyObject *resultobj;
21430 wxWindow *arg1 = (wxWindow *) 0 ;
21431 wxWindow *arg2 = (wxWindow *) 0 ;
21432 int arg3 = (int) (int)-1 ;
21433 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21434 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21435 wxSize const &arg5_defvalue = wxDefaultSize ;
21436 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21437 long arg6 = (long) 0 ;
21438 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21439 wxString *arg7 = (wxString *) &arg7_defvalue ;
21440 bool result;
21441 wxPoint temp4 ;
21442 wxSize temp5 ;
21443 bool temp7 = False ;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 PyObject * obj2 = 0 ;
21447 PyObject * obj3 = 0 ;
21448 PyObject * obj4 = 0 ;
21449 PyObject * obj5 = 0 ;
21450 PyObject * obj6 = 0 ;
21451 char *kwnames[] = {
21452 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21453 };
21454
21455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21460 if (obj2) {
21461 arg3 = (int const) SWIG_AsInt(obj2);
21462 if (PyErr_Occurred()) SWIG_fail;
21463 }
21464 if (obj3) {
21465 {
21466 arg4 = &temp4;
21467 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21468 }
21469 }
21470 if (obj4) {
21471 {
21472 arg5 = &temp5;
21473 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21474 }
21475 }
21476 if (obj5) {
21477 arg6 = (long) SWIG_AsLong(obj5);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 if (obj6) {
21481 {
21482 arg7 = wxString_in_helper(obj6);
21483 if (arg7 == NULL) SWIG_fail;
21484 temp7 = True;
21485 }
21486 }
21487 {
21488 PyThreadState* __tstate = wxPyBeginAllowThreads();
21489 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21490
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 {
21495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21496 }
21497 {
21498 if (temp7)
21499 delete arg7;
21500 }
21501 return resultobj;
21502 fail:
21503 {
21504 if (temp7)
21505 delete arg7;
21506 }
21507 return NULL;
21508 }
21509
21510
21511 static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj;
21513 wxWindow *arg1 = (wxWindow *) 0 ;
21514 bool arg2 = (bool) False ;
21515 bool result;
21516 PyObject * obj0 = 0 ;
21517 PyObject * obj1 = 0 ;
21518 char *kwnames[] = {
21519 (char *) "self",(char *) "force", NULL
21520 };
21521
21522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21525 if (obj1) {
21526 arg2 = (bool) SWIG_AsBool(obj1);
21527 if (PyErr_Occurred()) SWIG_fail;
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (bool)(arg1)->Close(arg2);
21532
21533 wxPyEndAllowThreads(__tstate);
21534 if (PyErr_Occurred()) SWIG_fail;
21535 }
21536 {
21537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21538 }
21539 return resultobj;
21540 fail:
21541 return NULL;
21542 }
21543
21544
21545 static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
21546 PyObject *resultobj;
21547 wxWindow *arg1 = (wxWindow *) 0 ;
21548 bool result;
21549 PyObject * obj0 = 0 ;
21550 char *kwnames[] = {
21551 (char *) "self", NULL
21552 };
21553
21554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
21555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21557 {
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
21559 result = (bool)(arg1)->Destroy();
21560
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 {
21565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21566 }
21567 return resultobj;
21568 fail:
21569 return NULL;
21570 }
21571
21572
21573 static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
21574 PyObject *resultobj;
21575 wxWindow *arg1 = (wxWindow *) 0 ;
21576 bool result;
21577 PyObject * obj0 = 0 ;
21578 char *kwnames[] = {
21579 (char *) "self", NULL
21580 };
21581
21582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
21583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 result = (bool)(arg1)->DestroyChildren();
21588
21589 wxPyEndAllowThreads(__tstate);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 }
21592 {
21593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21594 }
21595 return resultobj;
21596 fail:
21597 return NULL;
21598 }
21599
21600
21601 static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj;
21603 wxWindow *arg1 = (wxWindow *) 0 ;
21604 bool result;
21605 PyObject * obj0 = 0 ;
21606 char *kwnames[] = {
21607 (char *) "self", NULL
21608 };
21609
21610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
21611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21613 {
21614 PyThreadState* __tstate = wxPyBeginAllowThreads();
21615 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
21616
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21622 }
21623 return resultobj;
21624 fail:
21625 return NULL;
21626 }
21627
21628
21629 static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21630 PyObject *resultobj;
21631 wxWindow *arg1 = (wxWindow *) 0 ;
21632 wxString *arg2 = 0 ;
21633 bool temp2 = False ;
21634 PyObject * obj0 = 0 ;
21635 PyObject * obj1 = 0 ;
21636 char *kwnames[] = {
21637 (char *) "self",(char *) "title", NULL
21638 };
21639
21640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
21641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21643 {
21644 arg2 = wxString_in_helper(obj1);
21645 if (arg2 == NULL) SWIG_fail;
21646 temp2 = True;
21647 }
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 (arg1)->SetTitle((wxString const &)*arg2);
21651
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 Py_INCREF(Py_None); resultobj = Py_None;
21656 {
21657 if (temp2)
21658 delete arg2;
21659 }
21660 return resultobj;
21661 fail:
21662 {
21663 if (temp2)
21664 delete arg2;
21665 }
21666 return NULL;
21667 }
21668
21669
21670 static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21671 PyObject *resultobj;
21672 wxWindow *arg1 = (wxWindow *) 0 ;
21673 wxString result;
21674 PyObject * obj0 = 0 ;
21675 char *kwnames[] = {
21676 (char *) "self", NULL
21677 };
21678
21679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
21680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21682 {
21683 PyThreadState* __tstate = wxPyBeginAllowThreads();
21684 result = ((wxWindow const *)arg1)->GetTitle();
21685
21686 wxPyEndAllowThreads(__tstate);
21687 if (PyErr_Occurred()) SWIG_fail;
21688 }
21689 {
21690 #if wxUSE_UNICODE
21691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21692 #else
21693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21694 #endif
21695 }
21696 return resultobj;
21697 fail:
21698 return NULL;
21699 }
21700
21701
21702 static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj;
21704 wxWindow *arg1 = (wxWindow *) 0 ;
21705 wxString *arg2 = 0 ;
21706 bool temp2 = False ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 char *kwnames[] = {
21710 (char *) "self",(char *) "label", NULL
21711 };
21712
21713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
21714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21716 {
21717 arg2 = wxString_in_helper(obj1);
21718 if (arg2 == NULL) SWIG_fail;
21719 temp2 = True;
21720 }
21721 {
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 (arg1)->SetLabel((wxString const &)*arg2);
21724
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
21728 Py_INCREF(Py_None); resultobj = Py_None;
21729 {
21730 if (temp2)
21731 delete arg2;
21732 }
21733 return resultobj;
21734 fail:
21735 {
21736 if (temp2)
21737 delete arg2;
21738 }
21739 return NULL;
21740 }
21741
21742
21743 static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj;
21745 wxWindow *arg1 = (wxWindow *) 0 ;
21746 wxString result;
21747 PyObject * obj0 = 0 ;
21748 char *kwnames[] = {
21749 (char *) "self", NULL
21750 };
21751
21752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
21753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 result = ((wxWindow const *)arg1)->GetLabel();
21758
21759 wxPyEndAllowThreads(__tstate);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 }
21762 {
21763 #if wxUSE_UNICODE
21764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21765 #else
21766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21767 #endif
21768 }
21769 return resultobj;
21770 fail:
21771 return NULL;
21772 }
21773
21774
21775 static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj;
21777 wxWindow *arg1 = (wxWindow *) 0 ;
21778 wxString *arg2 = 0 ;
21779 bool temp2 = False ;
21780 PyObject * obj0 = 0 ;
21781 PyObject * obj1 = 0 ;
21782 char *kwnames[] = {
21783 (char *) "self",(char *) "name", NULL
21784 };
21785
21786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
21787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21789 {
21790 arg2 = wxString_in_helper(obj1);
21791 if (arg2 == NULL) SWIG_fail;
21792 temp2 = True;
21793 }
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 (arg1)->SetName((wxString const &)*arg2);
21797
21798 wxPyEndAllowThreads(__tstate);
21799 if (PyErr_Occurred()) SWIG_fail;
21800 }
21801 Py_INCREF(Py_None); resultobj = Py_None;
21802 {
21803 if (temp2)
21804 delete arg2;
21805 }
21806 return resultobj;
21807 fail:
21808 {
21809 if (temp2)
21810 delete arg2;
21811 }
21812 return NULL;
21813 }
21814
21815
21816 static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21817 PyObject *resultobj;
21818 wxWindow *arg1 = (wxWindow *) 0 ;
21819 wxString result;
21820 PyObject * obj0 = 0 ;
21821 char *kwnames[] = {
21822 (char *) "self", NULL
21823 };
21824
21825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
21830 result = ((wxWindow const *)arg1)->GetName();
21831
21832 wxPyEndAllowThreads(__tstate);
21833 if (PyErr_Occurred()) SWIG_fail;
21834 }
21835 {
21836 #if wxUSE_UNICODE
21837 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21838 #else
21839 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21840 #endif
21841 }
21842 return resultobj;
21843 fail:
21844 return NULL;
21845 }
21846
21847
21848 static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21849 PyObject *resultobj;
21850 wxWindow *arg1 = (wxWindow *) 0 ;
21851 int arg2 ;
21852 PyObject * obj0 = 0 ;
21853 PyObject * obj1 = 0 ;
21854 char *kwnames[] = {
21855 (char *) "self",(char *) "variant", NULL
21856 };
21857
21858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
21859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21861 arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
21866
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 Py_INCREF(Py_None); resultobj = Py_None;
21871 return resultobj;
21872 fail:
21873 return NULL;
21874 }
21875
21876
21877 static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21878 PyObject *resultobj;
21879 wxWindow *arg1 = (wxWindow *) 0 ;
21880 int result;
21881 PyObject * obj0 = 0 ;
21882 char *kwnames[] = {
21883 (char *) "self", NULL
21884 };
21885
21886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
21887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21889 {
21890 PyThreadState* __tstate = wxPyBeginAllowThreads();
21891 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
21892
21893 wxPyEndAllowThreads(__tstate);
21894 if (PyErr_Occurred()) SWIG_fail;
21895 }
21896 resultobj = SWIG_FromInt((int)result);
21897 return resultobj;
21898 fail:
21899 return NULL;
21900 }
21901
21902
21903 static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxWindow *arg1 = (wxWindow *) 0 ;
21906 int arg2 ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 char *kwnames[] = {
21910 (char *) "self",(char *) "winid", NULL
21911 };
21912
21913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
21914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21916 arg2 = (int) SWIG_AsInt(obj1);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 (arg1)->SetId(arg2);
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 Py_INCREF(Py_None); resultobj = Py_None;
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj;
21934 wxWindow *arg1 = (wxWindow *) 0 ;
21935 int result;
21936 PyObject * obj0 = 0 ;
21937 char *kwnames[] = {
21938 (char *) "self", NULL
21939 };
21940
21941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
21942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 result = (int)((wxWindow const *)arg1)->GetId();
21947
21948 wxPyEndAllowThreads(__tstate);
21949 if (PyErr_Occurred()) SWIG_fail;
21950 }
21951 resultobj = SWIG_FromInt((int)result);
21952 return resultobj;
21953 fail:
21954 return NULL;
21955 }
21956
21957
21958 static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21959 PyObject *resultobj;
21960 int result;
21961 char *kwnames[] = {
21962 NULL
21963 };
21964
21965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 result = (int)wxWindow::NewControlId();
21969
21970 wxPyEndAllowThreads(__tstate);
21971 if (PyErr_Occurred()) SWIG_fail;
21972 }
21973 resultobj = SWIG_FromInt((int)result);
21974 return resultobj;
21975 fail:
21976 return NULL;
21977 }
21978
21979
21980 static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21981 PyObject *resultobj;
21982 int arg1 ;
21983 int result;
21984 PyObject * obj0 = 0 ;
21985 char *kwnames[] = {
21986 (char *) "winid", NULL
21987 };
21988
21989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
21990 arg1 = (int) SWIG_AsInt(obj0);
21991 if (PyErr_Occurred()) SWIG_fail;
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = (int)wxWindow::NextControlId(arg1);
21995
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 resultobj = SWIG_FromInt((int)result);
22000 return resultobj;
22001 fail:
22002 return NULL;
22003 }
22004
22005
22006 static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22007 PyObject *resultobj;
22008 int arg1 ;
22009 int result;
22010 PyObject * obj0 = 0 ;
22011 char *kwnames[] = {
22012 (char *) "winid", NULL
22013 };
22014
22015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22016 arg1 = (int) SWIG_AsInt(obj0);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 {
22019 PyThreadState* __tstate = wxPyBeginAllowThreads();
22020 result = (int)wxWindow::PrevControlId(arg1);
22021
22022 wxPyEndAllowThreads(__tstate);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 }
22025 resultobj = SWIG_FromInt((int)result);
22026 return resultobj;
22027 fail:
22028 return NULL;
22029 }
22030
22031
22032 static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22033 PyObject *resultobj;
22034 wxWindow *arg1 = (wxWindow *) 0 ;
22035 wxSize *arg2 = 0 ;
22036 wxSize temp2 ;
22037 PyObject * obj0 = 0 ;
22038 PyObject * obj1 = 0 ;
22039 char *kwnames[] = {
22040 (char *) "self",(char *) "size", NULL
22041 };
22042
22043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22046 {
22047 arg2 = &temp2;
22048 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22049 }
22050 {
22051 PyThreadState* __tstate = wxPyBeginAllowThreads();
22052 (arg1)->SetSize((wxSize const &)*arg2);
22053
22054 wxPyEndAllowThreads(__tstate);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 Py_INCREF(Py_None); resultobj = Py_None;
22058 return resultobj;
22059 fail:
22060 return NULL;
22061 }
22062
22063
22064 static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
22065 PyObject *resultobj;
22066 wxWindow *arg1 = (wxWindow *) 0 ;
22067 int arg2 ;
22068 int arg3 ;
22069 int arg4 ;
22070 int arg5 ;
22071 int arg6 = (int) wxSIZE_AUTO ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 PyObject * obj2 = 0 ;
22075 PyObject * obj3 = 0 ;
22076 PyObject * obj4 = 0 ;
22077 PyObject * obj5 = 0 ;
22078 char *kwnames[] = {
22079 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22080 };
22081
22082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22085 arg2 = (int) SWIG_AsInt(obj1);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 arg3 = (int) SWIG_AsInt(obj2);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 arg4 = (int) SWIG_AsInt(obj3);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 arg5 = (int) SWIG_AsInt(obj4);
22092 if (PyErr_Occurred()) SWIG_fail;
22093 if (obj5) {
22094 arg6 = (int) SWIG_AsInt(obj5);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 Py_INCREF(Py_None); resultobj = Py_None;
22105 return resultobj;
22106 fail:
22107 return NULL;
22108 }
22109
22110
22111 static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22112 PyObject *resultobj;
22113 wxWindow *arg1 = (wxWindow *) 0 ;
22114 wxRect *arg2 = 0 ;
22115 int arg3 = (int) wxSIZE_AUTO ;
22116 wxRect temp2 ;
22117 PyObject * obj0 = 0 ;
22118 PyObject * obj1 = 0 ;
22119 PyObject * obj2 = 0 ;
22120 char *kwnames[] = {
22121 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22122 };
22123
22124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22127 {
22128 arg2 = &temp2;
22129 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22130 }
22131 if (obj2) {
22132 arg3 = (int) SWIG_AsInt(obj2);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 {
22136 PyThreadState* __tstate = wxPyBeginAllowThreads();
22137 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22138
22139 wxPyEndAllowThreads(__tstate);
22140 if (PyErr_Occurred()) SWIG_fail;
22141 }
22142 Py_INCREF(Py_None); resultobj = Py_None;
22143 return resultobj;
22144 fail:
22145 return NULL;
22146 }
22147
22148
22149 static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22150 PyObject *resultobj;
22151 wxWindow *arg1 = (wxWindow *) 0 ;
22152 int arg2 ;
22153 int arg3 ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 PyObject * obj2 = 0 ;
22157 char *kwnames[] = {
22158 (char *) "self",(char *) "width",(char *) "height", NULL
22159 };
22160
22161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22164 arg2 = (int) SWIG_AsInt(obj1);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 arg3 = (int) SWIG_AsInt(obj2);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 (arg1)->SetSize(arg2,arg3);
22171
22172 wxPyEndAllowThreads(__tstate);
22173 if (PyErr_Occurred()) SWIG_fail;
22174 }
22175 Py_INCREF(Py_None); resultobj = Py_None;
22176 return resultobj;
22177 fail:
22178 return NULL;
22179 }
22180
22181
22182 static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
22183 PyObject *resultobj;
22184 wxWindow *arg1 = (wxWindow *) 0 ;
22185 wxPoint *arg2 = 0 ;
22186 int arg3 = (int) wxSIZE_USE_EXISTING ;
22187 wxPoint temp2 ;
22188 PyObject * obj0 = 0 ;
22189 PyObject * obj1 = 0 ;
22190 PyObject * obj2 = 0 ;
22191 char *kwnames[] = {
22192 (char *) "self",(char *) "pt",(char *) "flags", NULL
22193 };
22194
22195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22198 {
22199 arg2 = &temp2;
22200 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22201 }
22202 if (obj2) {
22203 arg3 = (int) SWIG_AsInt(obj2);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 }
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 (arg1)->Move((wxPoint const &)*arg2,arg3);
22209
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 Py_INCREF(Py_None); resultobj = Py_None;
22214 return resultobj;
22215 fail:
22216 return NULL;
22217 }
22218
22219
22220 static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
22221 PyObject *resultobj;
22222 wxWindow *arg1 = (wxWindow *) 0 ;
22223 int arg2 ;
22224 int arg3 ;
22225 int arg4 = (int) wxSIZE_USE_EXISTING ;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 PyObject * obj2 = 0 ;
22229 PyObject * obj3 = 0 ;
22230 char *kwnames[] = {
22231 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22232 };
22233
22234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22237 arg2 = (int) SWIG_AsInt(obj1);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 arg3 = (int) SWIG_AsInt(obj2);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 if (obj3) {
22242 arg4 = (int) SWIG_AsInt(obj3);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 (arg1)->Move(arg2,arg3,arg4);
22248
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 Py_INCREF(Py_None); resultobj = Py_None;
22253 return resultobj;
22254 fail:
22255 return NULL;
22256 }
22257
22258
22259 static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
22260 PyObject *resultobj;
22261 wxWindow *arg1 = (wxWindow *) 0 ;
22262 PyObject * obj0 = 0 ;
22263 char *kwnames[] = {
22264 (char *) "self", NULL
22265 };
22266
22267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 (arg1)->Raise();
22273
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 Py_INCREF(Py_None); resultobj = Py_None;
22278 return resultobj;
22279 fail:
22280 return NULL;
22281 }
22282
22283
22284 static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
22285 PyObject *resultobj;
22286 wxWindow *arg1 = (wxWindow *) 0 ;
22287 PyObject * obj0 = 0 ;
22288 char *kwnames[] = {
22289 (char *) "self", NULL
22290 };
22291
22292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22295 {
22296 PyThreadState* __tstate = wxPyBeginAllowThreads();
22297 (arg1)->Lower();
22298
22299 wxPyEndAllowThreads(__tstate);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 Py_INCREF(Py_None); resultobj = Py_None;
22303 return resultobj;
22304 fail:
22305 return NULL;
22306 }
22307
22308
22309 static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22310 PyObject *resultobj;
22311 wxWindow *arg1 = (wxWindow *) 0 ;
22312 wxSize *arg2 = 0 ;
22313 wxSize temp2 ;
22314 PyObject * obj0 = 0 ;
22315 PyObject * obj1 = 0 ;
22316 char *kwnames[] = {
22317 (char *) "self",(char *) "size", NULL
22318 };
22319
22320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22323 {
22324 arg2 = &temp2;
22325 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22326 }
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 (arg1)->SetClientSize((wxSize const &)*arg2);
22330
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 Py_INCREF(Py_None); resultobj = Py_None;
22335 return resultobj;
22336 fail:
22337 return NULL;
22338 }
22339
22340
22341 static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22342 PyObject *resultobj;
22343 wxWindow *arg1 = (wxWindow *) 0 ;
22344 int arg2 ;
22345 int arg3 ;
22346 PyObject * obj0 = 0 ;
22347 PyObject * obj1 = 0 ;
22348 PyObject * obj2 = 0 ;
22349 char *kwnames[] = {
22350 (char *) "self",(char *) "width",(char *) "height", NULL
22351 };
22352
22353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22356 arg2 = (int) SWIG_AsInt(obj1);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 arg3 = (int) SWIG_AsInt(obj2);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 (arg1)->SetClientSize(arg2,arg3);
22363
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 Py_INCREF(Py_None); resultobj = Py_None;
22368 return resultobj;
22369 fail:
22370 return NULL;
22371 }
22372
22373
22374 static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22375 PyObject *resultobj;
22376 wxWindow *arg1 = (wxWindow *) 0 ;
22377 wxRect *arg2 = 0 ;
22378 wxRect temp2 ;
22379 PyObject * obj0 = 0 ;
22380 PyObject * obj1 = 0 ;
22381 char *kwnames[] = {
22382 (char *) "self",(char *) "rect", NULL
22383 };
22384
22385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22388 {
22389 arg2 = &temp2;
22390 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22391 }
22392 {
22393 PyThreadState* __tstate = wxPyBeginAllowThreads();
22394 (arg1)->SetClientSize((wxRect const &)*arg2);
22395
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 Py_INCREF(Py_None); resultobj = Py_None;
22400 return resultobj;
22401 fail:
22402 return NULL;
22403 }
22404
22405
22406 static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22407 PyObject *resultobj;
22408 wxWindow *arg1 = (wxWindow *) 0 ;
22409 wxPoint result;
22410 PyObject * obj0 = 0 ;
22411 char *kwnames[] = {
22412 (char *) "self", NULL
22413 };
22414
22415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22418 {
22419 PyThreadState* __tstate = wxPyBeginAllowThreads();
22420 result = (arg1)->GetPosition();
22421
22422 wxPyEndAllowThreads(__tstate);
22423 if (PyErr_Occurred()) SWIG_fail;
22424 }
22425 {
22426 wxPoint * resultptr;
22427 resultptr = new wxPoint((wxPoint &) result);
22428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22429 }
22430 return resultobj;
22431 fail:
22432 return NULL;
22433 }
22434
22435
22436 static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22437 PyObject *resultobj;
22438 wxWindow *arg1 = (wxWindow *) 0 ;
22439 int *arg2 = (int *) 0 ;
22440 int *arg3 = (int *) 0 ;
22441 int temp2 ;
22442 int temp3 ;
22443 PyObject * obj0 = 0 ;
22444 char *kwnames[] = {
22445 (char *) "self", NULL
22446 };
22447
22448 arg2 = &temp2;
22449 arg3 = &temp3;
22450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22453 {
22454 PyThreadState* __tstate = wxPyBeginAllowThreads();
22455 (arg1)->GetPosition(arg2,arg3);
22456
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 Py_INCREF(Py_None); resultobj = Py_None;
22461 {
22462 PyObject *o = PyInt_FromLong((long) (*arg2));
22463 resultobj = t_output_helper(resultobj,o);
22464 }
22465 {
22466 PyObject *o = PyInt_FromLong((long) (*arg3));
22467 resultobj = t_output_helper(resultobj,o);
22468 }
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj;
22477 wxWindow *arg1 = (wxWindow *) 0 ;
22478 wxSize result;
22479 PyObject * obj0 = 0 ;
22480 char *kwnames[] = {
22481 (char *) "self", NULL
22482 };
22483
22484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 result = ((wxWindow const *)arg1)->GetSize();
22490
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 {
22495 wxSize * resultptr;
22496 resultptr = new wxSize((wxSize &) result);
22497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22498 }
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22506 PyObject *resultobj;
22507 wxWindow *arg1 = (wxWindow *) 0 ;
22508 int *arg2 = (int *) 0 ;
22509 int *arg3 = (int *) 0 ;
22510 int temp2 ;
22511 int temp3 ;
22512 PyObject * obj0 = 0 ;
22513 char *kwnames[] = {
22514 (char *) "self", NULL
22515 };
22516
22517 arg2 = &temp2;
22518 arg3 = &temp3;
22519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22525
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 Py_INCREF(Py_None); resultobj = Py_None;
22530 {
22531 PyObject *o = PyInt_FromLong((long) (*arg2));
22532 resultobj = t_output_helper(resultobj,o);
22533 }
22534 {
22535 PyObject *o = PyInt_FromLong((long) (*arg3));
22536 resultobj = t_output_helper(resultobj,o);
22537 }
22538 return resultobj;
22539 fail:
22540 return NULL;
22541 }
22542
22543
22544 static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxWindow *arg1 = (wxWindow *) 0 ;
22547 wxRect result;
22548 PyObject * obj0 = 0 ;
22549 char *kwnames[] = {
22550 (char *) "self", NULL
22551 };
22552
22553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
22554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22556 {
22557 PyThreadState* __tstate = wxPyBeginAllowThreads();
22558 result = ((wxWindow const *)arg1)->GetRect();
22559
22560 wxPyEndAllowThreads(__tstate);
22561 if (PyErr_Occurred()) SWIG_fail;
22562 }
22563 {
22564 wxRect * resultptr;
22565 resultptr = new wxRect((wxRect &) result);
22566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22567 }
22568 return resultobj;
22569 fail:
22570 return NULL;
22571 }
22572
22573
22574 static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22575 PyObject *resultobj;
22576 wxWindow *arg1 = (wxWindow *) 0 ;
22577 wxSize result;
22578 PyObject * obj0 = 0 ;
22579 char *kwnames[] = {
22580 (char *) "self", NULL
22581 };
22582
22583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
22584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22586 {
22587 PyThreadState* __tstate = wxPyBeginAllowThreads();
22588 result = ((wxWindow const *)arg1)->GetClientSize();
22589
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 {
22594 wxSize * resultptr;
22595 resultptr = new wxSize((wxSize &) result);
22596 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22597 }
22598 return resultobj;
22599 fail:
22600 return NULL;
22601 }
22602
22603
22604 static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22605 PyObject *resultobj;
22606 wxWindow *arg1 = (wxWindow *) 0 ;
22607 int *arg2 = (int *) 0 ;
22608 int *arg3 = (int *) 0 ;
22609 int temp2 ;
22610 int temp3 ;
22611 PyObject * obj0 = 0 ;
22612 char *kwnames[] = {
22613 (char *) "self", NULL
22614 };
22615
22616 arg2 = &temp2;
22617 arg3 = &temp3;
22618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
22619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22621 {
22622 PyThreadState* __tstate = wxPyBeginAllowThreads();
22623 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
22624
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 Py_INCREF(Py_None); resultobj = Py_None;
22629 {
22630 PyObject *o = PyInt_FromLong((long) (*arg2));
22631 resultobj = t_output_helper(resultobj,o);
22632 }
22633 {
22634 PyObject *o = PyInt_FromLong((long) (*arg3));
22635 resultobj = t_output_helper(resultobj,o);
22636 }
22637 return resultobj;
22638 fail:
22639 return NULL;
22640 }
22641
22642
22643 static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
22644 PyObject *resultobj;
22645 wxWindow *arg1 = (wxWindow *) 0 ;
22646 wxPoint result;
22647 PyObject * obj0 = 0 ;
22648 char *kwnames[] = {
22649 (char *) "self", NULL
22650 };
22651
22652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
22653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
22658
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 {
22663 wxPoint * resultptr;
22664 resultptr = new wxPoint((wxPoint &) result);
22665 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22666 }
22667 return resultobj;
22668 fail:
22669 return NULL;
22670 }
22671
22672
22673 static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22674 PyObject *resultobj;
22675 wxWindow *arg1 = (wxWindow *) 0 ;
22676 wxRect result;
22677 PyObject * obj0 = 0 ;
22678 char *kwnames[] = {
22679 (char *) "self", NULL
22680 };
22681
22682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
22683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = ((wxWindow const *)arg1)->GetClientRect();
22688
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 {
22693 wxRect * resultptr;
22694 resultptr = new wxRect((wxRect &) result);
22695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22696 }
22697 return resultobj;
22698 fail:
22699 return NULL;
22700 }
22701
22702
22703 static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22704 PyObject *resultobj;
22705 wxWindow *arg1 = (wxWindow *) 0 ;
22706 wxSize result;
22707 PyObject * obj0 = 0 ;
22708 char *kwnames[] = {
22709 (char *) "self", NULL
22710 };
22711
22712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
22713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22715 {
22716 PyThreadState* __tstate = wxPyBeginAllowThreads();
22717 result = ((wxWindow const *)arg1)->GetBestSize();
22718
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 {
22723 wxSize * resultptr;
22724 resultptr = new wxSize((wxSize &) result);
22725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22726 }
22727 return resultobj;
22728 fail:
22729 return NULL;
22730 }
22731
22732
22733 static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22734 PyObject *resultobj;
22735 wxWindow *arg1 = (wxWindow *) 0 ;
22736 int *arg2 = (int *) 0 ;
22737 int *arg3 = (int *) 0 ;
22738 int temp2 ;
22739 int temp3 ;
22740 PyObject * obj0 = 0 ;
22741 char *kwnames[] = {
22742 (char *) "self", NULL
22743 };
22744
22745 arg2 = &temp2;
22746 arg3 = &temp3;
22747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
22748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
22753
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 Py_INCREF(Py_None); resultobj = Py_None;
22758 {
22759 PyObject *o = PyInt_FromLong((long) (*arg2));
22760 resultobj = t_output_helper(resultobj,o);
22761 }
22762 {
22763 PyObject *o = PyInt_FromLong((long) (*arg3));
22764 resultobj = t_output_helper(resultobj,o);
22765 }
22766 return resultobj;
22767 fail:
22768 return NULL;
22769 }
22770
22771
22772 static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22773 PyObject *resultobj;
22774 wxWindow *arg1 = (wxWindow *) 0 ;
22775 wxSize result;
22776 PyObject * obj0 = 0 ;
22777 char *kwnames[] = {
22778 (char *) "self", NULL
22779 };
22780
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
22782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
22787
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 {
22792 wxSize * resultptr;
22793 resultptr = new wxSize((wxSize &) result);
22794 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22795 }
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
22803 PyObject *resultobj;
22804 wxWindow *arg1 = (wxWindow *) 0 ;
22805 int arg2 = (int) wxBOTH ;
22806 PyObject * obj0 = 0 ;
22807 PyObject * obj1 = 0 ;
22808 char *kwnames[] = {
22809 (char *) "self",(char *) "direction", NULL
22810 };
22811
22812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
22813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22815 if (obj1) {
22816 arg2 = (int) SWIG_AsInt(obj1);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 (arg1)->Center(arg2);
22822
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 Py_INCREF(Py_None); resultobj = Py_None;
22827 return resultobj;
22828 fail:
22829 return NULL;
22830 }
22831
22832
22833 static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
22834 PyObject *resultobj;
22835 wxWindow *arg1 = (wxWindow *) 0 ;
22836 int arg2 = (int) wxBOTH ;
22837 PyObject * obj0 = 0 ;
22838 PyObject * obj1 = 0 ;
22839 char *kwnames[] = {
22840 (char *) "self",(char *) "dir", NULL
22841 };
22842
22843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
22844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22846 if (obj1) {
22847 arg2 = (int) SWIG_AsInt(obj1);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 (arg1)->CenterOnScreen(arg2);
22853
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
22857 Py_INCREF(Py_None); resultobj = Py_None;
22858 return resultobj;
22859 fail:
22860 return NULL;
22861 }
22862
22863
22864 static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
22865 PyObject *resultobj;
22866 wxWindow *arg1 = (wxWindow *) 0 ;
22867 int arg2 = (int) wxBOTH ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char *kwnames[] = {
22871 (char *) "self",(char *) "dir", NULL
22872 };
22873
22874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
22875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22877 if (obj1) {
22878 arg2 = (int) SWIG_AsInt(obj1);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 (arg1)->CenterOnParent(arg2);
22884
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 Py_INCREF(Py_None); resultobj = Py_None;
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj;
22897 wxWindow *arg1 = (wxWindow *) 0 ;
22898 PyObject * obj0 = 0 ;
22899 char *kwnames[] = {
22900 (char *) "self", NULL
22901 };
22902
22903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
22904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 (arg1)->Fit();
22909
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 Py_INCREF(Py_None); resultobj = Py_None;
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj;
22922 wxWindow *arg1 = (wxWindow *) 0 ;
22923 PyObject * obj0 = 0 ;
22924 char *kwnames[] = {
22925 (char *) "self", NULL
22926 };
22927
22928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
22929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 (arg1)->FitInside();
22934
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 Py_INCREF(Py_None); resultobj = Py_None;
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) {
22946 PyObject *resultobj;
22947 wxWindow *arg1 = (wxWindow *) 0 ;
22948 int arg2 ;
22949 int arg3 ;
22950 int arg4 = (int) -1 ;
22951 int arg5 = (int) -1 ;
22952 int arg6 = (int) -1 ;
22953 int arg7 = (int) -1 ;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22956 PyObject * obj2 = 0 ;
22957 PyObject * obj3 = 0 ;
22958 PyObject * obj4 = 0 ;
22959 PyObject * obj5 = 0 ;
22960 PyObject * obj6 = 0 ;
22961
22962 if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22965 arg2 = (int) SWIG_AsInt(obj1);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 arg3 = (int) SWIG_AsInt(obj2);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 if (obj3) {
22970 arg4 = (int) SWIG_AsInt(obj3);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 if (obj4) {
22974 arg5 = (int) SWIG_AsInt(obj4);
22975 if (PyErr_Occurred()) SWIG_fail;
22976 }
22977 if (obj5) {
22978 arg6 = (int) SWIG_AsInt(obj5);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 if (obj6) {
22982 arg7 = (int) SWIG_AsInt(obj6);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
22988
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 Py_INCREF(Py_None); resultobj = Py_None;
22993 return resultobj;
22994 fail:
22995 return NULL;
22996 }
22997
22998
22999 static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) {
23000 PyObject *resultobj;
23001 wxWindow *arg1 = (wxWindow *) 0 ;
23002 wxSize *arg2 = 0 ;
23003 wxSize const &arg3_defvalue = wxDefaultSize ;
23004 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23005 wxSize const &arg4_defvalue = wxDefaultSize ;
23006 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23007 wxSize temp2 ;
23008 wxSize temp3 ;
23009 wxSize temp4 ;
23010 PyObject * obj0 = 0 ;
23011 PyObject * obj1 = 0 ;
23012 PyObject * obj2 = 0 ;
23013 PyObject * obj3 = 0 ;
23014
23015 if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail;
23016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23018 {
23019 arg2 = &temp2;
23020 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23021 }
23022 if (obj2) {
23023 {
23024 arg3 = &temp3;
23025 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23026 }
23027 }
23028 if (obj3) {
23029 {
23030 arg4 = &temp4;
23031 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23032 }
23033 }
23034 {
23035 PyThreadState* __tstate = wxPyBeginAllowThreads();
23036 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
23037
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 Py_INCREF(Py_None); resultobj = Py_None;
23042 return resultobj;
23043 fail:
23044 return NULL;
23045 }
23046
23047
23048 static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) {
23049 int argc;
23050 PyObject *argv[8];
23051 int ii;
23052
23053 argc = PyObject_Length(args);
23054 for (ii = 0; (ii < argc) && (ii < 7); ii++) {
23055 argv[ii] = PyTuple_GetItem(args,ii);
23056 }
23057 if ((argc >= 2) && (argc <= 4)) {
23058 int _v;
23059 {
23060 void *ptr;
23061 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23062 _v = 0;
23063 PyErr_Clear();
23064 } else {
23065 _v = 1;
23066 }
23067 }
23068 if (_v) {
23069 {
23070 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23071 }
23072 if (_v) {
23073 if (argc <= 2) {
23074 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
23075 }
23076 {
23077 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23078 }
23079 if (_v) {
23080 if (argc <= 3) {
23081 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
23082 }
23083 {
23084 _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2);
23085 }
23086 if (_v) {
23087 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
23088 }
23089 }
23090 }
23091 }
23092 }
23093 if ((argc >= 3) && (argc <= 7)) {
23094 int _v;
23095 {
23096 void *ptr;
23097 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23098 _v = 0;
23099 PyErr_Clear();
23100 } else {
23101 _v = 1;
23102 }
23103 }
23104 if (_v) {
23105 _v = SWIG_CheckInt(argv[1]);
23106 if (_v) {
23107 _v = SWIG_CheckInt(argv[2]);
23108 if (_v) {
23109 if (argc <= 3) {
23110 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
23111 }
23112 _v = SWIG_CheckInt(argv[3]);
23113 if (_v) {
23114 if (argc <= 4) {
23115 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
23116 }
23117 _v = SWIG_CheckInt(argv[4]);
23118 if (_v) {
23119 if (argc <= 5) {
23120 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
23121 }
23122 _v = SWIG_CheckInt(argv[5]);
23123 if (_v) {
23124 if (argc <= 6) {
23125 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
23126 }
23127 _v = SWIG_CheckInt(argv[6]);
23128 if (_v) {
23129 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
23130 }
23131 }
23132 }
23133 }
23134 }
23135 }
23136 }
23137 }
23138
23139 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'");
23140 return NULL;
23141 }
23142
23143
23144 static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) {
23145 PyObject *resultobj;
23146 wxWindow *arg1 = (wxWindow *) 0 ;
23147 int arg2 ;
23148 int arg3 ;
23149 int arg4 = (int) -1 ;
23150 int arg5 = (int) -1 ;
23151 PyObject * obj0 = 0 ;
23152 PyObject * obj1 = 0 ;
23153 PyObject * obj2 = 0 ;
23154 PyObject * obj3 = 0 ;
23155 PyObject * obj4 = 0 ;
23156
23157 if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23160 arg2 = (int) SWIG_AsInt(obj1);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 arg3 = (int) SWIG_AsInt(obj2);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 if (obj3) {
23165 arg4 = (int) SWIG_AsInt(obj3);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 }
23168 if (obj4) {
23169 arg5 = (int) SWIG_AsInt(obj4);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 {
23173 PyThreadState* __tstate = wxPyBeginAllowThreads();
23174 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
23175
23176 wxPyEndAllowThreads(__tstate);
23177 if (PyErr_Occurred()) SWIG_fail;
23178 }
23179 Py_INCREF(Py_None); resultobj = Py_None;
23180 return resultobj;
23181 fail:
23182 return NULL;
23183 }
23184
23185
23186 static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) {
23187 PyObject *resultobj;
23188 wxWindow *arg1 = (wxWindow *) 0 ;
23189 wxSize *arg2 = 0 ;
23190 wxSize const &arg3_defvalue = wxDefaultSize ;
23191 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23192 wxSize temp2 ;
23193 wxSize temp3 ;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 PyObject * obj2 = 0 ;
23197
23198 if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail;
23199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23201 {
23202 arg2 = &temp2;
23203 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23204 }
23205 if (obj2) {
23206 {
23207 arg3 = &temp3;
23208 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23209 }
23210 }
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
23214
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 Py_INCREF(Py_None); resultobj = Py_None;
23219 return resultobj;
23220 fail:
23221 return NULL;
23222 }
23223
23224
23225 static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) {
23226 int argc;
23227 PyObject *argv[6];
23228 int ii;
23229
23230 argc = PyObject_Length(args);
23231 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
23232 argv[ii] = PyTuple_GetItem(args,ii);
23233 }
23234 if ((argc >= 2) && (argc <= 3)) {
23235 int _v;
23236 {
23237 void *ptr;
23238 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23239 _v = 0;
23240 PyErr_Clear();
23241 } else {
23242 _v = 1;
23243 }
23244 }
23245 if (_v) {
23246 {
23247 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23248 }
23249 if (_v) {
23250 if (argc <= 2) {
23251 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
23252 }
23253 {
23254 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23255 }
23256 if (_v) {
23257 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
23258 }
23259 }
23260 }
23261 }
23262 if ((argc >= 3) && (argc <= 5)) {
23263 int _v;
23264 {
23265 void *ptr;
23266 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23267 _v = 0;
23268 PyErr_Clear();
23269 } else {
23270 _v = 1;
23271 }
23272 }
23273 if (_v) {
23274 _v = SWIG_CheckInt(argv[1]);
23275 if (_v) {
23276 _v = SWIG_CheckInt(argv[2]);
23277 if (_v) {
23278 if (argc <= 3) {
23279 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
23280 }
23281 _v = SWIG_CheckInt(argv[3]);
23282 if (_v) {
23283 if (argc <= 4) {
23284 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
23285 }
23286 _v = SWIG_CheckInt(argv[4]);
23287 if (_v) {
23288 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
23289 }
23290 }
23291 }
23292 }
23293 }
23294 }
23295
23296 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'");
23297 return NULL;
23298 }
23299
23300
23301 static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
23302 PyObject *resultobj;
23303 wxWindow *arg1 = (wxWindow *) 0 ;
23304 int result;
23305 PyObject * obj0 = 0 ;
23306 char *kwnames[] = {
23307 (char *) "self", NULL
23308 };
23309
23310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
23311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23313 {
23314 PyThreadState* __tstate = wxPyBeginAllowThreads();
23315 result = (int)((wxWindow const *)arg1)->GetMinWidth();
23316
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 resultobj = SWIG_FromInt((int)result);
23321 return resultobj;
23322 fail:
23323 return NULL;
23324 }
23325
23326
23327 static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
23328 PyObject *resultobj;
23329 wxWindow *arg1 = (wxWindow *) 0 ;
23330 int result;
23331 PyObject * obj0 = 0 ;
23332 char *kwnames[] = {
23333 (char *) "self", NULL
23334 };
23335
23336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
23337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23339 {
23340 PyThreadState* __tstate = wxPyBeginAllowThreads();
23341 result = (int)((wxWindow const *)arg1)->GetMinHeight();
23342
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 resultobj = SWIG_FromInt((int)result);
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj;
23355 wxWindow *arg1 = (wxWindow *) 0 ;
23356 int result;
23357 PyObject * obj0 = 0 ;
23358 char *kwnames[] = {
23359 (char *) "self", NULL
23360 };
23361
23362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
23363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23365 {
23366 PyThreadState* __tstate = wxPyBeginAllowThreads();
23367 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
23368
23369 wxPyEndAllowThreads(__tstate);
23370 if (PyErr_Occurred()) SWIG_fail;
23371 }
23372 resultobj = SWIG_FromInt((int)result);
23373 return resultobj;
23374 fail:
23375 return NULL;
23376 }
23377
23378
23379 static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj;
23381 wxWindow *arg1 = (wxWindow *) 0 ;
23382 int result;
23383 PyObject * obj0 = 0 ;
23384 char *kwnames[] = {
23385 (char *) "self", NULL
23386 };
23387
23388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
23389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
23394
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 resultobj = SWIG_FromInt((int)result);
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj;
23407 wxWindow *arg1 = (wxWindow *) 0 ;
23408 wxSize result;
23409 PyObject * obj0 = 0 ;
23410 char *kwnames[] = {
23411 (char *) "self", NULL
23412 };
23413
23414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
23415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 result = ((wxWindow const *)arg1)->GetMaxSize();
23420
23421 wxPyEndAllowThreads(__tstate);
23422 if (PyErr_Occurred()) SWIG_fail;
23423 }
23424 {
23425 wxSize * resultptr;
23426 resultptr = new wxSize((wxSize &) result);
23427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23428 }
23429 return resultobj;
23430 fail:
23431 return NULL;
23432 }
23433
23434
23435 static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 wxWindow *arg1 = (wxWindow *) 0 ;
23438 wxSize result;
23439 PyObject * obj0 = 0 ;
23440 char *kwnames[] = {
23441 (char *) "self", NULL
23442 };
23443
23444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
23445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = ((wxWindow const *)arg1)->GetMinSize();
23450
23451 wxPyEndAllowThreads(__tstate);
23452 if (PyErr_Occurred()) SWIG_fail;
23453 }
23454 {
23455 wxSize * resultptr;
23456 resultptr = new wxSize((wxSize &) result);
23457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23458 }
23459 return resultobj;
23460 fail:
23461 return NULL;
23462 }
23463
23464
23465 static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj;
23467 wxWindow *arg1 = (wxWindow *) 0 ;
23468 wxSize *arg2 = 0 ;
23469 wxSize temp2 ;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 char *kwnames[] = {
23473 (char *) "self",(char *) "size", NULL
23474 };
23475
23476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23479 {
23480 arg2 = &temp2;
23481 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23482 }
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23486
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 Py_INCREF(Py_None); resultobj = Py_None;
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
23498 PyObject *resultobj;
23499 wxWindow *arg1 = (wxWindow *) 0 ;
23500 int arg2 ;
23501 int arg3 ;
23502 PyObject * obj0 = 0 ;
23503 PyObject * obj1 = 0 ;
23504 PyObject * obj2 = 0 ;
23505 char *kwnames[] = {
23506 (char *) "self",(char *) "w",(char *) "h", NULL
23507 };
23508
23509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23512 arg2 = (int) SWIG_AsInt(obj1);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 arg3 = (int) SWIG_AsInt(obj2);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 (arg1)->SetVirtualSize(arg2,arg3);
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 Py_INCREF(Py_None); resultobj = Py_None;
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23531 PyObject *resultobj;
23532 wxWindow *arg1 = (wxWindow *) 0 ;
23533 wxSize result;
23534 PyObject * obj0 = 0 ;
23535 char *kwnames[] = {
23536 (char *) "self", NULL
23537 };
23538
23539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23542 {
23543 PyThreadState* __tstate = wxPyBeginAllowThreads();
23544 result = ((wxWindow const *)arg1)->GetVirtualSize();
23545
23546 wxPyEndAllowThreads(__tstate);
23547 if (PyErr_Occurred()) SWIG_fail;
23548 }
23549 {
23550 wxSize * resultptr;
23551 resultptr = new wxSize((wxSize &) result);
23552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23553 }
23554 return resultobj;
23555 fail:
23556 return NULL;
23557 }
23558
23559
23560 static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23561 PyObject *resultobj;
23562 wxWindow *arg1 = (wxWindow *) 0 ;
23563 int *arg2 = (int *) 0 ;
23564 int *arg3 = (int *) 0 ;
23565 int temp2 ;
23566 int temp3 ;
23567 PyObject * obj0 = 0 ;
23568 char *kwnames[] = {
23569 (char *) "self", NULL
23570 };
23571
23572 arg2 = &temp2;
23573 arg3 = &temp3;
23574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23580
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 Py_INCREF(Py_None); resultobj = Py_None;
23585 {
23586 PyObject *o = PyInt_FromLong((long) (*arg2));
23587 resultobj = t_output_helper(resultobj,o);
23588 }
23589 {
23590 PyObject *o = PyInt_FromLong((long) (*arg3));
23591 resultobj = t_output_helper(resultobj,o);
23592 }
23593 return resultobj;
23594 fail:
23595 return NULL;
23596 }
23597
23598
23599 static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj;
23601 wxWindow *arg1 = (wxWindow *) 0 ;
23602 wxSize result;
23603 PyObject * obj0 = 0 ;
23604 char *kwnames[] = {
23605 (char *) "self", NULL
23606 };
23607
23608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
23609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23611 {
23612 PyThreadState* __tstate = wxPyBeginAllowThreads();
23613 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
23614
23615 wxPyEndAllowThreads(__tstate);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 }
23618 {
23619 wxSize * resultptr;
23620 resultptr = new wxSize((wxSize &) result);
23621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23622 }
23623 return resultobj;
23624 fail:
23625 return NULL;
23626 }
23627
23628
23629 static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
23630 PyObject *resultobj;
23631 wxWindow *arg1 = (wxWindow *) 0 ;
23632 bool arg2 = (bool) True ;
23633 bool result;
23634 PyObject * obj0 = 0 ;
23635 PyObject * obj1 = 0 ;
23636 char *kwnames[] = {
23637 (char *) "self",(char *) "show", NULL
23638 };
23639
23640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
23641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23643 if (obj1) {
23644 arg2 = (bool) SWIG_AsBool(obj1);
23645 if (PyErr_Occurred()) SWIG_fail;
23646 }
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 result = (bool)(arg1)->Show(arg2);
23650
23651 wxPyEndAllowThreads(__tstate);
23652 if (PyErr_Occurred()) SWIG_fail;
23653 }
23654 {
23655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23656 }
23657 return resultobj;
23658 fail:
23659 return NULL;
23660 }
23661
23662
23663 static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj;
23665 wxWindow *arg1 = (wxWindow *) 0 ;
23666 bool result;
23667 PyObject * obj0 = 0 ;
23668 char *kwnames[] = {
23669 (char *) "self", NULL
23670 };
23671
23672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
23673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (bool)(arg1)->Hide();
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 {
23683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23684 }
23685 return resultobj;
23686 fail:
23687 return NULL;
23688 }
23689
23690
23691 static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
23692 PyObject *resultobj;
23693 wxWindow *arg1 = (wxWindow *) 0 ;
23694 bool arg2 = (bool) True ;
23695 bool result;
23696 PyObject * obj0 = 0 ;
23697 PyObject * obj1 = 0 ;
23698 char *kwnames[] = {
23699 (char *) "self",(char *) "enable", NULL
23700 };
23701
23702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
23703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23705 if (obj1) {
23706 arg2 = (bool) SWIG_AsBool(obj1);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 }
23709 {
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 result = (bool)(arg1)->Enable(arg2);
23712
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 {
23717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23718 }
23719 return resultobj;
23720 fail:
23721 return NULL;
23722 }
23723
23724
23725 static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
23726 PyObject *resultobj;
23727 wxWindow *arg1 = (wxWindow *) 0 ;
23728 bool result;
23729 PyObject * obj0 = 0 ;
23730 char *kwnames[] = {
23731 (char *) "self", NULL
23732 };
23733
23734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
23735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23737 {
23738 PyThreadState* __tstate = wxPyBeginAllowThreads();
23739 result = (bool)(arg1)->Disable();
23740
23741 wxPyEndAllowThreads(__tstate);
23742 if (PyErr_Occurred()) SWIG_fail;
23743 }
23744 {
23745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23746 }
23747 return resultobj;
23748 fail:
23749 return NULL;
23750 }
23751
23752
23753 static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
23754 PyObject *resultobj;
23755 wxWindow *arg1 = (wxWindow *) 0 ;
23756 bool result;
23757 PyObject * obj0 = 0 ;
23758 char *kwnames[] = {
23759 (char *) "self", NULL
23760 };
23761
23762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
23763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23765 {
23766 PyThreadState* __tstate = wxPyBeginAllowThreads();
23767 result = (bool)((wxWindow const *)arg1)->IsShown();
23768
23769 wxPyEndAllowThreads(__tstate);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 }
23772 {
23773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23774 }
23775 return resultobj;
23776 fail:
23777 return NULL;
23778 }
23779
23780
23781 static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
23782 PyObject *resultobj;
23783 wxWindow *arg1 = (wxWindow *) 0 ;
23784 bool result;
23785 PyObject * obj0 = 0 ;
23786 char *kwnames[] = {
23787 (char *) "self", NULL
23788 };
23789
23790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
23791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (bool)((wxWindow const *)arg1)->IsEnabled();
23796
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 {
23801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23802 }
23803 return resultobj;
23804 fail:
23805 return NULL;
23806 }
23807
23808
23809 static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj;
23811 wxWindow *arg1 = (wxWindow *) 0 ;
23812 long arg2 ;
23813 PyObject * obj0 = 0 ;
23814 PyObject * obj1 = 0 ;
23815 char *kwnames[] = {
23816 (char *) "self",(char *) "style", NULL
23817 };
23818
23819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
23820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23822 arg2 = (long) SWIG_AsLong(obj1);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 {
23825 PyThreadState* __tstate = wxPyBeginAllowThreads();
23826 (arg1)->SetWindowStyleFlag(arg2);
23827
23828 wxPyEndAllowThreads(__tstate);
23829 if (PyErr_Occurred()) SWIG_fail;
23830 }
23831 Py_INCREF(Py_None); resultobj = Py_None;
23832 return resultobj;
23833 fail:
23834 return NULL;
23835 }
23836
23837
23838 static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23839 PyObject *resultobj;
23840 wxWindow *arg1 = (wxWindow *) 0 ;
23841 long result;
23842 PyObject * obj0 = 0 ;
23843 char *kwnames[] = {
23844 (char *) "self", NULL
23845 };
23846
23847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
23848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23850 {
23851 PyThreadState* __tstate = wxPyBeginAllowThreads();
23852 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
23853
23854 wxPyEndAllowThreads(__tstate);
23855 if (PyErr_Occurred()) SWIG_fail;
23856 }
23857 resultobj = SWIG_FromLong((long)result);
23858 return resultobj;
23859 fail:
23860 return NULL;
23861 }
23862
23863
23864 static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23865 PyObject *resultobj;
23866 wxWindow *arg1 = (wxWindow *) 0 ;
23867 int arg2 ;
23868 bool result;
23869 PyObject * obj0 = 0 ;
23870 PyObject * obj1 = 0 ;
23871 char *kwnames[] = {
23872 (char *) "self",(char *) "flag", NULL
23873 };
23874
23875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
23876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23878 arg2 = (int) SWIG_AsInt(obj1);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
23883
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 {
23888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23889 }
23890 return resultobj;
23891 fail:
23892 return NULL;
23893 }
23894
23895
23896 static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
23897 PyObject *resultobj;
23898 wxWindow *arg1 = (wxWindow *) 0 ;
23899 bool result;
23900 PyObject * obj0 = 0 ;
23901 char *kwnames[] = {
23902 (char *) "self", NULL
23903 };
23904
23905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
23906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (bool)((wxWindow const *)arg1)->IsRetained();
23911
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23917 }
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj;
23926 wxWindow *arg1 = (wxWindow *) 0 ;
23927 long arg2 ;
23928 PyObject * obj0 = 0 ;
23929 PyObject * obj1 = 0 ;
23930 char *kwnames[] = {
23931 (char *) "self",(char *) "exStyle", NULL
23932 };
23933
23934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
23935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23937 arg2 = (long) SWIG_AsLong(obj1);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 (arg1)->SetExtraStyle(arg2);
23942
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 Py_INCREF(Py_None); resultobj = Py_None;
23947 return resultobj;
23948 fail:
23949 return NULL;
23950 }
23951
23952
23953 static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
23954 PyObject *resultobj;
23955 wxWindow *arg1 = (wxWindow *) 0 ;
23956 long result;
23957 PyObject * obj0 = 0 ;
23958 char *kwnames[] = {
23959 (char *) "self", NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
23963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23965 {
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
23968
23969 wxPyEndAllowThreads(__tstate);
23970 if (PyErr_Occurred()) SWIG_fail;
23971 }
23972 resultobj = SWIG_FromLong((long)result);
23973 return resultobj;
23974 fail:
23975 return NULL;
23976 }
23977
23978
23979 static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
23980 PyObject *resultobj;
23981 wxWindow *arg1 = (wxWindow *) 0 ;
23982 bool arg2 = (bool) True ;
23983 PyObject * obj0 = 0 ;
23984 PyObject * obj1 = 0 ;
23985 char *kwnames[] = {
23986 (char *) "self",(char *) "modal", NULL
23987 };
23988
23989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
23990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23992 if (obj1) {
23993 arg2 = (bool) SWIG_AsBool(obj1);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 (arg1)->MakeModal(arg2);
23999
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 Py_INCREF(Py_None); resultobj = Py_None;
24004 return resultobj;
24005 fail:
24006 return NULL;
24007 }
24008
24009
24010 static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj;
24012 wxWindow *arg1 = (wxWindow *) 0 ;
24013 bool arg2 ;
24014 PyObject * obj0 = 0 ;
24015 PyObject * obj1 = 0 ;
24016 char *kwnames[] = {
24017 (char *) "self",(char *) "enableTheme", NULL
24018 };
24019
24020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24023 arg2 = (bool) SWIG_AsBool(obj1);
24024 if (PyErr_Occurred()) SWIG_fail;
24025 {
24026 PyThreadState* __tstate = wxPyBeginAllowThreads();
24027 (arg1)->SetThemeEnabled(arg2);
24028
24029 wxPyEndAllowThreads(__tstate);
24030 if (PyErr_Occurred()) SWIG_fail;
24031 }
24032 Py_INCREF(Py_None); resultobj = Py_None;
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxWindow *arg1 = (wxWindow *) 0 ;
24042 bool result;
24043 PyObject * obj0 = 0 ;
24044 char *kwnames[] = {
24045 (char *) "self", NULL
24046 };
24047
24048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24054
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 {
24059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24060 }
24061 return resultobj;
24062 fail:
24063 return NULL;
24064 }
24065
24066
24067 static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj;
24069 wxWindow *arg1 = (wxWindow *) 0 ;
24070 PyObject * obj0 = 0 ;
24071 char *kwnames[] = {
24072 (char *) "self", NULL
24073 };
24074
24075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24078 {
24079 PyThreadState* __tstate = wxPyBeginAllowThreads();
24080 (arg1)->SetFocus();
24081
24082 wxPyEndAllowThreads(__tstate);
24083 if (PyErr_Occurred()) SWIG_fail;
24084 }
24085 Py_INCREF(Py_None); resultobj = Py_None;
24086 return resultobj;
24087 fail:
24088 return NULL;
24089 }
24090
24091
24092 static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
24093 PyObject *resultobj;
24094 wxWindow *arg1 = (wxWindow *) 0 ;
24095 PyObject * obj0 = 0 ;
24096 char *kwnames[] = {
24097 (char *) "self", NULL
24098 };
24099
24100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 (arg1)->SetFocusFromKbd();
24106
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 Py_INCREF(Py_None); resultobj = Py_None;
24111 return resultobj;
24112 fail:
24113 return NULL;
24114 }
24115
24116
24117 static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24118 PyObject *resultobj;
24119 wxWindow *result;
24120 char *kwnames[] = {
24121 NULL
24122 };
24123
24124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24125 {
24126 PyThreadState* __tstate = wxPyBeginAllowThreads();
24127 result = (wxWindow *)wxWindow::FindFocus();
24128
24129 wxPyEndAllowThreads(__tstate);
24130 if (PyErr_Occurred()) SWIG_fail;
24131 }
24132 {
24133 resultobj = wxPyMake_wxObject(result);
24134 }
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj;
24143 wxWindow *arg1 = (wxWindow *) 0 ;
24144 bool result;
24145 PyObject * obj0 = 0 ;
24146 char *kwnames[] = {
24147 (char *) "self", NULL
24148 };
24149
24150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24156
24157 wxPyEndAllowThreads(__tstate);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 }
24160 {
24161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24162 }
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj;
24171 wxWindow *arg1 = (wxWindow *) 0 ;
24172 bool result;
24173 PyObject * obj0 = 0 ;
24174 char *kwnames[] = {
24175 (char *) "self", NULL
24176 };
24177
24178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24184
24185 wxPyEndAllowThreads(__tstate);
24186 if (PyErr_Occurred()) SWIG_fail;
24187 }
24188 {
24189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24190 }
24191 return resultobj;
24192 fail:
24193 return NULL;
24194 }
24195
24196
24197 static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj;
24199 wxWindow *arg1 = (wxWindow *) 0 ;
24200 wxWindow *result;
24201 PyObject * obj0 = 0 ;
24202 char *kwnames[] = {
24203 (char *) "self", NULL
24204 };
24205
24206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24209 {
24210 PyThreadState* __tstate = wxPyBeginAllowThreads();
24211 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24212
24213 wxPyEndAllowThreads(__tstate);
24214 if (PyErr_Occurred()) SWIG_fail;
24215 }
24216 {
24217 resultobj = wxPyMake_wxObject(result);
24218 }
24219 return resultobj;
24220 fail:
24221 return NULL;
24222 }
24223
24224
24225 static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24226 PyObject *resultobj;
24227 wxWindow *arg1 = (wxWindow *) 0 ;
24228 wxWindow *arg2 = (wxWindow *) 0 ;
24229 wxWindow *result;
24230 PyObject * obj0 = 0 ;
24231 PyObject * obj1 = 0 ;
24232 char *kwnames[] = {
24233 (char *) "self",(char *) "child", NULL
24234 };
24235
24236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24241 {
24242 PyThreadState* __tstate = wxPyBeginAllowThreads();
24243 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24244
24245 wxPyEndAllowThreads(__tstate);
24246 if (PyErr_Occurred()) SWIG_fail;
24247 }
24248 {
24249 resultobj = wxPyMake_wxObject(result);
24250 }
24251 return resultobj;
24252 fail:
24253 return NULL;
24254 }
24255
24256
24257 static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24258 PyObject *resultobj;
24259 wxWindow *arg1 = (wxWindow *) 0 ;
24260 wxWindow *arg2 = (wxWindow *) 0 ;
24261 PyObject * obj0 = 0 ;
24262 PyObject * obj1 = 0 ;
24263 char *kwnames[] = {
24264 (char *) "self",(char *) "win", NULL
24265 };
24266
24267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24272 {
24273 PyThreadState* __tstate = wxPyBeginAllowThreads();
24274 (arg1)->SetTmpDefaultItem(arg2);
24275
24276 wxPyEndAllowThreads(__tstate);
24277 if (PyErr_Occurred()) SWIG_fail;
24278 }
24279 Py_INCREF(Py_None); resultobj = Py_None;
24280 return resultobj;
24281 fail:
24282 return NULL;
24283 }
24284
24285
24286 static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24287 PyObject *resultobj;
24288 wxWindow *arg1 = (wxWindow *) 0 ;
24289 PyObject *result;
24290 PyObject * obj0 = 0 ;
24291 char *kwnames[] = {
24292 (char *) "self", NULL
24293 };
24294
24295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24298 {
24299 PyThreadState* __tstate = wxPyBeginAllowThreads();
24300 result = (PyObject *)wxWindow_GetChildren(arg1);
24301
24302 wxPyEndAllowThreads(__tstate);
24303 if (PyErr_Occurred()) SWIG_fail;
24304 }
24305 resultobj = result;
24306 return resultobj;
24307 fail:
24308 return NULL;
24309 }
24310
24311
24312 static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24313 PyObject *resultobj;
24314 wxWindow *arg1 = (wxWindow *) 0 ;
24315 wxWindow *result;
24316 PyObject * obj0 = 0 ;
24317 char *kwnames[] = {
24318 (char *) "self", NULL
24319 };
24320
24321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24324 {
24325 PyThreadState* __tstate = wxPyBeginAllowThreads();
24326 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24327
24328 wxPyEndAllowThreads(__tstate);
24329 if (PyErr_Occurred()) SWIG_fail;
24330 }
24331 {
24332 resultobj = wxPyMake_wxObject(result);
24333 }
24334 return resultobj;
24335 fail:
24336 return NULL;
24337 }
24338
24339
24340 static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24341 PyObject *resultobj;
24342 wxWindow *arg1 = (wxWindow *) 0 ;
24343 wxWindow *result;
24344 PyObject * obj0 = 0 ;
24345 char *kwnames[] = {
24346 (char *) "self", NULL
24347 };
24348
24349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24355
24356 wxPyEndAllowThreads(__tstate);
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
24359 {
24360 resultobj = wxPyMake_wxObject(result);
24361 }
24362 return resultobj;
24363 fail:
24364 return NULL;
24365 }
24366
24367
24368 static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
24369 PyObject *resultobj;
24370 wxWindow *arg1 = (wxWindow *) 0 ;
24371 bool result;
24372 PyObject * obj0 = 0 ;
24373 char *kwnames[] = {
24374 (char *) "self", NULL
24375 };
24376
24377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24380 {
24381 PyThreadState* __tstate = wxPyBeginAllowThreads();
24382 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24383
24384 wxPyEndAllowThreads(__tstate);
24385 if (PyErr_Occurred()) SWIG_fail;
24386 }
24387 {
24388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24389 }
24390 return resultobj;
24391 fail:
24392 return NULL;
24393 }
24394
24395
24396 static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
24397 PyObject *resultobj;
24398 wxWindow *arg1 = (wxWindow *) 0 ;
24399 wxWindow *arg2 = (wxWindow *) 0 ;
24400 bool result;
24401 PyObject * obj0 = 0 ;
24402 PyObject * obj1 = 0 ;
24403 char *kwnames[] = {
24404 (char *) "self",(char *) "newParent", NULL
24405 };
24406
24407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (bool)(arg1)->Reparent(arg2);
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_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj;
24430 wxWindow *arg1 = (wxWindow *) 0 ;
24431 wxWindow *arg2 = (wxWindow *) 0 ;
24432 PyObject * obj0 = 0 ;
24433 PyObject * obj1 = 0 ;
24434 char *kwnames[] = {
24435 (char *) "self",(char *) "child", NULL
24436 };
24437
24438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 (arg1)->AddChild(arg2);
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 Py_INCREF(Py_None); resultobj = Py_None;
24451 return resultobj;
24452 fail:
24453 return NULL;
24454 }
24455
24456
24457 static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj;
24459 wxWindow *arg1 = (wxWindow *) 0 ;
24460 wxWindow *arg2 = (wxWindow *) 0 ;
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_RemoveChild",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 (arg1)->RemoveChild(arg2);
24475
24476 wxPyEndAllowThreads(__tstate);
24477 if (PyErr_Occurred()) SWIG_fail;
24478 }
24479 Py_INCREF(Py_None); resultobj = Py_None;
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj;
24488 wxWindow *arg1 = (wxWindow *) 0 ;
24489 long arg2 ;
24490 wxWindow *result;
24491 PyObject * obj0 = 0 ;
24492 PyObject * obj1 = 0 ;
24493 char *kwnames[] = {
24494 (char *) "self",(char *) "winid", NULL
24495 };
24496
24497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24500 arg2 = (long) SWIG_AsLong(obj1);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 result = (wxWindow *)(arg1)->FindWindow(arg2);
24505
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 {
24510 resultobj = wxPyMake_wxObject(result);
24511 }
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
24519 PyObject *resultobj;
24520 wxWindow *arg1 = (wxWindow *) 0 ;
24521 wxString *arg2 = 0 ;
24522 wxWindow *result;
24523 bool temp2 = False ;
24524 PyObject * obj0 = 0 ;
24525 PyObject * obj1 = 0 ;
24526 char *kwnames[] = {
24527 (char *) "self",(char *) "name", NULL
24528 };
24529
24530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
24531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24533 {
24534 arg2 = wxString_in_helper(obj1);
24535 if (arg2 == NULL) SWIG_fail;
24536 temp2 = True;
24537 }
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 {
24546 resultobj = wxPyMake_wxObject(result);
24547 }
24548 {
24549 if (temp2)
24550 delete arg2;
24551 }
24552 return resultobj;
24553 fail:
24554 {
24555 if (temp2)
24556 delete arg2;
24557 }
24558 return NULL;
24559 }
24560
24561
24562 static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24563 PyObject *resultobj;
24564 wxWindow *arg1 = (wxWindow *) 0 ;
24565 wxEvtHandler *result;
24566 PyObject * obj0 = 0 ;
24567 char *kwnames[] = {
24568 (char *) "self", NULL
24569 };
24570
24571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
24572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24574 {
24575 PyThreadState* __tstate = wxPyBeginAllowThreads();
24576 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
24577
24578 wxPyEndAllowThreads(__tstate);
24579 if (PyErr_Occurred()) SWIG_fail;
24580 }
24581 {
24582 resultobj = wxPyMake_wxObject(result);
24583 }
24584 return resultobj;
24585 fail:
24586 return NULL;
24587 }
24588
24589
24590 static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24591 PyObject *resultobj;
24592 wxWindow *arg1 = (wxWindow *) 0 ;
24593 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24594 PyObject * obj0 = 0 ;
24595 PyObject * obj1 = 0 ;
24596 char *kwnames[] = {
24597 (char *) "self",(char *) "handler", NULL
24598 };
24599
24600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
24601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 (arg1)->SetEventHandler(arg2);
24608
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 Py_INCREF(Py_None); resultobj = Py_None;
24613 return resultobj;
24614 fail:
24615 return NULL;
24616 }
24617
24618
24619 static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj;
24621 wxWindow *arg1 = (wxWindow *) 0 ;
24622 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24623 PyObject * obj0 = 0 ;
24624 PyObject * obj1 = 0 ;
24625 char *kwnames[] = {
24626 (char *) "self",(char *) "handler", NULL
24627 };
24628
24629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
24630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24634 {
24635 PyThreadState* __tstate = wxPyBeginAllowThreads();
24636 (arg1)->PushEventHandler(arg2);
24637
24638 wxPyEndAllowThreads(__tstate);
24639 if (PyErr_Occurred()) SWIG_fail;
24640 }
24641 Py_INCREF(Py_None); resultobj = Py_None;
24642 return resultobj;
24643 fail:
24644 return NULL;
24645 }
24646
24647
24648 static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24649 PyObject *resultobj;
24650 wxWindow *arg1 = (wxWindow *) 0 ;
24651 bool arg2 = (bool) False ;
24652 wxEvtHandler *result;
24653 PyObject * obj0 = 0 ;
24654 PyObject * obj1 = 0 ;
24655 char *kwnames[] = {
24656 (char *) "self",(char *) "deleteHandler", NULL
24657 };
24658
24659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
24660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24662 if (obj1) {
24663 arg2 = (bool) SWIG_AsBool(obj1);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 {
24667 PyThreadState* __tstate = wxPyBeginAllowThreads();
24668 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
24669
24670 wxPyEndAllowThreads(__tstate);
24671 if (PyErr_Occurred()) SWIG_fail;
24672 }
24673 {
24674 resultobj = wxPyMake_wxObject(result);
24675 }
24676 return resultobj;
24677 fail:
24678 return NULL;
24679 }
24680
24681
24682 static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj;
24684 wxWindow *arg1 = (wxWindow *) 0 ;
24685 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24686 bool result;
24687 PyObject * obj0 = 0 ;
24688 PyObject * obj1 = 0 ;
24689 char *kwnames[] = {
24690 (char *) "self",(char *) "handler", NULL
24691 };
24692
24693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
24694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24696 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24698 {
24699 PyThreadState* __tstate = wxPyBeginAllowThreads();
24700 result = (bool)(arg1)->RemoveEventHandler(arg2);
24701
24702 wxPyEndAllowThreads(__tstate);
24703 if (PyErr_Occurred()) SWIG_fail;
24704 }
24705 {
24706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24707 }
24708 return resultobj;
24709 fail:
24710 return NULL;
24711 }
24712
24713
24714 static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj;
24716 wxWindow *arg1 = (wxWindow *) 0 ;
24717 wxValidator *arg2 = 0 ;
24718 PyObject * obj0 = 0 ;
24719 PyObject * obj1 = 0 ;
24720 char *kwnames[] = {
24721 (char *) "self",(char *) "validator", NULL
24722 };
24723
24724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
24725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
24728 SWIG_POINTER_EXCEPTION | 0)) == -1)
24729 SWIG_fail;
24730 if (arg2 == NULL) {
24731 PyErr_SetString(PyExc_TypeError,"null reference");
24732 SWIG_fail;
24733 }
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 (arg1)->SetValidator((wxValidator const &)*arg2);
24737
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 Py_INCREF(Py_None); resultobj = Py_None;
24742 return resultobj;
24743 fail:
24744 return NULL;
24745 }
24746
24747
24748 static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj;
24750 wxWindow *arg1 = (wxWindow *) 0 ;
24751 wxValidator *result;
24752 PyObject * obj0 = 0 ;
24753 char *kwnames[] = {
24754 (char *) "self", NULL
24755 };
24756
24757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
24758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 result = (wxValidator *)(arg1)->GetValidator();
24763
24764 wxPyEndAllowThreads(__tstate);
24765 if (PyErr_Occurred()) SWIG_fail;
24766 }
24767 {
24768 resultobj = wxPyMake_wxObject(result);
24769 }
24770 return resultobj;
24771 fail:
24772 return NULL;
24773 }
24774
24775
24776 static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
24777 PyObject *resultobj;
24778 wxWindow *arg1 = (wxWindow *) 0 ;
24779 bool result;
24780 PyObject * obj0 = 0 ;
24781 char *kwnames[] = {
24782 (char *) "self", NULL
24783 };
24784
24785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
24786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 result = (bool)(arg1)->Validate();
24791
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 {
24796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24797 }
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxWindow *arg1 = (wxWindow *) 0 ;
24807 bool result;
24808 PyObject * obj0 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 result = (bool)(arg1)->TransferDataToWindow();
24819
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 {
24824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24825 }
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj;
24834 wxWindow *arg1 = (wxWindow *) 0 ;
24835 bool result;
24836 PyObject * obj0 = 0 ;
24837 char *kwnames[] = {
24838 (char *) "self", NULL
24839 };
24840
24841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
24842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 result = (bool)(arg1)->TransferDataFromWindow();
24847
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 {
24852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24853 }
24854 return resultobj;
24855 fail:
24856 return NULL;
24857 }
24858
24859
24860 static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
24861 PyObject *resultobj;
24862 wxWindow *arg1 = (wxWindow *) 0 ;
24863 PyObject * obj0 = 0 ;
24864 char *kwnames[] = {
24865 (char *) "self", NULL
24866 };
24867
24868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
24869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 (arg1)->InitDialog();
24874
24875 wxPyEndAllowThreads(__tstate);
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 Py_INCREF(Py_None); resultobj = Py_None;
24879 return resultobj;
24880 fail:
24881 return NULL;
24882 }
24883
24884
24885 static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
24886 PyObject *resultobj;
24887 wxWindow *arg1 = (wxWindow *) 0 ;
24888 wxAcceleratorTable *arg2 = 0 ;
24889 PyObject * obj0 = 0 ;
24890 PyObject * obj1 = 0 ;
24891 char *kwnames[] = {
24892 (char *) "self",(char *) "accel", NULL
24893 };
24894
24895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
24896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24898 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
24899 SWIG_POINTER_EXCEPTION | 0)) == -1)
24900 SWIG_fail;
24901 if (arg2 == NULL) {
24902 PyErr_SetString(PyExc_TypeError,"null reference");
24903 SWIG_fail;
24904 }
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
24908
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 Py_INCREF(Py_None); resultobj = Py_None;
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
24920 PyObject *resultobj;
24921 wxWindow *arg1 = (wxWindow *) 0 ;
24922 wxAcceleratorTable *result;
24923 PyObject * obj0 = 0 ;
24924 char *kwnames[] = {
24925 (char *) "self", NULL
24926 };
24927
24928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
24929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
24934
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
24939 return resultobj;
24940 fail:
24941 return NULL;
24942 }
24943
24944
24945 static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj;
24947 wxWindow *arg1 = (wxWindow *) 0 ;
24948 int arg2 ;
24949 int arg3 ;
24950 int arg4 ;
24951 bool result;
24952 PyObject * obj0 = 0 ;
24953 PyObject * obj1 = 0 ;
24954 PyObject * obj2 = 0 ;
24955 PyObject * obj3 = 0 ;
24956 char *kwnames[] = {
24957 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
24958 };
24959
24960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24963 arg2 = (int) SWIG_AsInt(obj1);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 arg3 = (int) SWIG_AsInt(obj2);
24966 if (PyErr_Occurred()) SWIG_fail;
24967 arg4 = (int) SWIG_AsInt(obj3);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 {
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
24972
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 {
24977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24978 }
24979 return resultobj;
24980 fail:
24981 return NULL;
24982 }
24983
24984
24985 static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
24986 PyObject *resultobj;
24987 wxWindow *arg1 = (wxWindow *) 0 ;
24988 int arg2 ;
24989 bool result;
24990 PyObject * obj0 = 0 ;
24991 PyObject * obj1 = 0 ;
24992 char *kwnames[] = {
24993 (char *) "self",(char *) "hotkeyId", NULL
24994 };
24995
24996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
24997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24999 arg2 = (int) SWIG_AsInt(obj1);
25000 if (PyErr_Occurred()) SWIG_fail;
25001 {
25002 PyThreadState* __tstate = wxPyBeginAllowThreads();
25003 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25004
25005 wxPyEndAllowThreads(__tstate);
25006 if (PyErr_Occurred()) SWIG_fail;
25007 }
25008 {
25009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25010 }
25011 return resultobj;
25012 fail:
25013 return NULL;
25014 }
25015
25016
25017 static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25018 PyObject *resultobj;
25019 wxWindow *arg1 = (wxWindow *) 0 ;
25020 wxPoint *arg2 = 0 ;
25021 wxPoint result;
25022 wxPoint temp2 ;
25023 PyObject * obj0 = 0 ;
25024 PyObject * obj1 = 0 ;
25025 char *kwnames[] = {
25026 (char *) "self",(char *) "pt", NULL
25027 };
25028
25029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25032 {
25033 arg2 = &temp2;
25034 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25035 }
25036 {
25037 PyThreadState* __tstate = wxPyBeginAllowThreads();
25038 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25039
25040 wxPyEndAllowThreads(__tstate);
25041 if (PyErr_Occurred()) SWIG_fail;
25042 }
25043 {
25044 wxPoint * resultptr;
25045 resultptr = new wxPoint((wxPoint &) result);
25046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25047 }
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj;
25056 wxWindow *arg1 = (wxWindow *) 0 ;
25057 wxSize *arg2 = 0 ;
25058 wxSize result;
25059 wxSize temp2 ;
25060 PyObject * obj0 = 0 ;
25061 PyObject * obj1 = 0 ;
25062 char *kwnames[] = {
25063 (char *) "self",(char *) "sz", NULL
25064 };
25065
25066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25069 {
25070 arg2 = &temp2;
25071 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25072 }
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25076
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 {
25081 wxSize * resultptr;
25082 resultptr = new wxSize((wxSize &) result);
25083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25084 }
25085 return resultobj;
25086 fail:
25087 return NULL;
25088 }
25089
25090
25091 static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
25092 PyObject *resultobj;
25093 wxWindow *arg1 = (wxWindow *) 0 ;
25094 wxPoint *arg2 = 0 ;
25095 wxPoint result;
25096 wxPoint temp2 ;
25097 PyObject * obj0 = 0 ;
25098 PyObject * obj1 = 0 ;
25099 char *kwnames[] = {
25100 (char *) "self",(char *) "pt", NULL
25101 };
25102
25103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25106 {
25107 arg2 = &temp2;
25108 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25109 }
25110 {
25111 PyThreadState* __tstate = wxPyBeginAllowThreads();
25112 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25113
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 {
25118 wxPoint * resultptr;
25119 resultptr = new wxPoint((wxPoint &) result);
25120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25121 }
25122 return resultobj;
25123 fail:
25124 return NULL;
25125 }
25126
25127
25128 static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
25129 PyObject *resultobj;
25130 wxWindow *arg1 = (wxWindow *) 0 ;
25131 wxSize *arg2 = 0 ;
25132 wxSize result;
25133 wxSize temp2 ;
25134 PyObject * obj0 = 0 ;
25135 PyObject * obj1 = 0 ;
25136 char *kwnames[] = {
25137 (char *) "self",(char *) "sz", NULL
25138 };
25139
25140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25143 {
25144 arg2 = &temp2;
25145 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25146 }
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25150
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 {
25155 wxSize * resultptr;
25156 resultptr = new wxSize((wxSize &) result);
25157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25158 }
25159 return resultobj;
25160 fail:
25161 return NULL;
25162 }
25163
25164
25165 static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25166 PyObject *resultobj;
25167 wxWindow *arg1 = (wxWindow *) 0 ;
25168 wxPoint *arg2 = 0 ;
25169 wxPoint result;
25170 wxPoint temp2 ;
25171 PyObject * obj0 = 0 ;
25172 PyObject * obj1 = 0 ;
25173 char *kwnames[] = {
25174 (char *) "self",(char *) "pt", NULL
25175 };
25176
25177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25180 {
25181 arg2 = &temp2;
25182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25183 }
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25187
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 {
25192 wxPoint * resultptr;
25193 resultptr = new wxPoint((wxPoint &) result);
25194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25195 }
25196 return resultobj;
25197 fail:
25198 return NULL;
25199 }
25200
25201
25202 static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25203 PyObject *resultobj;
25204 wxWindow *arg1 = (wxWindow *) 0 ;
25205 wxSize *arg2 = 0 ;
25206 wxSize result;
25207 wxSize temp2 ;
25208 PyObject * obj0 = 0 ;
25209 PyObject * obj1 = 0 ;
25210 char *kwnames[] = {
25211 (char *) "self",(char *) "sz", NULL
25212 };
25213
25214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25217 {
25218 arg2 = &temp2;
25219 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25220 }
25221 {
25222 PyThreadState* __tstate = wxPyBeginAllowThreads();
25223 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25224
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 {
25229 wxSize * resultptr;
25230 resultptr = new wxSize((wxSize &) result);
25231 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25232 }
25233 return resultobj;
25234 fail:
25235 return NULL;
25236 }
25237
25238
25239 static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
25240 PyObject *resultobj;
25241 wxWindow *arg1 = (wxWindow *) 0 ;
25242 int arg2 ;
25243 int arg3 ;
25244 PyObject * obj0 = 0 ;
25245 PyObject * obj1 = 0 ;
25246 PyObject * obj2 = 0 ;
25247 char *kwnames[] = {
25248 (char *) "self",(char *) "x",(char *) "y", NULL
25249 };
25250
25251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25254 arg2 = (int) SWIG_AsInt(obj1);
25255 if (PyErr_Occurred()) SWIG_fail;
25256 arg3 = (int) SWIG_AsInt(obj2);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 {
25259 PyThreadState* __tstate = wxPyBeginAllowThreads();
25260 (arg1)->WarpPointer(arg2,arg3);
25261
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 Py_INCREF(Py_None); resultobj = Py_None;
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj;
25274 wxWindow *arg1 = (wxWindow *) 0 ;
25275 PyObject * obj0 = 0 ;
25276 char *kwnames[] = {
25277 (char *) "self", NULL
25278 };
25279
25280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25283 {
25284 PyThreadState* __tstate = wxPyBeginAllowThreads();
25285 (arg1)->CaptureMouse();
25286
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 Py_INCREF(Py_None); resultobj = Py_None;
25291 return resultobj;
25292 fail:
25293 return NULL;
25294 }
25295
25296
25297 static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj;
25299 wxWindow *arg1 = (wxWindow *) 0 ;
25300 PyObject * obj0 = 0 ;
25301 char *kwnames[] = {
25302 (char *) "self", NULL
25303 };
25304
25305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25308 {
25309 PyThreadState* __tstate = wxPyBeginAllowThreads();
25310 (arg1)->ReleaseMouse();
25311
25312 wxPyEndAllowThreads(__tstate);
25313 if (PyErr_Occurred()) SWIG_fail;
25314 }
25315 Py_INCREF(Py_None); resultobj = Py_None;
25316 return resultobj;
25317 fail:
25318 return NULL;
25319 }
25320
25321
25322 static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25323 PyObject *resultobj;
25324 wxWindow *result;
25325 char *kwnames[] = {
25326 NULL
25327 };
25328
25329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 result = (wxWindow *)wxWindow::GetCapture();
25333
25334 wxPyEndAllowThreads(__tstate);
25335 if (PyErr_Occurred()) SWIG_fail;
25336 }
25337 {
25338 resultobj = wxPyMake_wxObject(result);
25339 }
25340 return resultobj;
25341 fail:
25342 return NULL;
25343 }
25344
25345
25346 static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25347 PyObject *resultobj;
25348 wxWindow *arg1 = (wxWindow *) 0 ;
25349 bool result;
25350 PyObject * obj0 = 0 ;
25351 char *kwnames[] = {
25352 (char *) "self", NULL
25353 };
25354
25355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 PyThreadState* __tstate = wxPyBeginAllowThreads();
25360 result = (bool)((wxWindow const *)arg1)->HasCapture();
25361
25362 wxPyEndAllowThreads(__tstate);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 {
25366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25367 }
25368 return resultobj;
25369 fail:
25370 return NULL;
25371 }
25372
25373
25374 static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
25375 PyObject *resultobj;
25376 wxWindow *arg1 = (wxWindow *) 0 ;
25377 bool arg2 = (bool) True ;
25378 wxRect *arg3 = (wxRect *) NULL ;
25379 PyObject * obj0 = 0 ;
25380 PyObject * obj1 = 0 ;
25381 PyObject * obj2 = 0 ;
25382 char *kwnames[] = {
25383 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25384 };
25385
25386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25389 if (obj1) {
25390 arg2 = (bool) SWIG_AsBool(obj1);
25391 if (PyErr_Occurred()) SWIG_fail;
25392 }
25393 if (obj2) {
25394 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25396 }
25397 {
25398 PyThreadState* __tstate = wxPyBeginAllowThreads();
25399 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25400
25401 wxPyEndAllowThreads(__tstate);
25402 if (PyErr_Occurred()) SWIG_fail;
25403 }
25404 Py_INCREF(Py_None); resultobj = Py_None;
25405 return resultobj;
25406 fail:
25407 return NULL;
25408 }
25409
25410
25411 static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25412 PyObject *resultobj;
25413 wxWindow *arg1 = (wxWindow *) 0 ;
25414 wxRect *arg2 = 0 ;
25415 wxRect temp2 ;
25416 PyObject * obj0 = 0 ;
25417 PyObject * obj1 = 0 ;
25418 char *kwnames[] = {
25419 (char *) "self",(char *) "rect", NULL
25420 };
25421
25422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25425 {
25426 arg2 = &temp2;
25427 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25428 }
25429 {
25430 PyThreadState* __tstate = wxPyBeginAllowThreads();
25431 (arg1)->RefreshRect((wxRect const &)*arg2);
25432
25433 wxPyEndAllowThreads(__tstate);
25434 if (PyErr_Occurred()) SWIG_fail;
25435 }
25436 Py_INCREF(Py_None); resultobj = Py_None;
25437 return resultobj;
25438 fail:
25439 return NULL;
25440 }
25441
25442
25443 static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
25444 PyObject *resultobj;
25445 wxWindow *arg1 = (wxWindow *) 0 ;
25446 PyObject * obj0 = 0 ;
25447 char *kwnames[] = {
25448 (char *) "self", NULL
25449 };
25450
25451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 (arg1)->Update();
25457
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 Py_INCREF(Py_None); resultobj = Py_None;
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxWindow *arg1 = (wxWindow *) 0 ;
25471 PyObject * obj0 = 0 ;
25472 char *kwnames[] = {
25473 (char *) "self", NULL
25474 };
25475
25476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25479 {
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 (arg1)->ClearBackground();
25482
25483 wxPyEndAllowThreads(__tstate);
25484 if (PyErr_Occurred()) SWIG_fail;
25485 }
25486 Py_INCREF(Py_None); resultobj = Py_None;
25487 return resultobj;
25488 fail:
25489 return NULL;
25490 }
25491
25492
25493 static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
25494 PyObject *resultobj;
25495 wxWindow *arg1 = (wxWindow *) 0 ;
25496 PyObject * obj0 = 0 ;
25497 char *kwnames[] = {
25498 (char *) "self", NULL
25499 };
25500
25501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
25502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25504 {
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 (arg1)->Freeze();
25507
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 Py_INCREF(Py_None); resultobj = Py_None;
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
25519 PyObject *resultobj;
25520 wxWindow *arg1 = (wxWindow *) 0 ;
25521 PyObject * obj0 = 0 ;
25522 char *kwnames[] = {
25523 (char *) "self", NULL
25524 };
25525
25526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
25527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 (arg1)->Thaw();
25532
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 Py_INCREF(Py_None); resultobj = Py_None;
25537 return resultobj;
25538 fail:
25539 return NULL;
25540 }
25541
25542
25543 static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
25544 PyObject *resultobj;
25545 wxWindow *arg1 = (wxWindow *) 0 ;
25546 wxDC *arg2 = 0 ;
25547 PyObject * obj0 = 0 ;
25548 PyObject * obj1 = 0 ;
25549 char *kwnames[] = {
25550 (char *) "self",(char *) "dc", NULL
25551 };
25552
25553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
25554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
25557 SWIG_POINTER_EXCEPTION | 0)) == -1)
25558 SWIG_fail;
25559 if (arg2 == NULL) {
25560 PyErr_SetString(PyExc_TypeError,"null reference");
25561 SWIG_fail;
25562 }
25563 {
25564 PyThreadState* __tstate = wxPyBeginAllowThreads();
25565 (arg1)->PrepareDC(*arg2);
25566
25567 wxPyEndAllowThreads(__tstate);
25568 if (PyErr_Occurred()) SWIG_fail;
25569 }
25570 Py_INCREF(Py_None); resultobj = Py_None;
25571 return resultobj;
25572 fail:
25573 return NULL;
25574 }
25575
25576
25577 static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
25578 PyObject *resultobj;
25579 wxWindow *arg1 = (wxWindow *) 0 ;
25580 wxRegion *result;
25581 PyObject * obj0 = 0 ;
25582 char *kwnames[] = {
25583 (char *) "self", NULL
25584 };
25585
25586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
25587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25589 {
25590 PyThreadState* __tstate = wxPyBeginAllowThreads();
25591 {
25592 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
25593 result = (wxRegion *) &_result_ref;
25594 }
25595
25596 wxPyEndAllowThreads(__tstate);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
25600 return resultobj;
25601 fail:
25602 return NULL;
25603 }
25604
25605
25606 static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25607 PyObject *resultobj;
25608 wxWindow *arg1 = (wxWindow *) 0 ;
25609 wxRect result;
25610 PyObject * obj0 = 0 ;
25611 char *kwnames[] = {
25612 (char *) "self", NULL
25613 };
25614
25615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
25616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25618 {
25619 PyThreadState* __tstate = wxPyBeginAllowThreads();
25620 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
25621
25622 wxPyEndAllowThreads(__tstate);
25623 if (PyErr_Occurred()) SWIG_fail;
25624 }
25625 {
25626 wxRect * resultptr;
25627 resultptr = new wxRect((wxRect &) result);
25628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
25629 }
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj;
25638 wxWindow *arg1 = (wxWindow *) 0 ;
25639 int arg2 ;
25640 int arg3 ;
25641 int arg4 = (int) 1 ;
25642 int arg5 = (int) 1 ;
25643 bool result;
25644 PyObject * obj0 = 0 ;
25645 PyObject * obj1 = 0 ;
25646 PyObject * obj2 = 0 ;
25647 PyObject * obj3 = 0 ;
25648 PyObject * obj4 = 0 ;
25649 char *kwnames[] = {
25650 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25651 };
25652
25653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25656 arg2 = (int) SWIG_AsInt(obj1);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 arg3 = (int) SWIG_AsInt(obj2);
25659 if (PyErr_Occurred()) SWIG_fail;
25660 if (obj3) {
25661 arg4 = (int) SWIG_AsInt(obj3);
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 if (obj4) {
25665 arg5 = (int) SWIG_AsInt(obj4);
25666 if (PyErr_Occurred()) SWIG_fail;
25667 }
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
25671
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 {
25676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25677 }
25678 return resultobj;
25679 fail:
25680 return NULL;
25681 }
25682
25683
25684 static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj;
25686 wxWindow *arg1 = (wxWindow *) 0 ;
25687 wxPoint *arg2 = 0 ;
25688 bool result;
25689 wxPoint temp2 ;
25690 PyObject * obj0 = 0 ;
25691 PyObject * obj1 = 0 ;
25692 char *kwnames[] = {
25693 (char *) "self",(char *) "pt", NULL
25694 };
25695
25696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
25697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25699 {
25700 arg2 = &temp2;
25701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25702 }
25703 {
25704 PyThreadState* __tstate = wxPyBeginAllowThreads();
25705 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
25706
25707 wxPyEndAllowThreads(__tstate);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 {
25711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25712 }
25713 return resultobj;
25714 fail:
25715 return NULL;
25716 }
25717
25718
25719 static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25720 PyObject *resultobj;
25721 wxWindow *arg1 = (wxWindow *) 0 ;
25722 wxRect *arg2 = 0 ;
25723 bool result;
25724 wxRect temp2 ;
25725 PyObject * obj0 = 0 ;
25726 PyObject * obj1 = 0 ;
25727 char *kwnames[] = {
25728 (char *) "self",(char *) "rect", NULL
25729 };
25730
25731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
25732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25734 {
25735 arg2 = &temp2;
25736 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25737 }
25738 {
25739 PyThreadState* __tstate = wxPyBeginAllowThreads();
25740 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
25741
25742 wxPyEndAllowThreads(__tstate);
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 {
25746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25747 }
25748 return resultobj;
25749 fail:
25750 return NULL;
25751 }
25752
25753
25754 static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
25755 PyObject *resultobj;
25756 wxWindow *arg1 = (wxWindow *) 0 ;
25757 wxVisualAttributes result;
25758 PyObject * obj0 = 0 ;
25759 char *kwnames[] = {
25760 (char *) "self", NULL
25761 };
25762
25763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
25764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
25769
25770 wxPyEndAllowThreads(__tstate);
25771 if (PyErr_Occurred()) SWIG_fail;
25772 }
25773 {
25774 wxVisualAttributes * resultptr;
25775 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
25776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
25777 }
25778 return resultobj;
25779 fail:
25780 return NULL;
25781 }
25782
25783
25784 static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
25785 PyObject *resultobj;
25786 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
25787 wxVisualAttributes result;
25788 PyObject * obj0 = 0 ;
25789 char *kwnames[] = {
25790 (char *) "variant", NULL
25791 };
25792
25793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
25794 if (obj0) {
25795 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
25796 if (PyErr_Occurred()) SWIG_fail;
25797 }
25798 {
25799 PyThreadState* __tstate = wxPyBeginAllowThreads();
25800 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
25801
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 {
25806 wxVisualAttributes * resultptr;
25807 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
25808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
25809 }
25810 return resultobj;
25811 fail:
25812 return NULL;
25813 }
25814
25815
25816 static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25817 PyObject *resultobj;
25818 wxWindow *arg1 = (wxWindow *) 0 ;
25819 wxColour *arg2 = 0 ;
25820 bool result;
25821 wxColour temp2 ;
25822 PyObject * obj0 = 0 ;
25823 PyObject * obj1 = 0 ;
25824 char *kwnames[] = {
25825 (char *) "self",(char *) "colour", NULL
25826 };
25827
25828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25831 {
25832 arg2 = &temp2;
25833 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25834 }
25835 {
25836 PyThreadState* __tstate = wxPyBeginAllowThreads();
25837 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
25838
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 {
25843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25844 }
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxWindow *arg1 = (wxWindow *) 0 ;
25854 wxColour *arg2 = 0 ;
25855 wxColour temp2 ;
25856 PyObject * obj0 = 0 ;
25857 PyObject * obj1 = 0 ;
25858 char *kwnames[] = {
25859 (char *) "self",(char *) "colour", NULL
25860 };
25861
25862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25865 {
25866 arg2 = &temp2;
25867 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25868 }
25869 {
25870 PyThreadState* __tstate = wxPyBeginAllowThreads();
25871 (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2);
25872
25873 wxPyEndAllowThreads(__tstate);
25874 if (PyErr_Occurred()) SWIG_fail;
25875 }
25876 Py_INCREF(Py_None); resultobj = Py_None;
25877 return resultobj;
25878 fail:
25879 return NULL;
25880 }
25881
25882
25883 static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj;
25885 wxWindow *arg1 = (wxWindow *) 0 ;
25886 wxColour *arg2 = 0 ;
25887 bool result;
25888 wxColour temp2 ;
25889 PyObject * obj0 = 0 ;
25890 PyObject * obj1 = 0 ;
25891 char *kwnames[] = {
25892 (char *) "self",(char *) "colour", NULL
25893 };
25894
25895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
25896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25898 {
25899 arg2 = &temp2;
25900 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25901 }
25902 {
25903 PyThreadState* __tstate = wxPyBeginAllowThreads();
25904 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
25905
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 {
25910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25911 }
25912 return resultobj;
25913 fail:
25914 return NULL;
25915 }
25916
25917
25918 static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25919 PyObject *resultobj;
25920 wxWindow *arg1 = (wxWindow *) 0 ;
25921 wxColour *arg2 = 0 ;
25922 wxColour temp2 ;
25923 PyObject * obj0 = 0 ;
25924 PyObject * obj1 = 0 ;
25925 char *kwnames[] = {
25926 (char *) "self",(char *) "colour", NULL
25927 };
25928
25929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail;
25930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25932 {
25933 arg2 = &temp2;
25934 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25935 }
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
25938 (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2);
25939
25940 wxPyEndAllowThreads(__tstate);
25941 if (PyErr_Occurred()) SWIG_fail;
25942 }
25943 Py_INCREF(Py_None); resultobj = Py_None;
25944 return resultobj;
25945 fail:
25946 return NULL;
25947 }
25948
25949
25950 static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25951 PyObject *resultobj;
25952 wxWindow *arg1 = (wxWindow *) 0 ;
25953 wxColour result;
25954 PyObject * obj0 = 0 ;
25955 char *kwnames[] = {
25956 (char *) "self", NULL
25957 };
25958
25959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
25960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25962 {
25963 PyThreadState* __tstate = wxPyBeginAllowThreads();
25964 result = ((wxWindow const *)arg1)->GetBackgroundColour();
25965
25966 wxPyEndAllowThreads(__tstate);
25967 if (PyErr_Occurred()) SWIG_fail;
25968 }
25969 {
25970 wxColour * resultptr;
25971 resultptr = new wxColour((wxColour &) result);
25972 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25973 }
25974 return resultobj;
25975 fail:
25976 return NULL;
25977 }
25978
25979
25980 static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25981 PyObject *resultobj;
25982 wxWindow *arg1 = (wxWindow *) 0 ;
25983 wxColour result;
25984 PyObject * obj0 = 0 ;
25985 char *kwnames[] = {
25986 (char *) "self", NULL
25987 };
25988
25989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
25990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25992 {
25993 PyThreadState* __tstate = wxPyBeginAllowThreads();
25994 result = ((wxWindow const *)arg1)->GetForegroundColour();
25995
25996 wxPyEndAllowThreads(__tstate);
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
25999 {
26000 wxColour * resultptr;
26001 resultptr = new wxColour((wxColour &) result);
26002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26003 }
26004 return resultobj;
26005 fail:
26006 return NULL;
26007 }
26008
26009
26010 static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26011 PyObject *resultobj;
26012 wxWindow *arg1 = (wxWindow *) 0 ;
26013 wxCursor *arg2 = 0 ;
26014 bool result;
26015 PyObject * obj0 = 0 ;
26016 PyObject * obj1 = 0 ;
26017 char *kwnames[] = {
26018 (char *) "self",(char *) "cursor", NULL
26019 };
26020
26021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26025 SWIG_POINTER_EXCEPTION | 0)) == -1)
26026 SWIG_fail;
26027 if (arg2 == NULL) {
26028 PyErr_SetString(PyExc_TypeError,"null reference");
26029 SWIG_fail;
26030 }
26031 {
26032 PyThreadState* __tstate = wxPyBeginAllowThreads();
26033 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26034
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 {
26039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26040 }
26041 return resultobj;
26042 fail:
26043 return NULL;
26044 }
26045
26046
26047 static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26048 PyObject *resultobj;
26049 wxWindow *arg1 = (wxWindow *) 0 ;
26050 wxCursor *result;
26051 PyObject * obj0 = 0 ;
26052 char *kwnames[] = {
26053 (char *) "self", NULL
26054 };
26055
26056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26059 {
26060 PyThreadState* __tstate = wxPyBeginAllowThreads();
26061 {
26062 wxCursor &_result_ref = (arg1)->GetCursor();
26063 result = (wxCursor *) &_result_ref;
26064 }
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 {
26070 wxCursor* resultptr = new wxCursor(*result);
26071 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
26072 }
26073 return resultobj;
26074 fail:
26075 return NULL;
26076 }
26077
26078
26079 static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26080 PyObject *resultobj;
26081 wxWindow *arg1 = (wxWindow *) 0 ;
26082 wxFont *arg2 = 0 ;
26083 bool result;
26084 PyObject * obj0 = 0 ;
26085 PyObject * obj1 = 0 ;
26086 char *kwnames[] = {
26087 (char *) "self",(char *) "font", NULL
26088 };
26089
26090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26093 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26094 SWIG_POINTER_EXCEPTION | 0)) == -1)
26095 SWIG_fail;
26096 if (arg2 == NULL) {
26097 PyErr_SetString(PyExc_TypeError,"null reference");
26098 SWIG_fail;
26099 }
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26103
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 {
26108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26109 }
26110 return resultobj;
26111 fail:
26112 return NULL;
26113 }
26114
26115
26116 static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26117 PyObject *resultobj;
26118 wxWindow *arg1 = (wxWindow *) 0 ;
26119 wxFont *arg2 = 0 ;
26120 PyObject * obj0 = 0 ;
26121 PyObject * obj1 = 0 ;
26122 char *kwnames[] = {
26123 (char *) "self",(char *) "font", NULL
26124 };
26125
26126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail;
26127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26130 SWIG_POINTER_EXCEPTION | 0)) == -1)
26131 SWIG_fail;
26132 if (arg2 == NULL) {
26133 PyErr_SetString(PyExc_TypeError,"null reference");
26134 SWIG_fail;
26135 }
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 (arg1)->SetDefaultFont((wxFont const &)*arg2);
26139
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 Py_INCREF(Py_None); resultobj = Py_None;
26144 return resultobj;
26145 fail:
26146 return NULL;
26147 }
26148
26149
26150 static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26151 PyObject *resultobj;
26152 wxWindow *arg1 = (wxWindow *) 0 ;
26153 wxFont *result;
26154 PyObject * obj0 = 0 ;
26155 char *kwnames[] = {
26156 (char *) "self", NULL
26157 };
26158
26159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 {
26165 wxFont &_result_ref = (arg1)->GetFont();
26166 result = (wxFont *) &_result_ref;
26167 }
26168
26169 wxPyEndAllowThreads(__tstate);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 {
26173 wxFont* resultptr = new wxFont(*result);
26174 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
26175 }
26176 return resultobj;
26177 fail:
26178 return NULL;
26179 }
26180
26181
26182 static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26183 PyObject *resultobj;
26184 wxWindow *arg1 = (wxWindow *) 0 ;
26185 wxCaret *arg2 = (wxCaret *) 0 ;
26186 PyObject * obj0 = 0 ;
26187 PyObject * obj1 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "self",(char *) "caret", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
26193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
26196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 (arg1)->SetCaret(arg2);
26200
26201 wxPyEndAllowThreads(__tstate);
26202 if (PyErr_Occurred()) SWIG_fail;
26203 }
26204 Py_INCREF(Py_None); resultobj = Py_None;
26205 return resultobj;
26206 fail:
26207 return NULL;
26208 }
26209
26210
26211 static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26212 PyObject *resultobj;
26213 wxWindow *arg1 = (wxWindow *) 0 ;
26214 wxCaret *result;
26215 PyObject * obj0 = 0 ;
26216 char *kwnames[] = {
26217 (char *) "self", NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26226
26227 wxPyEndAllowThreads(__tstate);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj;
26239 wxWindow *arg1 = (wxWindow *) 0 ;
26240 int result;
26241 PyObject * obj0 = 0 ;
26242 char *kwnames[] = {
26243 (char *) "self", NULL
26244 };
26245
26246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26249 {
26250 PyThreadState* __tstate = wxPyBeginAllowThreads();
26251 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26252
26253 wxPyEndAllowThreads(__tstate);
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_FromInt((int)result);
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26264 PyObject *resultobj;
26265 wxWindow *arg1 = (wxWindow *) 0 ;
26266 int result;
26267 PyObject * obj0 = 0 ;
26268 char *kwnames[] = {
26269 (char *) "self", NULL
26270 };
26271
26272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26275 {
26276 PyThreadState* __tstate = wxPyBeginAllowThreads();
26277 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26278
26279 wxPyEndAllowThreads(__tstate);
26280 if (PyErr_Occurred()) SWIG_fail;
26281 }
26282 resultobj = SWIG_FromInt((int)result);
26283 return resultobj;
26284 fail:
26285 return NULL;
26286 }
26287
26288
26289 static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26290 PyObject *resultobj;
26291 wxWindow *arg1 = (wxWindow *) 0 ;
26292 wxString *arg2 = 0 ;
26293 int *arg3 = (int *) 0 ;
26294 int *arg4 = (int *) 0 ;
26295 bool temp2 = False ;
26296 int temp3 ;
26297 int temp4 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char *kwnames[] = {
26301 (char *) "self",(char *) "string", NULL
26302 };
26303
26304 arg3 = &temp3;
26305 arg4 = &temp4;
26306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26309 {
26310 arg2 = wxString_in_helper(obj1);
26311 if (arg2 == NULL) SWIG_fail;
26312 temp2 = True;
26313 }
26314 {
26315 PyThreadState* __tstate = wxPyBeginAllowThreads();
26316 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26317
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 Py_INCREF(Py_None); resultobj = Py_None;
26322 {
26323 PyObject *o = PyInt_FromLong((long) (*arg3));
26324 resultobj = t_output_helper(resultobj,o);
26325 }
26326 {
26327 PyObject *o = PyInt_FromLong((long) (*arg4));
26328 resultobj = t_output_helper(resultobj,o);
26329 }
26330 {
26331 if (temp2)
26332 delete arg2;
26333 }
26334 return resultobj;
26335 fail:
26336 {
26337 if (temp2)
26338 delete arg2;
26339 }
26340 return NULL;
26341 }
26342
26343
26344 static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26345 PyObject *resultobj;
26346 wxWindow *arg1 = (wxWindow *) 0 ;
26347 wxString *arg2 = 0 ;
26348 int *arg3 = (int *) 0 ;
26349 int *arg4 = (int *) 0 ;
26350 int *arg5 = (int *) 0 ;
26351 int *arg6 = (int *) 0 ;
26352 wxFont *arg7 = (wxFont *) NULL ;
26353 bool temp2 = False ;
26354 int temp3 ;
26355 int temp4 ;
26356 int temp5 ;
26357 int temp6 ;
26358 PyObject * obj0 = 0 ;
26359 PyObject * obj1 = 0 ;
26360 PyObject * obj2 = 0 ;
26361 char *kwnames[] = {
26362 (char *) "self",(char *) "string",(char *) "font", NULL
26363 };
26364
26365 arg3 = &temp3;
26366 arg4 = &temp4;
26367 arg5 = &temp5;
26368 arg6 = &temp6;
26369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26372 {
26373 arg2 = wxString_in_helper(obj1);
26374 if (arg2 == NULL) SWIG_fail;
26375 temp2 = True;
26376 }
26377 if (obj2) {
26378 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26380 }
26381 {
26382 PyThreadState* __tstate = wxPyBeginAllowThreads();
26383 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26384
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 Py_INCREF(Py_None); resultobj = Py_None;
26389 {
26390 PyObject *o = PyInt_FromLong((long) (*arg3));
26391 resultobj = t_output_helper(resultobj,o);
26392 }
26393 {
26394 PyObject *o = PyInt_FromLong((long) (*arg4));
26395 resultobj = t_output_helper(resultobj,o);
26396 }
26397 {
26398 PyObject *o = PyInt_FromLong((long) (*arg5));
26399 resultobj = t_output_helper(resultobj,o);
26400 }
26401 {
26402 PyObject *o = PyInt_FromLong((long) (*arg6));
26403 resultobj = t_output_helper(resultobj,o);
26404 }
26405 {
26406 if (temp2)
26407 delete arg2;
26408 }
26409 return resultobj;
26410 fail:
26411 {
26412 if (temp2)
26413 delete arg2;
26414 }
26415 return NULL;
26416 }
26417
26418
26419 static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26420 PyObject *resultobj;
26421 wxWindow *arg1 = (wxWindow *) 0 ;
26422 int *arg2 = (int *) 0 ;
26423 int *arg3 = (int *) 0 ;
26424 int temp2 ;
26425 int temp3 ;
26426 PyObject * obj0 = 0 ;
26427 PyObject * obj1 = 0 ;
26428 PyObject * obj2 = 0 ;
26429 char *kwnames[] = {
26430 (char *) "self",(char *) "x",(char *) "y", NULL
26431 };
26432
26433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26436 {
26437 temp2 = PyInt_AsLong(obj1);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 arg2 = &temp2;
26440 }
26441 {
26442 temp3 = PyInt_AsLong(obj2);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 arg3 = &temp3;
26445 }
26446 {
26447 PyThreadState* __tstate = wxPyBeginAllowThreads();
26448 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
26449
26450 wxPyEndAllowThreads(__tstate);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 }
26453 Py_INCREF(Py_None); resultobj = Py_None;
26454 {
26455 PyObject *o = PyInt_FromLong((long) (*arg2));
26456 resultobj = t_output_helper(resultobj,o);
26457 }
26458 {
26459 PyObject *o = PyInt_FromLong((long) (*arg3));
26460 resultobj = t_output_helper(resultobj,o);
26461 }
26462 return resultobj;
26463 fail:
26464 return NULL;
26465 }
26466
26467
26468 static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26469 PyObject *resultobj;
26470 wxWindow *arg1 = (wxWindow *) 0 ;
26471 int *arg2 = (int *) 0 ;
26472 int *arg3 = (int *) 0 ;
26473 int temp2 ;
26474 int temp3 ;
26475 PyObject * obj0 = 0 ;
26476 PyObject * obj1 = 0 ;
26477 PyObject * obj2 = 0 ;
26478 char *kwnames[] = {
26479 (char *) "self",(char *) "x",(char *) "y", NULL
26480 };
26481
26482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26485 {
26486 temp2 = PyInt_AsLong(obj1);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 arg2 = &temp2;
26489 }
26490 {
26491 temp3 = PyInt_AsLong(obj2);
26492 if (PyErr_Occurred()) SWIG_fail;
26493 arg3 = &temp3;
26494 }
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
26498
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 Py_INCREF(Py_None); resultobj = Py_None;
26503 {
26504 PyObject *o = PyInt_FromLong((long) (*arg2));
26505 resultobj = t_output_helper(resultobj,o);
26506 }
26507 {
26508 PyObject *o = PyInt_FromLong((long) (*arg3));
26509 resultobj = t_output_helper(resultobj,o);
26510 }
26511 return resultobj;
26512 fail:
26513 return NULL;
26514 }
26515
26516
26517 static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
26518 PyObject *resultobj;
26519 wxWindow *arg1 = (wxWindow *) 0 ;
26520 wxPoint *arg2 = 0 ;
26521 wxPoint result;
26522 wxPoint temp2 ;
26523 PyObject * obj0 = 0 ;
26524 PyObject * obj1 = 0 ;
26525 char *kwnames[] = {
26526 (char *) "self",(char *) "pt", NULL
26527 };
26528
26529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
26530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26532 {
26533 arg2 = &temp2;
26534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26535 }
26536 {
26537 PyThreadState* __tstate = wxPyBeginAllowThreads();
26538 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
26539
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
26543 {
26544 wxPoint * resultptr;
26545 resultptr = new wxPoint((wxPoint &) result);
26546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26547 }
26548 return resultobj;
26549 fail:
26550 return NULL;
26551 }
26552
26553
26554 static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
26555 PyObject *resultobj;
26556 wxWindow *arg1 = (wxWindow *) 0 ;
26557 wxPoint *arg2 = 0 ;
26558 wxPoint result;
26559 wxPoint temp2 ;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 char *kwnames[] = {
26563 (char *) "self",(char *) "pt", NULL
26564 };
26565
26566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
26567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26569 {
26570 arg2 = &temp2;
26571 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26572 }
26573 {
26574 PyThreadState* __tstate = wxPyBeginAllowThreads();
26575 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
26576
26577 wxPyEndAllowThreads(__tstate);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 }
26580 {
26581 wxPoint * resultptr;
26582 resultptr = new wxPoint((wxPoint &) result);
26583 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26584 }
26585 return resultobj;
26586 fail:
26587 return NULL;
26588 }
26589
26590
26591 static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26592 PyObject *resultobj;
26593 wxWindow *arg1 = (wxWindow *) 0 ;
26594 int arg2 ;
26595 int arg3 ;
26596 int result;
26597 PyObject * obj0 = 0 ;
26598 PyObject * obj1 = 0 ;
26599 PyObject * obj2 = 0 ;
26600 char *kwnames[] = {
26601 (char *) "self",(char *) "x",(char *) "y", NULL
26602 };
26603
26604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26607 arg2 = (int) SWIG_AsInt(obj1);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 arg3 = (int) SWIG_AsInt(obj2);
26610 if (PyErr_Occurred()) SWIG_fail;
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
26614
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_FromInt((int)result);
26619 return resultobj;
26620 fail:
26621 return NULL;
26622 }
26623
26624
26625 static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj;
26627 wxWindow *arg1 = (wxWindow *) 0 ;
26628 wxPoint *arg2 = 0 ;
26629 int result;
26630 wxPoint temp2 ;
26631 PyObject * obj0 = 0 ;
26632 PyObject * obj1 = 0 ;
26633 char *kwnames[] = {
26634 (char *) "self",(char *) "pt", NULL
26635 };
26636
26637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
26638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26640 {
26641 arg2 = &temp2;
26642 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26643 }
26644 {
26645 PyThreadState* __tstate = wxPyBeginAllowThreads();
26646 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
26647
26648 wxPyEndAllowThreads(__tstate);
26649 if (PyErr_Occurred()) SWIG_fail;
26650 }
26651 resultobj = SWIG_FromInt((int)result);
26652 return resultobj;
26653 fail:
26654 return NULL;
26655 }
26656
26657
26658 static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) {
26659 PyObject *resultobj;
26660 wxWindow *arg1 = (wxWindow *) 0 ;
26661 long arg2 ;
26662 int result;
26663 PyObject * obj0 = 0 ;
26664 PyObject * obj1 = 0 ;
26665
26666 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
26667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26669 arg2 = (long) SWIG_AsLong(obj1);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 {
26672 PyThreadState* __tstate = wxPyBeginAllowThreads();
26673 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
26674
26675 wxPyEndAllowThreads(__tstate);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
26678 resultobj = SWIG_FromInt((int)result);
26679 return resultobj;
26680 fail:
26681 return NULL;
26682 }
26683
26684
26685 static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) {
26686 PyObject *resultobj;
26687 wxWindow *arg1 = (wxWindow *) 0 ;
26688 int result;
26689 PyObject * obj0 = 0 ;
26690
26691 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
26692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 result = (int)((wxWindow const *)arg1)->GetBorder();
26697
26698 wxPyEndAllowThreads(__tstate);
26699 if (PyErr_Occurred()) SWIG_fail;
26700 }
26701 resultobj = SWIG_FromInt((int)result);
26702 return resultobj;
26703 fail:
26704 return NULL;
26705 }
26706
26707
26708 static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
26709 int argc;
26710 PyObject *argv[3];
26711 int ii;
26712
26713 argc = PyObject_Length(args);
26714 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
26715 argv[ii] = PyTuple_GetItem(args,ii);
26716 }
26717 if (argc == 1) {
26718 int _v;
26719 {
26720 void *ptr;
26721 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26722 _v = 0;
26723 PyErr_Clear();
26724 } else {
26725 _v = 1;
26726 }
26727 }
26728 if (_v) {
26729 return _wrap_Window_GetBorder__SWIG_1(self,args);
26730 }
26731 }
26732 if (argc == 2) {
26733 int _v;
26734 {
26735 void *ptr;
26736 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26737 _v = 0;
26738 PyErr_Clear();
26739 } else {
26740 _v = 1;
26741 }
26742 }
26743 if (_v) {
26744 _v = SWIG_CheckLong(argv[1]);
26745 if (_v) {
26746 return _wrap_Window_GetBorder__SWIG_0(self,args);
26747 }
26748 }
26749 }
26750
26751 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
26752 return NULL;
26753 }
26754
26755
26756 static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
26757 PyObject *resultobj;
26758 wxWindow *arg1 = (wxWindow *) 0 ;
26759 long arg2 = (long) wxUPDATE_UI_NONE ;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 char *kwnames[] = {
26763 (char *) "self",(char *) "flags", NULL
26764 };
26765
26766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
26767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26769 if (obj1) {
26770 arg2 = (long) SWIG_AsLong(obj1);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 {
26774 PyThreadState* __tstate = wxPyBeginAllowThreads();
26775 (arg1)->UpdateWindowUI(arg2);
26776
26777 wxPyEndAllowThreads(__tstate);
26778 if (PyErr_Occurred()) SWIG_fail;
26779 }
26780 Py_INCREF(Py_None); resultobj = Py_None;
26781 return resultobj;
26782 fail:
26783 return NULL;
26784 }
26785
26786
26787 static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26788 PyObject *resultobj;
26789 wxWindow *arg1 = (wxWindow *) 0 ;
26790 wxMenu *arg2 = (wxMenu *) 0 ;
26791 int arg3 ;
26792 int arg4 ;
26793 bool result;
26794 PyObject * obj0 = 0 ;
26795 PyObject * obj1 = 0 ;
26796 PyObject * obj2 = 0 ;
26797 PyObject * obj3 = 0 ;
26798 char *kwnames[] = {
26799 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
26800 };
26801
26802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
26806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26807 arg3 = (int) SWIG_AsInt(obj2);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 arg4 = (int) SWIG_AsInt(obj3);
26810 if (PyErr_Occurred()) SWIG_fail;
26811 {
26812 PyThreadState* __tstate = wxPyBeginAllowThreads();
26813 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
26814
26815 wxPyEndAllowThreads(__tstate);
26816 if (PyErr_Occurred()) SWIG_fail;
26817 }
26818 {
26819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26820 }
26821 return resultobj;
26822 fail:
26823 return NULL;
26824 }
26825
26826
26827 static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
26828 PyObject *resultobj;
26829 wxWindow *arg1 = (wxWindow *) 0 ;
26830 wxMenu *arg2 = (wxMenu *) 0 ;
26831 wxPoint *arg3 = 0 ;
26832 bool result;
26833 wxPoint temp3 ;
26834 PyObject * obj0 = 0 ;
26835 PyObject * obj1 = 0 ;
26836 PyObject * obj2 = 0 ;
26837 char *kwnames[] = {
26838 (char *) "self",(char *) "menu",(char *) "pos", NULL
26839 };
26840
26841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
26842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26844 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
26845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26846 {
26847 arg3 = &temp3;
26848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26849 }
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 {
26858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26859 }
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxWindow *arg1 = (wxWindow *) 0 ;
26869 long result;
26870 PyObject * obj0 = 0 ;
26871 char *kwnames[] = {
26872 (char *) "self", NULL
26873 };
26874
26875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
26876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26878 {
26879 PyThreadState* __tstate = wxPyBeginAllowThreads();
26880 result = (long)wxWindow_GetHandle(arg1);
26881
26882 wxPyEndAllowThreads(__tstate);
26883 if (PyErr_Occurred()) SWIG_fail;
26884 }
26885 resultobj = SWIG_FromLong((long)result);
26886 return resultobj;
26887 fail:
26888 return NULL;
26889 }
26890
26891
26892 static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
26893 PyObject *resultobj;
26894 wxWindow *arg1 = (wxWindow *) 0 ;
26895 int arg2 ;
26896 bool result;
26897 PyObject * obj0 = 0 ;
26898 PyObject * obj1 = 0 ;
26899 char *kwnames[] = {
26900 (char *) "self",(char *) "orient", NULL
26901 };
26902
26903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
26904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26906 arg2 = (int) SWIG_AsInt(obj1);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 {
26909 PyThreadState* __tstate = wxPyBeginAllowThreads();
26910 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
26911
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 {
26916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26917 }
26918 return resultobj;
26919 fail:
26920 return NULL;
26921 }
26922
26923
26924 static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
26925 PyObject *resultobj;
26926 wxWindow *arg1 = (wxWindow *) 0 ;
26927 int arg2 ;
26928 int arg3 ;
26929 int arg4 ;
26930 int arg5 ;
26931 bool arg6 = (bool) True ;
26932 PyObject * obj0 = 0 ;
26933 PyObject * obj1 = 0 ;
26934 PyObject * obj2 = 0 ;
26935 PyObject * obj3 = 0 ;
26936 PyObject * obj4 = 0 ;
26937 PyObject * obj5 = 0 ;
26938 char *kwnames[] = {
26939 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL
26940 };
26941
26942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26945 arg2 = (int) SWIG_AsInt(obj1);
26946 if (PyErr_Occurred()) SWIG_fail;
26947 arg3 = (int) SWIG_AsInt(obj2);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 arg4 = (int) SWIG_AsInt(obj3);
26950 if (PyErr_Occurred()) SWIG_fail;
26951 arg5 = (int) SWIG_AsInt(obj4);
26952 if (PyErr_Occurred()) SWIG_fail;
26953 if (obj5) {
26954 arg6 = (bool) SWIG_AsBool(obj5);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 {
26958 PyThreadState* __tstate = wxPyBeginAllowThreads();
26959 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
26960
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 Py_INCREF(Py_None); resultobj = Py_None;
26965 return resultobj;
26966 fail:
26967 return NULL;
26968 }
26969
26970
26971 static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
26972 PyObject *resultobj;
26973 wxWindow *arg1 = (wxWindow *) 0 ;
26974 int arg2 ;
26975 int arg3 ;
26976 bool arg4 = (bool) True ;
26977 PyObject * obj0 = 0 ;
26978 PyObject * obj1 = 0 ;
26979 PyObject * obj2 = 0 ;
26980 PyObject * obj3 = 0 ;
26981 char *kwnames[] = {
26982 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
26983 };
26984
26985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26988 arg2 = (int) SWIG_AsInt(obj1);
26989 if (PyErr_Occurred()) SWIG_fail;
26990 arg3 = (int) SWIG_AsInt(obj2);
26991 if (PyErr_Occurred()) SWIG_fail;
26992 if (obj3) {
26993 arg4 = (bool) SWIG_AsBool(obj3);
26994 if (PyErr_Occurred()) SWIG_fail;
26995 }
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 (arg1)->SetScrollPos(arg2,arg3,arg4);
26999
27000 wxPyEndAllowThreads(__tstate);
27001 if (PyErr_Occurred()) SWIG_fail;
27002 }
27003 Py_INCREF(Py_None); resultobj = Py_None;
27004 return resultobj;
27005 fail:
27006 return NULL;
27007 }
27008
27009
27010 static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27011 PyObject *resultobj;
27012 wxWindow *arg1 = (wxWindow *) 0 ;
27013 int arg2 ;
27014 int result;
27015 PyObject * obj0 = 0 ;
27016 PyObject * obj1 = 0 ;
27017 char *kwnames[] = {
27018 (char *) "self",(char *) "orientation", NULL
27019 };
27020
27021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27024 arg2 = (int) SWIG_AsInt(obj1);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 {
27027 PyThreadState* __tstate = wxPyBeginAllowThreads();
27028 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27029
27030 wxPyEndAllowThreads(__tstate);
27031 if (PyErr_Occurred()) SWIG_fail;
27032 }
27033 resultobj = SWIG_FromInt((int)result);
27034 return resultobj;
27035 fail:
27036 return NULL;
27037 }
27038
27039
27040 static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
27041 PyObject *resultobj;
27042 wxWindow *arg1 = (wxWindow *) 0 ;
27043 int arg2 ;
27044 int result;
27045 PyObject * obj0 = 0 ;
27046 PyObject * obj1 = 0 ;
27047 char *kwnames[] = {
27048 (char *) "self",(char *) "orientation", NULL
27049 };
27050
27051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27054 arg2 = (int) SWIG_AsInt(obj1);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 {
27057 PyThreadState* __tstate = wxPyBeginAllowThreads();
27058 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27059
27060 wxPyEndAllowThreads(__tstate);
27061 if (PyErr_Occurred()) SWIG_fail;
27062 }
27063 resultobj = SWIG_FromInt((int)result);
27064 return resultobj;
27065 fail:
27066 return NULL;
27067 }
27068
27069
27070 static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
27071 PyObject *resultobj;
27072 wxWindow *arg1 = (wxWindow *) 0 ;
27073 int arg2 ;
27074 int result;
27075 PyObject * obj0 = 0 ;
27076 PyObject * obj1 = 0 ;
27077 char *kwnames[] = {
27078 (char *) "self",(char *) "orientation", NULL
27079 };
27080
27081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27084 arg2 = (int) SWIG_AsInt(obj1);
27085 if (PyErr_Occurred()) SWIG_fail;
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27089
27090 wxPyEndAllowThreads(__tstate);
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 resultobj = SWIG_FromInt((int)result);
27094 return resultobj;
27095 fail:
27096 return NULL;
27097 }
27098
27099
27100 static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27101 PyObject *resultobj;
27102 wxWindow *arg1 = (wxWindow *) 0 ;
27103 int arg2 ;
27104 int arg3 ;
27105 wxRect *arg4 = (wxRect *) NULL ;
27106 PyObject * obj0 = 0 ;
27107 PyObject * obj1 = 0 ;
27108 PyObject * obj2 = 0 ;
27109 PyObject * obj3 = 0 ;
27110 char *kwnames[] = {
27111 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27112 };
27113
27114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27117 arg2 = (int) SWIG_AsInt(obj1);
27118 if (PyErr_Occurred()) SWIG_fail;
27119 arg3 = (int) SWIG_AsInt(obj2);
27120 if (PyErr_Occurred()) SWIG_fail;
27121 if (obj3) {
27122 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27124 }
27125 {
27126 PyThreadState* __tstate = wxPyBeginAllowThreads();
27127 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27128
27129 wxPyEndAllowThreads(__tstate);
27130 if (PyErr_Occurred()) SWIG_fail;
27131 }
27132 Py_INCREF(Py_None); resultobj = Py_None;
27133 return resultobj;
27134 fail:
27135 return NULL;
27136 }
27137
27138
27139 static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
27140 PyObject *resultobj;
27141 wxWindow *arg1 = (wxWindow *) 0 ;
27142 int arg2 ;
27143 bool result;
27144 PyObject * obj0 = 0 ;
27145 PyObject * obj1 = 0 ;
27146 char *kwnames[] = {
27147 (char *) "self",(char *) "lines", NULL
27148 };
27149
27150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27153 arg2 = (int) SWIG_AsInt(obj1);
27154 if (PyErr_Occurred()) SWIG_fail;
27155 {
27156 PyThreadState* __tstate = wxPyBeginAllowThreads();
27157 result = (bool)(arg1)->ScrollLines(arg2);
27158
27159 wxPyEndAllowThreads(__tstate);
27160 if (PyErr_Occurred()) SWIG_fail;
27161 }
27162 {
27163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27164 }
27165 return resultobj;
27166 fail:
27167 return NULL;
27168 }
27169
27170
27171 static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
27172 PyObject *resultobj;
27173 wxWindow *arg1 = (wxWindow *) 0 ;
27174 int arg2 ;
27175 bool result;
27176 PyObject * obj0 = 0 ;
27177 PyObject * obj1 = 0 ;
27178 char *kwnames[] = {
27179 (char *) "self",(char *) "pages", NULL
27180 };
27181
27182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27185 arg2 = (int) SWIG_AsInt(obj1);
27186 if (PyErr_Occurred()) SWIG_fail;
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 result = (bool)(arg1)->ScrollPages(arg2);
27190
27191 wxPyEndAllowThreads(__tstate);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 }
27194 {
27195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27196 }
27197 return resultobj;
27198 fail:
27199 return NULL;
27200 }
27201
27202
27203 static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27204 PyObject *resultobj;
27205 wxWindow *arg1 = (wxWindow *) 0 ;
27206 bool result;
27207 PyObject * obj0 = 0 ;
27208 char *kwnames[] = {
27209 (char *) "self", NULL
27210 };
27211
27212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27215 {
27216 PyThreadState* __tstate = wxPyBeginAllowThreads();
27217 result = (bool)(arg1)->LineUp();
27218
27219 wxPyEndAllowThreads(__tstate);
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
27222 {
27223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27224 }
27225 return resultobj;
27226 fail:
27227 return NULL;
27228 }
27229
27230
27231 static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27232 PyObject *resultobj;
27233 wxWindow *arg1 = (wxWindow *) 0 ;
27234 bool result;
27235 PyObject * obj0 = 0 ;
27236 char *kwnames[] = {
27237 (char *) "self", NULL
27238 };
27239
27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27243 {
27244 PyThreadState* __tstate = wxPyBeginAllowThreads();
27245 result = (bool)(arg1)->LineDown();
27246
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 {
27251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27252 }
27253 return resultobj;
27254 fail:
27255 return NULL;
27256 }
27257
27258
27259 static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27260 PyObject *resultobj;
27261 wxWindow *arg1 = (wxWindow *) 0 ;
27262 bool result;
27263 PyObject * obj0 = 0 ;
27264 char *kwnames[] = {
27265 (char *) "self", NULL
27266 };
27267
27268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27271 {
27272 PyThreadState* __tstate = wxPyBeginAllowThreads();
27273 result = (bool)(arg1)->PageUp();
27274
27275 wxPyEndAllowThreads(__tstate);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 {
27279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27280 }
27281 return resultobj;
27282 fail:
27283 return NULL;
27284 }
27285
27286
27287 static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27288 PyObject *resultobj;
27289 wxWindow *arg1 = (wxWindow *) 0 ;
27290 bool result;
27291 PyObject * obj0 = 0 ;
27292 char *kwnames[] = {
27293 (char *) "self", NULL
27294 };
27295
27296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
27301 result = (bool)(arg1)->PageDown();
27302
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 {
27307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27308 }
27309 return resultobj;
27310 fail:
27311 return NULL;
27312 }
27313
27314
27315 static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27316 PyObject *resultobj;
27317 wxWindow *arg1 = (wxWindow *) 0 ;
27318 wxString *arg2 = 0 ;
27319 bool temp2 = False ;
27320 PyObject * obj0 = 0 ;
27321 PyObject * obj1 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self",(char *) "text", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 {
27330 arg2 = wxString_in_helper(obj1);
27331 if (arg2 == NULL) SWIG_fail;
27332 temp2 = True;
27333 }
27334 {
27335 PyThreadState* __tstate = wxPyBeginAllowThreads();
27336 (arg1)->SetHelpText((wxString const &)*arg2);
27337
27338 wxPyEndAllowThreads(__tstate);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 }
27341 Py_INCREF(Py_None); resultobj = Py_None;
27342 {
27343 if (temp2)
27344 delete arg2;
27345 }
27346 return resultobj;
27347 fail:
27348 {
27349 if (temp2)
27350 delete arg2;
27351 }
27352 return NULL;
27353 }
27354
27355
27356 static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
27357 PyObject *resultobj;
27358 wxWindow *arg1 = (wxWindow *) 0 ;
27359 wxString *arg2 = 0 ;
27360 bool temp2 = False ;
27361 PyObject * obj0 = 0 ;
27362 PyObject * obj1 = 0 ;
27363 char *kwnames[] = {
27364 (char *) "self",(char *) "text", NULL
27365 };
27366
27367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
27368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27370 {
27371 arg2 = wxString_in_helper(obj1);
27372 if (arg2 == NULL) SWIG_fail;
27373 temp2 = True;
27374 }
27375 {
27376 PyThreadState* __tstate = wxPyBeginAllowThreads();
27377 (arg1)->SetHelpTextForId((wxString const &)*arg2);
27378
27379 wxPyEndAllowThreads(__tstate);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 Py_INCREF(Py_None); resultobj = Py_None;
27383 {
27384 if (temp2)
27385 delete arg2;
27386 }
27387 return resultobj;
27388 fail:
27389 {
27390 if (temp2)
27391 delete arg2;
27392 }
27393 return NULL;
27394 }
27395
27396
27397 static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27398 PyObject *resultobj;
27399 wxWindow *arg1 = (wxWindow *) 0 ;
27400 wxString result;
27401 PyObject * obj0 = 0 ;
27402 char *kwnames[] = {
27403 (char *) "self", NULL
27404 };
27405
27406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
27407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 result = ((wxWindow const *)arg1)->GetHelpText();
27412
27413 wxPyEndAllowThreads(__tstate);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 }
27416 {
27417 #if wxUSE_UNICODE
27418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27419 #else
27420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27421 #endif
27422 }
27423 return resultobj;
27424 fail:
27425 return NULL;
27426 }
27427
27428
27429 static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
27430 PyObject *resultobj;
27431 wxWindow *arg1 = (wxWindow *) 0 ;
27432 wxString *arg2 = 0 ;
27433 bool temp2 = False ;
27434 PyObject * obj0 = 0 ;
27435 PyObject * obj1 = 0 ;
27436 char *kwnames[] = {
27437 (char *) "self",(char *) "tip", NULL
27438 };
27439
27440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
27441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27443 {
27444 arg2 = wxString_in_helper(obj1);
27445 if (arg2 == NULL) SWIG_fail;
27446 temp2 = True;
27447 }
27448 {
27449 PyThreadState* __tstate = wxPyBeginAllowThreads();
27450 (arg1)->SetToolTip((wxString const &)*arg2);
27451
27452 wxPyEndAllowThreads(__tstate);
27453 if (PyErr_Occurred()) SWIG_fail;
27454 }
27455 Py_INCREF(Py_None); resultobj = Py_None;
27456 {
27457 if (temp2)
27458 delete arg2;
27459 }
27460 return resultobj;
27461 fail:
27462 {
27463 if (temp2)
27464 delete arg2;
27465 }
27466 return NULL;
27467 }
27468
27469
27470 static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27471 PyObject *resultobj;
27472 wxWindow *arg1 = (wxWindow *) 0 ;
27473 wxToolTip *arg2 = (wxToolTip *) 0 ;
27474 PyObject * obj0 = 0 ;
27475 PyObject * obj1 = 0 ;
27476 char *kwnames[] = {
27477 (char *) "self",(char *) "tip", NULL
27478 };
27479
27480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
27481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
27484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27485 {
27486 PyThreadState* __tstate = wxPyBeginAllowThreads();
27487 (arg1)->SetToolTip(arg2);
27488
27489 wxPyEndAllowThreads(__tstate);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 Py_INCREF(Py_None); resultobj = Py_None;
27493 return resultobj;
27494 fail:
27495 return NULL;
27496 }
27497
27498
27499 static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27500 PyObject *resultobj;
27501 wxWindow *arg1 = (wxWindow *) 0 ;
27502 wxToolTip *result;
27503 PyObject * obj0 = 0 ;
27504 char *kwnames[] = {
27505 (char *) "self", NULL
27506 };
27507
27508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
27509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27511 {
27512 PyThreadState* __tstate = wxPyBeginAllowThreads();
27513 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
27514
27515 wxPyEndAllowThreads(__tstate);
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 {
27519 resultobj = wxPyMake_wxObject(result);
27520 }
27521 return resultobj;
27522 fail:
27523 return NULL;
27524 }
27525
27526
27527 static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27528 PyObject *resultobj;
27529 wxWindow *arg1 = (wxWindow *) 0 ;
27530 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
27531 PyObject * obj0 = 0 ;
27532 PyObject * obj1 = 0 ;
27533 char *kwnames[] = {
27534 (char *) "self",(char *) "dropTarget", NULL
27535 };
27536
27537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
27538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
27541 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27542 {
27543 PyThreadState* __tstate = wxPyBeginAllowThreads();
27544 (arg1)->SetDropTarget(arg2);
27545
27546 wxPyEndAllowThreads(__tstate);
27547 if (PyErr_Occurred()) SWIG_fail;
27548 }
27549 Py_INCREF(Py_None); resultobj = Py_None;
27550 return resultobj;
27551 fail:
27552 return NULL;
27553 }
27554
27555
27556 static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27557 PyObject *resultobj;
27558 wxWindow *arg1 = (wxWindow *) 0 ;
27559 wxPyDropTarget *result;
27560 PyObject * obj0 = 0 ;
27561 char *kwnames[] = {
27562 (char *) "self", NULL
27563 };
27564
27565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
27566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27568 {
27569 PyThreadState* __tstate = wxPyBeginAllowThreads();
27570 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
27571
27572 wxPyEndAllowThreads(__tstate);
27573 if (PyErr_Occurred()) SWIG_fail;
27574 }
27575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
27576 return resultobj;
27577 fail:
27578 return NULL;
27579 }
27580
27581
27582 static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27583 PyObject *resultobj;
27584 wxWindow *arg1 = (wxWindow *) 0 ;
27585 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
27586 PyObject * obj0 = 0 ;
27587 PyObject * obj1 = 0 ;
27588 char *kwnames[] = {
27589 (char *) "self",(char *) "constraints", NULL
27590 };
27591
27592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
27593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27595 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
27596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 (arg1)->SetConstraints(arg2);
27600
27601 wxPyEndAllowThreads(__tstate);
27602 if (PyErr_Occurred()) SWIG_fail;
27603 }
27604 Py_INCREF(Py_None); resultobj = Py_None;
27605 return resultobj;
27606 fail:
27607 return NULL;
27608 }
27609
27610
27611 static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27612 PyObject *resultobj;
27613 wxWindow *arg1 = (wxWindow *) 0 ;
27614 wxLayoutConstraints *result;
27615 PyObject * obj0 = 0 ;
27616 char *kwnames[] = {
27617 (char *) "self", NULL
27618 };
27619
27620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
27621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27623 {
27624 PyThreadState* __tstate = wxPyBeginAllowThreads();
27625 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
27626
27627 wxPyEndAllowThreads(__tstate);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27638 PyObject *resultobj;
27639 wxWindow *arg1 = (wxWindow *) 0 ;
27640 bool arg2 ;
27641 PyObject * obj0 = 0 ;
27642 PyObject * obj1 = 0 ;
27643 char *kwnames[] = {
27644 (char *) "self",(char *) "autoLayout", NULL
27645 };
27646
27647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
27648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27650 arg2 = (bool) SWIG_AsBool(obj1);
27651 if (PyErr_Occurred()) SWIG_fail;
27652 {
27653 PyThreadState* __tstate = wxPyBeginAllowThreads();
27654 (arg1)->SetAutoLayout(arg2);
27655
27656 wxPyEndAllowThreads(__tstate);
27657 if (PyErr_Occurred()) SWIG_fail;
27658 }
27659 Py_INCREF(Py_None); resultobj = Py_None;
27660 return resultobj;
27661 fail:
27662 return NULL;
27663 }
27664
27665
27666 static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27667 PyObject *resultobj;
27668 wxWindow *arg1 = (wxWindow *) 0 ;
27669 bool result;
27670 PyObject * obj0 = 0 ;
27671 char *kwnames[] = {
27672 (char *) "self", NULL
27673 };
27674
27675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
27676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27678 {
27679 PyThreadState* __tstate = wxPyBeginAllowThreads();
27680 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
27681
27682 wxPyEndAllowThreads(__tstate);
27683 if (PyErr_Occurred()) SWIG_fail;
27684 }
27685 {
27686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27687 }
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
27695 PyObject *resultobj;
27696 wxWindow *arg1 = (wxWindow *) 0 ;
27697 bool result;
27698 PyObject * obj0 = 0 ;
27699 char *kwnames[] = {
27700 (char *) "self", NULL
27701 };
27702
27703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
27704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27706 {
27707 PyThreadState* __tstate = wxPyBeginAllowThreads();
27708 result = (bool)(arg1)->Layout();
27709
27710 wxPyEndAllowThreads(__tstate);
27711 if (PyErr_Occurred()) SWIG_fail;
27712 }
27713 {
27714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27715 }
27716 return resultobj;
27717 fail:
27718 return NULL;
27719 }
27720
27721
27722 static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
27723 PyObject *resultobj;
27724 wxWindow *arg1 = (wxWindow *) 0 ;
27725 wxSizer *arg2 = (wxSizer *) 0 ;
27726 bool arg3 = (bool) True ;
27727 PyObject * obj0 = 0 ;
27728 PyObject * obj1 = 0 ;
27729 PyObject * obj2 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
27738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27739 if (obj2) {
27740 arg3 = (bool) SWIG_AsBool(obj2);
27741 if (PyErr_Occurred()) SWIG_fail;
27742 }
27743 {
27744 PyThreadState* __tstate = wxPyBeginAllowThreads();
27745 (arg1)->SetSizer(arg2,arg3);
27746
27747 wxPyEndAllowThreads(__tstate);
27748 if (PyErr_Occurred()) SWIG_fail;
27749 }
27750 Py_INCREF(Py_None); resultobj = Py_None;
27751 return resultobj;
27752 fail:
27753 return NULL;
27754 }
27755
27756
27757 static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
27758 PyObject *resultobj;
27759 wxWindow *arg1 = (wxWindow *) 0 ;
27760 wxSizer *arg2 = (wxSizer *) 0 ;
27761 bool arg3 = (bool) True ;
27762 PyObject * obj0 = 0 ;
27763 PyObject * obj1 = 0 ;
27764 PyObject * obj2 = 0 ;
27765 char *kwnames[] = {
27766 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
27767 };
27768
27769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
27770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
27773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27774 if (obj2) {
27775 arg3 = (bool) SWIG_AsBool(obj2);
27776 if (PyErr_Occurred()) SWIG_fail;
27777 }
27778 {
27779 PyThreadState* __tstate = wxPyBeginAllowThreads();
27780 (arg1)->SetSizerAndFit(arg2,arg3);
27781
27782 wxPyEndAllowThreads(__tstate);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 }
27785 Py_INCREF(Py_None); resultobj = Py_None;
27786 return resultobj;
27787 fail:
27788 return NULL;
27789 }
27790
27791
27792 static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
27793 PyObject *resultobj;
27794 wxWindow *arg1 = (wxWindow *) 0 ;
27795 wxSizer *result;
27796 PyObject * obj0 = 0 ;
27797 char *kwnames[] = {
27798 (char *) "self", NULL
27799 };
27800
27801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
27802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27804 {
27805 PyThreadState* __tstate = wxPyBeginAllowThreads();
27806 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
27807
27808 wxPyEndAllowThreads(__tstate);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 }
27811 {
27812 resultobj = wxPyMake_wxSizer(result);
27813 }
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
27821 PyObject *resultobj;
27822 wxWindow *arg1 = (wxWindow *) 0 ;
27823 wxSizer *arg2 = (wxSizer *) 0 ;
27824 PyObject * obj0 = 0 ;
27825 PyObject * obj1 = 0 ;
27826 char *kwnames[] = {
27827 (char *) "self",(char *) "sizer", NULL
27828 };
27829
27830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
27831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
27834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27835 {
27836 PyThreadState* __tstate = wxPyBeginAllowThreads();
27837 (arg1)->SetContainingSizer(arg2);
27838
27839 wxPyEndAllowThreads(__tstate);
27840 if (PyErr_Occurred()) SWIG_fail;
27841 }
27842 Py_INCREF(Py_None); resultobj = Py_None;
27843 return resultobj;
27844 fail:
27845 return NULL;
27846 }
27847
27848
27849 static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
27850 PyObject *resultobj;
27851 wxWindow *arg1 = (wxWindow *) 0 ;
27852 wxSizer *result;
27853 PyObject * obj0 = 0 ;
27854 char *kwnames[] = {
27855 (char *) "self", NULL
27856 };
27857
27858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
27859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27861 {
27862 PyThreadState* __tstate = wxPyBeginAllowThreads();
27863 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
27864
27865 wxPyEndAllowThreads(__tstate);
27866 if (PyErr_Occurred()) SWIG_fail;
27867 }
27868 {
27869 resultobj = wxPyMake_wxSizer(result);
27870 }
27871 return resultobj;
27872 fail:
27873 return NULL;
27874 }
27875
27876
27877 static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27878 PyObject *resultobj;
27879 wxWindow *arg1 = (wxWindow *) 0 ;
27880 PyObject * obj0 = 0 ;
27881 char *kwnames[] = {
27882 (char *) "self", NULL
27883 };
27884
27885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
27886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27888 {
27889 PyThreadState* __tstate = wxPyBeginAllowThreads();
27890 (arg1)->InheritAttributes();
27891
27892 wxPyEndAllowThreads(__tstate);
27893 if (PyErr_Occurred()) SWIG_fail;
27894 }
27895 Py_INCREF(Py_None); resultobj = Py_None;
27896 return resultobj;
27897 fail:
27898 return NULL;
27899 }
27900
27901
27902 static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
27903 PyObject *resultobj;
27904 wxWindow *arg1 = (wxWindow *) 0 ;
27905 bool result;
27906 PyObject * obj0 = 0 ;
27907 char *kwnames[] = {
27908 (char *) "self", NULL
27909 };
27910
27911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
27912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27914 {
27915 PyThreadState* __tstate = wxPyBeginAllowThreads();
27916 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
27917
27918 wxPyEndAllowThreads(__tstate);
27919 if (PyErr_Occurred()) SWIG_fail;
27920 }
27921 {
27922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27923 }
27924 return resultobj;
27925 fail:
27926 return NULL;
27927 }
27928
27929
27930 static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
27931 PyObject *obj;
27932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27933 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
27934 Py_INCREF(obj);
27935 return Py_BuildValue((char *)"");
27936 }
27937 static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
27938 PyObject *resultobj;
27939 long arg1 ;
27940 wxWindow *arg2 = (wxWindow *) NULL ;
27941 wxWindow *result;
27942 PyObject * obj0 = 0 ;
27943 PyObject * obj1 = 0 ;
27944 char *kwnames[] = {
27945 (char *) "id",(char *) "parent", NULL
27946 };
27947
27948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
27949 arg1 = (long) SWIG_AsLong(obj0);
27950 if (PyErr_Occurred()) SWIG_fail;
27951 if (obj1) {
27952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27954 }
27955 {
27956 PyThreadState* __tstate = wxPyBeginAllowThreads();
27957 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
27958
27959 wxPyEndAllowThreads(__tstate);
27960 if (PyErr_Occurred()) SWIG_fail;
27961 }
27962 {
27963 resultobj = wxPyMake_wxObject(result);
27964 }
27965 return resultobj;
27966 fail:
27967 return NULL;
27968 }
27969
27970
27971 static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
27972 PyObject *resultobj;
27973 wxString *arg1 = 0 ;
27974 wxWindow *arg2 = (wxWindow *) NULL ;
27975 wxWindow *result;
27976 bool temp1 = False ;
27977 PyObject * obj0 = 0 ;
27978 PyObject * obj1 = 0 ;
27979 char *kwnames[] = {
27980 (char *) "name",(char *) "parent", NULL
27981 };
27982
27983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
27984 {
27985 arg1 = wxString_in_helper(obj0);
27986 if (arg1 == NULL) SWIG_fail;
27987 temp1 = True;
27988 }
27989 if (obj1) {
27990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27992 }
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
27996
27997 wxPyEndAllowThreads(__tstate);
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
28000 {
28001 resultobj = wxPyMake_wxObject(result);
28002 }
28003 {
28004 if (temp1)
28005 delete arg1;
28006 }
28007 return resultobj;
28008 fail:
28009 {
28010 if (temp1)
28011 delete arg1;
28012 }
28013 return NULL;
28014 }
28015
28016
28017 static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28018 PyObject *resultobj;
28019 wxString *arg1 = 0 ;
28020 wxWindow *arg2 = (wxWindow *) NULL ;
28021 wxWindow *result;
28022 bool temp1 = False ;
28023 PyObject * obj0 = 0 ;
28024 PyObject * obj1 = 0 ;
28025 char *kwnames[] = {
28026 (char *) "label",(char *) "parent", NULL
28027 };
28028
28029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28030 {
28031 arg1 = wxString_in_helper(obj0);
28032 if (arg1 == NULL) SWIG_fail;
28033 temp1 = True;
28034 }
28035 if (obj1) {
28036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28038 }
28039 {
28040 PyThreadState* __tstate = wxPyBeginAllowThreads();
28041 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28042
28043 wxPyEndAllowThreads(__tstate);
28044 if (PyErr_Occurred()) SWIG_fail;
28045 }
28046 {
28047 resultobj = wxPyMake_wxObject(result);
28048 }
28049 {
28050 if (temp1)
28051 delete arg1;
28052 }
28053 return resultobj;
28054 fail:
28055 {
28056 if (temp1)
28057 delete arg1;
28058 }
28059 return NULL;
28060 }
28061
28062
28063 static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
28064 PyObject *resultobj;
28065 wxWindow *arg1 = (wxWindow *) 0 ;
28066 unsigned long arg2 ;
28067 wxWindow *result;
28068 PyObject * obj0 = 0 ;
28069 PyObject * obj1 = 0 ;
28070 char *kwnames[] = {
28071 (char *) "parent",(char *) "_hWnd", NULL
28072 };
28073
28074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28077 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
28078 if (PyErr_Occurred()) SWIG_fail;
28079 {
28080 PyThreadState* __tstate = wxPyBeginAllowThreads();
28081 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28082
28083 wxPyEndAllowThreads(__tstate);
28084 if (PyErr_Occurred()) SWIG_fail;
28085 }
28086 {
28087 resultobj = wxPyMake_wxObject(result);
28088 }
28089 return resultobj;
28090 fail:
28091 return NULL;
28092 }
28093
28094
28095 static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
28096 PyObject *resultobj;
28097 wxValidator *result;
28098 char *kwnames[] = {
28099 NULL
28100 };
28101
28102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28103 {
28104 PyThreadState* __tstate = wxPyBeginAllowThreads();
28105 result = (wxValidator *)new wxValidator();
28106
28107 wxPyEndAllowThreads(__tstate);
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 {
28111 resultobj = wxPyMake_wxObject(result);
28112 }
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
28120 PyObject *resultobj;
28121 wxValidator *arg1 = (wxValidator *) 0 ;
28122 wxValidator *result;
28123 PyObject * obj0 = 0 ;
28124 char *kwnames[] = {
28125 (char *) "self", NULL
28126 };
28127
28128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28131 {
28132 PyThreadState* __tstate = wxPyBeginAllowThreads();
28133 result = (wxValidator *)(arg1)->Clone();
28134
28135 wxPyEndAllowThreads(__tstate);
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 {
28139 resultobj = wxPyMake_wxObject(result);
28140 }
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28148 PyObject *resultobj;
28149 wxValidator *arg1 = (wxValidator *) 0 ;
28150 wxWindow *arg2 = (wxWindow *) 0 ;
28151 bool result;
28152 PyObject * obj0 = 0 ;
28153 PyObject * obj1 = 0 ;
28154 char *kwnames[] = {
28155 (char *) "self",(char *) "parent", NULL
28156 };
28157
28158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
28165 result = (bool)(arg1)->Validate(arg2);
28166
28167 wxPyEndAllowThreads(__tstate);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 {
28171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28172 }
28173 return resultobj;
28174 fail:
28175 return NULL;
28176 }
28177
28178
28179 static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28180 PyObject *resultobj;
28181 wxValidator *arg1 = (wxValidator *) 0 ;
28182 bool result;
28183 PyObject * obj0 = 0 ;
28184 char *kwnames[] = {
28185 (char *) "self", NULL
28186 };
28187
28188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28191 {
28192 PyThreadState* __tstate = wxPyBeginAllowThreads();
28193 result = (bool)(arg1)->TransferToWindow();
28194
28195 wxPyEndAllowThreads(__tstate);
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 {
28199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28200 }
28201 return resultobj;
28202 fail:
28203 return NULL;
28204 }
28205
28206
28207 static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28208 PyObject *resultobj;
28209 wxValidator *arg1 = (wxValidator *) 0 ;
28210 bool result;
28211 PyObject * obj0 = 0 ;
28212 char *kwnames[] = {
28213 (char *) "self", NULL
28214 };
28215
28216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28219 {
28220 PyThreadState* __tstate = wxPyBeginAllowThreads();
28221 result = (bool)(arg1)->TransferFromWindow();
28222
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 {
28227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28228 }
28229 return resultobj;
28230 fail:
28231 return NULL;
28232 }
28233
28234
28235 static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28236 PyObject *resultobj;
28237 wxValidator *arg1 = (wxValidator *) 0 ;
28238 wxWindow *result;
28239 PyObject * obj0 = 0 ;
28240 char *kwnames[] = {
28241 (char *) "self", NULL
28242 };
28243
28244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28247 {
28248 PyThreadState* __tstate = wxPyBeginAllowThreads();
28249 result = (wxWindow *)(arg1)->GetWindow();
28250
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 {
28255 resultobj = wxPyMake_wxObject(result);
28256 }
28257 return resultobj;
28258 fail:
28259 return NULL;
28260 }
28261
28262
28263 static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj;
28265 wxValidator *arg1 = (wxValidator *) 0 ;
28266 wxWindow *arg2 = (wxWindow *) 0 ;
28267 PyObject * obj0 = 0 ;
28268 PyObject * obj1 = 0 ;
28269 char *kwnames[] = {
28270 (char *) "self",(char *) "window", NULL
28271 };
28272
28273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28278 {
28279 PyThreadState* __tstate = wxPyBeginAllowThreads();
28280 (arg1)->SetWindow(arg2);
28281
28282 wxPyEndAllowThreads(__tstate);
28283 if (PyErr_Occurred()) SWIG_fail;
28284 }
28285 Py_INCREF(Py_None); resultobj = Py_None;
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
28293 PyObject *resultobj;
28294 bool result;
28295 char *kwnames[] = {
28296 NULL
28297 };
28298
28299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28300 {
28301 PyThreadState* __tstate = wxPyBeginAllowThreads();
28302 result = (bool)wxValidator::IsSilent();
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 *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj;
28318 int arg1 = (int) True ;
28319 PyObject * obj0 = 0 ;
28320 char *kwnames[] = {
28321 (char *) "doIt", NULL
28322 };
28323
28324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
28325 if (obj0) {
28326 arg1 = (int) SWIG_AsInt(obj0);
28327 if (PyErr_Occurred()) SWIG_fail;
28328 }
28329 {
28330 PyThreadState* __tstate = wxPyBeginAllowThreads();
28331 wxValidator::SetBellOnError(arg1);
28332
28333 wxPyEndAllowThreads(__tstate);
28334 if (PyErr_Occurred()) SWIG_fail;
28335 }
28336 Py_INCREF(Py_None); resultobj = Py_None;
28337 return resultobj;
28338 fail:
28339 return NULL;
28340 }
28341
28342
28343 static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
28344 PyObject *obj;
28345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28346 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
28347 Py_INCREF(obj);
28348 return Py_BuildValue((char *)"");
28349 }
28350 static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
28351 PyObject *resultobj;
28352 wxPyValidator *result;
28353 char *kwnames[] = {
28354 NULL
28355 };
28356
28357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
28358 {
28359 PyThreadState* __tstate = wxPyBeginAllowThreads();
28360 result = (wxPyValidator *)new wxPyValidator();
28361
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
28366 return resultobj;
28367 fail:
28368 return NULL;
28369 }
28370
28371
28372 static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28373 PyObject *resultobj;
28374 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
28375 PyObject *arg2 = (PyObject *) 0 ;
28376 PyObject *arg3 = (PyObject *) 0 ;
28377 int arg4 = (int) True ;
28378 PyObject * obj0 = 0 ;
28379 PyObject * obj1 = 0 ;
28380 PyObject * obj2 = 0 ;
28381 PyObject * obj3 = 0 ;
28382 char *kwnames[] = {
28383 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
28384 };
28385
28386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
28388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28389 arg2 = obj1;
28390 arg3 = obj2;
28391 if (obj3) {
28392 arg4 = (int) SWIG_AsInt(obj3);
28393 if (PyErr_Occurred()) SWIG_fail;
28394 }
28395 {
28396 PyThreadState* __tstate = wxPyBeginAllowThreads();
28397 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
28398
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 Py_INCREF(Py_None); resultobj = Py_None;
28403 return resultobj;
28404 fail:
28405 return NULL;
28406 }
28407
28408
28409 static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
28410 PyObject *obj;
28411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28412 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
28413 Py_INCREF(obj);
28414 return Py_BuildValue((char *)"");
28415 }
28416 static int _wrap_DefaultValidator_set(PyObject *_val) {
28417 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
28418 return 1;
28419 }
28420
28421
28422 static PyObject *_wrap_DefaultValidator_get() {
28423 PyObject *pyobj;
28424
28425 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
28426 return pyobj;
28427 }
28428
28429
28430 static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
28431 PyObject *resultobj;
28432 wxString const &arg1_defvalue = wxPyEmptyString ;
28433 wxString *arg1 = (wxString *) &arg1_defvalue ;
28434 long arg2 = (long) 0 ;
28435 wxMenu *result;
28436 bool temp1 = False ;
28437 PyObject * obj0 = 0 ;
28438 PyObject * obj1 = 0 ;
28439 char *kwnames[] = {
28440 (char *) "title",(char *) "style", NULL
28441 };
28442
28443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
28444 if (obj0) {
28445 {
28446 arg1 = wxString_in_helper(obj0);
28447 if (arg1 == NULL) SWIG_fail;
28448 temp1 = True;
28449 }
28450 }
28451 if (obj1) {
28452 arg2 = (long) SWIG_AsLong(obj1);
28453 if (PyErr_Occurred()) SWIG_fail;
28454 }
28455 {
28456 PyThreadState* __tstate = wxPyBeginAllowThreads();
28457 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
28458
28459 wxPyEndAllowThreads(__tstate);
28460 if (PyErr_Occurred()) SWIG_fail;
28461 }
28462 {
28463 resultobj = wxPyMake_wxObject(result);
28464 }
28465 {
28466 if (temp1)
28467 delete arg1;
28468 }
28469 return resultobj;
28470 fail:
28471 {
28472 if (temp1)
28473 delete arg1;
28474 }
28475 return NULL;
28476 }
28477
28478
28479 static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
28480 PyObject *resultobj;
28481 wxMenu *arg1 = (wxMenu *) 0 ;
28482 int arg2 ;
28483 wxString *arg3 = 0 ;
28484 wxString const &arg4_defvalue = wxPyEmptyString ;
28485 wxString *arg4 = (wxString *) &arg4_defvalue ;
28486 int arg5 = (int) wxITEM_NORMAL ;
28487 wxMenuItem *result;
28488 bool temp3 = False ;
28489 bool temp4 = False ;
28490 PyObject * obj0 = 0 ;
28491 PyObject * obj1 = 0 ;
28492 PyObject * obj2 = 0 ;
28493 PyObject * obj3 = 0 ;
28494 PyObject * obj4 = 0 ;
28495 char *kwnames[] = {
28496 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28497 };
28498
28499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28502 arg2 = (int) SWIG_AsInt(obj1);
28503 if (PyErr_Occurred()) SWIG_fail;
28504 {
28505 arg3 = wxString_in_helper(obj2);
28506 if (arg3 == NULL) SWIG_fail;
28507 temp3 = True;
28508 }
28509 if (obj3) {
28510 {
28511 arg4 = wxString_in_helper(obj3);
28512 if (arg4 == NULL) SWIG_fail;
28513 temp4 = True;
28514 }
28515 }
28516 if (obj4) {
28517 arg5 = (wxItemKind) SWIG_AsInt(obj4);
28518 if (PyErr_Occurred()) SWIG_fail;
28519 }
28520 {
28521 PyThreadState* __tstate = wxPyBeginAllowThreads();
28522 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
28523
28524 wxPyEndAllowThreads(__tstate);
28525 if (PyErr_Occurred()) SWIG_fail;
28526 }
28527 {
28528 resultobj = wxPyMake_wxObject(result);
28529 }
28530 {
28531 if (temp3)
28532 delete arg3;
28533 }
28534 {
28535 if (temp4)
28536 delete arg4;
28537 }
28538 return resultobj;
28539 fail:
28540 {
28541 if (temp3)
28542 delete arg3;
28543 }
28544 {
28545 if (temp4)
28546 delete arg4;
28547 }
28548 return NULL;
28549 }
28550
28551
28552 static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
28553 PyObject *resultobj;
28554 wxMenu *arg1 = (wxMenu *) 0 ;
28555 wxMenuItem *result;
28556 PyObject * obj0 = 0 ;
28557 char *kwnames[] = {
28558 (char *) "self", NULL
28559 };
28560
28561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
28562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28564 {
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 result = (wxMenuItem *)(arg1)->AppendSeparator();
28567
28568 wxPyEndAllowThreads(__tstate);
28569 if (PyErr_Occurred()) SWIG_fail;
28570 }
28571 {
28572 resultobj = wxPyMake_wxObject(result);
28573 }
28574 return resultobj;
28575 fail:
28576 return NULL;
28577 }
28578
28579
28580 static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28581 PyObject *resultobj;
28582 wxMenu *arg1 = (wxMenu *) 0 ;
28583 int arg2 ;
28584 wxString *arg3 = 0 ;
28585 wxString const &arg4_defvalue = wxPyEmptyString ;
28586 wxString *arg4 = (wxString *) &arg4_defvalue ;
28587 wxMenuItem *result;
28588 bool temp3 = False ;
28589 bool temp4 = False ;
28590 PyObject * obj0 = 0 ;
28591 PyObject * obj1 = 0 ;
28592 PyObject * obj2 = 0 ;
28593 PyObject * obj3 = 0 ;
28594 char *kwnames[] = {
28595 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28596 };
28597
28598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28601 arg2 = (int) SWIG_AsInt(obj1);
28602 if (PyErr_Occurred()) SWIG_fail;
28603 {
28604 arg3 = wxString_in_helper(obj2);
28605 if (arg3 == NULL) SWIG_fail;
28606 temp3 = True;
28607 }
28608 if (obj3) {
28609 {
28610 arg4 = wxString_in_helper(obj3);
28611 if (arg4 == NULL) SWIG_fail;
28612 temp4 = True;
28613 }
28614 }
28615 {
28616 PyThreadState* __tstate = wxPyBeginAllowThreads();
28617 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28618
28619 wxPyEndAllowThreads(__tstate);
28620 if (PyErr_Occurred()) SWIG_fail;
28621 }
28622 {
28623 resultobj = wxPyMake_wxObject(result);
28624 }
28625 {
28626 if (temp3)
28627 delete arg3;
28628 }
28629 {
28630 if (temp4)
28631 delete arg4;
28632 }
28633 return resultobj;
28634 fail:
28635 {
28636 if (temp3)
28637 delete arg3;
28638 }
28639 {
28640 if (temp4)
28641 delete arg4;
28642 }
28643 return NULL;
28644 }
28645
28646
28647 static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28648 PyObject *resultobj;
28649 wxMenu *arg1 = (wxMenu *) 0 ;
28650 int arg2 ;
28651 wxString *arg3 = 0 ;
28652 wxString const &arg4_defvalue = wxPyEmptyString ;
28653 wxString *arg4 = (wxString *) &arg4_defvalue ;
28654 wxMenuItem *result;
28655 bool temp3 = False ;
28656 bool temp4 = False ;
28657 PyObject * obj0 = 0 ;
28658 PyObject * obj1 = 0 ;
28659 PyObject * obj2 = 0 ;
28660 PyObject * obj3 = 0 ;
28661 char *kwnames[] = {
28662 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28663 };
28664
28665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28668 arg2 = (int) SWIG_AsInt(obj1);
28669 if (PyErr_Occurred()) SWIG_fail;
28670 {
28671 arg3 = wxString_in_helper(obj2);
28672 if (arg3 == NULL) SWIG_fail;
28673 temp3 = True;
28674 }
28675 if (obj3) {
28676 {
28677 arg4 = wxString_in_helper(obj3);
28678 if (arg4 == NULL) SWIG_fail;
28679 temp4 = True;
28680 }
28681 }
28682 {
28683 PyThreadState* __tstate = wxPyBeginAllowThreads();
28684 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28685
28686 wxPyEndAllowThreads(__tstate);
28687 if (PyErr_Occurred()) SWIG_fail;
28688 }
28689 {
28690 resultobj = wxPyMake_wxObject(result);
28691 }
28692 {
28693 if (temp3)
28694 delete arg3;
28695 }
28696 {
28697 if (temp4)
28698 delete arg4;
28699 }
28700 return resultobj;
28701 fail:
28702 {
28703 if (temp3)
28704 delete arg3;
28705 }
28706 {
28707 if (temp4)
28708 delete arg4;
28709 }
28710 return NULL;
28711 }
28712
28713
28714 static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
28715 PyObject *resultobj;
28716 wxMenu *arg1 = (wxMenu *) 0 ;
28717 int arg2 ;
28718 wxString *arg3 = 0 ;
28719 wxMenu *arg4 = (wxMenu *) 0 ;
28720 wxString const &arg5_defvalue = wxPyEmptyString ;
28721 wxString *arg5 = (wxString *) &arg5_defvalue ;
28722 wxMenuItem *result;
28723 bool temp3 = False ;
28724 bool temp5 = False ;
28725 PyObject * obj0 = 0 ;
28726 PyObject * obj1 = 0 ;
28727 PyObject * obj2 = 0 ;
28728 PyObject * obj3 = 0 ;
28729 PyObject * obj4 = 0 ;
28730 char *kwnames[] = {
28731 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
28732 };
28733
28734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28737 arg2 = (int) SWIG_AsInt(obj1);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 {
28740 arg3 = wxString_in_helper(obj2);
28741 if (arg3 == NULL) SWIG_fail;
28742 temp3 = True;
28743 }
28744 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
28745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28746 if (obj4) {
28747 {
28748 arg5 = wxString_in_helper(obj4);
28749 if (arg5 == NULL) SWIG_fail;
28750 temp5 = True;
28751 }
28752 }
28753 {
28754 PyThreadState* __tstate = wxPyBeginAllowThreads();
28755 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
28756
28757 wxPyEndAllowThreads(__tstate);
28758 if (PyErr_Occurred()) SWIG_fail;
28759 }
28760 {
28761 resultobj = wxPyMake_wxObject(result);
28762 }
28763 {
28764 if (temp3)
28765 delete arg3;
28766 }
28767 {
28768 if (temp5)
28769 delete arg5;
28770 }
28771 return resultobj;
28772 fail:
28773 {
28774 if (temp3)
28775 delete arg3;
28776 }
28777 {
28778 if (temp5)
28779 delete arg5;
28780 }
28781 return NULL;
28782 }
28783
28784
28785 static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28786 PyObject *resultobj;
28787 wxMenu *arg1 = (wxMenu *) 0 ;
28788 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28789 wxMenuItem *result;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 char *kwnames[] = {
28793 (char *) "self",(char *) "item", NULL
28794 };
28795
28796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
28797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
28800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28801 {
28802 PyThreadState* __tstate = wxPyBeginAllowThreads();
28803 result = (wxMenuItem *)(arg1)->Append(arg2);
28804
28805 wxPyEndAllowThreads(__tstate);
28806 if (PyErr_Occurred()) SWIG_fail;
28807 }
28808 {
28809 resultobj = wxPyMake_wxObject(result);
28810 }
28811 return resultobj;
28812 fail:
28813 return NULL;
28814 }
28815
28816
28817 static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
28818 PyObject *resultobj;
28819 wxMenu *arg1 = (wxMenu *) 0 ;
28820 PyObject * obj0 = 0 ;
28821 char *kwnames[] = {
28822 (char *) "self", NULL
28823 };
28824
28825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
28826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28828 {
28829 PyThreadState* __tstate = wxPyBeginAllowThreads();
28830 (arg1)->Break();
28831
28832 wxPyEndAllowThreads(__tstate);
28833 if (PyErr_Occurred()) SWIG_fail;
28834 }
28835 Py_INCREF(Py_None); resultobj = Py_None;
28836 return resultobj;
28837 fail:
28838 return NULL;
28839 }
28840
28841
28842 static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28843 PyObject *resultobj;
28844 wxMenu *arg1 = (wxMenu *) 0 ;
28845 size_t arg2 ;
28846 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
28847 wxMenuItem *result;
28848 PyObject * obj0 = 0 ;
28849 PyObject * obj1 = 0 ;
28850 PyObject * obj2 = 0 ;
28851 char *kwnames[] = {
28852 (char *) "self",(char *) "pos",(char *) "item", NULL
28853 };
28854
28855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
28856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28858 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
28859 if (PyErr_Occurred()) SWIG_fail;
28860 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
28861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28862 {
28863 PyThreadState* __tstate = wxPyBeginAllowThreads();
28864 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
28865
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 {
28870 resultobj = wxPyMake_wxObject(result);
28871 }
28872 return resultobj;
28873 fail:
28874 return NULL;
28875 }
28876
28877
28878 static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
28879 PyObject *resultobj;
28880 wxMenu *arg1 = (wxMenu *) 0 ;
28881 size_t arg2 ;
28882 int arg3 ;
28883 wxString *arg4 = 0 ;
28884 wxString const &arg5_defvalue = wxPyEmptyString ;
28885 wxString *arg5 = (wxString *) &arg5_defvalue ;
28886 int arg6 = (int) wxITEM_NORMAL ;
28887 wxMenuItem *result;
28888 bool temp4 = False ;
28889 bool temp5 = False ;
28890 PyObject * obj0 = 0 ;
28891 PyObject * obj1 = 0 ;
28892 PyObject * obj2 = 0 ;
28893 PyObject * obj3 = 0 ;
28894 PyObject * obj4 = 0 ;
28895 PyObject * obj5 = 0 ;
28896 char *kwnames[] = {
28897 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28898 };
28899
28900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28903 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
28904 if (PyErr_Occurred()) SWIG_fail;
28905 arg3 = (int) SWIG_AsInt(obj2);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 {
28908 arg4 = wxString_in_helper(obj3);
28909 if (arg4 == NULL) SWIG_fail;
28910 temp4 = True;
28911 }
28912 if (obj4) {
28913 {
28914 arg5 = wxString_in_helper(obj4);
28915 if (arg5 == NULL) SWIG_fail;
28916 temp5 = True;
28917 }
28918 }
28919 if (obj5) {
28920 arg6 = (wxItemKind) SWIG_AsInt(obj5);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 {
28924 PyThreadState* __tstate = wxPyBeginAllowThreads();
28925 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
28926
28927 wxPyEndAllowThreads(__tstate);
28928 if (PyErr_Occurred()) SWIG_fail;
28929 }
28930 {
28931 resultobj = wxPyMake_wxObject(result);
28932 }
28933 {
28934 if (temp4)
28935 delete arg4;
28936 }
28937 {
28938 if (temp5)
28939 delete arg5;
28940 }
28941 return resultobj;
28942 fail:
28943 {
28944 if (temp4)
28945 delete arg4;
28946 }
28947 {
28948 if (temp5)
28949 delete arg5;
28950 }
28951 return NULL;
28952 }
28953
28954
28955 static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
28956 PyObject *resultobj;
28957 wxMenu *arg1 = (wxMenu *) 0 ;
28958 size_t arg2 ;
28959 wxMenuItem *result;
28960 PyObject * obj0 = 0 ;
28961 PyObject * obj1 = 0 ;
28962 char *kwnames[] = {
28963 (char *) "self",(char *) "pos", NULL
28964 };
28965
28966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
28967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28969 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
28970 if (PyErr_Occurred()) SWIG_fail;
28971 {
28972 PyThreadState* __tstate = wxPyBeginAllowThreads();
28973 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
28974
28975 wxPyEndAllowThreads(__tstate);
28976 if (PyErr_Occurred()) SWIG_fail;
28977 }
28978 {
28979 resultobj = wxPyMake_wxObject(result);
28980 }
28981 return resultobj;
28982 fail:
28983 return NULL;
28984 }
28985
28986
28987 static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28988 PyObject *resultobj;
28989 wxMenu *arg1 = (wxMenu *) 0 ;
28990 size_t arg2 ;
28991 int arg3 ;
28992 wxString *arg4 = 0 ;
28993 wxString const &arg5_defvalue = wxPyEmptyString ;
28994 wxString *arg5 = (wxString *) &arg5_defvalue ;
28995 wxMenuItem *result;
28996 bool temp4 = False ;
28997 bool temp5 = False ;
28998 PyObject * obj0 = 0 ;
28999 PyObject * obj1 = 0 ;
29000 PyObject * obj2 = 0 ;
29001 PyObject * obj3 = 0 ;
29002 PyObject * obj4 = 0 ;
29003 char *kwnames[] = {
29004 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29005 };
29006
29007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29010 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29011 if (PyErr_Occurred()) SWIG_fail;
29012 arg3 = (int) SWIG_AsInt(obj2);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 {
29015 arg4 = wxString_in_helper(obj3);
29016 if (arg4 == NULL) SWIG_fail;
29017 temp4 = True;
29018 }
29019 if (obj4) {
29020 {
29021 arg5 = wxString_in_helper(obj4);
29022 if (arg5 == NULL) SWIG_fail;
29023 temp5 = True;
29024 }
29025 }
29026 {
29027 PyThreadState* __tstate = wxPyBeginAllowThreads();
29028 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29029
29030 wxPyEndAllowThreads(__tstate);
29031 if (PyErr_Occurred()) SWIG_fail;
29032 }
29033 {
29034 resultobj = wxPyMake_wxObject(result);
29035 }
29036 {
29037 if (temp4)
29038 delete arg4;
29039 }
29040 {
29041 if (temp5)
29042 delete arg5;
29043 }
29044 return resultobj;
29045 fail:
29046 {
29047 if (temp4)
29048 delete arg4;
29049 }
29050 {
29051 if (temp5)
29052 delete arg5;
29053 }
29054 return NULL;
29055 }
29056
29057
29058 static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29059 PyObject *resultobj;
29060 wxMenu *arg1 = (wxMenu *) 0 ;
29061 size_t arg2 ;
29062 int arg3 ;
29063 wxString *arg4 = 0 ;
29064 wxString const &arg5_defvalue = wxPyEmptyString ;
29065 wxString *arg5 = (wxString *) &arg5_defvalue ;
29066 wxMenuItem *result;
29067 bool temp4 = False ;
29068 bool temp5 = False ;
29069 PyObject * obj0 = 0 ;
29070 PyObject * obj1 = 0 ;
29071 PyObject * obj2 = 0 ;
29072 PyObject * obj3 = 0 ;
29073 PyObject * obj4 = 0 ;
29074 char *kwnames[] = {
29075 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29076 };
29077
29078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29081 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29082 if (PyErr_Occurred()) SWIG_fail;
29083 arg3 = (int) SWIG_AsInt(obj2);
29084 if (PyErr_Occurred()) SWIG_fail;
29085 {
29086 arg4 = wxString_in_helper(obj3);
29087 if (arg4 == NULL) SWIG_fail;
29088 temp4 = True;
29089 }
29090 if (obj4) {
29091 {
29092 arg5 = wxString_in_helper(obj4);
29093 if (arg5 == NULL) SWIG_fail;
29094 temp5 = True;
29095 }
29096 }
29097 {
29098 PyThreadState* __tstate = wxPyBeginAllowThreads();
29099 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29100
29101 wxPyEndAllowThreads(__tstate);
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
29104 {
29105 resultobj = wxPyMake_wxObject(result);
29106 }
29107 {
29108 if (temp4)
29109 delete arg4;
29110 }
29111 {
29112 if (temp5)
29113 delete arg5;
29114 }
29115 return resultobj;
29116 fail:
29117 {
29118 if (temp4)
29119 delete arg4;
29120 }
29121 {
29122 if (temp5)
29123 delete arg5;
29124 }
29125 return NULL;
29126 }
29127
29128
29129 static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29130 PyObject *resultobj;
29131 wxMenu *arg1 = (wxMenu *) 0 ;
29132 size_t arg2 ;
29133 int arg3 ;
29134 wxString *arg4 = 0 ;
29135 wxMenu *arg5 = (wxMenu *) 0 ;
29136 wxString const &arg6_defvalue = wxPyEmptyString ;
29137 wxString *arg6 = (wxString *) &arg6_defvalue ;
29138 wxMenuItem *result;
29139 bool temp4 = False ;
29140 bool temp6 = False ;
29141 PyObject * obj0 = 0 ;
29142 PyObject * obj1 = 0 ;
29143 PyObject * obj2 = 0 ;
29144 PyObject * obj3 = 0 ;
29145 PyObject * obj4 = 0 ;
29146 PyObject * obj5 = 0 ;
29147 char *kwnames[] = {
29148 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29149 };
29150
29151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29154 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 arg3 = (int) SWIG_AsInt(obj2);
29157 if (PyErr_Occurred()) SWIG_fail;
29158 {
29159 arg4 = wxString_in_helper(obj3);
29160 if (arg4 == NULL) SWIG_fail;
29161 temp4 = True;
29162 }
29163 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29165 if (obj5) {
29166 {
29167 arg6 = wxString_in_helper(obj5);
29168 if (arg6 == NULL) SWIG_fail;
29169 temp6 = True;
29170 }
29171 }
29172 {
29173 PyThreadState* __tstate = wxPyBeginAllowThreads();
29174 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29175
29176 wxPyEndAllowThreads(__tstate);
29177 if (PyErr_Occurred()) SWIG_fail;
29178 }
29179 {
29180 resultobj = wxPyMake_wxObject(result);
29181 }
29182 {
29183 if (temp4)
29184 delete arg4;
29185 }
29186 {
29187 if (temp6)
29188 delete arg6;
29189 }
29190 return resultobj;
29191 fail:
29192 {
29193 if (temp4)
29194 delete arg4;
29195 }
29196 {
29197 if (temp6)
29198 delete arg6;
29199 }
29200 return NULL;
29201 }
29202
29203
29204 static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29205 PyObject *resultobj;
29206 wxMenu *arg1 = (wxMenu *) 0 ;
29207 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29208 wxMenuItem *result;
29209 PyObject * obj0 = 0 ;
29210 PyObject * obj1 = 0 ;
29211 char *kwnames[] = {
29212 (char *) "self",(char *) "item", NULL
29213 };
29214
29215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29220 {
29221 PyThreadState* __tstate = wxPyBeginAllowThreads();
29222 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29223
29224 wxPyEndAllowThreads(__tstate);
29225 if (PyErr_Occurred()) SWIG_fail;
29226 }
29227 {
29228 resultobj = wxPyMake_wxObject(result);
29229 }
29230 return resultobj;
29231 fail:
29232 return NULL;
29233 }
29234
29235
29236 static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
29237 PyObject *resultobj;
29238 wxMenu *arg1 = (wxMenu *) 0 ;
29239 int arg2 ;
29240 wxString *arg3 = 0 ;
29241 wxString const &arg4_defvalue = wxPyEmptyString ;
29242 wxString *arg4 = (wxString *) &arg4_defvalue ;
29243 int arg5 = (int) wxITEM_NORMAL ;
29244 wxMenuItem *result;
29245 bool temp3 = False ;
29246 bool temp4 = False ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 PyObject * obj2 = 0 ;
29250 PyObject * obj3 = 0 ;
29251 PyObject * obj4 = 0 ;
29252 char *kwnames[] = {
29253 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29254 };
29255
29256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29259 arg2 = (int) SWIG_AsInt(obj1);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 {
29262 arg3 = wxString_in_helper(obj2);
29263 if (arg3 == NULL) SWIG_fail;
29264 temp3 = True;
29265 }
29266 if (obj3) {
29267 {
29268 arg4 = wxString_in_helper(obj3);
29269 if (arg4 == NULL) SWIG_fail;
29270 temp4 = True;
29271 }
29272 }
29273 if (obj4) {
29274 arg5 = (wxItemKind) SWIG_AsInt(obj4);
29275 if (PyErr_Occurred()) SWIG_fail;
29276 }
29277 {
29278 PyThreadState* __tstate = wxPyBeginAllowThreads();
29279 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29280
29281 wxPyEndAllowThreads(__tstate);
29282 if (PyErr_Occurred()) SWIG_fail;
29283 }
29284 {
29285 resultobj = wxPyMake_wxObject(result);
29286 }
29287 {
29288 if (temp3)
29289 delete arg3;
29290 }
29291 {
29292 if (temp4)
29293 delete arg4;
29294 }
29295 return resultobj;
29296 fail:
29297 {
29298 if (temp3)
29299 delete arg3;
29300 }
29301 {
29302 if (temp4)
29303 delete arg4;
29304 }
29305 return NULL;
29306 }
29307
29308
29309 static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29310 PyObject *resultobj;
29311 wxMenu *arg1 = (wxMenu *) 0 ;
29312 wxMenuItem *result;
29313 PyObject * obj0 = 0 ;
29314 char *kwnames[] = {
29315 (char *) "self", NULL
29316 };
29317
29318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
29319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29321 {
29322 PyThreadState* __tstate = wxPyBeginAllowThreads();
29323 result = (wxMenuItem *)(arg1)->PrependSeparator();
29324
29325 wxPyEndAllowThreads(__tstate);
29326 if (PyErr_Occurred()) SWIG_fail;
29327 }
29328 {
29329 resultobj = wxPyMake_wxObject(result);
29330 }
29331 return resultobj;
29332 fail:
29333 return NULL;
29334 }
29335
29336
29337 static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29338 PyObject *resultobj;
29339 wxMenu *arg1 = (wxMenu *) 0 ;
29340 int arg2 ;
29341 wxString *arg3 = 0 ;
29342 wxString const &arg4_defvalue = wxPyEmptyString ;
29343 wxString *arg4 = (wxString *) &arg4_defvalue ;
29344 wxMenuItem *result;
29345 bool temp3 = False ;
29346 bool temp4 = False ;
29347 PyObject * obj0 = 0 ;
29348 PyObject * obj1 = 0 ;
29349 PyObject * obj2 = 0 ;
29350 PyObject * obj3 = 0 ;
29351 char *kwnames[] = {
29352 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29353 };
29354
29355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29358 arg2 = (int) SWIG_AsInt(obj1);
29359 if (PyErr_Occurred()) SWIG_fail;
29360 {
29361 arg3 = wxString_in_helper(obj2);
29362 if (arg3 == NULL) SWIG_fail;
29363 temp3 = True;
29364 }
29365 if (obj3) {
29366 {
29367 arg4 = wxString_in_helper(obj3);
29368 if (arg4 == NULL) SWIG_fail;
29369 temp4 = True;
29370 }
29371 }
29372 {
29373 PyThreadState* __tstate = wxPyBeginAllowThreads();
29374 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29375
29376 wxPyEndAllowThreads(__tstate);
29377 if (PyErr_Occurred()) SWIG_fail;
29378 }
29379 {
29380 resultobj = wxPyMake_wxObject(result);
29381 }
29382 {
29383 if (temp3)
29384 delete arg3;
29385 }
29386 {
29387 if (temp4)
29388 delete arg4;
29389 }
29390 return resultobj;
29391 fail:
29392 {
29393 if (temp3)
29394 delete arg3;
29395 }
29396 {
29397 if (temp4)
29398 delete arg4;
29399 }
29400 return NULL;
29401 }
29402
29403
29404 static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29405 PyObject *resultobj;
29406 wxMenu *arg1 = (wxMenu *) 0 ;
29407 int arg2 ;
29408 wxString *arg3 = 0 ;
29409 wxString const &arg4_defvalue = wxPyEmptyString ;
29410 wxString *arg4 = (wxString *) &arg4_defvalue ;
29411 wxMenuItem *result;
29412 bool temp3 = False ;
29413 bool temp4 = False ;
29414 PyObject * obj0 = 0 ;
29415 PyObject * obj1 = 0 ;
29416 PyObject * obj2 = 0 ;
29417 PyObject * obj3 = 0 ;
29418 char *kwnames[] = {
29419 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29420 };
29421
29422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29425 arg2 = (int) SWIG_AsInt(obj1);
29426 if (PyErr_Occurred()) SWIG_fail;
29427 {
29428 arg3 = wxString_in_helper(obj2);
29429 if (arg3 == NULL) SWIG_fail;
29430 temp3 = True;
29431 }
29432 if (obj3) {
29433 {
29434 arg4 = wxString_in_helper(obj3);
29435 if (arg4 == NULL) SWIG_fail;
29436 temp4 = True;
29437 }
29438 }
29439 {
29440 PyThreadState* __tstate = wxPyBeginAllowThreads();
29441 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29442
29443 wxPyEndAllowThreads(__tstate);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 {
29447 resultobj = wxPyMake_wxObject(result);
29448 }
29449 {
29450 if (temp3)
29451 delete arg3;
29452 }
29453 {
29454 if (temp4)
29455 delete arg4;
29456 }
29457 return resultobj;
29458 fail:
29459 {
29460 if (temp3)
29461 delete arg3;
29462 }
29463 {
29464 if (temp4)
29465 delete arg4;
29466 }
29467 return NULL;
29468 }
29469
29470
29471 static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29472 PyObject *resultobj;
29473 wxMenu *arg1 = (wxMenu *) 0 ;
29474 int arg2 ;
29475 wxString *arg3 = 0 ;
29476 wxMenu *arg4 = (wxMenu *) 0 ;
29477 wxString const &arg5_defvalue = wxPyEmptyString ;
29478 wxString *arg5 = (wxString *) &arg5_defvalue ;
29479 wxMenuItem *result;
29480 bool temp3 = False ;
29481 bool temp5 = False ;
29482 PyObject * obj0 = 0 ;
29483 PyObject * obj1 = 0 ;
29484 PyObject * obj2 = 0 ;
29485 PyObject * obj3 = 0 ;
29486 PyObject * obj4 = 0 ;
29487 char *kwnames[] = {
29488 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29489 };
29490
29491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29494 arg2 = (int) SWIG_AsInt(obj1);
29495 if (PyErr_Occurred()) SWIG_fail;
29496 {
29497 arg3 = wxString_in_helper(obj2);
29498 if (arg3 == NULL) SWIG_fail;
29499 temp3 = True;
29500 }
29501 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29503 if (obj4) {
29504 {
29505 arg5 = wxString_in_helper(obj4);
29506 if (arg5 == NULL) SWIG_fail;
29507 temp5 = True;
29508 }
29509 }
29510 {
29511 PyThreadState* __tstate = wxPyBeginAllowThreads();
29512 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29513
29514 wxPyEndAllowThreads(__tstate);
29515 if (PyErr_Occurred()) SWIG_fail;
29516 }
29517 {
29518 resultobj = wxPyMake_wxObject(result);
29519 }
29520 {
29521 if (temp3)
29522 delete arg3;
29523 }
29524 {
29525 if (temp5)
29526 delete arg5;
29527 }
29528 return resultobj;
29529 fail:
29530 {
29531 if (temp3)
29532 delete arg3;
29533 }
29534 {
29535 if (temp5)
29536 delete arg5;
29537 }
29538 return NULL;
29539 }
29540
29541
29542 static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29543 PyObject *resultobj;
29544 wxMenu *arg1 = (wxMenu *) 0 ;
29545 int arg2 ;
29546 wxMenuItem *result;
29547 PyObject * obj0 = 0 ;
29548 PyObject * obj1 = 0 ;
29549 char *kwnames[] = {
29550 (char *) "self",(char *) "id", NULL
29551 };
29552
29553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
29554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29556 arg2 = (int) SWIG_AsInt(obj1);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 result = (wxMenuItem *)(arg1)->Remove(arg2);
29561
29562 wxPyEndAllowThreads(__tstate);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 {
29566 resultobj = wxPyMake_wxObject(result);
29567 }
29568 return resultobj;
29569 fail:
29570 return NULL;
29571 }
29572
29573
29574 static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29575 PyObject *resultobj;
29576 wxMenu *arg1 = (wxMenu *) 0 ;
29577 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29578 wxMenuItem *result;
29579 PyObject * obj0 = 0 ;
29580 PyObject * obj1 = 0 ;
29581 char *kwnames[] = {
29582 (char *) "self",(char *) "item", NULL
29583 };
29584
29585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
29586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29590 {
29591 PyThreadState* __tstate = wxPyBeginAllowThreads();
29592 result = (wxMenuItem *)(arg1)->Remove(arg2);
29593
29594 wxPyEndAllowThreads(__tstate);
29595 if (PyErr_Occurred()) SWIG_fail;
29596 }
29597 {
29598 resultobj = wxPyMake_wxObject(result);
29599 }
29600 return resultobj;
29601 fail:
29602 return NULL;
29603 }
29604
29605
29606 static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
29607 PyObject *resultobj;
29608 wxMenu *arg1 = (wxMenu *) 0 ;
29609 int arg2 ;
29610 bool result;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 char *kwnames[] = {
29614 (char *) "self",(char *) "id", NULL
29615 };
29616
29617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
29618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29620 arg2 = (int) SWIG_AsInt(obj1);
29621 if (PyErr_Occurred()) SWIG_fail;
29622 {
29623 PyThreadState* __tstate = wxPyBeginAllowThreads();
29624 result = (bool)(arg1)->Delete(arg2);
29625
29626 wxPyEndAllowThreads(__tstate);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 {
29630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29631 }
29632 return resultobj;
29633 fail:
29634 return NULL;
29635 }
29636
29637
29638 static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29639 PyObject *resultobj;
29640 wxMenu *arg1 = (wxMenu *) 0 ;
29641 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29642 bool result;
29643 PyObject * obj0 = 0 ;
29644 PyObject * obj1 = 0 ;
29645 char *kwnames[] = {
29646 (char *) "self",(char *) "item", NULL
29647 };
29648
29649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
29650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 result = (bool)(arg1)->Delete(arg2);
29657
29658 wxPyEndAllowThreads(__tstate);
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 {
29662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29663 }
29664 return resultobj;
29665 fail:
29666 return NULL;
29667 }
29668
29669
29670 static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
29671 PyObject *resultobj;
29672 wxMenu *arg1 = (wxMenu *) 0 ;
29673 PyObject * obj0 = 0 ;
29674 char *kwnames[] = {
29675 (char *) "self", NULL
29676 };
29677
29678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
29679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29681 {
29682 PyThreadState* __tstate = wxPyBeginAllowThreads();
29683 wxMenu_Destroy(arg1);
29684
29685 wxPyEndAllowThreads(__tstate);
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 Py_INCREF(Py_None); resultobj = Py_None;
29689 return resultobj;
29690 fail:
29691 return NULL;
29692 }
29693
29694
29695 static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
29696 PyObject *resultobj;
29697 wxMenu *arg1 = (wxMenu *) 0 ;
29698 int arg2 ;
29699 bool result;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 char *kwnames[] = {
29703 (char *) "self",(char *) "id", NULL
29704 };
29705
29706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
29707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29709 arg2 = (int) SWIG_AsInt(obj1);
29710 if (PyErr_Occurred()) SWIG_fail;
29711 {
29712 PyThreadState* __tstate = wxPyBeginAllowThreads();
29713 result = (bool)(arg1)->Destroy(arg2);
29714
29715 wxPyEndAllowThreads(__tstate);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 {
29719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29720 }
29721 return resultobj;
29722 fail:
29723 return NULL;
29724 }
29725
29726
29727 static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29728 PyObject *resultobj;
29729 wxMenu *arg1 = (wxMenu *) 0 ;
29730 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29731 bool result;
29732 PyObject * obj0 = 0 ;
29733 PyObject * obj1 = 0 ;
29734 char *kwnames[] = {
29735 (char *) "self",(char *) "item", NULL
29736 };
29737
29738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
29739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29743 {
29744 PyThreadState* __tstate = wxPyBeginAllowThreads();
29745 result = (bool)(arg1)->Destroy(arg2);
29746
29747 wxPyEndAllowThreads(__tstate);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 {
29751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29752 }
29753 return resultobj;
29754 fail:
29755 return NULL;
29756 }
29757
29758
29759 static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
29760 PyObject *resultobj;
29761 wxMenu *arg1 = (wxMenu *) 0 ;
29762 size_t result;
29763 PyObject * obj0 = 0 ;
29764 char *kwnames[] = {
29765 (char *) "self", NULL
29766 };
29767
29768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
29769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29771 {
29772 PyThreadState* __tstate = wxPyBeginAllowThreads();
29773 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
29774
29775 wxPyEndAllowThreads(__tstate);
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
29778 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
29779 return resultobj;
29780 fail:
29781 return NULL;
29782 }
29783
29784
29785 static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
29786 PyObject *resultobj;
29787 wxMenu *arg1 = (wxMenu *) 0 ;
29788 PyObject *result;
29789 PyObject * obj0 = 0 ;
29790 char *kwnames[] = {
29791 (char *) "self", NULL
29792 };
29793
29794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
29795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29797 {
29798 PyThreadState* __tstate = wxPyBeginAllowThreads();
29799 result = (PyObject *)wxMenu_GetMenuItems(arg1);
29800
29801 wxPyEndAllowThreads(__tstate);
29802 if (PyErr_Occurred()) SWIG_fail;
29803 }
29804 resultobj = result;
29805 return resultobj;
29806 fail:
29807 return NULL;
29808 }
29809
29810
29811 static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29812 PyObject *resultobj;
29813 wxMenu *arg1 = (wxMenu *) 0 ;
29814 wxString *arg2 = 0 ;
29815 int result;
29816 bool temp2 = False ;
29817 PyObject * obj0 = 0 ;
29818 PyObject * obj1 = 0 ;
29819 char *kwnames[] = {
29820 (char *) "self",(char *) "item", NULL
29821 };
29822
29823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
29824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29826 {
29827 arg2 = wxString_in_helper(obj1);
29828 if (arg2 == NULL) SWIG_fail;
29829 temp2 = True;
29830 }
29831 {
29832 PyThreadState* __tstate = wxPyBeginAllowThreads();
29833 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
29834
29835 wxPyEndAllowThreads(__tstate);
29836 if (PyErr_Occurred()) SWIG_fail;
29837 }
29838 resultobj = SWIG_FromInt((int)result);
29839 {
29840 if (temp2)
29841 delete arg2;
29842 }
29843 return resultobj;
29844 fail:
29845 {
29846 if (temp2)
29847 delete arg2;
29848 }
29849 return NULL;
29850 }
29851
29852
29853 static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
29854 PyObject *resultobj;
29855 wxMenu *arg1 = (wxMenu *) 0 ;
29856 int arg2 ;
29857 wxMenuItem *result;
29858 PyObject * obj0 = 0 ;
29859 PyObject * obj1 = 0 ;
29860 char *kwnames[] = {
29861 (char *) "self",(char *) "id", NULL
29862 };
29863
29864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
29865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29867 arg2 = (int) SWIG_AsInt(obj1);
29868 if (PyErr_Occurred()) SWIG_fail;
29869 {
29870 PyThreadState* __tstate = wxPyBeginAllowThreads();
29871 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
29872
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 {
29877 resultobj = wxPyMake_wxObject(result);
29878 }
29879 return resultobj;
29880 fail:
29881 return NULL;
29882 }
29883
29884
29885 static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29886 PyObject *resultobj;
29887 wxMenu *arg1 = (wxMenu *) 0 ;
29888 size_t arg2 ;
29889 wxMenuItem *result;
29890 PyObject * obj0 = 0 ;
29891 PyObject * obj1 = 0 ;
29892 char *kwnames[] = {
29893 (char *) "self",(char *) "position", NULL
29894 };
29895
29896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
29897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29899 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29900 if (PyErr_Occurred()) SWIG_fail;
29901 {
29902 PyThreadState* __tstate = wxPyBeginAllowThreads();
29903 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
29904
29905 wxPyEndAllowThreads(__tstate);
29906 if (PyErr_Occurred()) SWIG_fail;
29907 }
29908 {
29909 resultobj = wxPyMake_wxObject(result);
29910 }
29911 return resultobj;
29912 fail:
29913 return NULL;
29914 }
29915
29916
29917 static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
29918 PyObject *resultobj;
29919 wxMenu *arg1 = (wxMenu *) 0 ;
29920 int arg2 ;
29921 bool arg3 ;
29922 PyObject * obj0 = 0 ;
29923 PyObject * obj1 = 0 ;
29924 PyObject * obj2 = 0 ;
29925 char *kwnames[] = {
29926 (char *) "self",(char *) "id",(char *) "enable", NULL
29927 };
29928
29929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
29930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29932 arg2 = (int) SWIG_AsInt(obj1);
29933 if (PyErr_Occurred()) SWIG_fail;
29934 arg3 = (bool) SWIG_AsBool(obj2);
29935 if (PyErr_Occurred()) SWIG_fail;
29936 {
29937 PyThreadState* __tstate = wxPyBeginAllowThreads();
29938 (arg1)->Enable(arg2,arg3);
29939
29940 wxPyEndAllowThreads(__tstate);
29941 if (PyErr_Occurred()) SWIG_fail;
29942 }
29943 Py_INCREF(Py_None); resultobj = Py_None;
29944 return resultobj;
29945 fail:
29946 return NULL;
29947 }
29948
29949
29950 static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
29951 PyObject *resultobj;
29952 wxMenu *arg1 = (wxMenu *) 0 ;
29953 int arg2 ;
29954 bool result;
29955 PyObject * obj0 = 0 ;
29956 PyObject * obj1 = 0 ;
29957 char *kwnames[] = {
29958 (char *) "self",(char *) "id", NULL
29959 };
29960
29961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
29962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29964 arg2 = (int) SWIG_AsInt(obj1);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 {
29967 PyThreadState* __tstate = wxPyBeginAllowThreads();
29968 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
29969
29970 wxPyEndAllowThreads(__tstate);
29971 if (PyErr_Occurred()) SWIG_fail;
29972 }
29973 {
29974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29975 }
29976 return resultobj;
29977 fail:
29978 return NULL;
29979 }
29980
29981
29982 static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
29983 PyObject *resultobj;
29984 wxMenu *arg1 = (wxMenu *) 0 ;
29985 int arg2 ;
29986 bool arg3 ;
29987 PyObject * obj0 = 0 ;
29988 PyObject * obj1 = 0 ;
29989 PyObject * obj2 = 0 ;
29990 char *kwnames[] = {
29991 (char *) "self",(char *) "id",(char *) "check", NULL
29992 };
29993
29994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
29995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29997 arg2 = (int) SWIG_AsInt(obj1);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 arg3 = (bool) SWIG_AsBool(obj2);
30000 if (PyErr_Occurred()) SWIG_fail;
30001 {
30002 PyThreadState* __tstate = wxPyBeginAllowThreads();
30003 (arg1)->Check(arg2,arg3);
30004
30005 wxPyEndAllowThreads(__tstate);
30006 if (PyErr_Occurred()) SWIG_fail;
30007 }
30008 Py_INCREF(Py_None); resultobj = Py_None;
30009 return resultobj;
30010 fail:
30011 return NULL;
30012 }
30013
30014
30015 static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30016 PyObject *resultobj;
30017 wxMenu *arg1 = (wxMenu *) 0 ;
30018 int arg2 ;
30019 bool result;
30020 PyObject * obj0 = 0 ;
30021 PyObject * obj1 = 0 ;
30022 char *kwnames[] = {
30023 (char *) "self",(char *) "id", NULL
30024 };
30025
30026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30029 arg2 = (int) SWIG_AsInt(obj1);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 {
30032 PyThreadState* __tstate = wxPyBeginAllowThreads();
30033 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30034
30035 wxPyEndAllowThreads(__tstate);
30036 if (PyErr_Occurred()) SWIG_fail;
30037 }
30038 {
30039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30040 }
30041 return resultobj;
30042 fail:
30043 return NULL;
30044 }
30045
30046
30047 static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj;
30049 wxMenu *arg1 = (wxMenu *) 0 ;
30050 int arg2 ;
30051 wxString *arg3 = 0 ;
30052 bool temp3 = False ;
30053 PyObject * obj0 = 0 ;
30054 PyObject * obj1 = 0 ;
30055 PyObject * obj2 = 0 ;
30056 char *kwnames[] = {
30057 (char *) "self",(char *) "id",(char *) "label", NULL
30058 };
30059
30060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30063 arg2 = (int) SWIG_AsInt(obj1);
30064 if (PyErr_Occurred()) SWIG_fail;
30065 {
30066 arg3 = wxString_in_helper(obj2);
30067 if (arg3 == NULL) SWIG_fail;
30068 temp3 = True;
30069 }
30070 {
30071 PyThreadState* __tstate = wxPyBeginAllowThreads();
30072 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30073
30074 wxPyEndAllowThreads(__tstate);
30075 if (PyErr_Occurred()) SWIG_fail;
30076 }
30077 Py_INCREF(Py_None); resultobj = Py_None;
30078 {
30079 if (temp3)
30080 delete arg3;
30081 }
30082 return resultobj;
30083 fail:
30084 {
30085 if (temp3)
30086 delete arg3;
30087 }
30088 return NULL;
30089 }
30090
30091
30092 static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30093 PyObject *resultobj;
30094 wxMenu *arg1 = (wxMenu *) 0 ;
30095 int arg2 ;
30096 wxString result;
30097 PyObject * obj0 = 0 ;
30098 PyObject * obj1 = 0 ;
30099 char *kwnames[] = {
30100 (char *) "self",(char *) "id", NULL
30101 };
30102
30103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30106 arg2 = (int) SWIG_AsInt(obj1);
30107 if (PyErr_Occurred()) SWIG_fail;
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30111
30112 wxPyEndAllowThreads(__tstate);
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 {
30116 #if wxUSE_UNICODE
30117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30118 #else
30119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30120 #endif
30121 }
30122 return resultobj;
30123 fail:
30124 return NULL;
30125 }
30126
30127
30128 static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30129 PyObject *resultobj;
30130 wxMenu *arg1 = (wxMenu *) 0 ;
30131 int arg2 ;
30132 wxString *arg3 = 0 ;
30133 bool temp3 = False ;
30134 PyObject * obj0 = 0 ;
30135 PyObject * obj1 = 0 ;
30136 PyObject * obj2 = 0 ;
30137 char *kwnames[] = {
30138 (char *) "self",(char *) "id",(char *) "helpString", NULL
30139 };
30140
30141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30144 arg2 = (int) SWIG_AsInt(obj1);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 {
30147 arg3 = wxString_in_helper(obj2);
30148 if (arg3 == NULL) SWIG_fail;
30149 temp3 = True;
30150 }
30151 {
30152 PyThreadState* __tstate = wxPyBeginAllowThreads();
30153 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30154
30155 wxPyEndAllowThreads(__tstate);
30156 if (PyErr_Occurred()) SWIG_fail;
30157 }
30158 Py_INCREF(Py_None); resultobj = Py_None;
30159 {
30160 if (temp3)
30161 delete arg3;
30162 }
30163 return resultobj;
30164 fail:
30165 {
30166 if (temp3)
30167 delete arg3;
30168 }
30169 return NULL;
30170 }
30171
30172
30173 static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30174 PyObject *resultobj;
30175 wxMenu *arg1 = (wxMenu *) 0 ;
30176 int arg2 ;
30177 wxString result;
30178 PyObject * obj0 = 0 ;
30179 PyObject * obj1 = 0 ;
30180 char *kwnames[] = {
30181 (char *) "self",(char *) "id", NULL
30182 };
30183
30184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30187 arg2 = (int) SWIG_AsInt(obj1);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 {
30190 PyThreadState* __tstate = wxPyBeginAllowThreads();
30191 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30192
30193 wxPyEndAllowThreads(__tstate);
30194 if (PyErr_Occurred()) SWIG_fail;
30195 }
30196 {
30197 #if wxUSE_UNICODE
30198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30199 #else
30200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30201 #endif
30202 }
30203 return resultobj;
30204 fail:
30205 return NULL;
30206 }
30207
30208
30209 static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30210 PyObject *resultobj;
30211 wxMenu *arg1 = (wxMenu *) 0 ;
30212 wxString *arg2 = 0 ;
30213 bool temp2 = False ;
30214 PyObject * obj0 = 0 ;
30215 PyObject * obj1 = 0 ;
30216 char *kwnames[] = {
30217 (char *) "self",(char *) "title", NULL
30218 };
30219
30220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30223 {
30224 arg2 = wxString_in_helper(obj1);
30225 if (arg2 == NULL) SWIG_fail;
30226 temp2 = True;
30227 }
30228 {
30229 PyThreadState* __tstate = wxPyBeginAllowThreads();
30230 (arg1)->SetTitle((wxString const &)*arg2);
30231
30232 wxPyEndAllowThreads(__tstate);
30233 if (PyErr_Occurred()) SWIG_fail;
30234 }
30235 Py_INCREF(Py_None); resultobj = Py_None;
30236 {
30237 if (temp2)
30238 delete arg2;
30239 }
30240 return resultobj;
30241 fail:
30242 {
30243 if (temp2)
30244 delete arg2;
30245 }
30246 return NULL;
30247 }
30248
30249
30250 static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30251 PyObject *resultobj;
30252 wxMenu *arg1 = (wxMenu *) 0 ;
30253 wxString result;
30254 PyObject * obj0 = 0 ;
30255 char *kwnames[] = {
30256 (char *) "self", NULL
30257 };
30258
30259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = ((wxMenu const *)arg1)->GetTitle();
30265
30266 wxPyEndAllowThreads(__tstate);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 {
30270 #if wxUSE_UNICODE
30271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30272 #else
30273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30274 #endif
30275 }
30276 return resultobj;
30277 fail:
30278 return NULL;
30279 }
30280
30281
30282 static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30283 PyObject *resultobj;
30284 wxMenu *arg1 = (wxMenu *) 0 ;
30285 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30286 PyObject * obj0 = 0 ;
30287 PyObject * obj1 = 0 ;
30288 char *kwnames[] = {
30289 (char *) "self",(char *) "handler", NULL
30290 };
30291
30292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30297 {
30298 PyThreadState* __tstate = wxPyBeginAllowThreads();
30299 (arg1)->SetEventHandler(arg2);
30300
30301 wxPyEndAllowThreads(__tstate);
30302 if (PyErr_Occurred()) SWIG_fail;
30303 }
30304 Py_INCREF(Py_None); resultobj = Py_None;
30305 return resultobj;
30306 fail:
30307 return NULL;
30308 }
30309
30310
30311 static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30312 PyObject *resultobj;
30313 wxMenu *arg1 = (wxMenu *) 0 ;
30314 wxEvtHandler *result;
30315 PyObject * obj0 = 0 ;
30316 char *kwnames[] = {
30317 (char *) "self", NULL
30318 };
30319
30320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
30321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
30326
30327 wxPyEndAllowThreads(__tstate);
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 {
30331 resultobj = wxPyMake_wxObject(result);
30332 }
30333 return resultobj;
30334 fail:
30335 return NULL;
30336 }
30337
30338
30339 static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30340 PyObject *resultobj;
30341 wxMenu *arg1 = (wxMenu *) 0 ;
30342 wxWindow *arg2 = (wxWindow *) 0 ;
30343 PyObject * obj0 = 0 ;
30344 PyObject * obj1 = 0 ;
30345 char *kwnames[] = {
30346 (char *) "self",(char *) "win", NULL
30347 };
30348
30349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
30350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30354 {
30355 PyThreadState* __tstate = wxPyBeginAllowThreads();
30356 (arg1)->SetInvokingWindow(arg2);
30357
30358 wxPyEndAllowThreads(__tstate);
30359 if (PyErr_Occurred()) SWIG_fail;
30360 }
30361 Py_INCREF(Py_None); resultobj = Py_None;
30362 return resultobj;
30363 fail:
30364 return NULL;
30365 }
30366
30367
30368 static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30369 PyObject *resultobj;
30370 wxMenu *arg1 = (wxMenu *) 0 ;
30371 wxWindow *result;
30372 PyObject * obj0 = 0 ;
30373 char *kwnames[] = {
30374 (char *) "self", NULL
30375 };
30376
30377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
30378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30380 {
30381 PyThreadState* __tstate = wxPyBeginAllowThreads();
30382 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
30383
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 {
30388 resultobj = wxPyMake_wxObject(result);
30389 }
30390 return resultobj;
30391 fail:
30392 return NULL;
30393 }
30394
30395
30396 static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
30397 PyObject *resultobj;
30398 wxMenu *arg1 = (wxMenu *) 0 ;
30399 long result;
30400 PyObject * obj0 = 0 ;
30401 char *kwnames[] = {
30402 (char *) "self", NULL
30403 };
30404
30405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
30406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30408 {
30409 PyThreadState* __tstate = wxPyBeginAllowThreads();
30410 result = (long)((wxMenu const *)arg1)->GetStyle();
30411
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_FromLong((long)result);
30416 return resultobj;
30417 fail:
30418 return NULL;
30419 }
30420
30421
30422 static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
30423 PyObject *resultobj;
30424 wxMenu *arg1 = (wxMenu *) 0 ;
30425 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
30426 PyObject * obj0 = 0 ;
30427 PyObject * obj1 = 0 ;
30428 char *kwnames[] = {
30429 (char *) "self",(char *) "source", NULL
30430 };
30431
30432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
30433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30435 if (obj1) {
30436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30438 }
30439 {
30440 PyThreadState* __tstate = wxPyBeginAllowThreads();
30441 (arg1)->UpdateUI(arg2);
30442
30443 wxPyEndAllowThreads(__tstate);
30444 if (PyErr_Occurred()) SWIG_fail;
30445 }
30446 Py_INCREF(Py_None); resultobj = Py_None;
30447 return resultobj;
30448 fail:
30449 return NULL;
30450 }
30451
30452
30453 static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30454 PyObject *resultobj;
30455 wxMenu *arg1 = (wxMenu *) 0 ;
30456 wxMenuBar *result;
30457 PyObject * obj0 = 0 ;
30458 char *kwnames[] = {
30459 (char *) "self", NULL
30460 };
30461
30462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
30463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30465 {
30466 PyThreadState* __tstate = wxPyBeginAllowThreads();
30467 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
30468
30469 wxPyEndAllowThreads(__tstate);
30470 if (PyErr_Occurred()) SWIG_fail;
30471 }
30472 {
30473 resultobj = wxPyMake_wxObject(result);
30474 }
30475 return resultobj;
30476 fail:
30477 return NULL;
30478 }
30479
30480
30481 static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30482 PyObject *resultobj;
30483 wxMenu *arg1 = (wxMenu *) 0 ;
30484 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
30485 PyObject * obj0 = 0 ;
30486 PyObject * obj1 = 0 ;
30487 char *kwnames[] = {
30488 (char *) "self",(char *) "menubar", NULL
30489 };
30490
30491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
30492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
30495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30496 {
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 (arg1)->Attach(arg2);
30499
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 Py_INCREF(Py_None); resultobj = Py_None;
30504 return resultobj;
30505 fail:
30506 return NULL;
30507 }
30508
30509
30510 static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30511 PyObject *resultobj;
30512 wxMenu *arg1 = (wxMenu *) 0 ;
30513 PyObject * obj0 = 0 ;
30514 char *kwnames[] = {
30515 (char *) "self", NULL
30516 };
30517
30518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
30519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30521 {
30522 PyThreadState* __tstate = wxPyBeginAllowThreads();
30523 (arg1)->Detach();
30524
30525 wxPyEndAllowThreads(__tstate);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 Py_INCREF(Py_None); resultobj = Py_None;
30529 return resultobj;
30530 fail:
30531 return NULL;
30532 }
30533
30534
30535 static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
30536 PyObject *resultobj;
30537 wxMenu *arg1 = (wxMenu *) 0 ;
30538 bool result;
30539 PyObject * obj0 = 0 ;
30540 char *kwnames[] = {
30541 (char *) "self", NULL
30542 };
30543
30544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
30545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30547 {
30548 PyThreadState* __tstate = wxPyBeginAllowThreads();
30549 result = (bool)((wxMenu const *)arg1)->IsAttached();
30550
30551 wxPyEndAllowThreads(__tstate);
30552 if (PyErr_Occurred()) SWIG_fail;
30553 }
30554 {
30555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30556 }
30557 return resultobj;
30558 fail:
30559 return NULL;
30560 }
30561
30562
30563 static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30564 PyObject *resultobj;
30565 wxMenu *arg1 = (wxMenu *) 0 ;
30566 wxMenu *arg2 = (wxMenu *) 0 ;
30567 PyObject * obj0 = 0 ;
30568 PyObject * obj1 = 0 ;
30569 char *kwnames[] = {
30570 (char *) "self",(char *) "parent", NULL
30571 };
30572
30573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
30574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30578 {
30579 PyThreadState* __tstate = wxPyBeginAllowThreads();
30580 (arg1)->SetParent(arg2);
30581
30582 wxPyEndAllowThreads(__tstate);
30583 if (PyErr_Occurred()) SWIG_fail;
30584 }
30585 Py_INCREF(Py_None); resultobj = Py_None;
30586 return resultobj;
30587 fail:
30588 return NULL;
30589 }
30590
30591
30592 static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30593 PyObject *resultobj;
30594 wxMenu *arg1 = (wxMenu *) 0 ;
30595 wxMenu *result;
30596 PyObject * obj0 = 0 ;
30597 char *kwnames[] = {
30598 (char *) "self", NULL
30599 };
30600
30601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
30602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30604 {
30605 PyThreadState* __tstate = wxPyBeginAllowThreads();
30606 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
30607
30608 wxPyEndAllowThreads(__tstate);
30609 if (PyErr_Occurred()) SWIG_fail;
30610 }
30611 {
30612 resultobj = wxPyMake_wxObject(result);
30613 }
30614 return resultobj;
30615 fail:
30616 return NULL;
30617 }
30618
30619
30620 static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
30621 PyObject *obj;
30622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30623 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
30624 Py_INCREF(obj);
30625 return Py_BuildValue((char *)"");
30626 }
30627 static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30628 PyObject *resultobj;
30629 long arg1 = (long) 0 ;
30630 wxMenuBar *result;
30631 PyObject * obj0 = 0 ;
30632 char *kwnames[] = {
30633 (char *) "style", NULL
30634 };
30635
30636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
30637 if (obj0) {
30638 arg1 = (long) SWIG_AsLong(obj0);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 {
30642 PyThreadState* __tstate = wxPyBeginAllowThreads();
30643 result = (wxMenuBar *)new wxMenuBar(arg1);
30644
30645 wxPyEndAllowThreads(__tstate);
30646 if (PyErr_Occurred()) SWIG_fail;
30647 }
30648 {
30649 resultobj = wxPyMake_wxObject(result);
30650 }
30651 return resultobj;
30652 fail:
30653 return NULL;
30654 }
30655
30656
30657 static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
30658 PyObject *resultobj;
30659 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30660 wxMenu *arg2 = (wxMenu *) 0 ;
30661 wxString *arg3 = 0 ;
30662 bool result;
30663 bool temp3 = False ;
30664 PyObject * obj0 = 0 ;
30665 PyObject * obj1 = 0 ;
30666 PyObject * obj2 = 0 ;
30667 char *kwnames[] = {
30668 (char *) "self",(char *) "menu",(char *) "title", NULL
30669 };
30670
30671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
30672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30676 {
30677 arg3 = wxString_in_helper(obj2);
30678 if (arg3 == NULL) SWIG_fail;
30679 temp3 = True;
30680 }
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
30684
30685 wxPyEndAllowThreads(__tstate);
30686 if (PyErr_Occurred()) SWIG_fail;
30687 }
30688 {
30689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30690 }
30691 {
30692 if (temp3)
30693 delete arg3;
30694 }
30695 return resultobj;
30696 fail:
30697 {
30698 if (temp3)
30699 delete arg3;
30700 }
30701 return NULL;
30702 }
30703
30704
30705 static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
30706 PyObject *resultobj;
30707 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30708 size_t arg2 ;
30709 wxMenu *arg3 = (wxMenu *) 0 ;
30710 wxString *arg4 = 0 ;
30711 bool result;
30712 bool temp4 = False ;
30713 PyObject * obj0 = 0 ;
30714 PyObject * obj1 = 0 ;
30715 PyObject * obj2 = 0 ;
30716 PyObject * obj3 = 0 ;
30717 char *kwnames[] = {
30718 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
30719 };
30720
30721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30724 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30725 if (PyErr_Occurred()) SWIG_fail;
30726 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
30727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30728 {
30729 arg4 = wxString_in_helper(obj3);
30730 if (arg4 == NULL) SWIG_fail;
30731 temp4 = True;
30732 }
30733 {
30734 PyThreadState* __tstate = wxPyBeginAllowThreads();
30735 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
30736
30737 wxPyEndAllowThreads(__tstate);
30738 if (PyErr_Occurred()) SWIG_fail;
30739 }
30740 {
30741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30742 }
30743 {
30744 if (temp4)
30745 delete arg4;
30746 }
30747 return resultobj;
30748 fail:
30749 {
30750 if (temp4)
30751 delete arg4;
30752 }
30753 return NULL;
30754 }
30755
30756
30757 static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
30758 PyObject *resultobj;
30759 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30760 size_t result;
30761 PyObject * obj0 = 0 ;
30762 char *kwnames[] = {
30763 (char *) "self", NULL
30764 };
30765
30766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
30767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
30772
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
30777 return resultobj;
30778 fail:
30779 return NULL;
30780 }
30781
30782
30783 static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30784 PyObject *resultobj;
30785 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30786 size_t arg2 ;
30787 wxMenu *result;
30788 PyObject * obj0 = 0 ;
30789 PyObject * obj1 = 0 ;
30790 char *kwnames[] = {
30791 (char *) "self",(char *) "pos", NULL
30792 };
30793
30794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
30795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30797 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30798 if (PyErr_Occurred()) SWIG_fail;
30799 {
30800 PyThreadState* __tstate = wxPyBeginAllowThreads();
30801 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
30802
30803 wxPyEndAllowThreads(__tstate);
30804 if (PyErr_Occurred()) SWIG_fail;
30805 }
30806 {
30807 resultobj = wxPyMake_wxObject(result);
30808 }
30809 return resultobj;
30810 fail:
30811 return NULL;
30812 }
30813
30814
30815 static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
30816 PyObject *resultobj;
30817 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30818 size_t arg2 ;
30819 wxMenu *arg3 = (wxMenu *) 0 ;
30820 wxString *arg4 = 0 ;
30821 wxMenu *result;
30822 bool temp4 = False ;
30823 PyObject * obj0 = 0 ;
30824 PyObject * obj1 = 0 ;
30825 PyObject * obj2 = 0 ;
30826 PyObject * obj3 = 0 ;
30827 char *kwnames[] = {
30828 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
30829 };
30830
30831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30834 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
30837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30838 {
30839 arg4 = wxString_in_helper(obj3);
30840 if (arg4 == NULL) SWIG_fail;
30841 temp4 = True;
30842 }
30843 {
30844 PyThreadState* __tstate = wxPyBeginAllowThreads();
30845 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
30846
30847 wxPyEndAllowThreads(__tstate);
30848 if (PyErr_Occurred()) SWIG_fail;
30849 }
30850 {
30851 resultobj = wxPyMake_wxObject(result);
30852 }
30853 {
30854 if (temp4)
30855 delete arg4;
30856 }
30857 return resultobj;
30858 fail:
30859 {
30860 if (temp4)
30861 delete arg4;
30862 }
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj;
30869 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30870 size_t arg2 ;
30871 wxMenu *result;
30872 PyObject * obj0 = 0 ;
30873 PyObject * obj1 = 0 ;
30874 char *kwnames[] = {
30875 (char *) "self",(char *) "pos", NULL
30876 };
30877
30878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
30879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30881 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30882 if (PyErr_Occurred()) SWIG_fail;
30883 {
30884 PyThreadState* __tstate = wxPyBeginAllowThreads();
30885 result = (wxMenu *)(arg1)->Remove(arg2);
30886
30887 wxPyEndAllowThreads(__tstate);
30888 if (PyErr_Occurred()) SWIG_fail;
30889 }
30890 {
30891 resultobj = wxPyMake_wxObject(result);
30892 }
30893 return resultobj;
30894 fail:
30895 return NULL;
30896 }
30897
30898
30899 static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
30900 PyObject *resultobj;
30901 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30902 size_t arg2 ;
30903 bool arg3 ;
30904 PyObject * obj0 = 0 ;
30905 PyObject * obj1 = 0 ;
30906 PyObject * obj2 = 0 ;
30907 char *kwnames[] = {
30908 (char *) "self",(char *) "pos",(char *) "enable", NULL
30909 };
30910
30911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30914 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30915 if (PyErr_Occurred()) SWIG_fail;
30916 arg3 = (bool) SWIG_AsBool(obj2);
30917 if (PyErr_Occurred()) SWIG_fail;
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 (arg1)->EnableTop(arg2,arg3);
30921
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 Py_INCREF(Py_None); resultobj = Py_None;
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
30933 PyObject *resultobj;
30934 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30935 size_t arg2 ;
30936 bool result;
30937 PyObject * obj0 = 0 ;
30938 PyObject * obj1 = 0 ;
30939 char *kwnames[] = {
30940 (char *) "self",(char *) "pos", NULL
30941 };
30942
30943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
30944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30946 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30947 if (PyErr_Occurred()) SWIG_fail;
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
30951
30952 wxPyEndAllowThreads(__tstate);
30953 if (PyErr_Occurred()) SWIG_fail;
30954 }
30955 {
30956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30957 }
30958 return resultobj;
30959 fail:
30960 return NULL;
30961 }
30962
30963
30964 static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
30965 PyObject *resultobj;
30966 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30967 size_t arg2 ;
30968 wxString *arg3 = 0 ;
30969 bool temp3 = False ;
30970 PyObject * obj0 = 0 ;
30971 PyObject * obj1 = 0 ;
30972 PyObject * obj2 = 0 ;
30973 char *kwnames[] = {
30974 (char *) "self",(char *) "pos",(char *) "label", NULL
30975 };
30976
30977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
30978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30980 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30981 if (PyErr_Occurred()) SWIG_fail;
30982 {
30983 arg3 = wxString_in_helper(obj2);
30984 if (arg3 == NULL) SWIG_fail;
30985 temp3 = True;
30986 }
30987 {
30988 PyThreadState* __tstate = wxPyBeginAllowThreads();
30989 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
30990
30991 wxPyEndAllowThreads(__tstate);
30992 if (PyErr_Occurred()) SWIG_fail;
30993 }
30994 Py_INCREF(Py_None); resultobj = Py_None;
30995 {
30996 if (temp3)
30997 delete arg3;
30998 }
30999 return resultobj;
31000 fail:
31001 {
31002 if (temp3)
31003 delete arg3;
31004 }
31005 return NULL;
31006 }
31007
31008
31009 static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31010 PyObject *resultobj;
31011 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31012 size_t arg2 ;
31013 wxString result;
31014 PyObject * obj0 = 0 ;
31015 PyObject * obj1 = 0 ;
31016 char *kwnames[] = {
31017 (char *) "self",(char *) "pos", NULL
31018 };
31019
31020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31023 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31024 if (PyErr_Occurred()) SWIG_fail;
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31028
31029 wxPyEndAllowThreads(__tstate);
31030 if (PyErr_Occurred()) SWIG_fail;
31031 }
31032 {
31033 #if wxUSE_UNICODE
31034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31035 #else
31036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31037 #endif
31038 }
31039 return resultobj;
31040 fail:
31041 return NULL;
31042 }
31043
31044
31045 static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31046 PyObject *resultobj;
31047 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31048 wxString *arg2 = 0 ;
31049 wxString *arg3 = 0 ;
31050 int result;
31051 bool temp2 = False ;
31052 bool temp3 = False ;
31053 PyObject * obj0 = 0 ;
31054 PyObject * obj1 = 0 ;
31055 PyObject * obj2 = 0 ;
31056 char *kwnames[] = {
31057 (char *) "self",(char *) "menu",(char *) "item", NULL
31058 };
31059
31060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31063 {
31064 arg2 = wxString_in_helper(obj1);
31065 if (arg2 == NULL) SWIG_fail;
31066 temp2 = True;
31067 }
31068 {
31069 arg3 = wxString_in_helper(obj2);
31070 if (arg3 == NULL) SWIG_fail;
31071 temp3 = True;
31072 }
31073 {
31074 PyThreadState* __tstate = wxPyBeginAllowThreads();
31075 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31076
31077 wxPyEndAllowThreads(__tstate);
31078 if (PyErr_Occurred()) SWIG_fail;
31079 }
31080 resultobj = SWIG_FromInt((int)result);
31081 {
31082 if (temp2)
31083 delete arg2;
31084 }
31085 {
31086 if (temp3)
31087 delete arg3;
31088 }
31089 return resultobj;
31090 fail:
31091 {
31092 if (temp2)
31093 delete arg2;
31094 }
31095 {
31096 if (temp3)
31097 delete arg3;
31098 }
31099 return NULL;
31100 }
31101
31102
31103 static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
31104 PyObject *resultobj;
31105 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31106 int arg2 ;
31107 wxMenuItem *result;
31108 PyObject * obj0 = 0 ;
31109 PyObject * obj1 = 0 ;
31110 char *kwnames[] = {
31111 (char *) "self",(char *) "id", NULL
31112 };
31113
31114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31117 arg2 = (int) SWIG_AsInt(obj1);
31118 if (PyErr_Occurred()) SWIG_fail;
31119 {
31120 PyThreadState* __tstate = wxPyBeginAllowThreads();
31121 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31122
31123 wxPyEndAllowThreads(__tstate);
31124 if (PyErr_Occurred()) SWIG_fail;
31125 }
31126 {
31127 resultobj = wxPyMake_wxObject(result);
31128 }
31129 return resultobj;
31130 fail:
31131 return NULL;
31132 }
31133
31134
31135 static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31136 PyObject *resultobj;
31137 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31138 wxString *arg2 = 0 ;
31139 int result;
31140 bool temp2 = False ;
31141 PyObject * obj0 = 0 ;
31142 PyObject * obj1 = 0 ;
31143 char *kwnames[] = {
31144 (char *) "self",(char *) "title", NULL
31145 };
31146
31147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31150 {
31151 arg2 = wxString_in_helper(obj1);
31152 if (arg2 == NULL) SWIG_fail;
31153 temp2 = True;
31154 }
31155 {
31156 PyThreadState* __tstate = wxPyBeginAllowThreads();
31157 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31158
31159 wxPyEndAllowThreads(__tstate);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 resultobj = SWIG_FromInt((int)result);
31163 {
31164 if (temp2)
31165 delete arg2;
31166 }
31167 return resultobj;
31168 fail:
31169 {
31170 if (temp2)
31171 delete arg2;
31172 }
31173 return NULL;
31174 }
31175
31176
31177 static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
31178 PyObject *resultobj;
31179 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31180 int arg2 ;
31181 bool arg3 ;
31182 PyObject * obj0 = 0 ;
31183 PyObject * obj1 = 0 ;
31184 PyObject * obj2 = 0 ;
31185 char *kwnames[] = {
31186 (char *) "self",(char *) "id",(char *) "enable", NULL
31187 };
31188
31189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31192 arg2 = (int) SWIG_AsInt(obj1);
31193 if (PyErr_Occurred()) SWIG_fail;
31194 arg3 = (bool) SWIG_AsBool(obj2);
31195 if (PyErr_Occurred()) SWIG_fail;
31196 {
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 (arg1)->Enable(arg2,arg3);
31199
31200 wxPyEndAllowThreads(__tstate);
31201 if (PyErr_Occurred()) SWIG_fail;
31202 }
31203 Py_INCREF(Py_None); resultobj = Py_None;
31204 return resultobj;
31205 fail:
31206 return NULL;
31207 }
31208
31209
31210 static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
31211 PyObject *resultobj;
31212 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31213 int arg2 ;
31214 bool arg3 ;
31215 PyObject * obj0 = 0 ;
31216 PyObject * obj1 = 0 ;
31217 PyObject * obj2 = 0 ;
31218 char *kwnames[] = {
31219 (char *) "self",(char *) "id",(char *) "check", NULL
31220 };
31221
31222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31225 arg2 = (int) SWIG_AsInt(obj1);
31226 if (PyErr_Occurred()) SWIG_fail;
31227 arg3 = (bool) SWIG_AsBool(obj2);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 {
31230 PyThreadState* __tstate = wxPyBeginAllowThreads();
31231 (arg1)->Check(arg2,arg3);
31232
31233 wxPyEndAllowThreads(__tstate);
31234 if (PyErr_Occurred()) SWIG_fail;
31235 }
31236 Py_INCREF(Py_None); resultobj = Py_None;
31237 return resultobj;
31238 fail:
31239 return NULL;
31240 }
31241
31242
31243 static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
31244 PyObject *resultobj;
31245 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31246 int arg2 ;
31247 bool result;
31248 PyObject * obj0 = 0 ;
31249 PyObject * obj1 = 0 ;
31250 char *kwnames[] = {
31251 (char *) "self",(char *) "id", NULL
31252 };
31253
31254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31257 arg2 = (int) SWIG_AsInt(obj1);
31258 if (PyErr_Occurred()) SWIG_fail;
31259 {
31260 PyThreadState* __tstate = wxPyBeginAllowThreads();
31261 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31262
31263 wxPyEndAllowThreads(__tstate);
31264 if (PyErr_Occurred()) SWIG_fail;
31265 }
31266 {
31267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31268 }
31269 return resultobj;
31270 fail:
31271 return NULL;
31272 }
31273
31274
31275 static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
31276 PyObject *resultobj;
31277 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31278 int arg2 ;
31279 bool result;
31280 PyObject * obj0 = 0 ;
31281 PyObject * obj1 = 0 ;
31282 char *kwnames[] = {
31283 (char *) "self",(char *) "id", NULL
31284 };
31285
31286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31289 arg2 = (int) SWIG_AsInt(obj1);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 {
31292 PyThreadState* __tstate = wxPyBeginAllowThreads();
31293 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31294
31295 wxPyEndAllowThreads(__tstate);
31296 if (PyErr_Occurred()) SWIG_fail;
31297 }
31298 {
31299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31300 }
31301 return resultobj;
31302 fail:
31303 return NULL;
31304 }
31305
31306
31307 static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31308 PyObject *resultobj;
31309 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31310 int arg2 ;
31311 wxString *arg3 = 0 ;
31312 bool temp3 = False ;
31313 PyObject * obj0 = 0 ;
31314 PyObject * obj1 = 0 ;
31315 PyObject * obj2 = 0 ;
31316 char *kwnames[] = {
31317 (char *) "self",(char *) "id",(char *) "label", NULL
31318 };
31319
31320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31323 arg2 = (int) SWIG_AsInt(obj1);
31324 if (PyErr_Occurred()) SWIG_fail;
31325 {
31326 arg3 = wxString_in_helper(obj2);
31327 if (arg3 == NULL) SWIG_fail;
31328 temp3 = True;
31329 }
31330 {
31331 PyThreadState* __tstate = wxPyBeginAllowThreads();
31332 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31333
31334 wxPyEndAllowThreads(__tstate);
31335 if (PyErr_Occurred()) SWIG_fail;
31336 }
31337 Py_INCREF(Py_None); resultobj = Py_None;
31338 {
31339 if (temp3)
31340 delete arg3;
31341 }
31342 return resultobj;
31343 fail:
31344 {
31345 if (temp3)
31346 delete arg3;
31347 }
31348 return NULL;
31349 }
31350
31351
31352 static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31353 PyObject *resultobj;
31354 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31355 int arg2 ;
31356 wxString result;
31357 PyObject * obj0 = 0 ;
31358 PyObject * obj1 = 0 ;
31359 char *kwnames[] = {
31360 (char *) "self",(char *) "id", NULL
31361 };
31362
31363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31366 arg2 = (int) SWIG_AsInt(obj1);
31367 if (PyErr_Occurred()) SWIG_fail;
31368 {
31369 PyThreadState* __tstate = wxPyBeginAllowThreads();
31370 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
31371
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 {
31376 #if wxUSE_UNICODE
31377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31378 #else
31379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31380 #endif
31381 }
31382 return resultobj;
31383 fail:
31384 return NULL;
31385 }
31386
31387
31388 static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31389 PyObject *resultobj;
31390 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31391 int arg2 ;
31392 wxString *arg3 = 0 ;
31393 bool temp3 = False ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 PyObject * obj2 = 0 ;
31397 char *kwnames[] = {
31398 (char *) "self",(char *) "id",(char *) "helpString", NULL
31399 };
31400
31401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31404 arg2 = (int) SWIG_AsInt(obj1);
31405 if (PyErr_Occurred()) SWIG_fail;
31406 {
31407 arg3 = wxString_in_helper(obj2);
31408 if (arg3 == NULL) SWIG_fail;
31409 temp3 = True;
31410 }
31411 {
31412 PyThreadState* __tstate = wxPyBeginAllowThreads();
31413 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31414
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 Py_INCREF(Py_None); resultobj = Py_None;
31419 {
31420 if (temp3)
31421 delete arg3;
31422 }
31423 return resultobj;
31424 fail:
31425 {
31426 if (temp3)
31427 delete arg3;
31428 }
31429 return NULL;
31430 }
31431
31432
31433 static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31434 PyObject *resultobj;
31435 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31436 int arg2 ;
31437 wxString result;
31438 PyObject * obj0 = 0 ;
31439 PyObject * obj1 = 0 ;
31440 char *kwnames[] = {
31441 (char *) "self",(char *) "id", NULL
31442 };
31443
31444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31447 arg2 = (int) SWIG_AsInt(obj1);
31448 if (PyErr_Occurred()) SWIG_fail;
31449 {
31450 PyThreadState* __tstate = wxPyBeginAllowThreads();
31451 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
31452
31453 wxPyEndAllowThreads(__tstate);
31454 if (PyErr_Occurred()) SWIG_fail;
31455 }
31456 {
31457 #if wxUSE_UNICODE
31458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31459 #else
31460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31461 #endif
31462 }
31463 return resultobj;
31464 fail:
31465 return NULL;
31466 }
31467
31468
31469 static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
31470 PyObject *resultobj;
31471 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31472 wxFrame *result;
31473 PyObject * obj0 = 0 ;
31474 char *kwnames[] = {
31475 (char *) "self", NULL
31476 };
31477
31478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
31479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31481 {
31482 PyThreadState* __tstate = wxPyBeginAllowThreads();
31483 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
31484
31485 wxPyEndAllowThreads(__tstate);
31486 if (PyErr_Occurred()) SWIG_fail;
31487 }
31488 {
31489 resultobj = wxPyMake_wxObject(result);
31490 }
31491 return resultobj;
31492 fail:
31493 return NULL;
31494 }
31495
31496
31497 static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
31498 PyObject *resultobj;
31499 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31500 bool result;
31501 PyObject * obj0 = 0 ;
31502 char *kwnames[] = {
31503 (char *) "self", NULL
31504 };
31505
31506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
31507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31509 {
31510 PyThreadState* __tstate = wxPyBeginAllowThreads();
31511 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
31512
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 {
31517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31518 }
31519 return resultobj;
31520 fail:
31521 return NULL;
31522 }
31523
31524
31525 static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
31526 PyObject *resultobj;
31527 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31528 wxFrame *arg2 = (wxFrame *) 0 ;
31529 PyObject * obj0 = 0 ;
31530 PyObject * obj1 = 0 ;
31531 char *kwnames[] = {
31532 (char *) "self",(char *) "frame", NULL
31533 };
31534
31535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
31536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
31539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 (arg1)->Attach(arg2);
31543
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 Py_INCREF(Py_None); resultobj = Py_None;
31548 return resultobj;
31549 fail:
31550 return NULL;
31551 }
31552
31553
31554 static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj;
31556 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31557 PyObject * obj0 = 0 ;
31558 char *kwnames[] = {
31559 (char *) "self", NULL
31560 };
31561
31562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
31563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31565 {
31566 PyThreadState* __tstate = wxPyBeginAllowThreads();
31567 (arg1)->Detach();
31568
31569 wxPyEndAllowThreads(__tstate);
31570 if (PyErr_Occurred()) SWIG_fail;
31571 }
31572 Py_INCREF(Py_None); resultobj = Py_None;
31573 return resultobj;
31574 fail:
31575 return NULL;
31576 }
31577
31578
31579 static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
31580 PyObject *obj;
31581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31582 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
31583 Py_INCREF(obj);
31584 return Py_BuildValue((char *)"");
31585 }
31586 static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31587 PyObject *resultobj;
31588 wxMenu *arg1 = (wxMenu *) NULL ;
31589 int arg2 = (int) wxID_ANY ;
31590 wxString const &arg3_defvalue = wxPyEmptyString ;
31591 wxString *arg3 = (wxString *) &arg3_defvalue ;
31592 wxString const &arg4_defvalue = wxPyEmptyString ;
31593 wxString *arg4 = (wxString *) &arg4_defvalue ;
31594 int arg5 = (int) wxITEM_NORMAL ;
31595 wxMenu *arg6 = (wxMenu *) NULL ;
31596 wxMenuItem *result;
31597 bool temp3 = False ;
31598 bool temp4 = False ;
31599 PyObject * obj0 = 0 ;
31600 PyObject * obj1 = 0 ;
31601 PyObject * obj2 = 0 ;
31602 PyObject * obj3 = 0 ;
31603 PyObject * obj4 = 0 ;
31604 PyObject * obj5 = 0 ;
31605 char *kwnames[] = {
31606 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
31607 };
31608
31609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31610 if (obj0) {
31611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31613 }
31614 if (obj1) {
31615 arg2 = (int) SWIG_AsInt(obj1);
31616 if (PyErr_Occurred()) SWIG_fail;
31617 }
31618 if (obj2) {
31619 {
31620 arg3 = wxString_in_helper(obj2);
31621 if (arg3 == NULL) SWIG_fail;
31622 temp3 = True;
31623 }
31624 }
31625 if (obj3) {
31626 {
31627 arg4 = wxString_in_helper(obj3);
31628 if (arg4 == NULL) SWIG_fail;
31629 temp4 = True;
31630 }
31631 }
31632 if (obj4) {
31633 arg5 = (wxItemKind) SWIG_AsInt(obj4);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 if (obj5) {
31637 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
31638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31639 }
31640 {
31641 PyThreadState* __tstate = wxPyBeginAllowThreads();
31642 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
31643
31644 wxPyEndAllowThreads(__tstate);
31645 if (PyErr_Occurred()) SWIG_fail;
31646 }
31647 {
31648 resultobj = wxPyMake_wxObject(result);
31649 }
31650 {
31651 if (temp3)
31652 delete arg3;
31653 }
31654 {
31655 if (temp4)
31656 delete arg4;
31657 }
31658 return resultobj;
31659 fail:
31660 {
31661 if (temp3)
31662 delete arg3;
31663 }
31664 {
31665 if (temp4)
31666 delete arg4;
31667 }
31668 return NULL;
31669 }
31670
31671
31672 static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj;
31674 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31675 wxMenu *result;
31676 PyObject * obj0 = 0 ;
31677 char *kwnames[] = {
31678 (char *) "self", NULL
31679 };
31680
31681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
31682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31684 {
31685 PyThreadState* __tstate = wxPyBeginAllowThreads();
31686 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
31687
31688 wxPyEndAllowThreads(__tstate);
31689 if (PyErr_Occurred()) SWIG_fail;
31690 }
31691 {
31692 resultobj = wxPyMake_wxObject(result);
31693 }
31694 return resultobj;
31695 fail:
31696 return NULL;
31697 }
31698
31699
31700 static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31701 PyObject *resultobj;
31702 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31703 wxMenu *arg2 = (wxMenu *) 0 ;
31704 PyObject * obj0 = 0 ;
31705 PyObject * obj1 = 0 ;
31706 char *kwnames[] = {
31707 (char *) "self",(char *) "menu", NULL
31708 };
31709
31710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
31711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31715 {
31716 PyThreadState* __tstate = wxPyBeginAllowThreads();
31717 (arg1)->SetMenu(arg2);
31718
31719 wxPyEndAllowThreads(__tstate);
31720 if (PyErr_Occurred()) SWIG_fail;
31721 }
31722 Py_INCREF(Py_None); resultobj = Py_None;
31723 return resultobj;
31724 fail:
31725 return NULL;
31726 }
31727
31728
31729 static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
31730 PyObject *resultobj;
31731 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31732 int arg2 ;
31733 PyObject * obj0 = 0 ;
31734 PyObject * obj1 = 0 ;
31735 char *kwnames[] = {
31736 (char *) "self",(char *) "id", NULL
31737 };
31738
31739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
31740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31742 arg2 = (int) SWIG_AsInt(obj1);
31743 if (PyErr_Occurred()) SWIG_fail;
31744 {
31745 PyThreadState* __tstate = wxPyBeginAllowThreads();
31746 (arg1)->SetId(arg2);
31747
31748 wxPyEndAllowThreads(__tstate);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 Py_INCREF(Py_None); resultobj = Py_None;
31752 return resultobj;
31753 fail:
31754 return NULL;
31755 }
31756
31757
31758 static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
31759 PyObject *resultobj;
31760 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31761 int result;
31762 PyObject * obj0 = 0 ;
31763 char *kwnames[] = {
31764 (char *) "self", NULL
31765 };
31766
31767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
31768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31770 {
31771 PyThreadState* __tstate = wxPyBeginAllowThreads();
31772 result = (int)((wxMenuItem const *)arg1)->GetId();
31773
31774 wxPyEndAllowThreads(__tstate);
31775 if (PyErr_Occurred()) SWIG_fail;
31776 }
31777 resultobj = SWIG_FromInt((int)result);
31778 return resultobj;
31779 fail:
31780 return NULL;
31781 }
31782
31783
31784 static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
31785 PyObject *resultobj;
31786 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31787 bool result;
31788 PyObject * obj0 = 0 ;
31789 char *kwnames[] = {
31790 (char *) "self", NULL
31791 };
31792
31793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
31794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31796 {
31797 PyThreadState* __tstate = wxPyBeginAllowThreads();
31798 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
31799
31800 wxPyEndAllowThreads(__tstate);
31801 if (PyErr_Occurred()) SWIG_fail;
31802 }
31803 {
31804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31805 }
31806 return resultobj;
31807 fail:
31808 return NULL;
31809 }
31810
31811
31812 static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
31813 PyObject *resultobj;
31814 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31815 wxString *arg2 = 0 ;
31816 bool temp2 = False ;
31817 PyObject * obj0 = 0 ;
31818 PyObject * obj1 = 0 ;
31819 char *kwnames[] = {
31820 (char *) "self",(char *) "str", NULL
31821 };
31822
31823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
31824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31826 {
31827 arg2 = wxString_in_helper(obj1);
31828 if (arg2 == NULL) SWIG_fail;
31829 temp2 = True;
31830 }
31831 {
31832 PyThreadState* __tstate = wxPyBeginAllowThreads();
31833 (arg1)->SetText((wxString const &)*arg2);
31834
31835 wxPyEndAllowThreads(__tstate);
31836 if (PyErr_Occurred()) SWIG_fail;
31837 }
31838 Py_INCREF(Py_None); resultobj = Py_None;
31839 {
31840 if (temp2)
31841 delete arg2;
31842 }
31843 return resultobj;
31844 fail:
31845 {
31846 if (temp2)
31847 delete arg2;
31848 }
31849 return NULL;
31850 }
31851
31852
31853 static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31854 PyObject *resultobj;
31855 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31856 wxString result;
31857 PyObject * obj0 = 0 ;
31858 char *kwnames[] = {
31859 (char *) "self", NULL
31860 };
31861
31862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
31863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31865 {
31866 PyThreadState* __tstate = wxPyBeginAllowThreads();
31867 result = ((wxMenuItem const *)arg1)->GetLabel();
31868
31869 wxPyEndAllowThreads(__tstate);
31870 if (PyErr_Occurred()) SWIG_fail;
31871 }
31872 {
31873 #if wxUSE_UNICODE
31874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31875 #else
31876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31877 #endif
31878 }
31879 return resultobj;
31880 fail:
31881 return NULL;
31882 }
31883
31884
31885 static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
31886 PyObject *resultobj;
31887 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31888 wxString *result;
31889 PyObject * obj0 = 0 ;
31890 char *kwnames[] = {
31891 (char *) "self", NULL
31892 };
31893
31894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
31895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31897 {
31898 PyThreadState* __tstate = wxPyBeginAllowThreads();
31899 {
31900 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
31901 result = (wxString *) &_result_ref;
31902 }
31903
31904 wxPyEndAllowThreads(__tstate);
31905 if (PyErr_Occurred()) SWIG_fail;
31906 }
31907 {
31908 #if wxUSE_UNICODE
31909 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
31910 #else
31911 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
31912 #endif
31913 }
31914 return resultobj;
31915 fail:
31916 return NULL;
31917 }
31918
31919
31920 static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
31921 PyObject *resultobj;
31922 wxString *arg1 = 0 ;
31923 wxString result;
31924 bool temp1 = False ;
31925 PyObject * obj0 = 0 ;
31926 char *kwnames[] = {
31927 (char *) "text", NULL
31928 };
31929
31930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
31931 {
31932 arg1 = wxString_in_helper(obj0);
31933 if (arg1 == NULL) SWIG_fail;
31934 temp1 = True;
31935 }
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
31939
31940 wxPyEndAllowThreads(__tstate);
31941 if (PyErr_Occurred()) SWIG_fail;
31942 }
31943 {
31944 #if wxUSE_UNICODE
31945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31946 #else
31947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31948 #endif
31949 }
31950 {
31951 if (temp1)
31952 delete arg1;
31953 }
31954 return resultobj;
31955 fail:
31956 {
31957 if (temp1)
31958 delete arg1;
31959 }
31960 return NULL;
31961 }
31962
31963
31964 static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
31965 PyObject *resultobj;
31966 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31967 int result;
31968 PyObject * obj0 = 0 ;
31969 char *kwnames[] = {
31970 (char *) "self", NULL
31971 };
31972
31973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
31974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31976 {
31977 PyThreadState* __tstate = wxPyBeginAllowThreads();
31978 result = (int)((wxMenuItem const *)arg1)->GetKind();
31979
31980 wxPyEndAllowThreads(__tstate);
31981 if (PyErr_Occurred()) SWIG_fail;
31982 }
31983 resultobj = SWIG_FromInt((int)result);
31984 return resultobj;
31985 fail:
31986 return NULL;
31987 }
31988
31989
31990 static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
31991 PyObject *resultobj;
31992 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31993 int arg2 ;
31994 PyObject * obj0 = 0 ;
31995 PyObject * obj1 = 0 ;
31996 char *kwnames[] = {
31997 (char *) "self",(char *) "kind", NULL
31998 };
31999
32000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32003 arg2 = (wxItemKind) SWIG_AsInt(obj1);
32004 if (PyErr_Occurred()) SWIG_fail;
32005 {
32006 PyThreadState* __tstate = wxPyBeginAllowThreads();
32007 (arg1)->SetKind((wxItemKind )arg2);
32008
32009 wxPyEndAllowThreads(__tstate);
32010 if (PyErr_Occurred()) SWIG_fail;
32011 }
32012 Py_INCREF(Py_None); resultobj = Py_None;
32013 return resultobj;
32014 fail:
32015 return NULL;
32016 }
32017
32018
32019 static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32020 PyObject *resultobj;
32021 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32022 bool arg2 ;
32023 PyObject * obj0 = 0 ;
32024 PyObject * obj1 = 0 ;
32025 char *kwnames[] = {
32026 (char *) "self",(char *) "checkable", NULL
32027 };
32028
32029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32032 arg2 = (bool) SWIG_AsBool(obj1);
32033 if (PyErr_Occurred()) SWIG_fail;
32034 {
32035 PyThreadState* __tstate = wxPyBeginAllowThreads();
32036 (arg1)->SetCheckable(arg2);
32037
32038 wxPyEndAllowThreads(__tstate);
32039 if (PyErr_Occurred()) SWIG_fail;
32040 }
32041 Py_INCREF(Py_None); resultobj = Py_None;
32042 return resultobj;
32043 fail:
32044 return NULL;
32045 }
32046
32047
32048 static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32049 PyObject *resultobj;
32050 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32051 bool result;
32052 PyObject * obj0 = 0 ;
32053 char *kwnames[] = {
32054 (char *) "self", NULL
32055 };
32056
32057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32060 {
32061 PyThreadState* __tstate = wxPyBeginAllowThreads();
32062 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32063
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 {
32068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32069 }
32070 return resultobj;
32071 fail:
32072 return NULL;
32073 }
32074
32075
32076 static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32077 PyObject *resultobj;
32078 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32079 bool result;
32080 PyObject * obj0 = 0 ;
32081 char *kwnames[] = {
32082 (char *) "self", NULL
32083 };
32084
32085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32088 {
32089 PyThreadState* __tstate = wxPyBeginAllowThreads();
32090 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32091
32092 wxPyEndAllowThreads(__tstate);
32093 if (PyErr_Occurred()) SWIG_fail;
32094 }
32095 {
32096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32097 }
32098 return resultobj;
32099 fail:
32100 return NULL;
32101 }
32102
32103
32104 static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32105 PyObject *resultobj;
32106 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32107 wxMenu *arg2 = (wxMenu *) 0 ;
32108 PyObject * obj0 = 0 ;
32109 PyObject * obj1 = 0 ;
32110 char *kwnames[] = {
32111 (char *) "self",(char *) "menu", NULL
32112 };
32113
32114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32119 {
32120 PyThreadState* __tstate = wxPyBeginAllowThreads();
32121 (arg1)->SetSubMenu(arg2);
32122
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 Py_INCREF(Py_None); resultobj = Py_None;
32127 return resultobj;
32128 fail:
32129 return NULL;
32130 }
32131
32132
32133 static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32134 PyObject *resultobj;
32135 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32136 wxMenu *result;
32137 PyObject * obj0 = 0 ;
32138 char *kwnames[] = {
32139 (char *) "self", NULL
32140 };
32141
32142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32148
32149 wxPyEndAllowThreads(__tstate);
32150 if (PyErr_Occurred()) SWIG_fail;
32151 }
32152 {
32153 resultobj = wxPyMake_wxObject(result);
32154 }
32155 return resultobj;
32156 fail:
32157 return NULL;
32158 }
32159
32160
32161 static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj;
32163 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32164 bool arg2 = (bool) True ;
32165 PyObject * obj0 = 0 ;
32166 PyObject * obj1 = 0 ;
32167 char *kwnames[] = {
32168 (char *) "self",(char *) "enable", NULL
32169 };
32170
32171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32174 if (obj1) {
32175 arg2 = (bool) SWIG_AsBool(obj1);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 {
32179 PyThreadState* __tstate = wxPyBeginAllowThreads();
32180 (arg1)->Enable(arg2);
32181
32182 wxPyEndAllowThreads(__tstate);
32183 if (PyErr_Occurred()) SWIG_fail;
32184 }
32185 Py_INCREF(Py_None); resultobj = Py_None;
32186 return resultobj;
32187 fail:
32188 return NULL;
32189 }
32190
32191
32192 static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
32193 PyObject *resultobj;
32194 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32195 bool result;
32196 PyObject * obj0 = 0 ;
32197 char *kwnames[] = {
32198 (char *) "self", NULL
32199 };
32200
32201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32204 {
32205 PyThreadState* __tstate = wxPyBeginAllowThreads();
32206 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32207
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 {
32212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32213 }
32214 return resultobj;
32215 fail:
32216 return NULL;
32217 }
32218
32219
32220 static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
32221 PyObject *resultobj;
32222 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32223 bool arg2 = (bool) True ;
32224 PyObject * obj0 = 0 ;
32225 PyObject * obj1 = 0 ;
32226 char *kwnames[] = {
32227 (char *) "self",(char *) "check", NULL
32228 };
32229
32230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32233 if (obj1) {
32234 arg2 = (bool) SWIG_AsBool(obj1);
32235 if (PyErr_Occurred()) SWIG_fail;
32236 }
32237 {
32238 PyThreadState* __tstate = wxPyBeginAllowThreads();
32239 (arg1)->Check(arg2);
32240
32241 wxPyEndAllowThreads(__tstate);
32242 if (PyErr_Occurred()) SWIG_fail;
32243 }
32244 Py_INCREF(Py_None); resultobj = Py_None;
32245 return resultobj;
32246 fail:
32247 return NULL;
32248 }
32249
32250
32251 static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj;
32253 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32254 bool result;
32255 PyObject * obj0 = 0 ;
32256 char *kwnames[] = {
32257 (char *) "self", NULL
32258 };
32259
32260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32263 {
32264 PyThreadState* __tstate = wxPyBeginAllowThreads();
32265 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32266
32267 wxPyEndAllowThreads(__tstate);
32268 if (PyErr_Occurred()) SWIG_fail;
32269 }
32270 {
32271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32272 }
32273 return resultobj;
32274 fail:
32275 return NULL;
32276 }
32277
32278
32279 static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
32280 PyObject *resultobj;
32281 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32282 PyObject * obj0 = 0 ;
32283 char *kwnames[] = {
32284 (char *) "self", NULL
32285 };
32286
32287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32290 {
32291 PyThreadState* __tstate = wxPyBeginAllowThreads();
32292 (arg1)->Toggle();
32293
32294 wxPyEndAllowThreads(__tstate);
32295 if (PyErr_Occurred()) SWIG_fail;
32296 }
32297 Py_INCREF(Py_None); resultobj = Py_None;
32298 return resultobj;
32299 fail:
32300 return NULL;
32301 }
32302
32303
32304 static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32305 PyObject *resultobj;
32306 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32307 wxString *arg2 = 0 ;
32308 bool temp2 = False ;
32309 PyObject * obj0 = 0 ;
32310 PyObject * obj1 = 0 ;
32311 char *kwnames[] = {
32312 (char *) "self",(char *) "str", NULL
32313 };
32314
32315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32318 {
32319 arg2 = wxString_in_helper(obj1);
32320 if (arg2 == NULL) SWIG_fail;
32321 temp2 = True;
32322 }
32323 {
32324 PyThreadState* __tstate = wxPyBeginAllowThreads();
32325 (arg1)->SetHelp((wxString const &)*arg2);
32326
32327 wxPyEndAllowThreads(__tstate);
32328 if (PyErr_Occurred()) SWIG_fail;
32329 }
32330 Py_INCREF(Py_None); resultobj = Py_None;
32331 {
32332 if (temp2)
32333 delete arg2;
32334 }
32335 return resultobj;
32336 fail:
32337 {
32338 if (temp2)
32339 delete arg2;
32340 }
32341 return NULL;
32342 }
32343
32344
32345 static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32346 PyObject *resultobj;
32347 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32348 wxString *result;
32349 PyObject * obj0 = 0 ;
32350 char *kwnames[] = {
32351 (char *) "self", NULL
32352 };
32353
32354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
32355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32357 {
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
32359 {
32360 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
32361 result = (wxString *) &_result_ref;
32362 }
32363
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 {
32368 #if wxUSE_UNICODE
32369 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32370 #else
32371 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32372 #endif
32373 }
32374 return resultobj;
32375 fail:
32376 return NULL;
32377 }
32378
32379
32380 static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32381 PyObject *resultobj;
32382 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32383 wxAcceleratorEntry *result;
32384 PyObject * obj0 = 0 ;
32385 char *kwnames[] = {
32386 (char *) "self", NULL
32387 };
32388
32389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
32390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32392 {
32393 PyThreadState* __tstate = wxPyBeginAllowThreads();
32394 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
32395
32396 wxPyEndAllowThreads(__tstate);
32397 if (PyErr_Occurred()) SWIG_fail;
32398 }
32399 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
32400 return resultobj;
32401 fail:
32402 return NULL;
32403 }
32404
32405
32406 static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32407 PyObject *resultobj;
32408 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32409 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32410 PyObject * obj0 = 0 ;
32411 PyObject * obj1 = 0 ;
32412 char *kwnames[] = {
32413 (char *) "self",(char *) "accel", NULL
32414 };
32415
32416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
32417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32419 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
32420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32421 {
32422 PyThreadState* __tstate = wxPyBeginAllowThreads();
32423 (arg1)->SetAccel(arg2);
32424
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 Py_INCREF(Py_None); resultobj = Py_None;
32429 return resultobj;
32430 fail:
32431 return NULL;
32432 }
32433
32434
32435 static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
32436 PyObject *resultobj;
32437 int result;
32438 char *kwnames[] = {
32439 NULL
32440 };
32441
32442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
32443 {
32444 PyThreadState* __tstate = wxPyBeginAllowThreads();
32445 result = (int)MenuItem_GetDefaultMarginWidth();
32446
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_FromInt((int)result);
32451 return resultobj;
32452 fail:
32453 return NULL;
32454 }
32455
32456
32457 static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32458 PyObject *resultobj;
32459 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32460 wxBitmap *arg2 = 0 ;
32461 PyObject * obj0 = 0 ;
32462 PyObject * obj1 = 0 ;
32463 char *kwnames[] = {
32464 (char *) "self",(char *) "bitmap", NULL
32465 };
32466
32467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
32468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32471 SWIG_POINTER_EXCEPTION | 0)) == -1)
32472 SWIG_fail;
32473 if (arg2 == NULL) {
32474 PyErr_SetString(PyExc_TypeError,"null reference");
32475 SWIG_fail;
32476 }
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 (arg1)->SetBitmap((wxBitmap const &)*arg2);
32480
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 Py_INCREF(Py_None); resultobj = Py_None;
32485 return resultobj;
32486 fail:
32487 return NULL;
32488 }
32489
32490
32491 static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj;
32493 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32494 wxBitmap *result;
32495 PyObject * obj0 = 0 ;
32496 char *kwnames[] = {
32497 (char *) "self", NULL
32498 };
32499
32500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
32501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32503 {
32504 PyThreadState* __tstate = wxPyBeginAllowThreads();
32505 {
32506 wxBitmap const &_result_ref = (arg1)->GetBitmap();
32507 result = (wxBitmap *) &_result_ref;
32508 }
32509
32510 wxPyEndAllowThreads(__tstate);
32511 if (PyErr_Occurred()) SWIG_fail;
32512 }
32513 {
32514 wxBitmap* resultptr = new wxBitmap(*result);
32515 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
32516 }
32517 return resultobj;
32518 fail:
32519 return NULL;
32520 }
32521
32522
32523 static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
32524 PyObject *obj;
32525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32526 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
32527 Py_INCREF(obj);
32528 return Py_BuildValue((char *)"");
32529 }
32530 static int _wrap_ControlNameStr_set(PyObject *_val) {
32531 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
32532 return 1;
32533 }
32534
32535
32536 static PyObject *_wrap_ControlNameStr_get() {
32537 PyObject *pyobj;
32538
32539 {
32540 #if wxUSE_UNICODE
32541 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
32542 #else
32543 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
32544 #endif
32545 }
32546 return pyobj;
32547 }
32548
32549
32550 static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
32551 PyObject *resultobj;
32552 wxWindow *arg1 = (wxWindow *) 0 ;
32553 int arg2 ;
32554 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32555 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32556 wxSize const &arg4_defvalue = wxDefaultSize ;
32557 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32558 long arg5 = (long) 0 ;
32559 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32560 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32561 wxString const &arg7_defvalue = wxPyControlNameStr ;
32562 wxString *arg7 = (wxString *) &arg7_defvalue ;
32563 wxControl *result;
32564 wxPoint temp3 ;
32565 wxSize temp4 ;
32566 bool temp7 = False ;
32567 PyObject * obj0 = 0 ;
32568 PyObject * obj1 = 0 ;
32569 PyObject * obj2 = 0 ;
32570 PyObject * obj3 = 0 ;
32571 PyObject * obj4 = 0 ;
32572 PyObject * obj5 = 0 ;
32573 PyObject * obj6 = 0 ;
32574 char *kwnames[] = {
32575 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32576 };
32577
32578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
32579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
32580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32581 arg2 = (int) SWIG_AsInt(obj1);
32582 if (PyErr_Occurred()) SWIG_fail;
32583 if (obj2) {
32584 {
32585 arg3 = &temp3;
32586 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32587 }
32588 }
32589 if (obj3) {
32590 {
32591 arg4 = &temp4;
32592 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32593 }
32594 }
32595 if (obj4) {
32596 arg5 = (long) SWIG_AsLong(obj4);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 if (obj5) {
32600 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
32601 SWIG_POINTER_EXCEPTION | 0)) == -1)
32602 SWIG_fail;
32603 if (arg6 == NULL) {
32604 PyErr_SetString(PyExc_TypeError,"null reference");
32605 SWIG_fail;
32606 }
32607 }
32608 if (obj6) {
32609 {
32610 arg7 = wxString_in_helper(obj6);
32611 if (arg7 == NULL) SWIG_fail;
32612 temp7 = True;
32613 }
32614 }
32615 {
32616 PyThreadState* __tstate = wxPyBeginAllowThreads();
32617 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32618
32619 wxPyEndAllowThreads(__tstate);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 {
32623 resultobj = wxPyMake_wxObject(result);
32624 }
32625 {
32626 if (temp7)
32627 delete arg7;
32628 }
32629 return resultobj;
32630 fail:
32631 {
32632 if (temp7)
32633 delete arg7;
32634 }
32635 return NULL;
32636 }
32637
32638
32639 static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
32640 PyObject *resultobj;
32641 wxControl *result;
32642 char *kwnames[] = {
32643 NULL
32644 };
32645
32646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
32647 {
32648 PyThreadState* __tstate = wxPyBeginAllowThreads();
32649 result = (wxControl *)new wxControl();
32650
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 {
32655 resultobj = wxPyMake_wxObject(result);
32656 }
32657 return resultobj;
32658 fail:
32659 return NULL;
32660 }
32661
32662
32663 static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
32664 PyObject *resultobj;
32665 wxControl *arg1 = (wxControl *) 0 ;
32666 wxWindow *arg2 = (wxWindow *) 0 ;
32667 int arg3 ;
32668 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32669 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32670 wxSize const &arg5_defvalue = wxDefaultSize ;
32671 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32672 long arg6 = (long) 0 ;
32673 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32674 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32675 wxString const &arg8_defvalue = wxPyControlNameStr ;
32676 wxString *arg8 = (wxString *) &arg8_defvalue ;
32677 bool result;
32678 wxPoint temp4 ;
32679 wxSize temp5 ;
32680 bool temp8 = False ;
32681 PyObject * obj0 = 0 ;
32682 PyObject * obj1 = 0 ;
32683 PyObject * obj2 = 0 ;
32684 PyObject * obj3 = 0 ;
32685 PyObject * obj4 = 0 ;
32686 PyObject * obj5 = 0 ;
32687 PyObject * obj6 = 0 ;
32688 PyObject * obj7 = 0 ;
32689 char *kwnames[] = {
32690 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32691 };
32692
32693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
32694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
32695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32696 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
32697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32698 arg3 = (int) SWIG_AsInt(obj2);
32699 if (PyErr_Occurred()) SWIG_fail;
32700 if (obj3) {
32701 {
32702 arg4 = &temp4;
32703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32704 }
32705 }
32706 if (obj4) {
32707 {
32708 arg5 = &temp5;
32709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32710 }
32711 }
32712 if (obj5) {
32713 arg6 = (long) SWIG_AsLong(obj5);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 if (obj6) {
32717 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
32718 SWIG_POINTER_EXCEPTION | 0)) == -1)
32719 SWIG_fail;
32720 if (arg7 == NULL) {
32721 PyErr_SetString(PyExc_TypeError,"null reference");
32722 SWIG_fail;
32723 }
32724 }
32725 if (obj7) {
32726 {
32727 arg8 = wxString_in_helper(obj7);
32728 if (arg8 == NULL) SWIG_fail;
32729 temp8 = True;
32730 }
32731 }
32732 {
32733 PyThreadState* __tstate = wxPyBeginAllowThreads();
32734 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32735
32736 wxPyEndAllowThreads(__tstate);
32737 if (PyErr_Occurred()) SWIG_fail;
32738 }
32739 {
32740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32741 }
32742 {
32743 if (temp8)
32744 delete arg8;
32745 }
32746 return resultobj;
32747 fail:
32748 {
32749 if (temp8)
32750 delete arg8;
32751 }
32752 return NULL;
32753 }
32754
32755
32756 static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
32757 PyObject *resultobj;
32758 wxControl *arg1 = (wxControl *) 0 ;
32759 wxCommandEvent *arg2 = 0 ;
32760 PyObject * obj0 = 0 ;
32761 PyObject * obj1 = 0 ;
32762 char *kwnames[] = {
32763 (char *) "self",(char *) "event", NULL
32764 };
32765
32766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
32767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
32768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
32770 SWIG_POINTER_EXCEPTION | 0)) == -1)
32771 SWIG_fail;
32772 if (arg2 == NULL) {
32773 PyErr_SetString(PyExc_TypeError,"null reference");
32774 SWIG_fail;
32775 }
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 (arg1)->Command(*arg2);
32779
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 Py_INCREF(Py_None); resultobj = Py_None;
32784 return resultobj;
32785 fail:
32786 return NULL;
32787 }
32788
32789
32790 static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32791 PyObject *resultobj;
32792 wxControl *arg1 = (wxControl *) 0 ;
32793 wxString result;
32794 PyObject * obj0 = 0 ;
32795 char *kwnames[] = {
32796 (char *) "self", NULL
32797 };
32798
32799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
32800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
32801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32802 {
32803 PyThreadState* __tstate = wxPyBeginAllowThreads();
32804 result = (arg1)->GetLabel();
32805
32806 wxPyEndAllowThreads(__tstate);
32807 if (PyErr_Occurred()) SWIG_fail;
32808 }
32809 {
32810 #if wxUSE_UNICODE
32811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32812 #else
32813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32814 #endif
32815 }
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32823 PyObject *resultobj;
32824 wxControl *arg1 = (wxControl *) 0 ;
32825 wxString *arg2 = 0 ;
32826 bool temp2 = False ;
32827 PyObject * obj0 = 0 ;
32828 PyObject * obj1 = 0 ;
32829 char *kwnames[] = {
32830 (char *) "self",(char *) "label", NULL
32831 };
32832
32833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
32834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
32835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32836 {
32837 arg2 = wxString_in_helper(obj1);
32838 if (arg2 == NULL) SWIG_fail;
32839 temp2 = True;
32840 }
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 (arg1)->SetLabel((wxString const &)*arg2);
32844
32845 wxPyEndAllowThreads(__tstate);
32846 if (PyErr_Occurred()) SWIG_fail;
32847 }
32848 Py_INCREF(Py_None); resultobj = Py_None;
32849 {
32850 if (temp2)
32851 delete arg2;
32852 }
32853 return resultobj;
32854 fail:
32855 {
32856 if (temp2)
32857 delete arg2;
32858 }
32859 return NULL;
32860 }
32861
32862
32863 static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
32864 PyObject *resultobj;
32865 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
32866 wxVisualAttributes result;
32867 PyObject * obj0 = 0 ;
32868 char *kwnames[] = {
32869 (char *) "variant", NULL
32870 };
32871
32872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
32873 if (obj0) {
32874 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
32875 if (PyErr_Occurred()) SWIG_fail;
32876 }
32877 {
32878 PyThreadState* __tstate = wxPyBeginAllowThreads();
32879 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
32880
32881 wxPyEndAllowThreads(__tstate);
32882 if (PyErr_Occurred()) SWIG_fail;
32883 }
32884 {
32885 wxVisualAttributes * resultptr;
32886 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
32887 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
32888 }
32889 return resultobj;
32890 fail:
32891 return NULL;
32892 }
32893
32894
32895 static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
32896 PyObject *obj;
32897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32898 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
32899 Py_INCREF(obj);
32900 return Py_BuildValue((char *)"");
32901 }
32902 static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
32903 PyObject *resultobj;
32904 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32905 wxString *arg2 = 0 ;
32906 PyObject *arg3 = (PyObject *) NULL ;
32907 int result;
32908 bool temp2 = False ;
32909 PyObject * obj0 = 0 ;
32910 PyObject * obj1 = 0 ;
32911 PyObject * obj2 = 0 ;
32912 char *kwnames[] = {
32913 (char *) "self",(char *) "item",(char *) "clientData", NULL
32914 };
32915
32916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
32917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
32918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32919 {
32920 arg2 = wxString_in_helper(obj1);
32921 if (arg2 == NULL) SWIG_fail;
32922 temp2 = True;
32923 }
32924 if (obj2) {
32925 arg3 = obj2;
32926 }
32927 {
32928 PyThreadState* __tstate = wxPyBeginAllowThreads();
32929 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
32930
32931 wxPyEndAllowThreads(__tstate);
32932 if (PyErr_Occurred()) SWIG_fail;
32933 }
32934 resultobj = SWIG_FromInt((int)result);
32935 {
32936 if (temp2)
32937 delete arg2;
32938 }
32939 return resultobj;
32940 fail:
32941 {
32942 if (temp2)
32943 delete arg2;
32944 }
32945 return NULL;
32946 }
32947
32948
32949 static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
32950 PyObject *resultobj;
32951 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32952 wxArrayString *arg2 = 0 ;
32953 bool temp2 = False ;
32954 PyObject * obj0 = 0 ;
32955 PyObject * obj1 = 0 ;
32956 char *kwnames[] = {
32957 (char *) "self",(char *) "strings", NULL
32958 };
32959
32960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
32961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
32962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32963 {
32964 if (! PySequence_Check(obj1)) {
32965 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
32966 SWIG_fail;
32967 }
32968 arg2 = new wxArrayString;
32969 temp2 = True;
32970 int i, len=PySequence_Length(obj1);
32971 for (i=0; i<len; i++) {
32972 PyObject* item = PySequence_GetItem(obj1, i);
32973 #if wxUSE_UNICODE
32974 PyObject* str = PyObject_Unicode(item);
32975 #else
32976 PyObject* str = PyObject_Str(item);
32977 #endif
32978 if (PyErr_Occurred()) SWIG_fail;
32979 arg2->Add(Py2wxString(str));
32980 Py_DECREF(item);
32981 Py_DECREF(str);
32982 }
32983 }
32984 {
32985 PyThreadState* __tstate = wxPyBeginAllowThreads();
32986 (arg1)->Append((wxArrayString const &)*arg2);
32987
32988 wxPyEndAllowThreads(__tstate);
32989 if (PyErr_Occurred()) SWIG_fail;
32990 }
32991 Py_INCREF(Py_None); resultobj = Py_None;
32992 {
32993 if (temp2) delete arg2;
32994 }
32995 return resultobj;
32996 fail:
32997 {
32998 if (temp2) delete arg2;
32999 }
33000 return NULL;
33001 }
33002
33003
33004 static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33005 PyObject *resultobj;
33006 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33007 wxString *arg2 = 0 ;
33008 int arg3 ;
33009 PyObject *arg4 = (PyObject *) NULL ;
33010 int result;
33011 bool temp2 = False ;
33012 PyObject * obj0 = 0 ;
33013 PyObject * obj1 = 0 ;
33014 PyObject * obj2 = 0 ;
33015 PyObject * obj3 = 0 ;
33016 char *kwnames[] = {
33017 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
33018 };
33019
33020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33023 {
33024 arg2 = wxString_in_helper(obj1);
33025 if (arg2 == NULL) SWIG_fail;
33026 temp2 = True;
33027 }
33028 arg3 = (int) SWIG_AsInt(obj2);
33029 if (PyErr_Occurred()) SWIG_fail;
33030 if (obj3) {
33031 arg4 = obj3;
33032 }
33033 {
33034 PyThreadState* __tstate = wxPyBeginAllowThreads();
33035 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
33036
33037 wxPyEndAllowThreads(__tstate);
33038 if (PyErr_Occurred()) SWIG_fail;
33039 }
33040 resultobj = SWIG_FromInt((int)result);
33041 {
33042 if (temp2)
33043 delete arg2;
33044 }
33045 return resultobj;
33046 fail:
33047 {
33048 if (temp2)
33049 delete arg2;
33050 }
33051 return NULL;
33052 }
33053
33054
33055 static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj;
33057 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33058 PyObject * obj0 = 0 ;
33059 char *kwnames[] = {
33060 (char *) "self", NULL
33061 };
33062
33063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
33064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33066 {
33067 PyThreadState* __tstate = wxPyBeginAllowThreads();
33068 (arg1)->Clear();
33069
33070 wxPyEndAllowThreads(__tstate);
33071 if (PyErr_Occurred()) SWIG_fail;
33072 }
33073 Py_INCREF(Py_None); resultobj = Py_None;
33074 return resultobj;
33075 fail:
33076 return NULL;
33077 }
33078
33079
33080 static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
33081 PyObject *resultobj;
33082 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33083 int arg2 ;
33084 PyObject * obj0 = 0 ;
33085 PyObject * obj1 = 0 ;
33086 char *kwnames[] = {
33087 (char *) "self",(char *) "n", NULL
33088 };
33089
33090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
33091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33093 arg2 = (int) SWIG_AsInt(obj1);
33094 if (PyErr_Occurred()) SWIG_fail;
33095 {
33096 PyThreadState* __tstate = wxPyBeginAllowThreads();
33097 (arg1)->Delete(arg2);
33098
33099 wxPyEndAllowThreads(__tstate);
33100 if (PyErr_Occurred()) SWIG_fail;
33101 }
33102 Py_INCREF(Py_None); resultobj = Py_None;
33103 return resultobj;
33104 fail:
33105 return NULL;
33106 }
33107
33108
33109 static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj;
33111 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33112 int result;
33113 PyObject * obj0 = 0 ;
33114 char *kwnames[] = {
33115 (char *) "self", NULL
33116 };
33117
33118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
33119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 result = (int)((wxItemContainer const *)arg1)->GetCount();
33124
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_FromInt((int)result);
33129 return resultobj;
33130 fail:
33131 return NULL;
33132 }
33133
33134
33135 static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
33136 PyObject *resultobj;
33137 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33138 bool result;
33139 PyObject * obj0 = 0 ;
33140 char *kwnames[] = {
33141 (char *) "self", NULL
33142 };
33143
33144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
33145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33147 {
33148 PyThreadState* __tstate = wxPyBeginAllowThreads();
33149 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
33150
33151 wxPyEndAllowThreads(__tstate);
33152 if (PyErr_Occurred()) SWIG_fail;
33153 }
33154 {
33155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33156 }
33157 return resultobj;
33158 fail:
33159 return NULL;
33160 }
33161
33162
33163 static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33164 PyObject *resultobj;
33165 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33166 int arg2 ;
33167 wxString result;
33168 PyObject * obj0 = 0 ;
33169 PyObject * obj1 = 0 ;
33170 char *kwnames[] = {
33171 (char *) "self",(char *) "n", NULL
33172 };
33173
33174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
33175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33177 arg2 = (int) SWIG_AsInt(obj1);
33178 if (PyErr_Occurred()) SWIG_fail;
33179 {
33180 PyThreadState* __tstate = wxPyBeginAllowThreads();
33181 result = ((wxItemContainer const *)arg1)->GetString(arg2);
33182
33183 wxPyEndAllowThreads(__tstate);
33184 if (PyErr_Occurred()) SWIG_fail;
33185 }
33186 {
33187 #if wxUSE_UNICODE
33188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33189 #else
33190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33191 #endif
33192 }
33193 return resultobj;
33194 fail:
33195 return NULL;
33196 }
33197
33198
33199 static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
33200 PyObject *resultobj;
33201 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33202 wxArrayString result;
33203 PyObject * obj0 = 0 ;
33204 char *kwnames[] = {
33205 (char *) "self", NULL
33206 };
33207
33208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
33209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33211 {
33212 PyThreadState* __tstate = wxPyBeginAllowThreads();
33213 result = ((wxItemContainer const *)arg1)->GetStrings();
33214
33215 wxPyEndAllowThreads(__tstate);
33216 if (PyErr_Occurred()) SWIG_fail;
33217 }
33218 {
33219 resultobj = wxArrayString2PyList_helper(result);
33220 }
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj;
33229 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33230 int arg2 ;
33231 wxString *arg3 = 0 ;
33232 bool temp3 = False ;
33233 PyObject * obj0 = 0 ;
33234 PyObject * obj1 = 0 ;
33235 PyObject * obj2 = 0 ;
33236 char *kwnames[] = {
33237 (char *) "self",(char *) "n",(char *) "s", NULL
33238 };
33239
33240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
33241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33243 arg2 = (int) SWIG_AsInt(obj1);
33244 if (PyErr_Occurred()) SWIG_fail;
33245 {
33246 arg3 = wxString_in_helper(obj2);
33247 if (arg3 == NULL) SWIG_fail;
33248 temp3 = True;
33249 }
33250 {
33251 PyThreadState* __tstate = wxPyBeginAllowThreads();
33252 (arg1)->SetString(arg2,(wxString const &)*arg3);
33253
33254 wxPyEndAllowThreads(__tstate);
33255 if (PyErr_Occurred()) SWIG_fail;
33256 }
33257 Py_INCREF(Py_None); resultobj = Py_None;
33258 {
33259 if (temp3)
33260 delete arg3;
33261 }
33262 return resultobj;
33263 fail:
33264 {
33265 if (temp3)
33266 delete arg3;
33267 }
33268 return NULL;
33269 }
33270
33271
33272 static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
33273 PyObject *resultobj;
33274 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33275 wxString *arg2 = 0 ;
33276 int result;
33277 bool temp2 = False ;
33278 PyObject * obj0 = 0 ;
33279 PyObject * obj1 = 0 ;
33280 char *kwnames[] = {
33281 (char *) "self",(char *) "s", NULL
33282 };
33283
33284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
33285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33287 {
33288 arg2 = wxString_in_helper(obj1);
33289 if (arg2 == NULL) SWIG_fail;
33290 temp2 = True;
33291 }
33292 {
33293 PyThreadState* __tstate = wxPyBeginAllowThreads();
33294 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
33295
33296 wxPyEndAllowThreads(__tstate);
33297 if (PyErr_Occurred()) SWIG_fail;
33298 }
33299 resultobj = SWIG_FromInt((int)result);
33300 {
33301 if (temp2)
33302 delete arg2;
33303 }
33304 return resultobj;
33305 fail:
33306 {
33307 if (temp2)
33308 delete arg2;
33309 }
33310 return NULL;
33311 }
33312
33313
33314 static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
33315 PyObject *resultobj;
33316 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33317 int arg2 ;
33318 PyObject * obj0 = 0 ;
33319 PyObject * obj1 = 0 ;
33320 char *kwnames[] = {
33321 (char *) "self",(char *) "n", NULL
33322 };
33323
33324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
33325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33327 arg2 = (int) SWIG_AsInt(obj1);
33328 if (PyErr_Occurred()) SWIG_fail;
33329 {
33330 PyThreadState* __tstate = wxPyBeginAllowThreads();
33331 (arg1)->Select(arg2);
33332
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 Py_INCREF(Py_None); resultobj = Py_None;
33337 return resultobj;
33338 fail:
33339 return NULL;
33340 }
33341
33342
33343 static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
33344 PyObject *resultobj;
33345 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33346 int result;
33347 PyObject * obj0 = 0 ;
33348 char *kwnames[] = {
33349 (char *) "self", NULL
33350 };
33351
33352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
33353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 result = (int)((wxItemContainer const *)arg1)->GetSelection();
33358
33359 wxPyEndAllowThreads(__tstate);
33360 if (PyErr_Occurred()) SWIG_fail;
33361 }
33362 resultobj = SWIG_FromInt((int)result);
33363 return resultobj;
33364 fail:
33365 return NULL;
33366 }
33367
33368
33369 static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
33370 PyObject *resultobj;
33371 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33372 wxString result;
33373 PyObject * obj0 = 0 ;
33374 char *kwnames[] = {
33375 (char *) "self", NULL
33376 };
33377
33378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
33379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33381 {
33382 PyThreadState* __tstate = wxPyBeginAllowThreads();
33383 result = ((wxItemContainer const *)arg1)->GetStringSelection();
33384
33385 wxPyEndAllowThreads(__tstate);
33386 if (PyErr_Occurred()) SWIG_fail;
33387 }
33388 {
33389 #if wxUSE_UNICODE
33390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33391 #else
33392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33393 #endif
33394 }
33395 return resultobj;
33396 fail:
33397 return NULL;
33398 }
33399
33400
33401 static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
33402 PyObject *resultobj;
33403 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33404 int arg2 ;
33405 PyObject *result;
33406 PyObject * obj0 = 0 ;
33407 PyObject * obj1 = 0 ;
33408 char *kwnames[] = {
33409 (char *) "self",(char *) "n", NULL
33410 };
33411
33412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
33413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33415 arg2 = (int) SWIG_AsInt(obj1);
33416 if (PyErr_Occurred()) SWIG_fail;
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
33420
33421 wxPyEndAllowThreads(__tstate);
33422 if (PyErr_Occurred()) SWIG_fail;
33423 }
33424 resultobj = result;
33425 return resultobj;
33426 fail:
33427 return NULL;
33428 }
33429
33430
33431 static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
33432 PyObject *resultobj;
33433 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33434 int arg2 ;
33435 PyObject *arg3 = (PyObject *) 0 ;
33436 PyObject * obj0 = 0 ;
33437 PyObject * obj1 = 0 ;
33438 PyObject * obj2 = 0 ;
33439 char *kwnames[] = {
33440 (char *) "self",(char *) "n",(char *) "clientData", NULL
33441 };
33442
33443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
33444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33446 arg2 = (int) SWIG_AsInt(obj1);
33447 if (PyErr_Occurred()) SWIG_fail;
33448 arg3 = obj2;
33449 {
33450 PyThreadState* __tstate = wxPyBeginAllowThreads();
33451 wxItemContainer_SetClientData(arg1,arg2,arg3);
33452
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 Py_INCREF(Py_None); resultobj = Py_None;
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
33464 PyObject *obj;
33465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33466 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
33467 Py_INCREF(obj);
33468 return Py_BuildValue((char *)"");
33469 }
33470 static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
33471 PyObject *obj;
33472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33473 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
33474 Py_INCREF(obj);
33475 return Py_BuildValue((char *)"");
33476 }
33477 static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33478 PyObject *resultobj;
33479 wxSizerItem *result;
33480 char *kwnames[] = {
33481 NULL
33482 };
33483
33484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
33485 {
33486 PyThreadState* __tstate = wxPyBeginAllowThreads();
33487 result = (wxSizerItem *)new wxSizerItem();
33488
33489 wxPyEndAllowThreads(__tstate);
33490 if (PyErr_Occurred()) SWIG_fail;
33491 }
33492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33493 return resultobj;
33494 fail:
33495 return NULL;
33496 }
33497
33498
33499 static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
33500 PyObject *resultobj;
33501 int arg1 ;
33502 int arg2 ;
33503 int arg3 ;
33504 int arg4 ;
33505 int arg5 ;
33506 wxObject *arg6 = (wxObject *) 0 ;
33507 wxSizerItem *result;
33508 PyObject * obj0 = 0 ;
33509 PyObject * obj1 = 0 ;
33510 PyObject * obj2 = 0 ;
33511 PyObject * obj3 = 0 ;
33512 PyObject * obj4 = 0 ;
33513 PyObject * obj5 = 0 ;
33514 char *kwnames[] = {
33515 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33516 };
33517
33518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
33519 arg1 = (int) SWIG_AsInt(obj0);
33520 if (PyErr_Occurred()) SWIG_fail;
33521 arg2 = (int) SWIG_AsInt(obj1);
33522 if (PyErr_Occurred()) SWIG_fail;
33523 arg3 = (int) SWIG_AsInt(obj2);
33524 if (PyErr_Occurred()) SWIG_fail;
33525 arg4 = (int) SWIG_AsInt(obj3);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 arg5 = (int) SWIG_AsInt(obj4);
33528 if (PyErr_Occurred()) SWIG_fail;
33529 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject,
33530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33531 {
33532 PyThreadState* __tstate = wxPyBeginAllowThreads();
33533 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
33534
33535 wxPyEndAllowThreads(__tstate);
33536 if (PyErr_Occurred()) SWIG_fail;
33537 }
33538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33539 return resultobj;
33540 fail:
33541 return NULL;
33542 }
33543
33544
33545 static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
33546 PyObject *resultobj;
33547 wxWindow *arg1 = (wxWindow *) 0 ;
33548 int arg2 ;
33549 int arg3 ;
33550 int arg4 ;
33551 wxObject *arg5 = (wxObject *) 0 ;
33552 wxSizerItem *result;
33553 PyObject * obj0 = 0 ;
33554 PyObject * obj1 = 0 ;
33555 PyObject * obj2 = 0 ;
33556 PyObject * obj3 = 0 ;
33557 PyObject * obj4 = 0 ;
33558 char *kwnames[] = {
33559 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33560 };
33561
33562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33565 arg2 = (int) SWIG_AsInt(obj1);
33566 if (PyErr_Occurred()) SWIG_fail;
33567 arg3 = (int) SWIG_AsInt(obj2);
33568 if (PyErr_Occurred()) SWIG_fail;
33569 arg4 = (int) SWIG_AsInt(obj3);
33570 if (PyErr_Occurred()) SWIG_fail;
33571 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject,
33572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33573 {
33574 PyThreadState* __tstate = wxPyBeginAllowThreads();
33575 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
33576
33577 wxPyEndAllowThreads(__tstate);
33578 if (PyErr_Occurred()) SWIG_fail;
33579 }
33580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33581 return resultobj;
33582 fail:
33583 return NULL;
33584 }
33585
33586
33587 static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33588 PyObject *resultobj;
33589 wxSizer *arg1 = (wxSizer *) 0 ;
33590 int arg2 ;
33591 int arg3 ;
33592 int arg4 ;
33593 wxObject *arg5 = (wxObject *) 0 ;
33594 wxSizerItem *result;
33595 PyObject * obj0 = 0 ;
33596 PyObject * obj1 = 0 ;
33597 PyObject * obj2 = 0 ;
33598 PyObject * obj3 = 0 ;
33599 PyObject * obj4 = 0 ;
33600 char *kwnames[] = {
33601 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33602 };
33603
33604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
33606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33607 arg2 = (int) SWIG_AsInt(obj1);
33608 if (PyErr_Occurred()) SWIG_fail;
33609 arg3 = (int) SWIG_AsInt(obj2);
33610 if (PyErr_Occurred()) SWIG_fail;
33611 arg4 = (int) SWIG_AsInt(obj3);
33612 if (PyErr_Occurred()) SWIG_fail;
33613 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject,
33614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33615 {
33616 PyThreadState* __tstate = wxPyBeginAllowThreads();
33617 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
33618
33619 wxPyEndAllowThreads(__tstate);
33620 if (PyErr_Occurred()) SWIG_fail;
33621 }
33622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
33623 return resultobj;
33624 fail:
33625 return NULL;
33626 }
33627
33628
33629 static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
33630 PyObject *resultobj;
33631 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33632 PyObject * obj0 = 0 ;
33633 char *kwnames[] = {
33634 (char *) "self", NULL
33635 };
33636
33637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
33638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 (arg1)->DeleteWindows();
33643
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 Py_INCREF(Py_None); resultobj = Py_None;
33648 return resultobj;
33649 fail:
33650 return NULL;
33651 }
33652
33653
33654 static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33655 PyObject *resultobj;
33656 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33657 PyObject * obj0 = 0 ;
33658 char *kwnames[] = {
33659 (char *) "self", NULL
33660 };
33661
33662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
33663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33665 {
33666 PyThreadState* __tstate = wxPyBeginAllowThreads();
33667 (arg1)->DetachSizer();
33668
33669 wxPyEndAllowThreads(__tstate);
33670 if (PyErr_Occurred()) SWIG_fail;
33671 }
33672 Py_INCREF(Py_None); resultobj = Py_None;
33673 return resultobj;
33674 fail:
33675 return NULL;
33676 }
33677
33678
33679 static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33680 PyObject *resultobj;
33681 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33682 wxSize result;
33683 PyObject * obj0 = 0 ;
33684 char *kwnames[] = {
33685 (char *) "self", NULL
33686 };
33687
33688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
33689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33691 {
33692 PyThreadState* __tstate = wxPyBeginAllowThreads();
33693 result = (arg1)->GetSize();
33694
33695 wxPyEndAllowThreads(__tstate);
33696 if (PyErr_Occurred()) SWIG_fail;
33697 }
33698 {
33699 wxSize * resultptr;
33700 resultptr = new wxSize((wxSize &) result);
33701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
33702 }
33703 return resultobj;
33704 fail:
33705 return NULL;
33706 }
33707
33708
33709 static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
33710 PyObject *resultobj;
33711 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33712 wxSize result;
33713 PyObject * obj0 = 0 ;
33714 char *kwnames[] = {
33715 (char *) "self", NULL
33716 };
33717
33718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
33719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33721 {
33722 PyThreadState* __tstate = wxPyBeginAllowThreads();
33723 result = (arg1)->CalcMin();
33724
33725 wxPyEndAllowThreads(__tstate);
33726 if (PyErr_Occurred()) SWIG_fail;
33727 }
33728 {
33729 wxSize * resultptr;
33730 resultptr = new wxSize((wxSize &) result);
33731 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
33732 }
33733 return resultobj;
33734 fail:
33735 return NULL;
33736 }
33737
33738
33739 static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
33740 PyObject *resultobj;
33741 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33742 wxPoint arg2 ;
33743 wxSize arg3 ;
33744 wxPoint *argp2 ;
33745 wxSize *argp3 ;
33746 PyObject * obj0 = 0 ;
33747 PyObject * obj1 = 0 ;
33748 PyObject * obj2 = 0 ;
33749 char *kwnames[] = {
33750 (char *) "self",(char *) "pos",(char *) "size", NULL
33751 };
33752
33753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
33754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33756 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
33757 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
33758 arg2 = *argp2;
33759 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
33760 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
33761 arg3 = *argp3;
33762 {
33763 PyThreadState* __tstate = wxPyBeginAllowThreads();
33764 (arg1)->SetDimension(arg2,arg3);
33765
33766 wxPyEndAllowThreads(__tstate);
33767 if (PyErr_Occurred()) SWIG_fail;
33768 }
33769 Py_INCREF(Py_None); resultobj = Py_None;
33770 return resultobj;
33771 fail:
33772 return NULL;
33773 }
33774
33775
33776 static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33777 PyObject *resultobj;
33778 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33779 wxSize result;
33780 PyObject * obj0 = 0 ;
33781 char *kwnames[] = {
33782 (char *) "self", NULL
33783 };
33784
33785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
33786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33788 {
33789 PyThreadState* __tstate = wxPyBeginAllowThreads();
33790 result = (arg1)->GetMinSize();
33791
33792 wxPyEndAllowThreads(__tstate);
33793 if (PyErr_Occurred()) SWIG_fail;
33794 }
33795 {
33796 wxSize * resultptr;
33797 resultptr = new wxSize((wxSize &) result);
33798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
33799 }
33800 return resultobj;
33801 fail:
33802 return NULL;
33803 }
33804
33805
33806 static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33807 PyObject *resultobj;
33808 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33809 int arg2 ;
33810 int arg3 ;
33811 PyObject * obj0 = 0 ;
33812 PyObject * obj1 = 0 ;
33813 PyObject * obj2 = 0 ;
33814 char *kwnames[] = {
33815 (char *) "self",(char *) "x",(char *) "y", NULL
33816 };
33817
33818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
33819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33821 arg2 = (int) SWIG_AsInt(obj1);
33822 if (PyErr_Occurred()) SWIG_fail;
33823 arg3 = (int) SWIG_AsInt(obj2);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 {
33826 PyThreadState* __tstate = wxPyBeginAllowThreads();
33827 (arg1)->SetInitSize(arg2,arg3);
33828
33829 wxPyEndAllowThreads(__tstate);
33830 if (PyErr_Occurred()) SWIG_fail;
33831 }
33832 Py_INCREF(Py_None); resultobj = Py_None;
33833 return resultobj;
33834 fail:
33835 return NULL;
33836 }
33837
33838
33839 static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
33840 PyObject *resultobj;
33841 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33842 int arg2 ;
33843 int arg3 ;
33844 PyObject * obj0 = 0 ;
33845 PyObject * obj1 = 0 ;
33846 PyObject * obj2 = 0 ;
33847 char *kwnames[] = {
33848 (char *) "self",(char *) "width",(char *) "height", NULL
33849 };
33850
33851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
33852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33854 arg2 = (int) SWIG_AsInt(obj1);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 arg3 = (int) SWIG_AsInt(obj2);
33857 if (PyErr_Occurred()) SWIG_fail;
33858 {
33859 PyThreadState* __tstate = wxPyBeginAllowThreads();
33860 (arg1)->SetRatio(arg2,arg3);
33861
33862 wxPyEndAllowThreads(__tstate);
33863 if (PyErr_Occurred()) SWIG_fail;
33864 }
33865 Py_INCREF(Py_None); resultobj = Py_None;
33866 return resultobj;
33867 fail:
33868 return NULL;
33869 }
33870
33871
33872 static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33873 PyObject *resultobj;
33874 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33875 wxSize arg2 ;
33876 wxSize *argp2 ;
33877 PyObject * obj0 = 0 ;
33878 PyObject * obj1 = 0 ;
33879 char *kwnames[] = {
33880 (char *) "self",(char *) "size", NULL
33881 };
33882
33883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
33884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33886 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
33887 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
33888 arg2 = *argp2;
33889 {
33890 PyThreadState* __tstate = wxPyBeginAllowThreads();
33891 (arg1)->SetRatio(arg2);
33892
33893 wxPyEndAllowThreads(__tstate);
33894 if (PyErr_Occurred()) SWIG_fail;
33895 }
33896 Py_INCREF(Py_None); resultobj = Py_None;
33897 return resultobj;
33898 fail:
33899 return NULL;
33900 }
33901
33902
33903 static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
33904 PyObject *resultobj;
33905 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33906 float arg2 ;
33907 PyObject * obj0 = 0 ;
33908 PyObject * obj1 = 0 ;
33909 char *kwnames[] = {
33910 (char *) "self",(char *) "ratio", NULL
33911 };
33912
33913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
33914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33916 arg2 = (float) SWIG_AsFloat(obj1);
33917 if (PyErr_Occurred()) SWIG_fail;
33918 {
33919 PyThreadState* __tstate = wxPyBeginAllowThreads();
33920 (arg1)->SetRatio(arg2);
33921
33922 wxPyEndAllowThreads(__tstate);
33923 if (PyErr_Occurred()) SWIG_fail;
33924 }
33925 Py_INCREF(Py_None); resultobj = Py_None;
33926 return resultobj;
33927 fail:
33928 return NULL;
33929 }
33930
33931
33932 static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
33933 PyObject *resultobj;
33934 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33935 float result;
33936 PyObject * obj0 = 0 ;
33937 char *kwnames[] = {
33938 (char *) "self", NULL
33939 };
33940
33941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
33942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 result = (float)(arg1)->GetRatio();
33947
33948 wxPyEndAllowThreads(__tstate);
33949 if (PyErr_Occurred()) SWIG_fail;
33950 }
33951 resultobj = SWIG_FromFloat((float)result);
33952 return resultobj;
33953 fail:
33954 return NULL;
33955 }
33956
33957
33958 static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
33959 PyObject *resultobj;
33960 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33961 bool result;
33962 PyObject * obj0 = 0 ;
33963 char *kwnames[] = {
33964 (char *) "self", NULL
33965 };
33966
33967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
33968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33970 {
33971 PyThreadState* __tstate = wxPyBeginAllowThreads();
33972 result = (bool)(arg1)->IsWindow();
33973
33974 wxPyEndAllowThreads(__tstate);
33975 if (PyErr_Occurred()) SWIG_fail;
33976 }
33977 {
33978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33979 }
33980 return resultobj;
33981 fail:
33982 return NULL;
33983 }
33984
33985
33986 static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33987 PyObject *resultobj;
33988 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33989 bool result;
33990 PyObject * obj0 = 0 ;
33991 char *kwnames[] = {
33992 (char *) "self", NULL
33993 };
33994
33995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
33996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
33997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33998 {
33999 PyThreadState* __tstate = wxPyBeginAllowThreads();
34000 result = (bool)(arg1)->IsSizer();
34001
34002 wxPyEndAllowThreads(__tstate);
34003 if (PyErr_Occurred()) SWIG_fail;
34004 }
34005 {
34006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34007 }
34008 return resultobj;
34009 fail:
34010 return NULL;
34011 }
34012
34013
34014 static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34015 PyObject *resultobj;
34016 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34017 bool result;
34018 PyObject * obj0 = 0 ;
34019 char *kwnames[] = {
34020 (char *) "self", NULL
34021 };
34022
34023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
34024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34026 {
34027 PyThreadState* __tstate = wxPyBeginAllowThreads();
34028 result = (bool)(arg1)->IsSpacer();
34029
34030 wxPyEndAllowThreads(__tstate);
34031 if (PyErr_Occurred()) SWIG_fail;
34032 }
34033 {
34034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34035 }
34036 return resultobj;
34037 fail:
34038 return NULL;
34039 }
34040
34041
34042 static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34043 PyObject *resultobj;
34044 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34045 int arg2 ;
34046 PyObject * obj0 = 0 ;
34047 PyObject * obj1 = 0 ;
34048 char *kwnames[] = {
34049 (char *) "self",(char *) "proportion", NULL
34050 };
34051
34052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
34053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34055 arg2 = (int) SWIG_AsInt(obj1);
34056 if (PyErr_Occurred()) SWIG_fail;
34057 {
34058 PyThreadState* __tstate = wxPyBeginAllowThreads();
34059 (arg1)->SetProportion(arg2);
34060
34061 wxPyEndAllowThreads(__tstate);
34062 if (PyErr_Occurred()) SWIG_fail;
34063 }
34064 Py_INCREF(Py_None); resultobj = Py_None;
34065 return resultobj;
34066 fail:
34067 return NULL;
34068 }
34069
34070
34071 static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34072 PyObject *resultobj;
34073 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34074 int result;
34075 PyObject * obj0 = 0 ;
34076 char *kwnames[] = {
34077 (char *) "self", NULL
34078 };
34079
34080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
34081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34083 {
34084 PyThreadState* __tstate = wxPyBeginAllowThreads();
34085 result = (int)(arg1)->GetProportion();
34086
34087 wxPyEndAllowThreads(__tstate);
34088 if (PyErr_Occurred()) SWIG_fail;
34089 }
34090 resultobj = SWIG_FromInt((int)result);
34091 return resultobj;
34092 fail:
34093 return NULL;
34094 }
34095
34096
34097 static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34098 PyObject *resultobj;
34099 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34100 int arg2 ;
34101 PyObject * obj0 = 0 ;
34102 PyObject * obj1 = 0 ;
34103 char *kwnames[] = {
34104 (char *) "self",(char *) "flag", NULL
34105 };
34106
34107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
34108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34110 arg2 = (int) SWIG_AsInt(obj1);
34111 if (PyErr_Occurred()) SWIG_fail;
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 (arg1)->SetFlag(arg2);
34115
34116 wxPyEndAllowThreads(__tstate);
34117 if (PyErr_Occurred()) SWIG_fail;
34118 }
34119 Py_INCREF(Py_None); resultobj = Py_None;
34120 return resultobj;
34121 fail:
34122 return NULL;
34123 }
34124
34125
34126 static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34127 PyObject *resultobj;
34128 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34129 int result;
34130 PyObject * obj0 = 0 ;
34131 char *kwnames[] = {
34132 (char *) "self", NULL
34133 };
34134
34135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
34136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34138 {
34139 PyThreadState* __tstate = wxPyBeginAllowThreads();
34140 result = (int)(arg1)->GetFlag();
34141
34142 wxPyEndAllowThreads(__tstate);
34143 if (PyErr_Occurred()) SWIG_fail;
34144 }
34145 resultobj = SWIG_FromInt((int)result);
34146 return resultobj;
34147 fail:
34148 return NULL;
34149 }
34150
34151
34152 static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34153 PyObject *resultobj;
34154 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34155 int arg2 ;
34156 PyObject * obj0 = 0 ;
34157 PyObject * obj1 = 0 ;
34158 char *kwnames[] = {
34159 (char *) "self",(char *) "border", NULL
34160 };
34161
34162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
34163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34165 arg2 = (int) SWIG_AsInt(obj1);
34166 if (PyErr_Occurred()) SWIG_fail;
34167 {
34168 PyThreadState* __tstate = wxPyBeginAllowThreads();
34169 (arg1)->SetBorder(arg2);
34170
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 Py_INCREF(Py_None); resultobj = Py_None;
34175 return resultobj;
34176 fail:
34177 return NULL;
34178 }
34179
34180
34181 static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34182 PyObject *resultobj;
34183 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34184 int result;
34185 PyObject * obj0 = 0 ;
34186 char *kwnames[] = {
34187 (char *) "self", NULL
34188 };
34189
34190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
34191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34193 {
34194 PyThreadState* __tstate = wxPyBeginAllowThreads();
34195 result = (int)(arg1)->GetBorder();
34196
34197 wxPyEndAllowThreads(__tstate);
34198 if (PyErr_Occurred()) SWIG_fail;
34199 }
34200 resultobj = SWIG_FromInt((int)result);
34201 return resultobj;
34202 fail:
34203 return NULL;
34204 }
34205
34206
34207 static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34208 PyObject *resultobj;
34209 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34210 wxWindow *result;
34211 PyObject * obj0 = 0 ;
34212 char *kwnames[] = {
34213 (char *) "self", NULL
34214 };
34215
34216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
34217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 result = (wxWindow *)(arg1)->GetWindow();
34222
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 {
34227 resultobj = wxPyMake_wxObject(result);
34228 }
34229 return resultobj;
34230 fail:
34231 return NULL;
34232 }
34233
34234
34235 static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34236 PyObject *resultobj;
34237 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34238 wxWindow *arg2 = (wxWindow *) 0 ;
34239 PyObject * obj0 = 0 ;
34240 PyObject * obj1 = 0 ;
34241 char *kwnames[] = {
34242 (char *) "self",(char *) "window", NULL
34243 };
34244
34245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
34246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
34249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34250 {
34251 PyThreadState* __tstate = wxPyBeginAllowThreads();
34252 (arg1)->SetWindow(arg2);
34253
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 Py_INCREF(Py_None); resultobj = Py_None;
34258 return resultobj;
34259 fail:
34260 return NULL;
34261 }
34262
34263
34264 static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj;
34266 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34267 wxSizer *result;
34268 PyObject * obj0 = 0 ;
34269 char *kwnames[] = {
34270 (char *) "self", NULL
34271 };
34272
34273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
34274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34276 {
34277 PyThreadState* __tstate = wxPyBeginAllowThreads();
34278 result = (wxSizer *)(arg1)->GetSizer();
34279
34280 wxPyEndAllowThreads(__tstate);
34281 if (PyErr_Occurred()) SWIG_fail;
34282 }
34283 {
34284 resultobj = wxPyMake_wxSizer(result);
34285 }
34286 return resultobj;
34287 fail:
34288 return NULL;
34289 }
34290
34291
34292 static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34293 PyObject *resultobj;
34294 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34295 wxSizer *arg2 = (wxSizer *) 0 ;
34296 PyObject * obj0 = 0 ;
34297 PyObject * obj1 = 0 ;
34298 char *kwnames[] = {
34299 (char *) "self",(char *) "sizer", NULL
34300 };
34301
34302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
34303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
34306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34307 {
34308 PyThreadState* __tstate = wxPyBeginAllowThreads();
34309 (arg1)->SetSizer(arg2);
34310
34311 wxPyEndAllowThreads(__tstate);
34312 if (PyErr_Occurred()) SWIG_fail;
34313 }
34314 Py_INCREF(Py_None); resultobj = Py_None;
34315 return resultobj;
34316 fail:
34317 return NULL;
34318 }
34319
34320
34321 static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34322 PyObject *resultobj;
34323 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34324 wxSize *result;
34325 PyObject * obj0 = 0 ;
34326 char *kwnames[] = {
34327 (char *) "self", NULL
34328 };
34329
34330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
34331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34333 {
34334 PyThreadState* __tstate = wxPyBeginAllowThreads();
34335 {
34336 wxSize const &_result_ref = (arg1)->GetSpacer();
34337 result = (wxSize *) &_result_ref;
34338 }
34339
34340 wxPyEndAllowThreads(__tstate);
34341 if (PyErr_Occurred()) SWIG_fail;
34342 }
34343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
34344 return resultobj;
34345 fail:
34346 return NULL;
34347 }
34348
34349
34350 static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34351 PyObject *resultobj;
34352 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34353 wxSize *arg2 = 0 ;
34354 wxSize temp2 ;
34355 PyObject * obj0 = 0 ;
34356 PyObject * obj1 = 0 ;
34357 char *kwnames[] = {
34358 (char *) "self",(char *) "size", NULL
34359 };
34360
34361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
34362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34364 {
34365 arg2 = &temp2;
34366 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34367 }
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 (arg1)->SetSpacer((wxSize const &)*arg2);
34371
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 Py_INCREF(Py_None); resultobj = Py_None;
34376 return resultobj;
34377 fail:
34378 return NULL;
34379 }
34380
34381
34382 static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
34383 PyObject *resultobj;
34384 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34385 bool arg2 ;
34386 PyObject * obj0 = 0 ;
34387 PyObject * obj1 = 0 ;
34388 char *kwnames[] = {
34389 (char *) "self",(char *) "show", NULL
34390 };
34391
34392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
34393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34395 arg2 = (bool) SWIG_AsBool(obj1);
34396 if (PyErr_Occurred()) SWIG_fail;
34397 {
34398 PyThreadState* __tstate = wxPyBeginAllowThreads();
34399 (arg1)->Show(arg2);
34400
34401 wxPyEndAllowThreads(__tstate);
34402 if (PyErr_Occurred()) SWIG_fail;
34403 }
34404 Py_INCREF(Py_None); resultobj = Py_None;
34405 return resultobj;
34406 fail:
34407 return NULL;
34408 }
34409
34410
34411 static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
34412 PyObject *resultobj;
34413 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34414 bool result;
34415 PyObject * obj0 = 0 ;
34416 char *kwnames[] = {
34417 (char *) "self", NULL
34418 };
34419
34420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
34421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34423 {
34424 PyThreadState* __tstate = wxPyBeginAllowThreads();
34425 result = (bool)(arg1)->IsShown();
34426
34427 wxPyEndAllowThreads(__tstate);
34428 if (PyErr_Occurred()) SWIG_fail;
34429 }
34430 {
34431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34432 }
34433 return resultobj;
34434 fail:
34435 return NULL;
34436 }
34437
34438
34439 static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
34440 PyObject *resultobj;
34441 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34442 wxPoint result;
34443 PyObject * obj0 = 0 ;
34444 char *kwnames[] = {
34445 (char *) "self", NULL
34446 };
34447
34448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
34449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 result = (arg1)->GetPosition();
34454
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 {
34459 wxPoint * resultptr;
34460 resultptr = new wxPoint((wxPoint &) result);
34461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
34462 }
34463 return resultobj;
34464 fail:
34465 return NULL;
34466 }
34467
34468
34469 static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
34470 PyObject *resultobj;
34471 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34472 PyObject *result;
34473 PyObject * obj0 = 0 ;
34474 char *kwnames[] = {
34475 (char *) "self", NULL
34476 };
34477
34478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
34479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34481 {
34482 PyThreadState* __tstate = wxPyBeginAllowThreads();
34483 result = (PyObject *)wxSizerItem_GetUserData(arg1);
34484
34485 wxPyEndAllowThreads(__tstate);
34486 if (PyErr_Occurred()) SWIG_fail;
34487 }
34488 resultobj = result;
34489 return resultobj;
34490 fail:
34491 return NULL;
34492 }
34493
34494
34495 static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
34496 PyObject *obj;
34497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34498 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
34499 Py_INCREF(obj);
34500 return Py_BuildValue((char *)"");
34501 }
34502 static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
34503 PyObject *resultobj;
34504 wxSizer *arg1 = (wxSizer *) 0 ;
34505 PyObject *arg2 = (PyObject *) 0 ;
34506 PyObject * obj0 = 0 ;
34507 PyObject * obj1 = 0 ;
34508 char *kwnames[] = {
34509 (char *) "self",(char *) "_self", NULL
34510 };
34511
34512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
34513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34515 arg2 = obj1;
34516 {
34517 PyThreadState* __tstate = wxPyBeginAllowThreads();
34518 wxSizer__setOORInfo(arg1,arg2);
34519
34520 wxPyEndAllowThreads(__tstate);
34521 if (PyErr_Occurred()) SWIG_fail;
34522 }
34523 Py_INCREF(Py_None); resultobj = Py_None;
34524 return resultobj;
34525 fail:
34526 return NULL;
34527 }
34528
34529
34530 static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
34531 PyObject *resultobj;
34532 wxSizer *arg1 = (wxSizer *) 0 ;
34533 PyObject *arg2 = (PyObject *) 0 ;
34534 int arg3 = (int) 0 ;
34535 int arg4 = (int) 0 ;
34536 int arg5 = (int) 0 ;
34537 PyObject *arg6 = (PyObject *) NULL ;
34538 PyObject * obj0 = 0 ;
34539 PyObject * obj1 = 0 ;
34540 PyObject * obj2 = 0 ;
34541 PyObject * obj3 = 0 ;
34542 PyObject * obj4 = 0 ;
34543 PyObject * obj5 = 0 ;
34544 char *kwnames[] = {
34545 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34546 };
34547
34548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34551 arg2 = obj1;
34552 if (obj2) {
34553 arg3 = (int) SWIG_AsInt(obj2);
34554 if (PyErr_Occurred()) SWIG_fail;
34555 }
34556 if (obj3) {
34557 arg4 = (int) SWIG_AsInt(obj3);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 }
34560 if (obj4) {
34561 arg5 = (int) SWIG_AsInt(obj4);
34562 if (PyErr_Occurred()) SWIG_fail;
34563 }
34564 if (obj5) {
34565 arg6 = obj5;
34566 }
34567 {
34568 PyThreadState* __tstate = wxPyBeginAllowThreads();
34569 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
34570
34571 wxPyEndAllowThreads(__tstate);
34572 if (PyErr_Occurred()) SWIG_fail;
34573 }
34574 Py_INCREF(Py_None); resultobj = Py_None;
34575 return resultobj;
34576 fail:
34577 return NULL;
34578 }
34579
34580
34581 static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj;
34583 wxSizer *arg1 = (wxSizer *) 0 ;
34584 int arg2 ;
34585 PyObject *arg3 = (PyObject *) 0 ;
34586 int arg4 = (int) 0 ;
34587 int arg5 = (int) 0 ;
34588 int arg6 = (int) 0 ;
34589 PyObject *arg7 = (PyObject *) NULL ;
34590 PyObject * obj0 = 0 ;
34591 PyObject * obj1 = 0 ;
34592 PyObject * obj2 = 0 ;
34593 PyObject * obj3 = 0 ;
34594 PyObject * obj4 = 0 ;
34595 PyObject * obj5 = 0 ;
34596 PyObject * obj6 = 0 ;
34597 char *kwnames[] = {
34598 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34599 };
34600
34601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
34602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34604 arg2 = (int) SWIG_AsInt(obj1);
34605 if (PyErr_Occurred()) SWIG_fail;
34606 arg3 = obj2;
34607 if (obj3) {
34608 arg4 = (int) SWIG_AsInt(obj3);
34609 if (PyErr_Occurred()) SWIG_fail;
34610 }
34611 if (obj4) {
34612 arg5 = (int) SWIG_AsInt(obj4);
34613 if (PyErr_Occurred()) SWIG_fail;
34614 }
34615 if (obj5) {
34616 arg6 = (int) SWIG_AsInt(obj5);
34617 if (PyErr_Occurred()) SWIG_fail;
34618 }
34619 if (obj6) {
34620 arg7 = obj6;
34621 }
34622 {
34623 PyThreadState* __tstate = wxPyBeginAllowThreads();
34624 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
34625
34626 wxPyEndAllowThreads(__tstate);
34627 if (PyErr_Occurred()) SWIG_fail;
34628 }
34629 Py_INCREF(Py_None); resultobj = Py_None;
34630 return resultobj;
34631 fail:
34632 return NULL;
34633 }
34634
34635
34636 static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
34637 PyObject *resultobj;
34638 wxSizer *arg1 = (wxSizer *) 0 ;
34639 PyObject *arg2 = (PyObject *) 0 ;
34640 int arg3 = (int) 0 ;
34641 int arg4 = (int) 0 ;
34642 int arg5 = (int) 0 ;
34643 PyObject *arg6 = (PyObject *) NULL ;
34644 PyObject * obj0 = 0 ;
34645 PyObject * obj1 = 0 ;
34646 PyObject * obj2 = 0 ;
34647 PyObject * obj3 = 0 ;
34648 PyObject * obj4 = 0 ;
34649 PyObject * obj5 = 0 ;
34650 char *kwnames[] = {
34651 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34652 };
34653
34654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34657 arg2 = obj1;
34658 if (obj2) {
34659 arg3 = (int) SWIG_AsInt(obj2);
34660 if (PyErr_Occurred()) SWIG_fail;
34661 }
34662 if (obj3) {
34663 arg4 = (int) SWIG_AsInt(obj3);
34664 if (PyErr_Occurred()) SWIG_fail;
34665 }
34666 if (obj4) {
34667 arg5 = (int) SWIG_AsInt(obj4);
34668 if (PyErr_Occurred()) SWIG_fail;
34669 }
34670 if (obj5) {
34671 arg6 = obj5;
34672 }
34673 {
34674 PyThreadState* __tstate = wxPyBeginAllowThreads();
34675 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
34676
34677 wxPyEndAllowThreads(__tstate);
34678 if (PyErr_Occurred()) SWIG_fail;
34679 }
34680 Py_INCREF(Py_None); resultobj = Py_None;
34681 return resultobj;
34682 fail:
34683 return NULL;
34684 }
34685
34686
34687 static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
34688 PyObject *resultobj;
34689 wxSizer *arg1 = (wxSizer *) 0 ;
34690 PyObject *arg2 = (PyObject *) 0 ;
34691 bool result;
34692 PyObject * obj0 = 0 ;
34693 PyObject * obj1 = 0 ;
34694 char *kwnames[] = {
34695 (char *) "self",(char *) "item", NULL
34696 };
34697
34698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
34699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34701 arg2 = obj1;
34702 {
34703 PyThreadState* __tstate = wxPyBeginAllowThreads();
34704 result = (bool)wxSizer_Remove(arg1,arg2);
34705
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 {
34710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34711 }
34712 return resultobj;
34713 fail:
34714 return NULL;
34715 }
34716
34717
34718 static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34719 PyObject *resultobj;
34720 wxSizer *arg1 = (wxSizer *) 0 ;
34721 PyObject *arg2 = (PyObject *) 0 ;
34722 wxSize *arg3 = 0 ;
34723 wxSize temp3 ;
34724 PyObject * obj0 = 0 ;
34725 PyObject * obj1 = 0 ;
34726 PyObject * obj2 = 0 ;
34727 char *kwnames[] = {
34728 (char *) "self",(char *) "item",(char *) "size", NULL
34729 };
34730
34731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34734 arg2 = obj1;
34735 {
34736 arg3 = &temp3;
34737 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
34738 }
34739 {
34740 PyThreadState* __tstate = wxPyBeginAllowThreads();
34741 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
34742
34743 wxPyEndAllowThreads(__tstate);
34744 if (PyErr_Occurred()) SWIG_fail;
34745 }
34746 Py_INCREF(Py_None); resultobj = Py_None;
34747 return resultobj;
34748 fail:
34749 return NULL;
34750 }
34751
34752
34753 static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34754 PyObject *resultobj;
34755 wxSizer *arg1 = (wxSizer *) 0 ;
34756 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
34757 PyObject * obj0 = 0 ;
34758 PyObject * obj1 = 0 ;
34759 char *kwnames[] = {
34760 (char *) "self",(char *) "item", NULL
34761 };
34762
34763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
34764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
34767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34768 {
34769 PyThreadState* __tstate = wxPyBeginAllowThreads();
34770 (arg1)->Add(arg2);
34771
34772 wxPyEndAllowThreads(__tstate);
34773 if (PyErr_Occurred()) SWIG_fail;
34774 }
34775 Py_INCREF(Py_None); resultobj = Py_None;
34776 return resultobj;
34777 fail:
34778 return NULL;
34779 }
34780
34781
34782 static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34783 PyObject *resultobj;
34784 wxSizer *arg1 = (wxSizer *) 0 ;
34785 size_t arg2 ;
34786 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
34787 PyObject * obj0 = 0 ;
34788 PyObject * obj1 = 0 ;
34789 PyObject * obj2 = 0 ;
34790 char *kwnames[] = {
34791 (char *) "self",(char *) "index",(char *) "item", NULL
34792 };
34793
34794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
34795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34797 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
34798 if (PyErr_Occurred()) SWIG_fail;
34799 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
34800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 (arg1)->Insert(arg2,arg3);
34804
34805 wxPyEndAllowThreads(__tstate);
34806 if (PyErr_Occurred()) SWIG_fail;
34807 }
34808 Py_INCREF(Py_None); resultobj = Py_None;
34809 return resultobj;
34810 fail:
34811 return NULL;
34812 }
34813
34814
34815 static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34816 PyObject *resultobj;
34817 wxSizer *arg1 = (wxSizer *) 0 ;
34818 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
34819 PyObject * obj0 = 0 ;
34820 PyObject * obj1 = 0 ;
34821 char *kwnames[] = {
34822 (char *) "self",(char *) "item", NULL
34823 };
34824
34825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
34826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
34829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 (arg1)->Prepend(arg2);
34833
34834 wxPyEndAllowThreads(__tstate);
34835 if (PyErr_Occurred()) SWIG_fail;
34836 }
34837 Py_INCREF(Py_None); resultobj = Py_None;
34838 return resultobj;
34839 fail:
34840 return NULL;
34841 }
34842
34843
34844 static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
34845 PyObject *resultobj;
34846 wxSizer *arg1 = (wxSizer *) 0 ;
34847 int arg2 ;
34848 int arg3 ;
34849 int arg4 ;
34850 int arg5 ;
34851 PyObject * obj0 = 0 ;
34852 PyObject * obj1 = 0 ;
34853 PyObject * obj2 = 0 ;
34854 PyObject * obj3 = 0 ;
34855 PyObject * obj4 = 0 ;
34856 char *kwnames[] = {
34857 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
34858 };
34859
34860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34863 arg2 = (int) SWIG_AsInt(obj1);
34864 if (PyErr_Occurred()) SWIG_fail;
34865 arg3 = (int) SWIG_AsInt(obj2);
34866 if (PyErr_Occurred()) SWIG_fail;
34867 arg4 = (int) SWIG_AsInt(obj3);
34868 if (PyErr_Occurred()) SWIG_fail;
34869 arg5 = (int) SWIG_AsInt(obj4);
34870 if (PyErr_Occurred()) SWIG_fail;
34871 {
34872 PyThreadState* __tstate = wxPyBeginAllowThreads();
34873 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
34874
34875 wxPyEndAllowThreads(__tstate);
34876 if (PyErr_Occurred()) SWIG_fail;
34877 }
34878 Py_INCREF(Py_None); resultobj = Py_None;
34879 return resultobj;
34880 fail:
34881 return NULL;
34882 }
34883
34884
34885 static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34886 PyObject *resultobj;
34887 wxSizer *arg1 = (wxSizer *) 0 ;
34888 wxSize *arg2 = 0 ;
34889 wxSize temp2 ;
34890 PyObject * obj0 = 0 ;
34891 PyObject * obj1 = 0 ;
34892 char *kwnames[] = {
34893 (char *) "self",(char *) "size", NULL
34894 };
34895
34896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
34897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34899 {
34900 arg2 = &temp2;
34901 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34902 }
34903 {
34904 PyThreadState* __tstate = wxPyBeginAllowThreads();
34905 (arg1)->SetMinSize((wxSize const &)*arg2);
34906
34907 wxPyEndAllowThreads(__tstate);
34908 if (PyErr_Occurred()) SWIG_fail;
34909 }
34910 Py_INCREF(Py_None); resultobj = Py_None;
34911 return resultobj;
34912 fail:
34913 return NULL;
34914 }
34915
34916
34917 static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34918 PyObject *resultobj;
34919 wxSizer *arg1 = (wxSizer *) 0 ;
34920 wxSize result;
34921 PyObject * obj0 = 0 ;
34922 char *kwnames[] = {
34923 (char *) "self", NULL
34924 };
34925
34926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
34927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34929 {
34930 PyThreadState* __tstate = wxPyBeginAllowThreads();
34931 result = (arg1)->GetSize();
34932
34933 wxPyEndAllowThreads(__tstate);
34934 if (PyErr_Occurred()) SWIG_fail;
34935 }
34936 {
34937 wxSize * resultptr;
34938 resultptr = new wxSize((wxSize &) result);
34939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34940 }
34941 return resultobj;
34942 fail:
34943 return NULL;
34944 }
34945
34946
34947 static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
34948 PyObject *resultobj;
34949 wxSizer *arg1 = (wxSizer *) 0 ;
34950 wxPoint result;
34951 PyObject * obj0 = 0 ;
34952 char *kwnames[] = {
34953 (char *) "self", NULL
34954 };
34955
34956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
34957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34959 {
34960 PyThreadState* __tstate = wxPyBeginAllowThreads();
34961 result = (arg1)->GetPosition();
34962
34963 wxPyEndAllowThreads(__tstate);
34964 if (PyErr_Occurred()) SWIG_fail;
34965 }
34966 {
34967 wxPoint * resultptr;
34968 resultptr = new wxPoint((wxPoint &) result);
34969 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
34970 }
34971 return resultobj;
34972 fail:
34973 return NULL;
34974 }
34975
34976
34977 static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34978 PyObject *resultobj;
34979 wxSizer *arg1 = (wxSizer *) 0 ;
34980 wxSize result;
34981 PyObject * obj0 = 0 ;
34982 char *kwnames[] = {
34983 (char *) "self", NULL
34984 };
34985
34986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
34987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34989 {
34990 PyThreadState* __tstate = wxPyBeginAllowThreads();
34991 result = (arg1)->GetMinSize();
34992
34993 wxPyEndAllowThreads(__tstate);
34994 if (PyErr_Occurred()) SWIG_fail;
34995 }
34996 {
34997 wxSize * resultptr;
34998 resultptr = new wxSize((wxSize &) result);
34999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35000 }
35001 return resultobj;
35002 fail:
35003 return NULL;
35004 }
35005
35006
35007 static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35008 PyObject *resultobj;
35009 wxSizer *arg1 = (wxSizer *) 0 ;
35010 PyObject * obj0 = 0 ;
35011 char *kwnames[] = {
35012 (char *) "self", NULL
35013 };
35014
35015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
35016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35018 {
35019 PyThreadState* __tstate = wxPyBeginAllowThreads();
35020 (arg1)->RecalcSizes();
35021
35022 wxPyEndAllowThreads(__tstate);
35023 if (PyErr_Occurred()) SWIG_fail;
35024 }
35025 Py_INCREF(Py_None); resultobj = Py_None;
35026 return resultobj;
35027 fail:
35028 return NULL;
35029 }
35030
35031
35032 static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35033 PyObject *resultobj;
35034 wxSizer *arg1 = (wxSizer *) 0 ;
35035 wxSize result;
35036 PyObject * obj0 = 0 ;
35037 char *kwnames[] = {
35038 (char *) "self", NULL
35039 };
35040
35041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
35042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35044 {
35045 PyThreadState* __tstate = wxPyBeginAllowThreads();
35046 result = (arg1)->CalcMin();
35047
35048 wxPyEndAllowThreads(__tstate);
35049 if (PyErr_Occurred()) SWIG_fail;
35050 }
35051 {
35052 wxSize * resultptr;
35053 resultptr = new wxSize((wxSize &) result);
35054 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35055 }
35056 return resultobj;
35057 fail:
35058 return NULL;
35059 }
35060
35061
35062 static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
35063 PyObject *resultobj;
35064 wxSizer *arg1 = (wxSizer *) 0 ;
35065 PyObject * obj0 = 0 ;
35066 char *kwnames[] = {
35067 (char *) "self", NULL
35068 };
35069
35070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
35071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35073 {
35074 PyThreadState* __tstate = wxPyBeginAllowThreads();
35075 (arg1)->Layout();
35076
35077 wxPyEndAllowThreads(__tstate);
35078 if (PyErr_Occurred()) SWIG_fail;
35079 }
35080 Py_INCREF(Py_None); resultobj = Py_None;
35081 return resultobj;
35082 fail:
35083 return NULL;
35084 }
35085
35086
35087 static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
35088 PyObject *resultobj;
35089 wxSizer *arg1 = (wxSizer *) 0 ;
35090 wxWindow *arg2 = (wxWindow *) 0 ;
35091 wxSize result;
35092 PyObject * obj0 = 0 ;
35093 PyObject * obj1 = 0 ;
35094 char *kwnames[] = {
35095 (char *) "self",(char *) "window", NULL
35096 };
35097
35098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
35099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35103 {
35104 PyThreadState* __tstate = wxPyBeginAllowThreads();
35105 result = (arg1)->Fit(arg2);
35106
35107 wxPyEndAllowThreads(__tstate);
35108 if (PyErr_Occurred()) SWIG_fail;
35109 }
35110 {
35111 wxSize * resultptr;
35112 resultptr = new wxSize((wxSize &) result);
35113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35114 }
35115 return resultobj;
35116 fail:
35117 return NULL;
35118 }
35119
35120
35121 static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
35122 PyObject *resultobj;
35123 wxSizer *arg1 = (wxSizer *) 0 ;
35124 wxWindow *arg2 = (wxWindow *) 0 ;
35125 PyObject * obj0 = 0 ;
35126 PyObject * obj1 = 0 ;
35127 char *kwnames[] = {
35128 (char *) "self",(char *) "window", NULL
35129 };
35130
35131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
35132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35136 {
35137 PyThreadState* __tstate = wxPyBeginAllowThreads();
35138 (arg1)->FitInside(arg2);
35139
35140 wxPyEndAllowThreads(__tstate);
35141 if (PyErr_Occurred()) SWIG_fail;
35142 }
35143 Py_INCREF(Py_None); resultobj = Py_None;
35144 return resultobj;
35145 fail:
35146 return NULL;
35147 }
35148
35149
35150 static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35151 PyObject *resultobj;
35152 wxSizer *arg1 = (wxSizer *) 0 ;
35153 wxWindow *arg2 = (wxWindow *) 0 ;
35154 PyObject * obj0 = 0 ;
35155 PyObject * obj1 = 0 ;
35156 char *kwnames[] = {
35157 (char *) "self",(char *) "window", NULL
35158 };
35159
35160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
35161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35165 {
35166 PyThreadState* __tstate = wxPyBeginAllowThreads();
35167 (arg1)->SetSizeHints(arg2);
35168
35169 wxPyEndAllowThreads(__tstate);
35170 if (PyErr_Occurred()) SWIG_fail;
35171 }
35172 Py_INCREF(Py_None); resultobj = Py_None;
35173 return resultobj;
35174 fail:
35175 return NULL;
35176 }
35177
35178
35179 static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35180 PyObject *resultobj;
35181 wxSizer *arg1 = (wxSizer *) 0 ;
35182 wxWindow *arg2 = (wxWindow *) 0 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 char *kwnames[] = {
35186 (char *) "self",(char *) "window", NULL
35187 };
35188
35189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
35190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35194 {
35195 PyThreadState* __tstate = wxPyBeginAllowThreads();
35196 (arg1)->SetVirtualSizeHints(arg2);
35197
35198 wxPyEndAllowThreads(__tstate);
35199 if (PyErr_Occurred()) SWIG_fail;
35200 }
35201 Py_INCREF(Py_None); resultobj = Py_None;
35202 return resultobj;
35203 fail:
35204 return NULL;
35205 }
35206
35207
35208 static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
35209 PyObject *resultobj;
35210 wxSizer *arg1 = (wxSizer *) 0 ;
35211 bool arg2 = (bool) False ;
35212 PyObject * obj0 = 0 ;
35213 PyObject * obj1 = 0 ;
35214 char *kwnames[] = {
35215 (char *) "self",(char *) "delete_windows", NULL
35216 };
35217
35218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
35219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35221 if (obj1) {
35222 arg2 = (bool) SWIG_AsBool(obj1);
35223 if (PyErr_Occurred()) SWIG_fail;
35224 }
35225 {
35226 PyThreadState* __tstate = wxPyBeginAllowThreads();
35227 (arg1)->Clear(arg2);
35228
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
35232 Py_INCREF(Py_None); resultobj = Py_None;
35233 return resultobj;
35234 fail:
35235 return NULL;
35236 }
35237
35238
35239 static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
35240 PyObject *resultobj;
35241 wxSizer *arg1 = (wxSizer *) 0 ;
35242 PyObject * obj0 = 0 ;
35243 char *kwnames[] = {
35244 (char *) "self", NULL
35245 };
35246
35247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
35248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35250 {
35251 PyThreadState* __tstate = wxPyBeginAllowThreads();
35252 (arg1)->DeleteWindows();
35253
35254 wxPyEndAllowThreads(__tstate);
35255 if (PyErr_Occurred()) SWIG_fail;
35256 }
35257 Py_INCREF(Py_None); resultobj = Py_None;
35258 return resultobj;
35259 fail:
35260 return NULL;
35261 }
35262
35263
35264 static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
35265 PyObject *resultobj;
35266 wxSizer *arg1 = (wxSizer *) 0 ;
35267 PyObject *result;
35268 PyObject * obj0 = 0 ;
35269 char *kwnames[] = {
35270 (char *) "self", NULL
35271 };
35272
35273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
35274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35276 {
35277 PyThreadState* __tstate = wxPyBeginAllowThreads();
35278 result = (PyObject *)wxSizer_GetChildren(arg1);
35279
35280 wxPyEndAllowThreads(__tstate);
35281 if (PyErr_Occurred()) SWIG_fail;
35282 }
35283 resultobj = result;
35284 return resultobj;
35285 fail:
35286 return NULL;
35287 }
35288
35289
35290 static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
35291 PyObject *resultobj;
35292 wxSizer *arg1 = (wxSizer *) 0 ;
35293 PyObject *arg2 = (PyObject *) 0 ;
35294 bool arg3 = (bool) True ;
35295 PyObject * obj0 = 0 ;
35296 PyObject * obj1 = 0 ;
35297 PyObject * obj2 = 0 ;
35298 char *kwnames[] = {
35299 (char *) "self",(char *) "item",(char *) "show", NULL
35300 };
35301
35302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
35303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35305 arg2 = obj1;
35306 if (obj2) {
35307 arg3 = (bool) SWIG_AsBool(obj2);
35308 if (PyErr_Occurred()) SWIG_fail;
35309 }
35310 {
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 wxSizer_Show(arg1,arg2,arg3);
35313
35314 wxPyEndAllowThreads(__tstate);
35315 if (PyErr_Occurred()) SWIG_fail;
35316 }
35317 Py_INCREF(Py_None); resultobj = Py_None;
35318 return resultobj;
35319 fail:
35320 return NULL;
35321 }
35322
35323
35324 static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
35325 PyObject *resultobj;
35326 wxSizer *arg1 = (wxSizer *) 0 ;
35327 PyObject *arg2 = (PyObject *) 0 ;
35328 PyObject * obj0 = 0 ;
35329 PyObject * obj1 = 0 ;
35330 char *kwnames[] = {
35331 (char *) "self",(char *) "item", NULL
35332 };
35333
35334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail;
35335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35337 arg2 = obj1;
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 wxSizer_Hide(arg1,arg2);
35341
35342 wxPyEndAllowThreads(__tstate);
35343 if (PyErr_Occurred()) SWIG_fail;
35344 }
35345 Py_INCREF(Py_None); resultobj = Py_None;
35346 return resultobj;
35347 fail:
35348 return NULL;
35349 }
35350
35351
35352 static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
35353 PyObject *resultobj;
35354 wxSizer *arg1 = (wxSizer *) 0 ;
35355 PyObject *arg2 = (PyObject *) 0 ;
35356 bool result;
35357 PyObject * obj0 = 0 ;
35358 PyObject * obj1 = 0 ;
35359 char *kwnames[] = {
35360 (char *) "self",(char *) "item", NULL
35361 };
35362
35363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
35364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35366 arg2 = obj1;
35367 {
35368 PyThreadState* __tstate = wxPyBeginAllowThreads();
35369 result = (bool)wxSizer_IsShown(arg1,arg2);
35370
35371 wxPyEndAllowThreads(__tstate);
35372 if (PyErr_Occurred()) SWIG_fail;
35373 }
35374 {
35375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35376 }
35377 return resultobj;
35378 fail:
35379 return NULL;
35380 }
35381
35382
35383 static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
35384 PyObject *resultobj;
35385 wxSizer *arg1 = (wxSizer *) 0 ;
35386 bool arg2 ;
35387 PyObject * obj0 = 0 ;
35388 PyObject * obj1 = 0 ;
35389 char *kwnames[] = {
35390 (char *) "self",(char *) "show", NULL
35391 };
35392
35393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
35394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35396 arg2 = (bool) SWIG_AsBool(obj1);
35397 if (PyErr_Occurred()) SWIG_fail;
35398 {
35399 PyThreadState* __tstate = wxPyBeginAllowThreads();
35400 (arg1)->ShowItems(arg2);
35401
35402 wxPyEndAllowThreads(__tstate);
35403 if (PyErr_Occurred()) SWIG_fail;
35404 }
35405 Py_INCREF(Py_None); resultobj = Py_None;
35406 return resultobj;
35407 fail:
35408 return NULL;
35409 }
35410
35411
35412 static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
35413 PyObject *obj;
35414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35415 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
35416 Py_INCREF(obj);
35417 return Py_BuildValue((char *)"");
35418 }
35419 static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35420 PyObject *resultobj;
35421 wxPySizer *result;
35422 char *kwnames[] = {
35423 NULL
35424 };
35425
35426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
35427 {
35428 PyThreadState* __tstate = wxPyBeginAllowThreads();
35429 result = (wxPySizer *)new wxPySizer();
35430
35431 wxPyEndAllowThreads(__tstate);
35432 if (PyErr_Occurred()) SWIG_fail;
35433 }
35434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
35435 return resultobj;
35436 fail:
35437 return NULL;
35438 }
35439
35440
35441 static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
35442 PyObject *resultobj;
35443 wxPySizer *arg1 = (wxPySizer *) 0 ;
35444 PyObject *arg2 = (PyObject *) 0 ;
35445 PyObject *arg3 = (PyObject *) 0 ;
35446 PyObject * obj0 = 0 ;
35447 PyObject * obj1 = 0 ;
35448 PyObject * obj2 = 0 ;
35449 char *kwnames[] = {
35450 (char *) "self",(char *) "self",(char *) "_class", NULL
35451 };
35452
35453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
35454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
35455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35456 arg2 = obj1;
35457 arg3 = obj2;
35458 {
35459 PyThreadState* __tstate = wxPyBeginAllowThreads();
35460 (arg1)->_setCallbackInfo(arg2,arg3);
35461
35462 wxPyEndAllowThreads(__tstate);
35463 if (PyErr_Occurred()) SWIG_fail;
35464 }
35465 Py_INCREF(Py_None); resultobj = Py_None;
35466 return resultobj;
35467 fail:
35468 return NULL;
35469 }
35470
35471
35472 static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
35473 PyObject *obj;
35474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35475 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
35476 Py_INCREF(obj);
35477 return Py_BuildValue((char *)"");
35478 }
35479 static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35480 PyObject *resultobj;
35481 int arg1 = (int) wxHORIZONTAL ;
35482 wxBoxSizer *result;
35483 PyObject * obj0 = 0 ;
35484 char *kwnames[] = {
35485 (char *) "orient", NULL
35486 };
35487
35488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
35489 if (obj0) {
35490 arg1 = (int) SWIG_AsInt(obj0);
35491 if (PyErr_Occurred()) SWIG_fail;
35492 }
35493 {
35494 PyThreadState* __tstate = wxPyBeginAllowThreads();
35495 result = (wxBoxSizer *)new wxBoxSizer(arg1);
35496
35497 wxPyEndAllowThreads(__tstate);
35498 if (PyErr_Occurred()) SWIG_fail;
35499 }
35500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
35501 return resultobj;
35502 fail:
35503 return NULL;
35504 }
35505
35506
35507 static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj;
35509 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35510 int result;
35511 PyObject * obj0 = 0 ;
35512 char *kwnames[] = {
35513 (char *) "self", NULL
35514 };
35515
35516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
35517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35519 {
35520 PyThreadState* __tstate = wxPyBeginAllowThreads();
35521 result = (int)(arg1)->GetOrientation();
35522
35523 wxPyEndAllowThreads(__tstate);
35524 if (PyErr_Occurred()) SWIG_fail;
35525 }
35526 resultobj = SWIG_FromInt((int)result);
35527 return resultobj;
35528 fail:
35529 return NULL;
35530 }
35531
35532
35533 static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
35534 PyObject *resultobj;
35535 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35536 int arg2 ;
35537 PyObject * obj0 = 0 ;
35538 PyObject * obj1 = 0 ;
35539 char *kwnames[] = {
35540 (char *) "self",(char *) "orient", NULL
35541 };
35542
35543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
35544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35546 arg2 = (int) SWIG_AsInt(obj1);
35547 if (PyErr_Occurred()) SWIG_fail;
35548 {
35549 PyThreadState* __tstate = wxPyBeginAllowThreads();
35550 (arg1)->SetOrientation(arg2);
35551
35552 wxPyEndAllowThreads(__tstate);
35553 if (PyErr_Occurred()) SWIG_fail;
35554 }
35555 Py_INCREF(Py_None); resultobj = Py_None;
35556 return resultobj;
35557 fail:
35558 return NULL;
35559 }
35560
35561
35562 static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35563 PyObject *resultobj;
35564 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35565 PyObject * obj0 = 0 ;
35566 char *kwnames[] = {
35567 (char *) "self", NULL
35568 };
35569
35570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
35571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35573 {
35574 PyThreadState* __tstate = wxPyBeginAllowThreads();
35575 (arg1)->RecalcSizes();
35576
35577 wxPyEndAllowThreads(__tstate);
35578 if (PyErr_Occurred()) SWIG_fail;
35579 }
35580 Py_INCREF(Py_None); resultobj = Py_None;
35581 return resultobj;
35582 fail:
35583 return NULL;
35584 }
35585
35586
35587 static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35588 PyObject *resultobj;
35589 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
35590 wxSize result;
35591 PyObject * obj0 = 0 ;
35592 char *kwnames[] = {
35593 (char *) "self", NULL
35594 };
35595
35596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail;
35597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
35598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35599 {
35600 PyThreadState* __tstate = wxPyBeginAllowThreads();
35601 result = (arg1)->CalcMin();
35602
35603 wxPyEndAllowThreads(__tstate);
35604 if (PyErr_Occurred()) SWIG_fail;
35605 }
35606 {
35607 wxSize * resultptr;
35608 resultptr = new wxSize((wxSize &) result);
35609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35610 }
35611 return resultobj;
35612 fail:
35613 return NULL;
35614 }
35615
35616
35617 static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
35618 PyObject *obj;
35619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35620 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
35621 Py_INCREF(obj);
35622 return Py_BuildValue((char *)"");
35623 }
35624 static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35625 PyObject *resultobj;
35626 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
35627 int arg2 = (int) wxHORIZONTAL ;
35628 wxStaticBoxSizer *result;
35629 PyObject * obj0 = 0 ;
35630 PyObject * obj1 = 0 ;
35631 char *kwnames[] = {
35632 (char *) "box",(char *) "orient", NULL
35633 };
35634
35635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
35636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
35637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35638 if (obj1) {
35639 arg2 = (int) SWIG_AsInt(obj1);
35640 if (PyErr_Occurred()) SWIG_fail;
35641 }
35642 {
35643 PyThreadState* __tstate = wxPyBeginAllowThreads();
35644 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
35645
35646 wxPyEndAllowThreads(__tstate);
35647 if (PyErr_Occurred()) SWIG_fail;
35648 }
35649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
35650 return resultobj;
35651 fail:
35652 return NULL;
35653 }
35654
35655
35656 static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
35657 PyObject *resultobj;
35658 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
35659 wxStaticBox *result;
35660 PyObject * obj0 = 0 ;
35661 char *kwnames[] = {
35662 (char *) "self", NULL
35663 };
35664
35665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
35666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
35667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35668 {
35669 PyThreadState* __tstate = wxPyBeginAllowThreads();
35670 result = (wxStaticBox *)(arg1)->GetStaticBox();
35671
35672 wxPyEndAllowThreads(__tstate);
35673 if (PyErr_Occurred()) SWIG_fail;
35674 }
35675 {
35676 resultobj = wxPyMake_wxObject(result);
35677 }
35678 return resultobj;
35679 fail:
35680 return NULL;
35681 }
35682
35683
35684 static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35685 PyObject *resultobj;
35686 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
35687 PyObject * obj0 = 0 ;
35688 char *kwnames[] = {
35689 (char *) "self", NULL
35690 };
35691
35692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
35693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
35694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35695 {
35696 PyThreadState* __tstate = wxPyBeginAllowThreads();
35697 (arg1)->RecalcSizes();
35698
35699 wxPyEndAllowThreads(__tstate);
35700 if (PyErr_Occurred()) SWIG_fail;
35701 }
35702 Py_INCREF(Py_None); resultobj = Py_None;
35703 return resultobj;
35704 fail:
35705 return NULL;
35706 }
35707
35708
35709 static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35710 PyObject *resultobj;
35711 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
35712 wxSize result;
35713 PyObject * obj0 = 0 ;
35714 char *kwnames[] = {
35715 (char *) "self", NULL
35716 };
35717
35718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail;
35719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
35720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35721 {
35722 PyThreadState* __tstate = wxPyBeginAllowThreads();
35723 result = (arg1)->CalcMin();
35724
35725 wxPyEndAllowThreads(__tstate);
35726 if (PyErr_Occurred()) SWIG_fail;
35727 }
35728 {
35729 wxSize * resultptr;
35730 resultptr = new wxSize((wxSize &) result);
35731 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35732 }
35733 return resultobj;
35734 fail:
35735 return NULL;
35736 }
35737
35738
35739 static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
35740 PyObject *obj;
35741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35742 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
35743 Py_INCREF(obj);
35744 return Py_BuildValue((char *)"");
35745 }
35746 static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35747 PyObject *resultobj;
35748 int arg1 = (int) 1 ;
35749 int arg2 = (int) 0 ;
35750 int arg3 = (int) 0 ;
35751 int arg4 = (int) 0 ;
35752 wxGridSizer *result;
35753 PyObject * obj0 = 0 ;
35754 PyObject * obj1 = 0 ;
35755 PyObject * obj2 = 0 ;
35756 PyObject * obj3 = 0 ;
35757 char *kwnames[] = {
35758 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
35759 };
35760
35761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
35762 if (obj0) {
35763 arg1 = (int) SWIG_AsInt(obj0);
35764 if (PyErr_Occurred()) SWIG_fail;
35765 }
35766 if (obj1) {
35767 arg2 = (int) SWIG_AsInt(obj1);
35768 if (PyErr_Occurred()) SWIG_fail;
35769 }
35770 if (obj2) {
35771 arg3 = (int) SWIG_AsInt(obj2);
35772 if (PyErr_Occurred()) SWIG_fail;
35773 }
35774 if (obj3) {
35775 arg4 = (int) SWIG_AsInt(obj3);
35776 if (PyErr_Occurred()) SWIG_fail;
35777 }
35778 {
35779 PyThreadState* __tstate = wxPyBeginAllowThreads();
35780 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
35781
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
35786 return resultobj;
35787 fail:
35788 return NULL;
35789 }
35790
35791
35792 static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35793 PyObject *resultobj;
35794 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35795 PyObject * obj0 = 0 ;
35796 char *kwnames[] = {
35797 (char *) "self", NULL
35798 };
35799
35800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
35801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 (arg1)->RecalcSizes();
35806
35807 wxPyEndAllowThreads(__tstate);
35808 if (PyErr_Occurred()) SWIG_fail;
35809 }
35810 Py_INCREF(Py_None); resultobj = Py_None;
35811 return resultobj;
35812 fail:
35813 return NULL;
35814 }
35815
35816
35817 static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35818 PyObject *resultobj;
35819 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35820 wxSize result;
35821 PyObject * obj0 = 0 ;
35822 char *kwnames[] = {
35823 (char *) "self", NULL
35824 };
35825
35826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail;
35827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35829 {
35830 PyThreadState* __tstate = wxPyBeginAllowThreads();
35831 result = (arg1)->CalcMin();
35832
35833 wxPyEndAllowThreads(__tstate);
35834 if (PyErr_Occurred()) SWIG_fail;
35835 }
35836 {
35837 wxSize * resultptr;
35838 resultptr = new wxSize((wxSize &) result);
35839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35840 }
35841 return resultobj;
35842 fail:
35843 return NULL;
35844 }
35845
35846
35847 static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj;
35849 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35850 int arg2 ;
35851 PyObject * obj0 = 0 ;
35852 PyObject * obj1 = 0 ;
35853 char *kwnames[] = {
35854 (char *) "self",(char *) "cols", NULL
35855 };
35856
35857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
35858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35860 arg2 = (int) SWIG_AsInt(obj1);
35861 if (PyErr_Occurred()) SWIG_fail;
35862 {
35863 PyThreadState* __tstate = wxPyBeginAllowThreads();
35864 (arg1)->SetCols(arg2);
35865
35866 wxPyEndAllowThreads(__tstate);
35867 if (PyErr_Occurred()) SWIG_fail;
35868 }
35869 Py_INCREF(Py_None); resultobj = Py_None;
35870 return resultobj;
35871 fail:
35872 return NULL;
35873 }
35874
35875
35876 static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
35877 PyObject *resultobj;
35878 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35879 int arg2 ;
35880 PyObject * obj0 = 0 ;
35881 PyObject * obj1 = 0 ;
35882 char *kwnames[] = {
35883 (char *) "self",(char *) "rows", NULL
35884 };
35885
35886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
35887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35889 arg2 = (int) SWIG_AsInt(obj1);
35890 if (PyErr_Occurred()) SWIG_fail;
35891 {
35892 PyThreadState* __tstate = wxPyBeginAllowThreads();
35893 (arg1)->SetRows(arg2);
35894
35895 wxPyEndAllowThreads(__tstate);
35896 if (PyErr_Occurred()) SWIG_fail;
35897 }
35898 Py_INCREF(Py_None); resultobj = Py_None;
35899 return resultobj;
35900 fail:
35901 return NULL;
35902 }
35903
35904
35905 static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
35906 PyObject *resultobj;
35907 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35908 int arg2 ;
35909 PyObject * obj0 = 0 ;
35910 PyObject * obj1 = 0 ;
35911 char *kwnames[] = {
35912 (char *) "self",(char *) "gap", NULL
35913 };
35914
35915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
35916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35918 arg2 = (int) SWIG_AsInt(obj1);
35919 if (PyErr_Occurred()) SWIG_fail;
35920 {
35921 PyThreadState* __tstate = wxPyBeginAllowThreads();
35922 (arg1)->SetVGap(arg2);
35923
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 Py_INCREF(Py_None); resultobj = Py_None;
35928 return resultobj;
35929 fail:
35930 return NULL;
35931 }
35932
35933
35934 static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj;
35936 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35937 int arg2 ;
35938 PyObject * obj0 = 0 ;
35939 PyObject * obj1 = 0 ;
35940 char *kwnames[] = {
35941 (char *) "self",(char *) "gap", NULL
35942 };
35943
35944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
35945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35947 arg2 = (int) SWIG_AsInt(obj1);
35948 if (PyErr_Occurred()) SWIG_fail;
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 (arg1)->SetHGap(arg2);
35952
35953 wxPyEndAllowThreads(__tstate);
35954 if (PyErr_Occurred()) SWIG_fail;
35955 }
35956 Py_INCREF(Py_None); resultobj = Py_None;
35957 return resultobj;
35958 fail:
35959 return NULL;
35960 }
35961
35962
35963 static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
35964 PyObject *resultobj;
35965 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35966 int result;
35967 PyObject * obj0 = 0 ;
35968 char *kwnames[] = {
35969 (char *) "self", NULL
35970 };
35971
35972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
35973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
35974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35975 {
35976 PyThreadState* __tstate = wxPyBeginAllowThreads();
35977 result = (int)(arg1)->GetCols();
35978
35979 wxPyEndAllowThreads(__tstate);
35980 if (PyErr_Occurred()) SWIG_fail;
35981 }
35982 resultobj = SWIG_FromInt((int)result);
35983 return resultobj;
35984 fail:
35985 return NULL;
35986 }
35987
35988
35989 static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
35990 PyObject *resultobj;
35991 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
35992 int result;
35993 PyObject * obj0 = 0 ;
35994 char *kwnames[] = {
35995 (char *) "self", NULL
35996 };
35997
35998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
35999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36001 {
36002 PyThreadState* __tstate = wxPyBeginAllowThreads();
36003 result = (int)(arg1)->GetRows();
36004
36005 wxPyEndAllowThreads(__tstate);
36006 if (PyErr_Occurred()) SWIG_fail;
36007 }
36008 resultobj = SWIG_FromInt((int)result);
36009 return resultobj;
36010 fail:
36011 return NULL;
36012 }
36013
36014
36015 static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36016 PyObject *resultobj;
36017 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36018 int result;
36019 PyObject * obj0 = 0 ;
36020 char *kwnames[] = {
36021 (char *) "self", NULL
36022 };
36023
36024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
36025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36027 {
36028 PyThreadState* __tstate = wxPyBeginAllowThreads();
36029 result = (int)(arg1)->GetVGap();
36030
36031 wxPyEndAllowThreads(__tstate);
36032 if (PyErr_Occurred()) SWIG_fail;
36033 }
36034 resultobj = SWIG_FromInt((int)result);
36035 return resultobj;
36036 fail:
36037 return NULL;
36038 }
36039
36040
36041 static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36042 PyObject *resultobj;
36043 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36044 int result;
36045 PyObject * obj0 = 0 ;
36046 char *kwnames[] = {
36047 (char *) "self", NULL
36048 };
36049
36050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
36051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36053 {
36054 PyThreadState* __tstate = wxPyBeginAllowThreads();
36055 result = (int)(arg1)->GetHGap();
36056
36057 wxPyEndAllowThreads(__tstate);
36058 if (PyErr_Occurred()) SWIG_fail;
36059 }
36060 resultobj = SWIG_FromInt((int)result);
36061 return resultobj;
36062 fail:
36063 return NULL;
36064 }
36065
36066
36067 static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
36068 PyObject *obj;
36069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36070 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
36071 Py_INCREF(obj);
36072 return Py_BuildValue((char *)"");
36073 }
36074 static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36075 PyObject *resultobj;
36076 int arg1 = (int) 1 ;
36077 int arg2 = (int) 0 ;
36078 int arg3 = (int) 0 ;
36079 int arg4 = (int) 0 ;
36080 wxFlexGridSizer *result;
36081 PyObject * obj0 = 0 ;
36082 PyObject * obj1 = 0 ;
36083 PyObject * obj2 = 0 ;
36084 PyObject * obj3 = 0 ;
36085 char *kwnames[] = {
36086 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36087 };
36088
36089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36090 if (obj0) {
36091 arg1 = (int) SWIG_AsInt(obj0);
36092 if (PyErr_Occurred()) SWIG_fail;
36093 }
36094 if (obj1) {
36095 arg2 = (int) SWIG_AsInt(obj1);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 if (obj2) {
36099 arg3 = (int) SWIG_AsInt(obj2);
36100 if (PyErr_Occurred()) SWIG_fail;
36101 }
36102 if (obj3) {
36103 arg4 = (int) SWIG_AsInt(obj3);
36104 if (PyErr_Occurred()) SWIG_fail;
36105 }
36106 {
36107 PyThreadState* __tstate = wxPyBeginAllowThreads();
36108 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
36109
36110 wxPyEndAllowThreads(__tstate);
36111 if (PyErr_Occurred()) SWIG_fail;
36112 }
36113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
36114 return resultobj;
36115 fail:
36116 return NULL;
36117 }
36118
36119
36120 static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
36121 PyObject *resultobj;
36122 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36123 PyObject * obj0 = 0 ;
36124 char *kwnames[] = {
36125 (char *) "self", NULL
36126 };
36127
36128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
36129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36131 {
36132 PyThreadState* __tstate = wxPyBeginAllowThreads();
36133 (arg1)->RecalcSizes();
36134
36135 wxPyEndAllowThreads(__tstate);
36136 if (PyErr_Occurred()) SWIG_fail;
36137 }
36138 Py_INCREF(Py_None); resultobj = Py_None;
36139 return resultobj;
36140 fail:
36141 return NULL;
36142 }
36143
36144
36145 static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
36146 PyObject *resultobj;
36147 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36148 wxSize result;
36149 PyObject * obj0 = 0 ;
36150 char *kwnames[] = {
36151 (char *) "self", NULL
36152 };
36153
36154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail;
36155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 result = (arg1)->CalcMin();
36160
36161 wxPyEndAllowThreads(__tstate);
36162 if (PyErr_Occurred()) SWIG_fail;
36163 }
36164 {
36165 wxSize * resultptr;
36166 resultptr = new wxSize((wxSize &) result);
36167 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36168 }
36169 return resultobj;
36170 fail:
36171 return NULL;
36172 }
36173
36174
36175 static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36176 PyObject *resultobj;
36177 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36178 size_t arg2 ;
36179 int arg3 = (int) 0 ;
36180 PyObject * obj0 = 0 ;
36181 PyObject * obj1 = 0 ;
36182 PyObject * obj2 = 0 ;
36183 char *kwnames[] = {
36184 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36185 };
36186
36187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
36188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36190 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36191 if (PyErr_Occurred()) SWIG_fail;
36192 if (obj2) {
36193 arg3 = (int) SWIG_AsInt(obj2);
36194 if (PyErr_Occurred()) SWIG_fail;
36195 }
36196 {
36197 PyThreadState* __tstate = wxPyBeginAllowThreads();
36198 (arg1)->AddGrowableRow(arg2,arg3);
36199
36200 wxPyEndAllowThreads(__tstate);
36201 if (PyErr_Occurred()) SWIG_fail;
36202 }
36203 Py_INCREF(Py_None); resultobj = Py_None;
36204 return resultobj;
36205 fail:
36206 return NULL;
36207 }
36208
36209
36210 static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36211 PyObject *resultobj;
36212 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36213 size_t arg2 ;
36214 PyObject * obj0 = 0 ;
36215 PyObject * obj1 = 0 ;
36216 char *kwnames[] = {
36217 (char *) "self",(char *) "idx", NULL
36218 };
36219
36220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
36221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36223 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36224 if (PyErr_Occurred()) SWIG_fail;
36225 {
36226 PyThreadState* __tstate = wxPyBeginAllowThreads();
36227 (arg1)->RemoveGrowableRow(arg2);
36228
36229 wxPyEndAllowThreads(__tstate);
36230 if (PyErr_Occurred()) SWIG_fail;
36231 }
36232 Py_INCREF(Py_None); resultobj = Py_None;
36233 return resultobj;
36234 fail:
36235 return NULL;
36236 }
36237
36238
36239 static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36240 PyObject *resultobj;
36241 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36242 size_t arg2 ;
36243 int arg3 = (int) 0 ;
36244 PyObject * obj0 = 0 ;
36245 PyObject * obj1 = 0 ;
36246 PyObject * obj2 = 0 ;
36247 char *kwnames[] = {
36248 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36249 };
36250
36251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
36252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36254 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36255 if (PyErr_Occurred()) SWIG_fail;
36256 if (obj2) {
36257 arg3 = (int) SWIG_AsInt(obj2);
36258 if (PyErr_Occurred()) SWIG_fail;
36259 }
36260 {
36261 PyThreadState* __tstate = wxPyBeginAllowThreads();
36262 (arg1)->AddGrowableCol(arg2,arg3);
36263
36264 wxPyEndAllowThreads(__tstate);
36265 if (PyErr_Occurred()) SWIG_fail;
36266 }
36267 Py_INCREF(Py_None); resultobj = Py_None;
36268 return resultobj;
36269 fail:
36270 return NULL;
36271 }
36272
36273
36274 static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36275 PyObject *resultobj;
36276 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36277 size_t arg2 ;
36278 PyObject * obj0 = 0 ;
36279 PyObject * obj1 = 0 ;
36280 char *kwnames[] = {
36281 (char *) "self",(char *) "idx", NULL
36282 };
36283
36284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
36285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36287 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36288 if (PyErr_Occurred()) SWIG_fail;
36289 {
36290 PyThreadState* __tstate = wxPyBeginAllowThreads();
36291 (arg1)->RemoveGrowableCol(arg2);
36292
36293 wxPyEndAllowThreads(__tstate);
36294 if (PyErr_Occurred()) SWIG_fail;
36295 }
36296 Py_INCREF(Py_None); resultobj = Py_None;
36297 return resultobj;
36298 fail:
36299 return NULL;
36300 }
36301
36302
36303 static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36304 PyObject *resultobj;
36305 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36306 int arg2 ;
36307 PyObject * obj0 = 0 ;
36308 PyObject * obj1 = 0 ;
36309 char *kwnames[] = {
36310 (char *) "self",(char *) "direction", NULL
36311 };
36312
36313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
36314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36316 arg2 = (int) SWIG_AsInt(obj1);
36317 if (PyErr_Occurred()) SWIG_fail;
36318 {
36319 PyThreadState* __tstate = wxPyBeginAllowThreads();
36320 (arg1)->SetFlexibleDirection(arg2);
36321
36322 wxPyEndAllowThreads(__tstate);
36323 if (PyErr_Occurred()) SWIG_fail;
36324 }
36325 Py_INCREF(Py_None); resultobj = Py_None;
36326 return resultobj;
36327 fail:
36328 return NULL;
36329 }
36330
36331
36332 static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36333 PyObject *resultobj;
36334 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36335 int result;
36336 PyObject * obj0 = 0 ;
36337 char *kwnames[] = {
36338 (char *) "self", NULL
36339 };
36340
36341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
36342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 result = (int)(arg1)->GetFlexibleDirection();
36347
36348 wxPyEndAllowThreads(__tstate);
36349 if (PyErr_Occurred()) SWIG_fail;
36350 }
36351 resultobj = SWIG_FromInt((int)result);
36352 return resultobj;
36353 fail:
36354 return NULL;
36355 }
36356
36357
36358 static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36359 PyObject *resultobj;
36360 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36361 int arg2 ;
36362 PyObject * obj0 = 0 ;
36363 PyObject * obj1 = 0 ;
36364 char *kwnames[] = {
36365 (char *) "self",(char *) "mode", NULL
36366 };
36367
36368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
36369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36371 arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1);
36372 if (PyErr_Occurred()) SWIG_fail;
36373 {
36374 PyThreadState* __tstate = wxPyBeginAllowThreads();
36375 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
36376
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 Py_INCREF(Py_None); resultobj = Py_None;
36381 return resultobj;
36382 fail:
36383 return NULL;
36384 }
36385
36386
36387 static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36388 PyObject *resultobj;
36389 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36390 int result;
36391 PyObject * obj0 = 0 ;
36392 char *kwnames[] = {
36393 (char *) "self", NULL
36394 };
36395
36396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
36397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36399 {
36400 PyThreadState* __tstate = wxPyBeginAllowThreads();
36401 result = (int)(arg1)->GetNonFlexibleGrowMode();
36402
36403 wxPyEndAllowThreads(__tstate);
36404 if (PyErr_Occurred()) SWIG_fail;
36405 }
36406 resultobj = SWIG_FromInt((int)result);
36407 return resultobj;
36408 fail:
36409 return NULL;
36410 }
36411
36412
36413 static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
36414 PyObject *resultobj;
36415 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36416 wxArrayInt *result;
36417 PyObject * obj0 = 0 ;
36418 char *kwnames[] = {
36419 (char *) "self", NULL
36420 };
36421
36422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
36423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36425 {
36426 PyThreadState* __tstate = wxPyBeginAllowThreads();
36427 {
36428 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
36429 result = (wxArrayInt *) &_result_ref;
36430 }
36431
36432 wxPyEndAllowThreads(__tstate);
36433 if (PyErr_Occurred()) SWIG_fail;
36434 }
36435 {
36436 resultobj = PyList_New(0);
36437 size_t idx;
36438 for (idx = 0; idx < result->GetCount(); idx += 1) {
36439 PyObject* val = PyInt_FromLong( result->Item(idx) );
36440 PyList_Append(resultobj, val);
36441 Py_DECREF(val);
36442 }
36443 }
36444 return resultobj;
36445 fail:
36446 return NULL;
36447 }
36448
36449
36450 static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
36451 PyObject *resultobj;
36452 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36453 wxArrayInt *result;
36454 PyObject * obj0 = 0 ;
36455 char *kwnames[] = {
36456 (char *) "self", NULL
36457 };
36458
36459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
36460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36462 {
36463 PyThreadState* __tstate = wxPyBeginAllowThreads();
36464 {
36465 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
36466 result = (wxArrayInt *) &_result_ref;
36467 }
36468
36469 wxPyEndAllowThreads(__tstate);
36470 if (PyErr_Occurred()) SWIG_fail;
36471 }
36472 {
36473 resultobj = PyList_New(0);
36474 size_t idx;
36475 for (idx = 0; idx < result->GetCount(); idx += 1) {
36476 PyObject* val = PyInt_FromLong( result->Item(idx) );
36477 PyList_Append(resultobj, val);
36478 Py_DECREF(val);
36479 }
36480 }
36481 return resultobj;
36482 fail:
36483 return NULL;
36484 }
36485
36486
36487 static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
36488 PyObject *obj;
36489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36490 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
36491 Py_INCREF(obj);
36492 return Py_BuildValue((char *)"");
36493 }
36494 static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
36495 PyObject *resultobj;
36496 int arg1 = (int) 0 ;
36497 int arg2 = (int) 0 ;
36498 wxGBPosition *result;
36499 PyObject * obj0 = 0 ;
36500 PyObject * obj1 = 0 ;
36501 char *kwnames[] = {
36502 (char *) "row",(char *) "col", NULL
36503 };
36504
36505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
36506 if (obj0) {
36507 arg1 = (int) SWIG_AsInt(obj0);
36508 if (PyErr_Occurred()) SWIG_fail;
36509 }
36510 if (obj1) {
36511 arg2 = (int) SWIG_AsInt(obj1);
36512 if (PyErr_Occurred()) SWIG_fail;
36513 }
36514 {
36515 PyThreadState* __tstate = wxPyBeginAllowThreads();
36516 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
36517
36518 wxPyEndAllowThreads(__tstate);
36519 if (PyErr_Occurred()) SWIG_fail;
36520 }
36521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
36522 return resultobj;
36523 fail:
36524 return NULL;
36525 }
36526
36527
36528 static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36529 PyObject *resultobj;
36530 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36531 int result;
36532 PyObject * obj0 = 0 ;
36533 char *kwnames[] = {
36534 (char *) "self", NULL
36535 };
36536
36537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
36538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36540 {
36541 PyThreadState* __tstate = wxPyBeginAllowThreads();
36542 result = (int)((wxGBPosition const *)arg1)->GetRow();
36543
36544 wxPyEndAllowThreads(__tstate);
36545 if (PyErr_Occurred()) SWIG_fail;
36546 }
36547 resultobj = SWIG_FromInt((int)result);
36548 return resultobj;
36549 fail:
36550 return NULL;
36551 }
36552
36553
36554 static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36555 PyObject *resultobj;
36556 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36557 int result;
36558 PyObject * obj0 = 0 ;
36559 char *kwnames[] = {
36560 (char *) "self", NULL
36561 };
36562
36563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
36564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36566 {
36567 PyThreadState* __tstate = wxPyBeginAllowThreads();
36568 result = (int)((wxGBPosition const *)arg1)->GetCol();
36569
36570 wxPyEndAllowThreads(__tstate);
36571 if (PyErr_Occurred()) SWIG_fail;
36572 }
36573 resultobj = SWIG_FromInt((int)result);
36574 return resultobj;
36575 fail:
36576 return NULL;
36577 }
36578
36579
36580 static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36581 PyObject *resultobj;
36582 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36583 int arg2 ;
36584 PyObject * obj0 = 0 ;
36585 PyObject * obj1 = 0 ;
36586 char *kwnames[] = {
36587 (char *) "self",(char *) "row", NULL
36588 };
36589
36590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
36591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36593 arg2 = (int) SWIG_AsInt(obj1);
36594 if (PyErr_Occurred()) SWIG_fail;
36595 {
36596 PyThreadState* __tstate = wxPyBeginAllowThreads();
36597 (arg1)->SetRow(arg2);
36598
36599 wxPyEndAllowThreads(__tstate);
36600 if (PyErr_Occurred()) SWIG_fail;
36601 }
36602 Py_INCREF(Py_None); resultobj = Py_None;
36603 return resultobj;
36604 fail:
36605 return NULL;
36606 }
36607
36608
36609 static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36610 PyObject *resultobj;
36611 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36612 int arg2 ;
36613 PyObject * obj0 = 0 ;
36614 PyObject * obj1 = 0 ;
36615 char *kwnames[] = {
36616 (char *) "self",(char *) "col", NULL
36617 };
36618
36619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
36620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36622 arg2 = (int) SWIG_AsInt(obj1);
36623 if (PyErr_Occurred()) SWIG_fail;
36624 {
36625 PyThreadState* __tstate = wxPyBeginAllowThreads();
36626 (arg1)->SetCol(arg2);
36627
36628 wxPyEndAllowThreads(__tstate);
36629 if (PyErr_Occurred()) SWIG_fail;
36630 }
36631 Py_INCREF(Py_None); resultobj = Py_None;
36632 return resultobj;
36633 fail:
36634 return NULL;
36635 }
36636
36637
36638 static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
36639 PyObject *resultobj;
36640 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36641 wxGBPosition *arg2 = 0 ;
36642 bool result;
36643 wxGBPosition temp2 ;
36644 PyObject * obj0 = 0 ;
36645 PyObject * obj1 = 0 ;
36646 char *kwnames[] = {
36647 (char *) "self",(char *) "other", NULL
36648 };
36649
36650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
36651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36653 {
36654 arg2 = &temp2;
36655 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36656 }
36657 {
36658 PyThreadState* __tstate = wxPyBeginAllowThreads();
36659 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
36660
36661 wxPyEndAllowThreads(__tstate);
36662 if (PyErr_Occurred()) SWIG_fail;
36663 }
36664 {
36665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36666 }
36667 return resultobj;
36668 fail:
36669 return NULL;
36670 }
36671
36672
36673 static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj;
36675 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36676 wxGBPosition *arg2 = 0 ;
36677 bool result;
36678 wxGBPosition temp2 ;
36679 PyObject * obj0 = 0 ;
36680 PyObject * obj1 = 0 ;
36681 char *kwnames[] = {
36682 (char *) "self",(char *) "other", NULL
36683 };
36684
36685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
36686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36688 {
36689 arg2 = &temp2;
36690 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36691 }
36692 {
36693 PyThreadState* __tstate = wxPyBeginAllowThreads();
36694 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
36695
36696 wxPyEndAllowThreads(__tstate);
36697 if (PyErr_Occurred()) SWIG_fail;
36698 }
36699 {
36700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36701 }
36702 return resultobj;
36703 fail:
36704 return NULL;
36705 }
36706
36707
36708 static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
36709 PyObject *resultobj;
36710 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36711 int arg2 = (int) 0 ;
36712 int arg3 = (int) 0 ;
36713 PyObject * obj0 = 0 ;
36714 PyObject * obj1 = 0 ;
36715 PyObject * obj2 = 0 ;
36716 char *kwnames[] = {
36717 (char *) "self",(char *) "row",(char *) "col", NULL
36718 };
36719
36720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
36721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36723 if (obj1) {
36724 arg2 = (int) SWIG_AsInt(obj1);
36725 if (PyErr_Occurred()) SWIG_fail;
36726 }
36727 if (obj2) {
36728 arg3 = (int) SWIG_AsInt(obj2);
36729 if (PyErr_Occurred()) SWIG_fail;
36730 }
36731 {
36732 PyThreadState* __tstate = wxPyBeginAllowThreads();
36733 wxGBPosition_Set(arg1,arg2,arg3);
36734
36735 wxPyEndAllowThreads(__tstate);
36736 if (PyErr_Occurred()) SWIG_fail;
36737 }
36738 Py_INCREF(Py_None); resultobj = Py_None;
36739 return resultobj;
36740 fail:
36741 return NULL;
36742 }
36743
36744
36745 static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
36746 PyObject *resultobj;
36747 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
36748 PyObject *result;
36749 PyObject * obj0 = 0 ;
36750 char *kwnames[] = {
36751 (char *) "self", NULL
36752 };
36753
36754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
36755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
36756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36757 {
36758 PyThreadState* __tstate = wxPyBeginAllowThreads();
36759 result = (PyObject *)wxGBPosition_Get(arg1);
36760
36761 wxPyEndAllowThreads(__tstate);
36762 if (PyErr_Occurred()) SWIG_fail;
36763 }
36764 resultobj = result;
36765 return resultobj;
36766 fail:
36767 return NULL;
36768 }
36769
36770
36771 static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
36772 PyObject *obj;
36773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36774 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
36775 Py_INCREF(obj);
36776 return Py_BuildValue((char *)"");
36777 }
36778 static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
36779 PyObject *resultobj;
36780 int arg1 = (int) 1 ;
36781 int arg2 = (int) 1 ;
36782 wxGBSpan *result;
36783 PyObject * obj0 = 0 ;
36784 PyObject * obj1 = 0 ;
36785 char *kwnames[] = {
36786 (char *) "rowspan",(char *) "colspan", NULL
36787 };
36788
36789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
36790 if (obj0) {
36791 arg1 = (int) SWIG_AsInt(obj0);
36792 if (PyErr_Occurred()) SWIG_fail;
36793 }
36794 if (obj1) {
36795 arg2 = (int) SWIG_AsInt(obj1);
36796 if (PyErr_Occurred()) SWIG_fail;
36797 }
36798 {
36799 PyThreadState* __tstate = wxPyBeginAllowThreads();
36800 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
36801
36802 wxPyEndAllowThreads(__tstate);
36803 if (PyErr_Occurred()) SWIG_fail;
36804 }
36805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
36806 return resultobj;
36807 fail:
36808 return NULL;
36809 }
36810
36811
36812 static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
36813 PyObject *resultobj;
36814 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36815 int result;
36816 PyObject * obj0 = 0 ;
36817 char *kwnames[] = {
36818 (char *) "self", NULL
36819 };
36820
36821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
36822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36824 {
36825 PyThreadState* __tstate = wxPyBeginAllowThreads();
36826 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
36827
36828 wxPyEndAllowThreads(__tstate);
36829 if (PyErr_Occurred()) SWIG_fail;
36830 }
36831 resultobj = SWIG_FromInt((int)result);
36832 return resultobj;
36833 fail:
36834 return NULL;
36835 }
36836
36837
36838 static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
36839 PyObject *resultobj;
36840 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36841 int result;
36842 PyObject * obj0 = 0 ;
36843 char *kwnames[] = {
36844 (char *) "self", NULL
36845 };
36846
36847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
36848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36850 {
36851 PyThreadState* __tstate = wxPyBeginAllowThreads();
36852 result = (int)((wxGBSpan const *)arg1)->GetColspan();
36853
36854 wxPyEndAllowThreads(__tstate);
36855 if (PyErr_Occurred()) SWIG_fail;
36856 }
36857 resultobj = SWIG_FromInt((int)result);
36858 return resultobj;
36859 fail:
36860 return NULL;
36861 }
36862
36863
36864 static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
36865 PyObject *resultobj;
36866 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36867 int arg2 ;
36868 PyObject * obj0 = 0 ;
36869 PyObject * obj1 = 0 ;
36870 char *kwnames[] = {
36871 (char *) "self",(char *) "rowspan", NULL
36872 };
36873
36874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
36875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36877 arg2 = (int) SWIG_AsInt(obj1);
36878 if (PyErr_Occurred()) SWIG_fail;
36879 {
36880 PyThreadState* __tstate = wxPyBeginAllowThreads();
36881 (arg1)->SetRowspan(arg2);
36882
36883 wxPyEndAllowThreads(__tstate);
36884 if (PyErr_Occurred()) SWIG_fail;
36885 }
36886 Py_INCREF(Py_None); resultobj = Py_None;
36887 return resultobj;
36888 fail:
36889 return NULL;
36890 }
36891
36892
36893 static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
36894 PyObject *resultobj;
36895 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36896 int arg2 ;
36897 PyObject * obj0 = 0 ;
36898 PyObject * obj1 = 0 ;
36899 char *kwnames[] = {
36900 (char *) "self",(char *) "colspan", NULL
36901 };
36902
36903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
36904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36906 arg2 = (int) SWIG_AsInt(obj1);
36907 if (PyErr_Occurred()) SWIG_fail;
36908 {
36909 PyThreadState* __tstate = wxPyBeginAllowThreads();
36910 (arg1)->SetColspan(arg2);
36911
36912 wxPyEndAllowThreads(__tstate);
36913 if (PyErr_Occurred()) SWIG_fail;
36914 }
36915 Py_INCREF(Py_None); resultobj = Py_None;
36916 return resultobj;
36917 fail:
36918 return NULL;
36919 }
36920
36921
36922 static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
36923 PyObject *resultobj;
36924 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36925 wxGBSpan *arg2 = 0 ;
36926 bool result;
36927 wxGBSpan temp2 ;
36928 PyObject * obj0 = 0 ;
36929 PyObject * obj1 = 0 ;
36930 char *kwnames[] = {
36931 (char *) "self",(char *) "other", NULL
36932 };
36933
36934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
36935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36937 {
36938 arg2 = &temp2;
36939 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
36940 }
36941 {
36942 PyThreadState* __tstate = wxPyBeginAllowThreads();
36943 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
36944
36945 wxPyEndAllowThreads(__tstate);
36946 if (PyErr_Occurred()) SWIG_fail;
36947 }
36948 {
36949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36950 }
36951 return resultobj;
36952 fail:
36953 return NULL;
36954 }
36955
36956
36957 static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
36958 PyObject *resultobj;
36959 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36960 wxGBSpan *arg2 = 0 ;
36961 bool result;
36962 wxGBSpan temp2 ;
36963 PyObject * obj0 = 0 ;
36964 PyObject * obj1 = 0 ;
36965 char *kwnames[] = {
36966 (char *) "self",(char *) "other", NULL
36967 };
36968
36969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
36970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
36971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36972 {
36973 arg2 = &temp2;
36974 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
36975 }
36976 {
36977 PyThreadState* __tstate = wxPyBeginAllowThreads();
36978 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
36979
36980 wxPyEndAllowThreads(__tstate);
36981 if (PyErr_Occurred()) SWIG_fail;
36982 }
36983 {
36984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36985 }
36986 return resultobj;
36987 fail:
36988 return NULL;
36989 }
36990
36991
36992 static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
36993 PyObject *resultobj;
36994 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
36995 int arg2 = (int) 1 ;
36996 int arg3 = (int) 1 ;
36997 PyObject * obj0 = 0 ;
36998 PyObject * obj1 = 0 ;
36999 PyObject * obj2 = 0 ;
37000 char *kwnames[] = {
37001 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37002 };
37003
37004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37007 if (obj1) {
37008 arg2 = (int) SWIG_AsInt(obj1);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 if (obj2) {
37012 arg3 = (int) SWIG_AsInt(obj2);
37013 if (PyErr_Occurred()) SWIG_fail;
37014 }
37015 {
37016 PyThreadState* __tstate = wxPyBeginAllowThreads();
37017 wxGBSpan_Set(arg1,arg2,arg3);
37018
37019 wxPyEndAllowThreads(__tstate);
37020 if (PyErr_Occurred()) SWIG_fail;
37021 }
37022 Py_INCREF(Py_None); resultobj = Py_None;
37023 return resultobj;
37024 fail:
37025 return NULL;
37026 }
37027
37028
37029 static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37030 PyObject *resultobj;
37031 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37032 PyObject *result;
37033 PyObject * obj0 = 0 ;
37034 char *kwnames[] = {
37035 (char *) "self", NULL
37036 };
37037
37038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37041 {
37042 PyThreadState* __tstate = wxPyBeginAllowThreads();
37043 result = (PyObject *)wxGBSpan_Get(arg1);
37044
37045 wxPyEndAllowThreads(__tstate);
37046 if (PyErr_Occurred()) SWIG_fail;
37047 }
37048 resultobj = result;
37049 return resultobj;
37050 fail:
37051 return NULL;
37052 }
37053
37054
37055 static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
37056 PyObject *obj;
37057 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37058 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37059 Py_INCREF(obj);
37060 return Py_BuildValue((char *)"");
37061 }
37062 static int _wrap_DefaultSpan_set(PyObject *_val) {
37063 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37064 return 1;
37065 }
37066
37067
37068 static PyObject *_wrap_DefaultSpan_get() {
37069 PyObject *pyobj;
37070
37071 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37072 return pyobj;
37073 }
37074
37075
37076 static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37077 PyObject *resultobj;
37078 wxGBSizerItem *result;
37079 char *kwnames[] = {
37080 NULL
37081 };
37082
37083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
37084 {
37085 PyThreadState* __tstate = wxPyBeginAllowThreads();
37086 result = (wxGBSizerItem *)new wxGBSizerItem();
37087
37088 wxPyEndAllowThreads(__tstate);
37089 if (PyErr_Occurred()) SWIG_fail;
37090 }
37091 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37092 return resultobj;
37093 fail:
37094 return NULL;
37095 }
37096
37097
37098 static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37099 PyObject *resultobj;
37100 wxWindow *arg1 = (wxWindow *) 0 ;
37101 wxGBPosition *arg2 = 0 ;
37102 wxGBSpan *arg3 = 0 ;
37103 int arg4 ;
37104 int arg5 ;
37105 wxObject *arg6 = (wxObject *) 0 ;
37106 wxGBSizerItem *result;
37107 wxGBPosition temp2 ;
37108 wxGBSpan temp3 ;
37109 PyObject * obj0 = 0 ;
37110 PyObject * obj1 = 0 ;
37111 PyObject * obj2 = 0 ;
37112 PyObject * obj3 = 0 ;
37113 PyObject * obj4 = 0 ;
37114 PyObject * obj5 = 0 ;
37115 char *kwnames[] = {
37116 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37117 };
37118
37119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
37120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
37121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37122 {
37123 arg2 = &temp2;
37124 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37125 }
37126 {
37127 arg3 = &temp3;
37128 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37129 }
37130 arg4 = (int) SWIG_AsInt(obj3);
37131 if (PyErr_Occurred()) SWIG_fail;
37132 arg5 = (int) SWIG_AsInt(obj4);
37133 if (PyErr_Occurred()) SWIG_fail;
37134 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject,
37135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37136 {
37137 PyThreadState* __tstate = wxPyBeginAllowThreads();
37138 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
37139
37140 wxPyEndAllowThreads(__tstate);
37141 if (PyErr_Occurred()) SWIG_fail;
37142 }
37143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37144 return resultobj;
37145 fail:
37146 return NULL;
37147 }
37148
37149
37150 static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37151 PyObject *resultobj;
37152 wxSizer *arg1 = (wxSizer *) 0 ;
37153 wxGBPosition *arg2 = 0 ;
37154 wxGBSpan *arg3 = 0 ;
37155 int arg4 ;
37156 int arg5 ;
37157 wxObject *arg6 = (wxObject *) 0 ;
37158 wxGBSizerItem *result;
37159 wxGBPosition temp2 ;
37160 wxGBSpan temp3 ;
37161 PyObject * obj0 = 0 ;
37162 PyObject * obj1 = 0 ;
37163 PyObject * obj2 = 0 ;
37164 PyObject * obj3 = 0 ;
37165 PyObject * obj4 = 0 ;
37166 PyObject * obj5 = 0 ;
37167 char *kwnames[] = {
37168 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37169 };
37170
37171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
37172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
37173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37174 {
37175 arg2 = &temp2;
37176 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37177 }
37178 {
37179 arg3 = &temp3;
37180 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37181 }
37182 arg4 = (int) SWIG_AsInt(obj3);
37183 if (PyErr_Occurred()) SWIG_fail;
37184 arg5 = (int) SWIG_AsInt(obj4);
37185 if (PyErr_Occurred()) SWIG_fail;
37186 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject,
37187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37188 {
37189 PyThreadState* __tstate = wxPyBeginAllowThreads();
37190 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
37191
37192 wxPyEndAllowThreads(__tstate);
37193 if (PyErr_Occurred()) SWIG_fail;
37194 }
37195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37196 return resultobj;
37197 fail:
37198 return NULL;
37199 }
37200
37201
37202 static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
37203 PyObject *resultobj;
37204 int arg1 ;
37205 int arg2 ;
37206 wxGBPosition *arg3 = 0 ;
37207 wxGBSpan *arg4 = 0 ;
37208 int arg5 ;
37209 int arg6 ;
37210 wxObject *arg7 = (wxObject *) 0 ;
37211 wxGBSizerItem *result;
37212 wxGBPosition temp3 ;
37213 wxGBSpan temp4 ;
37214 PyObject * obj0 = 0 ;
37215 PyObject * obj1 = 0 ;
37216 PyObject * obj2 = 0 ;
37217 PyObject * obj3 = 0 ;
37218 PyObject * obj4 = 0 ;
37219 PyObject * obj5 = 0 ;
37220 PyObject * obj6 = 0 ;
37221 char *kwnames[] = {
37222 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37223 };
37224
37225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
37226 arg1 = (int) SWIG_AsInt(obj0);
37227 if (PyErr_Occurred()) SWIG_fail;
37228 arg2 = (int) SWIG_AsInt(obj1);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 {
37231 arg3 = &temp3;
37232 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37233 }
37234 {
37235 arg4 = &temp4;
37236 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37237 }
37238 arg5 = (int) SWIG_AsInt(obj4);
37239 if (PyErr_Occurred()) SWIG_fail;
37240 arg6 = (int) SWIG_AsInt(obj5);
37241 if (PyErr_Occurred()) SWIG_fail;
37242 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject,
37243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37244 {
37245 PyThreadState* __tstate = wxPyBeginAllowThreads();
37246 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
37247
37248 wxPyEndAllowThreads(__tstate);
37249 if (PyErr_Occurred()) SWIG_fail;
37250 }
37251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37252 return resultobj;
37253 fail:
37254 return NULL;
37255 }
37256
37257
37258 static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37259 PyObject *resultobj;
37260 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37261 wxGBPosition result;
37262 PyObject * obj0 = 0 ;
37263 char *kwnames[] = {
37264 (char *) "self", NULL
37265 };
37266
37267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
37268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37270 {
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 result = ((wxGBSizerItem const *)arg1)->GetPos();
37273
37274 wxPyEndAllowThreads(__tstate);
37275 if (PyErr_Occurred()) SWIG_fail;
37276 }
37277 {
37278 wxGBPosition * resultptr;
37279 resultptr = new wxGBPosition((wxGBPosition &) result);
37280 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37281 }
37282 return resultobj;
37283 fail:
37284 return NULL;
37285 }
37286
37287
37288 static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37289 PyObject *resultobj;
37290 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37291 wxGBSpan result;
37292 PyObject * obj0 = 0 ;
37293 char *kwnames[] = {
37294 (char *) "self", NULL
37295 };
37296
37297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
37298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37300 {
37301 PyThreadState* __tstate = wxPyBeginAllowThreads();
37302 result = ((wxGBSizerItem const *)arg1)->GetSpan();
37303
37304 wxPyEndAllowThreads(__tstate);
37305 if (PyErr_Occurred()) SWIG_fail;
37306 }
37307 {
37308 wxGBSpan * resultptr;
37309 resultptr = new wxGBSpan((wxGBSpan &) result);
37310 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
37311 }
37312 return resultobj;
37313 fail:
37314 return NULL;
37315 }
37316
37317
37318 static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37319 PyObject *resultobj;
37320 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37321 wxGBPosition *arg2 = 0 ;
37322 bool result;
37323 wxGBPosition temp2 ;
37324 PyObject * obj0 = 0 ;
37325 PyObject * obj1 = 0 ;
37326 char *kwnames[] = {
37327 (char *) "self",(char *) "pos", NULL
37328 };
37329
37330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
37331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37333 {
37334 arg2 = &temp2;
37335 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37336 }
37337 {
37338 PyThreadState* __tstate = wxPyBeginAllowThreads();
37339 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
37340
37341 wxPyEndAllowThreads(__tstate);
37342 if (PyErr_Occurred()) SWIG_fail;
37343 }
37344 {
37345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37346 }
37347 return resultobj;
37348 fail:
37349 return NULL;
37350 }
37351
37352
37353 static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37354 PyObject *resultobj;
37355 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37356 wxGBSpan *arg2 = 0 ;
37357 bool result;
37358 wxGBSpan temp2 ;
37359 PyObject * obj0 = 0 ;
37360 PyObject * obj1 = 0 ;
37361 char *kwnames[] = {
37362 (char *) "self",(char *) "span", NULL
37363 };
37364
37365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
37366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37368 {
37369 arg2 = &temp2;
37370 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37371 }
37372 {
37373 PyThreadState* __tstate = wxPyBeginAllowThreads();
37374 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
37375
37376 wxPyEndAllowThreads(__tstate);
37377 if (PyErr_Occurred()) SWIG_fail;
37378 }
37379 {
37380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37381 }
37382 return resultobj;
37383 fail:
37384 return NULL;
37385 }
37386
37387
37388 static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) {
37389 PyObject *resultobj;
37390 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37391 wxGBSizerItem *arg2 = 0 ;
37392 bool result;
37393 PyObject * obj0 = 0 ;
37394 PyObject * obj1 = 0 ;
37395
37396 if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail;
37397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37400 SWIG_POINTER_EXCEPTION | 0)) == -1)
37401 SWIG_fail;
37402 if (arg2 == NULL) {
37403 PyErr_SetString(PyExc_TypeError,"null reference");
37404 SWIG_fail;
37405 }
37406 {
37407 PyThreadState* __tstate = wxPyBeginAllowThreads();
37408 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
37409
37410 wxPyEndAllowThreads(__tstate);
37411 if (PyErr_Occurred()) SWIG_fail;
37412 }
37413 {
37414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37415 }
37416 return resultobj;
37417 fail:
37418 return NULL;
37419 }
37420
37421
37422 static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) {
37423 PyObject *resultobj;
37424 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37425 wxGBPosition *arg2 = 0 ;
37426 wxGBSpan *arg3 = 0 ;
37427 bool result;
37428 wxGBPosition temp2 ;
37429 wxGBSpan temp3 ;
37430 PyObject * obj0 = 0 ;
37431 PyObject * obj1 = 0 ;
37432 PyObject * obj2 = 0 ;
37433
37434 if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail;
37435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37437 {
37438 arg2 = &temp2;
37439 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37440 }
37441 {
37442 arg3 = &temp3;
37443 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37444 }
37445 {
37446 PyThreadState* __tstate = wxPyBeginAllowThreads();
37447 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
37448
37449 wxPyEndAllowThreads(__tstate);
37450 if (PyErr_Occurred()) SWIG_fail;
37451 }
37452 {
37453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37454 }
37455 return resultobj;
37456 fail:
37457 return NULL;
37458 }
37459
37460
37461 static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) {
37462 int argc;
37463 PyObject *argv[4];
37464 int ii;
37465
37466 argc = PyObject_Length(args);
37467 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
37468 argv[ii] = PyTuple_GetItem(args,ii);
37469 }
37470 if (argc == 2) {
37471 int _v;
37472 {
37473 void *ptr;
37474 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37475 _v = 0;
37476 PyErr_Clear();
37477 } else {
37478 _v = 1;
37479 }
37480 }
37481 if (_v) {
37482 {
37483 void *ptr;
37484 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37485 _v = 0;
37486 PyErr_Clear();
37487 } else {
37488 _v = 1;
37489 }
37490 }
37491 if (_v) {
37492 return _wrap_GBSizerItem_Intersects__SWIG_0(self,args);
37493 }
37494 }
37495 }
37496 if (argc == 3) {
37497 int _v;
37498 {
37499 void *ptr;
37500 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37501 _v = 0;
37502 PyErr_Clear();
37503 } else {
37504 _v = 1;
37505 }
37506 }
37507 if (_v) {
37508 {
37509 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
37510 }
37511 if (_v) {
37512 {
37513 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37514 }
37515 if (_v) {
37516 return _wrap_GBSizerItem_Intersects__SWIG_1(self,args);
37517 }
37518 }
37519 }
37520 }
37521
37522 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'");
37523 return NULL;
37524 }
37525
37526
37527 static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37528 PyObject *resultobj;
37529 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37530 int *arg2 = 0 ;
37531 int *arg3 = 0 ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 PyObject * obj2 = 0 ;
37535 char *kwnames[] = {
37536 (char *) "self",(char *) "row",(char *) "col", NULL
37537 };
37538
37539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
37540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,
37543 SWIG_POINTER_EXCEPTION | 0)) == -1)
37544 SWIG_fail;
37545 if (arg2 == NULL) {
37546 PyErr_SetString(PyExc_TypeError,"null reference");
37547 SWIG_fail;
37548 }
37549 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,
37550 SWIG_POINTER_EXCEPTION | 0)) == -1)
37551 SWIG_fail;
37552 if (arg3 == NULL) {
37553 PyErr_SetString(PyExc_TypeError,"null reference");
37554 SWIG_fail;
37555 }
37556 {
37557 PyThreadState* __tstate = wxPyBeginAllowThreads();
37558 (arg1)->GetEndPos(*arg2,*arg3);
37559
37560 wxPyEndAllowThreads(__tstate);
37561 if (PyErr_Occurred()) SWIG_fail;
37562 }
37563 Py_INCREF(Py_None); resultobj = Py_None;
37564 return resultobj;
37565 fail:
37566 return NULL;
37567 }
37568
37569
37570 static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37571 PyObject *resultobj;
37572 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37573 wxGridBagSizer *result;
37574 PyObject * obj0 = 0 ;
37575 char *kwnames[] = {
37576 (char *) "self", NULL
37577 };
37578
37579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
37580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37582 {
37583 PyThreadState* __tstate = wxPyBeginAllowThreads();
37584 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
37585
37586 wxPyEndAllowThreads(__tstate);
37587 if (PyErr_Occurred()) SWIG_fail;
37588 }
37589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
37590 return resultobj;
37591 fail:
37592 return NULL;
37593 }
37594
37595
37596 static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37597 PyObject *resultobj;
37598 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37599 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
37600 PyObject * obj0 = 0 ;
37601 PyObject * obj1 = 0 ;
37602 char *kwnames[] = {
37603 (char *) "self",(char *) "sizer", NULL
37604 };
37605
37606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",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_wxGridBagSizer,
37610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37611 {
37612 PyThreadState* __tstate = wxPyBeginAllowThreads();
37613 (arg1)->SetGBSizer(arg2);
37614
37615 wxPyEndAllowThreads(__tstate);
37616 if (PyErr_Occurred()) SWIG_fail;
37617 }
37618 Py_INCREF(Py_None); resultobj = Py_None;
37619 return resultobj;
37620 fail:
37621 return NULL;
37622 }
37623
37624
37625 static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
37626 PyObject *obj;
37627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37628 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
37629 Py_INCREF(obj);
37630 return Py_BuildValue((char *)"");
37631 }
37632 static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37633 PyObject *resultobj;
37634 int arg1 = (int) 0 ;
37635 int arg2 = (int) 0 ;
37636 wxGridBagSizer *result;
37637 PyObject * obj0 = 0 ;
37638 PyObject * obj1 = 0 ;
37639 char *kwnames[] = {
37640 (char *) "vgap",(char *) "hgap", NULL
37641 };
37642
37643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
37644 if (obj0) {
37645 arg1 = (int) SWIG_AsInt(obj0);
37646 if (PyErr_Occurred()) SWIG_fail;
37647 }
37648 if (obj1) {
37649 arg2 = (int) SWIG_AsInt(obj1);
37650 if (PyErr_Occurred()) SWIG_fail;
37651 }
37652 {
37653 PyThreadState* __tstate = wxPyBeginAllowThreads();
37654 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
37655
37656 wxPyEndAllowThreads(__tstate);
37657 if (PyErr_Occurred()) SWIG_fail;
37658 }
37659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
37660 return resultobj;
37661 fail:
37662 return NULL;
37663 }
37664
37665
37666 static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
37667 PyObject *resultobj;
37668 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37669 PyObject *arg2 = (PyObject *) 0 ;
37670 wxGBPosition *arg3 = 0 ;
37671 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
37672 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
37673 int arg5 = (int) 0 ;
37674 int arg6 = (int) 0 ;
37675 PyObject *arg7 = (PyObject *) NULL ;
37676 bool result;
37677 wxGBPosition temp3 ;
37678 wxGBSpan temp4 ;
37679 PyObject * obj0 = 0 ;
37680 PyObject * obj1 = 0 ;
37681 PyObject * obj2 = 0 ;
37682 PyObject * obj3 = 0 ;
37683 PyObject * obj4 = 0 ;
37684 PyObject * obj5 = 0 ;
37685 PyObject * obj6 = 0 ;
37686 char *kwnames[] = {
37687 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37688 };
37689
37690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
37691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37693 arg2 = obj1;
37694 {
37695 arg3 = &temp3;
37696 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37697 }
37698 if (obj3) {
37699 {
37700 arg4 = &temp4;
37701 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37702 }
37703 }
37704 if (obj4) {
37705 arg5 = (int) SWIG_AsInt(obj4);
37706 if (PyErr_Occurred()) SWIG_fail;
37707 }
37708 if (obj5) {
37709 arg6 = (int) SWIG_AsInt(obj5);
37710 if (PyErr_Occurred()) SWIG_fail;
37711 }
37712 if (obj6) {
37713 arg7 = obj6;
37714 }
37715 {
37716 PyThreadState* __tstate = wxPyBeginAllowThreads();
37717 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
37718
37719 wxPyEndAllowThreads(__tstate);
37720 if (PyErr_Occurred()) SWIG_fail;
37721 }
37722 {
37723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37724 }
37725 return resultobj;
37726 fail:
37727 return NULL;
37728 }
37729
37730
37731 static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37732 PyObject *resultobj;
37733 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37734 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
37735 bool result;
37736 PyObject * obj0 = 0 ;
37737 PyObject * obj1 = 0 ;
37738 char *kwnames[] = {
37739 (char *) "self",(char *) "item", NULL
37740 };
37741
37742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
37743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37745 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37747 {
37748 PyThreadState* __tstate = wxPyBeginAllowThreads();
37749 result = (bool)(arg1)->Add(arg2);
37750
37751 wxPyEndAllowThreads(__tstate);
37752 if (PyErr_Occurred()) SWIG_fail;
37753 }
37754 {
37755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37756 }
37757 return resultobj;
37758 fail:
37759 return NULL;
37760 }
37761
37762
37763 static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
37764 PyObject *resultobj;
37765 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37766 wxSize result;
37767 PyObject * obj0 = 0 ;
37768 char *kwnames[] = {
37769 (char *) "self", NULL
37770 };
37771
37772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
37773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37775 {
37776 PyThreadState* __tstate = wxPyBeginAllowThreads();
37777 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
37778
37779 wxPyEndAllowThreads(__tstate);
37780 if (PyErr_Occurred()) SWIG_fail;
37781 }
37782 {
37783 wxSize * resultptr;
37784 resultptr = new wxSize((wxSize &) result);
37785 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
37786 }
37787 return resultobj;
37788 fail:
37789 return NULL;
37790 }
37791
37792
37793 static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
37794 PyObject *resultobj;
37795 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37796 wxSize *arg2 = 0 ;
37797 wxSize temp2 ;
37798 PyObject * obj0 = 0 ;
37799 PyObject * obj1 = 0 ;
37800 char *kwnames[] = {
37801 (char *) "self",(char *) "sz", NULL
37802 };
37803
37804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
37805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37807 {
37808 arg2 = &temp2;
37809 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37810 }
37811 {
37812 PyThreadState* __tstate = wxPyBeginAllowThreads();
37813 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
37814
37815 wxPyEndAllowThreads(__tstate);
37816 if (PyErr_Occurred()) SWIG_fail;
37817 }
37818 Py_INCREF(Py_None); resultobj = Py_None;
37819 return resultobj;
37820 fail:
37821 return NULL;
37822 }
37823
37824
37825 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
37826 PyObject *resultobj;
37827 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37828 wxWindow *arg2 = (wxWindow *) 0 ;
37829 wxGBPosition result;
37830 PyObject * obj0 = 0 ;
37831 PyObject * obj1 = 0 ;
37832
37833 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
37834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
37837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37838 {
37839 PyThreadState* __tstate = wxPyBeginAllowThreads();
37840 result = (arg1)->GetItemPosition(arg2);
37841
37842 wxPyEndAllowThreads(__tstate);
37843 if (PyErr_Occurred()) SWIG_fail;
37844 }
37845 {
37846 wxGBPosition * resultptr;
37847 resultptr = new wxGBPosition((wxGBPosition &) result);
37848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37849 }
37850 return resultobj;
37851 fail:
37852 return NULL;
37853 }
37854
37855
37856 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
37857 PyObject *resultobj;
37858 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37859 wxSizer *arg2 = (wxSizer *) 0 ;
37860 wxGBPosition result;
37861 PyObject * obj0 = 0 ;
37862 PyObject * obj1 = 0 ;
37863
37864 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
37865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
37868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37869 {
37870 PyThreadState* __tstate = wxPyBeginAllowThreads();
37871 result = (arg1)->GetItemPosition(arg2);
37872
37873 wxPyEndAllowThreads(__tstate);
37874 if (PyErr_Occurred()) SWIG_fail;
37875 }
37876 {
37877 wxGBPosition * resultptr;
37878 resultptr = new wxGBPosition((wxGBPosition &) result);
37879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37880 }
37881 return resultobj;
37882 fail:
37883 return NULL;
37884 }
37885
37886
37887 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
37888 PyObject *resultobj;
37889 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37890 size_t arg2 ;
37891 wxGBPosition result;
37892 PyObject * obj0 = 0 ;
37893 PyObject * obj1 = 0 ;
37894
37895 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
37896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
37897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37898 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
37899 if (PyErr_Occurred()) SWIG_fail;
37900 {
37901 PyThreadState* __tstate = wxPyBeginAllowThreads();
37902 result = (arg1)->GetItemPosition(arg2);
37903
37904 wxPyEndAllowThreads(__tstate);
37905 if (PyErr_Occurred()) SWIG_fail;
37906 }
37907 {
37908 wxGBPosition * resultptr;
37909 resultptr = new wxGBPosition((wxGBPosition &) result);
37910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37911 }
37912 return resultobj;
37913 fail:
37914 return NULL;
37915 }
37916
37917
37918 static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
37919 int argc;
37920 PyObject *argv[3];
37921 int ii;
37922
37923 argc = PyObject_Length(args);
37924 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
37925 argv[ii] = PyTuple_GetItem(args,ii);
37926 }
37927 if (argc == 2) {
37928 int _v;
37929 {
37930 void *ptr;
37931 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37932 _v = 0;
37933 PyErr_Clear();
37934 } else {
37935 _v = 1;
37936 }
37937 }
37938 if (_v) {
37939 {
37940 void *ptr;
37941 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
37942 _v = 0;
37943 PyErr_Clear();
37944 } else {
37945 _v = 1;
37946 }
37947 }
37948 if (_v) {
37949 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
37950 }
37951 }
37952 }
37953 if (argc == 2) {
37954 int _v;
37955 {
37956 void *ptr;
37957 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37958 _v = 0;
37959 PyErr_Clear();
37960 } else {
37961 _v = 1;
37962 }
37963 }
37964 if (_v) {
37965 {
37966 void *ptr;
37967 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
37968 _v = 0;
37969 PyErr_Clear();
37970 } else {
37971 _v = 1;
37972 }
37973 }
37974 if (_v) {
37975 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
37976 }
37977 }
37978 }
37979 if (argc == 2) {
37980 int _v;
37981 {
37982 void *ptr;
37983 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37984 _v = 0;
37985 PyErr_Clear();
37986 } else {
37987 _v = 1;
37988 }
37989 }
37990 if (_v) {
37991 _v = SWIG_CheckUnsignedLong(argv[1]);
37992 if (_v) {
37993 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
37994 }
37995 }
37996 }
37997
37998 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
37999 return NULL;
38000 }
38001
38002
38003 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38004 PyObject *resultobj;
38005 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38006 wxWindow *arg2 = (wxWindow *) 0 ;
38007 wxGBPosition *arg3 = 0 ;
38008 bool result;
38009 wxGBPosition temp3 ;
38010 PyObject * obj0 = 0 ;
38011 PyObject * obj1 = 0 ;
38012 PyObject * obj2 = 0 ;
38013
38014 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38017 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38019 {
38020 arg3 = &temp3;
38021 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38022 }
38023 {
38024 PyThreadState* __tstate = wxPyBeginAllowThreads();
38025 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38026
38027 wxPyEndAllowThreads(__tstate);
38028 if (PyErr_Occurred()) SWIG_fail;
38029 }
38030 {
38031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38032 }
38033 return resultobj;
38034 fail:
38035 return NULL;
38036 }
38037
38038
38039 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38040 PyObject *resultobj;
38041 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38042 wxSizer *arg2 = (wxSizer *) 0 ;
38043 wxGBPosition *arg3 = 0 ;
38044 bool result;
38045 wxGBPosition temp3 ;
38046 PyObject * obj0 = 0 ;
38047 PyObject * obj1 = 0 ;
38048 PyObject * obj2 = 0 ;
38049
38050 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38055 {
38056 arg3 = &temp3;
38057 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38058 }
38059 {
38060 PyThreadState* __tstate = wxPyBeginAllowThreads();
38061 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38062
38063 wxPyEndAllowThreads(__tstate);
38064 if (PyErr_Occurred()) SWIG_fail;
38065 }
38066 {
38067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38068 }
38069 return resultobj;
38070 fail:
38071 return NULL;
38072 }
38073
38074
38075 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38076 PyObject *resultobj;
38077 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38078 size_t arg2 ;
38079 wxGBPosition *arg3 = 0 ;
38080 bool result;
38081 wxGBPosition temp3 ;
38082 PyObject * obj0 = 0 ;
38083 PyObject * obj1 = 0 ;
38084 PyObject * obj2 = 0 ;
38085
38086 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38089 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38090 if (PyErr_Occurred()) SWIG_fail;
38091 {
38092 arg3 = &temp3;
38093 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38094 }
38095 {
38096 PyThreadState* __tstate = wxPyBeginAllowThreads();
38097 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38098
38099 wxPyEndAllowThreads(__tstate);
38100 if (PyErr_Occurred()) SWIG_fail;
38101 }
38102 {
38103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38104 }
38105 return resultobj;
38106 fail:
38107 return NULL;
38108 }
38109
38110
38111 static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38112 int argc;
38113 PyObject *argv[4];
38114 int ii;
38115
38116 argc = PyObject_Length(args);
38117 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38118 argv[ii] = PyTuple_GetItem(args,ii);
38119 }
38120 if (argc == 3) {
38121 int _v;
38122 {
38123 void *ptr;
38124 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38125 _v = 0;
38126 PyErr_Clear();
38127 } else {
38128 _v = 1;
38129 }
38130 }
38131 if (_v) {
38132 {
38133 void *ptr;
38134 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38135 _v = 0;
38136 PyErr_Clear();
38137 } else {
38138 _v = 1;
38139 }
38140 }
38141 if (_v) {
38142 {
38143 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38144 }
38145 if (_v) {
38146 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
38147 }
38148 }
38149 }
38150 }
38151 if (argc == 3) {
38152 int _v;
38153 {
38154 void *ptr;
38155 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38156 _v = 0;
38157 PyErr_Clear();
38158 } else {
38159 _v = 1;
38160 }
38161 }
38162 if (_v) {
38163 {
38164 void *ptr;
38165 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38166 _v = 0;
38167 PyErr_Clear();
38168 } else {
38169 _v = 1;
38170 }
38171 }
38172 if (_v) {
38173 {
38174 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38175 }
38176 if (_v) {
38177 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
38178 }
38179 }
38180 }
38181 }
38182 if (argc == 3) {
38183 int _v;
38184 {
38185 void *ptr;
38186 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38187 _v = 0;
38188 PyErr_Clear();
38189 } else {
38190 _v = 1;
38191 }
38192 }
38193 if (_v) {
38194 _v = SWIG_CheckUnsignedLong(argv[1]);
38195 if (_v) {
38196 {
38197 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38198 }
38199 if (_v) {
38200 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
38201 }
38202 }
38203 }
38204 }
38205
38206 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
38207 return NULL;
38208 }
38209
38210
38211 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38212 PyObject *resultobj;
38213 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38214 wxWindow *arg2 = (wxWindow *) 0 ;
38215 wxGBSpan result;
38216 PyObject * obj0 = 0 ;
38217 PyObject * obj1 = 0 ;
38218
38219 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38224 {
38225 PyThreadState* __tstate = wxPyBeginAllowThreads();
38226 result = (arg1)->GetItemSpan(arg2);
38227
38228 wxPyEndAllowThreads(__tstate);
38229 if (PyErr_Occurred()) SWIG_fail;
38230 }
38231 {
38232 wxGBSpan * resultptr;
38233 resultptr = new wxGBSpan((wxGBSpan &) result);
38234 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38235 }
38236 return resultobj;
38237 fail:
38238 return NULL;
38239 }
38240
38241
38242 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38243 PyObject *resultobj;
38244 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38245 wxSizer *arg2 = (wxSizer *) 0 ;
38246 wxGBSpan result;
38247 PyObject * obj0 = 0 ;
38248 PyObject * obj1 = 0 ;
38249
38250 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38255 {
38256 PyThreadState* __tstate = wxPyBeginAllowThreads();
38257 result = (arg1)->GetItemSpan(arg2);
38258
38259 wxPyEndAllowThreads(__tstate);
38260 if (PyErr_Occurred()) SWIG_fail;
38261 }
38262 {
38263 wxGBSpan * resultptr;
38264 resultptr = new wxGBSpan((wxGBSpan &) result);
38265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38266 }
38267 return resultobj;
38268 fail:
38269 return NULL;
38270 }
38271
38272
38273 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38274 PyObject *resultobj;
38275 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38276 size_t arg2 ;
38277 wxGBSpan result;
38278 PyObject * obj0 = 0 ;
38279 PyObject * obj1 = 0 ;
38280
38281 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38284 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38285 if (PyErr_Occurred()) SWIG_fail;
38286 {
38287 PyThreadState* __tstate = wxPyBeginAllowThreads();
38288 result = (arg1)->GetItemSpan(arg2);
38289
38290 wxPyEndAllowThreads(__tstate);
38291 if (PyErr_Occurred()) SWIG_fail;
38292 }
38293 {
38294 wxGBSpan * resultptr;
38295 resultptr = new wxGBSpan((wxGBSpan &) result);
38296 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38297 }
38298 return resultobj;
38299 fail:
38300 return NULL;
38301 }
38302
38303
38304 static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
38305 int argc;
38306 PyObject *argv[3];
38307 int ii;
38308
38309 argc = PyObject_Length(args);
38310 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38311 argv[ii] = PyTuple_GetItem(args,ii);
38312 }
38313 if (argc == 2) {
38314 int _v;
38315 {
38316 void *ptr;
38317 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38318 _v = 0;
38319 PyErr_Clear();
38320 } else {
38321 _v = 1;
38322 }
38323 }
38324 if (_v) {
38325 {
38326 void *ptr;
38327 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38328 _v = 0;
38329 PyErr_Clear();
38330 } else {
38331 _v = 1;
38332 }
38333 }
38334 if (_v) {
38335 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
38336 }
38337 }
38338 }
38339 if (argc == 2) {
38340 int _v;
38341 {
38342 void *ptr;
38343 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38344 _v = 0;
38345 PyErr_Clear();
38346 } else {
38347 _v = 1;
38348 }
38349 }
38350 if (_v) {
38351 {
38352 void *ptr;
38353 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38354 _v = 0;
38355 PyErr_Clear();
38356 } else {
38357 _v = 1;
38358 }
38359 }
38360 if (_v) {
38361 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
38362 }
38363 }
38364 }
38365 if (argc == 2) {
38366 int _v;
38367 {
38368 void *ptr;
38369 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38370 _v = 0;
38371 PyErr_Clear();
38372 } else {
38373 _v = 1;
38374 }
38375 }
38376 if (_v) {
38377 _v = SWIG_CheckUnsignedLong(argv[1]);
38378 if (_v) {
38379 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
38380 }
38381 }
38382 }
38383
38384 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
38385 return NULL;
38386 }
38387
38388
38389 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38390 PyObject *resultobj;
38391 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38392 wxWindow *arg2 = (wxWindow *) 0 ;
38393 wxGBSpan *arg3 = 0 ;
38394 bool result;
38395 wxGBSpan temp3 ;
38396 PyObject * obj0 = 0 ;
38397 PyObject * obj1 = 0 ;
38398 PyObject * obj2 = 0 ;
38399
38400 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38405 {
38406 arg3 = &temp3;
38407 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38408 }
38409 {
38410 PyThreadState* __tstate = wxPyBeginAllowThreads();
38411 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38412
38413 wxPyEndAllowThreads(__tstate);
38414 if (PyErr_Occurred()) SWIG_fail;
38415 }
38416 {
38417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38418 }
38419 return resultobj;
38420 fail:
38421 return NULL;
38422 }
38423
38424
38425 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38426 PyObject *resultobj;
38427 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38428 wxSizer *arg2 = (wxSizer *) 0 ;
38429 wxGBSpan *arg3 = 0 ;
38430 bool result;
38431 wxGBSpan temp3 ;
38432 PyObject * obj0 = 0 ;
38433 PyObject * obj1 = 0 ;
38434 PyObject * obj2 = 0 ;
38435
38436 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38441 {
38442 arg3 = &temp3;
38443 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38444 }
38445 {
38446 PyThreadState* __tstate = wxPyBeginAllowThreads();
38447 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38448
38449 wxPyEndAllowThreads(__tstate);
38450 if (PyErr_Occurred()) SWIG_fail;
38451 }
38452 {
38453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38454 }
38455 return resultobj;
38456 fail:
38457 return NULL;
38458 }
38459
38460
38461 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38462 PyObject *resultobj;
38463 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38464 size_t arg2 ;
38465 wxGBSpan *arg3 = 0 ;
38466 bool result;
38467 wxGBSpan temp3 ;
38468 PyObject * obj0 = 0 ;
38469 PyObject * obj1 = 0 ;
38470 PyObject * obj2 = 0 ;
38471
38472 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38475 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38476 if (PyErr_Occurred()) SWIG_fail;
38477 {
38478 arg3 = &temp3;
38479 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38480 }
38481 {
38482 PyThreadState* __tstate = wxPyBeginAllowThreads();
38483 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38484
38485 wxPyEndAllowThreads(__tstate);
38486 if (PyErr_Occurred()) SWIG_fail;
38487 }
38488 {
38489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38490 }
38491 return resultobj;
38492 fail:
38493 return NULL;
38494 }
38495
38496
38497 static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
38498 int argc;
38499 PyObject *argv[4];
38500 int ii;
38501
38502 argc = PyObject_Length(args);
38503 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38504 argv[ii] = PyTuple_GetItem(args,ii);
38505 }
38506 if (argc == 3) {
38507 int _v;
38508 {
38509 void *ptr;
38510 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38511 _v = 0;
38512 PyErr_Clear();
38513 } else {
38514 _v = 1;
38515 }
38516 }
38517 if (_v) {
38518 {
38519 void *ptr;
38520 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38521 _v = 0;
38522 PyErr_Clear();
38523 } else {
38524 _v = 1;
38525 }
38526 }
38527 if (_v) {
38528 {
38529 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38530 }
38531 if (_v) {
38532 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
38533 }
38534 }
38535 }
38536 }
38537 if (argc == 3) {
38538 int _v;
38539 {
38540 void *ptr;
38541 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38542 _v = 0;
38543 PyErr_Clear();
38544 } else {
38545 _v = 1;
38546 }
38547 }
38548 if (_v) {
38549 {
38550 void *ptr;
38551 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38552 _v = 0;
38553 PyErr_Clear();
38554 } else {
38555 _v = 1;
38556 }
38557 }
38558 if (_v) {
38559 {
38560 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38561 }
38562 if (_v) {
38563 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
38564 }
38565 }
38566 }
38567 }
38568 if (argc == 3) {
38569 int _v;
38570 {
38571 void *ptr;
38572 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38573 _v = 0;
38574 PyErr_Clear();
38575 } else {
38576 _v = 1;
38577 }
38578 }
38579 if (_v) {
38580 _v = SWIG_CheckUnsignedLong(argv[1]);
38581 if (_v) {
38582 {
38583 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38584 }
38585 if (_v) {
38586 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
38587 }
38588 }
38589 }
38590 }
38591
38592 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
38593 return NULL;
38594 }
38595
38596
38597 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
38598 PyObject *resultobj;
38599 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38600 wxWindow *arg2 = (wxWindow *) 0 ;
38601 wxGBSizerItem *result;
38602 PyObject * obj0 = 0 ;
38603 PyObject * obj1 = 0 ;
38604
38605 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
38606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38610 {
38611 PyThreadState* __tstate = wxPyBeginAllowThreads();
38612 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
38613
38614 wxPyEndAllowThreads(__tstate);
38615 if (PyErr_Occurred()) SWIG_fail;
38616 }
38617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38618 return resultobj;
38619 fail:
38620 return NULL;
38621 }
38622
38623
38624 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
38625 PyObject *resultobj;
38626 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38627 wxSizer *arg2 = (wxSizer *) 0 ;
38628 wxGBSizerItem *result;
38629 PyObject * obj0 = 0 ;
38630 PyObject * obj1 = 0 ;
38631
38632 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
38633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38637 {
38638 PyThreadState* __tstate = wxPyBeginAllowThreads();
38639 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
38640
38641 wxPyEndAllowThreads(__tstate);
38642 if (PyErr_Occurred()) SWIG_fail;
38643 }
38644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38645 return resultobj;
38646 fail:
38647 return NULL;
38648 }
38649
38650
38651 static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
38652 int argc;
38653 PyObject *argv[3];
38654 int ii;
38655
38656 argc = PyObject_Length(args);
38657 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38658 argv[ii] = PyTuple_GetItem(args,ii);
38659 }
38660 if (argc == 2) {
38661 int _v;
38662 {
38663 void *ptr;
38664 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38665 _v = 0;
38666 PyErr_Clear();
38667 } else {
38668 _v = 1;
38669 }
38670 }
38671 if (_v) {
38672 {
38673 void *ptr;
38674 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38675 _v = 0;
38676 PyErr_Clear();
38677 } else {
38678 _v = 1;
38679 }
38680 }
38681 if (_v) {
38682 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
38683 }
38684 }
38685 }
38686 if (argc == 2) {
38687 int _v;
38688 {
38689 void *ptr;
38690 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38691 _v = 0;
38692 PyErr_Clear();
38693 } else {
38694 _v = 1;
38695 }
38696 }
38697 if (_v) {
38698 {
38699 void *ptr;
38700 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38701 _v = 0;
38702 PyErr_Clear();
38703 } else {
38704 _v = 1;
38705 }
38706 }
38707 if (_v) {
38708 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
38709 }
38710 }
38711 }
38712
38713 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
38714 return NULL;
38715 }
38716
38717
38718 static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
38719 PyObject *resultobj;
38720 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38721 wxGBPosition *arg2 = 0 ;
38722 wxGBSizerItem *result;
38723 wxGBPosition temp2 ;
38724 PyObject * obj0 = 0 ;
38725 PyObject * obj1 = 0 ;
38726 char *kwnames[] = {
38727 (char *) "self",(char *) "pos", NULL
38728 };
38729
38730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
38731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38733 {
38734 arg2 = &temp2;
38735 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38736 }
38737 {
38738 PyThreadState* __tstate = wxPyBeginAllowThreads();
38739 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
38740
38741 wxPyEndAllowThreads(__tstate);
38742 if (PyErr_Occurred()) SWIG_fail;
38743 }
38744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38745 return resultobj;
38746 fail:
38747 return NULL;
38748 }
38749
38750
38751 static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
38752 PyObject *resultobj;
38753 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38754 wxPoint *arg2 = 0 ;
38755 wxGBSizerItem *result;
38756 wxPoint temp2 ;
38757 PyObject * obj0 = 0 ;
38758 PyObject * obj1 = 0 ;
38759 char *kwnames[] = {
38760 (char *) "self",(char *) "pt", NULL
38761 };
38762
38763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
38764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38766 {
38767 arg2 = &temp2;
38768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38769 }
38770 {
38771 PyThreadState* __tstate = wxPyBeginAllowThreads();
38772 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
38773
38774 wxPyEndAllowThreads(__tstate);
38775 if (PyErr_Occurred()) SWIG_fail;
38776 }
38777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38778 return resultobj;
38779 fail:
38780 return NULL;
38781 }
38782
38783
38784 static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) {
38785 PyObject *resultobj;
38786 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38787 wxObject *arg2 = (wxObject *) 0 ;
38788 wxGBSizerItem *result;
38789 PyObject * obj0 = 0 ;
38790 PyObject * obj1 = 0 ;
38791 char *kwnames[] = {
38792 (char *) "self",(char *) "userData", NULL
38793 };
38794
38795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail;
38796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
38799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38800 {
38801 PyThreadState* __tstate = wxPyBeginAllowThreads();
38802 result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2);
38803
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
38808 return resultobj;
38809 fail:
38810 return NULL;
38811 }
38812
38813
38814 static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
38815 PyObject *resultobj;
38816 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38817 PyObject * obj0 = 0 ;
38818 char *kwnames[] = {
38819 (char *) "self", NULL
38820 };
38821
38822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail;
38823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38825 {
38826 PyThreadState* __tstate = wxPyBeginAllowThreads();
38827 (arg1)->RecalcSizes();
38828
38829 wxPyEndAllowThreads(__tstate);
38830 if (PyErr_Occurred()) SWIG_fail;
38831 }
38832 Py_INCREF(Py_None); resultobj = Py_None;
38833 return resultobj;
38834 fail:
38835 return NULL;
38836 }
38837
38838
38839 static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
38840 PyObject *resultobj;
38841 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38842 wxSize result;
38843 PyObject * obj0 = 0 ;
38844 char *kwnames[] = {
38845 (char *) "self", NULL
38846 };
38847
38848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail;
38849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38851 {
38852 PyThreadState* __tstate = wxPyBeginAllowThreads();
38853 result = (arg1)->CalcMin();
38854
38855 wxPyEndAllowThreads(__tstate);
38856 if (PyErr_Occurred()) SWIG_fail;
38857 }
38858 {
38859 wxSize * resultptr;
38860 resultptr = new wxSize((wxSize &) result);
38861 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38862 }
38863 return resultobj;
38864 fail:
38865 return NULL;
38866 }
38867
38868
38869 static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) {
38870 PyObject *resultobj;
38871 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38872 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38873 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
38874 bool result;
38875 PyObject * obj0 = 0 ;
38876 PyObject * obj1 = 0 ;
38877 PyObject * obj2 = 0 ;
38878
38879 if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail;
38880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38884 if (obj2) {
38885 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
38886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38887 }
38888 {
38889 PyThreadState* __tstate = wxPyBeginAllowThreads();
38890 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
38891
38892 wxPyEndAllowThreads(__tstate);
38893 if (PyErr_Occurred()) SWIG_fail;
38894 }
38895 {
38896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38897 }
38898 return resultobj;
38899 fail:
38900 return NULL;
38901 }
38902
38903
38904 static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) {
38905 PyObject *resultobj;
38906 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38907 wxGBPosition *arg2 = 0 ;
38908 wxGBSpan *arg3 = 0 ;
38909 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
38910 bool result;
38911 wxGBPosition temp2 ;
38912 wxGBSpan temp3 ;
38913 PyObject * obj0 = 0 ;
38914 PyObject * obj1 = 0 ;
38915 PyObject * obj2 = 0 ;
38916 PyObject * obj3 = 0 ;
38917
38918 if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail;
38919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38921 {
38922 arg2 = &temp2;
38923 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38924 }
38925 {
38926 arg3 = &temp3;
38927 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38928 }
38929 if (obj3) {
38930 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
38931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38932 }
38933 {
38934 PyThreadState* __tstate = wxPyBeginAllowThreads();
38935 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
38936
38937 wxPyEndAllowThreads(__tstate);
38938 if (PyErr_Occurred()) SWIG_fail;
38939 }
38940 {
38941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38942 }
38943 return resultobj;
38944 fail:
38945 return NULL;
38946 }
38947
38948
38949 static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) {
38950 int argc;
38951 PyObject *argv[5];
38952 int ii;
38953
38954 argc = PyObject_Length(args);
38955 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
38956 argv[ii] = PyTuple_GetItem(args,ii);
38957 }
38958 if ((argc >= 2) && (argc <= 3)) {
38959 int _v;
38960 {
38961 void *ptr;
38962 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38963 _v = 0;
38964 PyErr_Clear();
38965 } else {
38966 _v = 1;
38967 }
38968 }
38969 if (_v) {
38970 {
38971 void *ptr;
38972 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
38973 _v = 0;
38974 PyErr_Clear();
38975 } else {
38976 _v = 1;
38977 }
38978 }
38979 if (_v) {
38980 if (argc <= 2) {
38981 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
38982 }
38983 {
38984 void *ptr;
38985 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
38986 _v = 0;
38987 PyErr_Clear();
38988 } else {
38989 _v = 1;
38990 }
38991 }
38992 if (_v) {
38993 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
38994 }
38995 }
38996 }
38997 }
38998 if ((argc >= 3) && (argc <= 4)) {
38999 int _v;
39000 {
39001 void *ptr;
39002 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39003 _v = 0;
39004 PyErr_Clear();
39005 } else {
39006 _v = 1;
39007 }
39008 }
39009 if (_v) {
39010 {
39011 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
39012 }
39013 if (_v) {
39014 {
39015 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39016 }
39017 if (_v) {
39018 if (argc <= 3) {
39019 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
39020 }
39021 {
39022 void *ptr;
39023 if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
39024 _v = 0;
39025 PyErr_Clear();
39026 } else {
39027 _v = 1;
39028 }
39029 }
39030 if (_v) {
39031 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
39032 }
39033 }
39034 }
39035 }
39036 }
39037
39038 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'");
39039 return NULL;
39040 }
39041
39042
39043 static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
39044 PyObject *obj;
39045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39046 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39047 Py_INCREF(obj);
39048 return Py_BuildValue((char *)"");
39049 }
39050 static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
39051 PyObject *resultobj;
39052 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39053 int arg2 ;
39054 wxWindow *arg3 = (wxWindow *) 0 ;
39055 int arg4 ;
39056 int arg5 = (int) 0 ;
39057 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39058 PyObject * obj0 = 0 ;
39059 PyObject * obj1 = 0 ;
39060 PyObject * obj2 = 0 ;
39061 PyObject * obj3 = 0 ;
39062 PyObject * obj4 = 0 ;
39063 PyObject * obj5 = 0 ;
39064 char *kwnames[] = {
39065 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39066 };
39067
39068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39071 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39072 if (PyErr_Occurred()) SWIG_fail;
39073 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39075 arg4 = (wxEdge) SWIG_AsInt(obj3);
39076 if (PyErr_Occurred()) SWIG_fail;
39077 if (obj4) {
39078 arg5 = (int) SWIG_AsInt(obj4);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 if (obj5) {
39082 arg6 = (int) SWIG_AsInt(obj5);
39083 if (PyErr_Occurred()) SWIG_fail;
39084 }
39085 {
39086 PyThreadState* __tstate = wxPyBeginAllowThreads();
39087 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39088
39089 wxPyEndAllowThreads(__tstate);
39090 if (PyErr_Occurred()) SWIG_fail;
39091 }
39092 Py_INCREF(Py_None); resultobj = Py_None;
39093 return resultobj;
39094 fail:
39095 return NULL;
39096 }
39097
39098
39099 static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39100 PyObject *resultobj;
39101 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39102 wxWindow *arg2 = (wxWindow *) 0 ;
39103 int arg3 = (int) 0 ;
39104 PyObject * obj0 = 0 ;
39105 PyObject * obj1 = 0 ;
39106 PyObject * obj2 = 0 ;
39107 char *kwnames[] = {
39108 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39109 };
39110
39111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39116 if (obj2) {
39117 arg3 = (int) SWIG_AsInt(obj2);
39118 if (PyErr_Occurred()) SWIG_fail;
39119 }
39120 {
39121 PyThreadState* __tstate = wxPyBeginAllowThreads();
39122 (arg1)->LeftOf(arg2,arg3);
39123
39124 wxPyEndAllowThreads(__tstate);
39125 if (PyErr_Occurred()) SWIG_fail;
39126 }
39127 Py_INCREF(Py_None); resultobj = Py_None;
39128 return resultobj;
39129 fail:
39130 return NULL;
39131 }
39132
39133
39134 static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39135 PyObject *resultobj;
39136 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39137 wxWindow *arg2 = (wxWindow *) 0 ;
39138 int arg3 = (int) 0 ;
39139 PyObject * obj0 = 0 ;
39140 PyObject * obj1 = 0 ;
39141 PyObject * obj2 = 0 ;
39142 char *kwnames[] = {
39143 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39144 };
39145
39146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39151 if (obj2) {
39152 arg3 = (int) SWIG_AsInt(obj2);
39153 if (PyErr_Occurred()) SWIG_fail;
39154 }
39155 {
39156 PyThreadState* __tstate = wxPyBeginAllowThreads();
39157 (arg1)->RightOf(arg2,arg3);
39158
39159 wxPyEndAllowThreads(__tstate);
39160 if (PyErr_Occurred()) SWIG_fail;
39161 }
39162 Py_INCREF(Py_None); resultobj = Py_None;
39163 return resultobj;
39164 fail:
39165 return NULL;
39166 }
39167
39168
39169 static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
39170 PyObject *resultobj;
39171 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39172 wxWindow *arg2 = (wxWindow *) 0 ;
39173 int arg3 = (int) 0 ;
39174 PyObject * obj0 = 0 ;
39175 PyObject * obj1 = 0 ;
39176 PyObject * obj2 = 0 ;
39177 char *kwnames[] = {
39178 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39179 };
39180
39181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39186 if (obj2) {
39187 arg3 = (int) SWIG_AsInt(obj2);
39188 if (PyErr_Occurred()) SWIG_fail;
39189 }
39190 {
39191 PyThreadState* __tstate = wxPyBeginAllowThreads();
39192 (arg1)->Above(arg2,arg3);
39193
39194 wxPyEndAllowThreads(__tstate);
39195 if (PyErr_Occurred()) SWIG_fail;
39196 }
39197 Py_INCREF(Py_None); resultobj = Py_None;
39198 return resultobj;
39199 fail:
39200 return NULL;
39201 }
39202
39203
39204 static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
39205 PyObject *resultobj;
39206 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39207 wxWindow *arg2 = (wxWindow *) 0 ;
39208 int arg3 = (int) 0 ;
39209 PyObject * obj0 = 0 ;
39210 PyObject * obj1 = 0 ;
39211 PyObject * obj2 = 0 ;
39212 char *kwnames[] = {
39213 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39214 };
39215
39216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39221 if (obj2) {
39222 arg3 = (int) SWIG_AsInt(obj2);
39223 if (PyErr_Occurred()) SWIG_fail;
39224 }
39225 {
39226 PyThreadState* __tstate = wxPyBeginAllowThreads();
39227 (arg1)->Below(arg2,arg3);
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_SameAs(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 = (int) 0 ;
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 *) "edge",(char *) "marg", NULL
39251 };
39252
39253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",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 if (obj3) {
39261 arg4 = (int) SWIG_AsInt(obj3);
39262 if (PyErr_Occurred()) SWIG_fail;
39263 }
39264 {
39265 PyThreadState* __tstate = wxPyBeginAllowThreads();
39266 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39267
39268 wxPyEndAllowThreads(__tstate);
39269 if (PyErr_Occurred()) SWIG_fail;
39270 }
39271 Py_INCREF(Py_None); resultobj = Py_None;
39272 return resultobj;
39273 fail:
39274 return NULL;
39275 }
39276
39277
39278 static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39279 PyObject *resultobj;
39280 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39281 wxWindow *arg2 = (wxWindow *) 0 ;
39282 int arg3 ;
39283 int arg4 ;
39284 PyObject * obj0 = 0 ;
39285 PyObject * obj1 = 0 ;
39286 PyObject * obj2 = 0 ;
39287 PyObject * obj3 = 0 ;
39288 char *kwnames[] = {
39289 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39290 };
39291
39292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39297 arg3 = (wxEdge) SWIG_AsInt(obj2);
39298 if (PyErr_Occurred()) SWIG_fail;
39299 arg4 = (int) SWIG_AsInt(obj3);
39300 if (PyErr_Occurred()) SWIG_fail;
39301 {
39302 PyThreadState* __tstate = wxPyBeginAllowThreads();
39303 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
39304
39305 wxPyEndAllowThreads(__tstate);
39306 if (PyErr_Occurred()) SWIG_fail;
39307 }
39308 Py_INCREF(Py_None); resultobj = Py_None;
39309 return resultobj;
39310 fail:
39311 return NULL;
39312 }
39313
39314
39315 static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
39316 PyObject *resultobj;
39317 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39318 int arg2 ;
39319 PyObject * obj0 = 0 ;
39320 PyObject * obj1 = 0 ;
39321 char *kwnames[] = {
39322 (char *) "self",(char *) "val", NULL
39323 };
39324
39325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
39326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39328 arg2 = (int) SWIG_AsInt(obj1);
39329 if (PyErr_Occurred()) SWIG_fail;
39330 {
39331 PyThreadState* __tstate = wxPyBeginAllowThreads();
39332 (arg1)->Absolute(arg2);
39333
39334 wxPyEndAllowThreads(__tstate);
39335 if (PyErr_Occurred()) SWIG_fail;
39336 }
39337 Py_INCREF(Py_None); resultobj = Py_None;
39338 return resultobj;
39339 fail:
39340 return NULL;
39341 }
39342
39343
39344 static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
39345 PyObject *resultobj;
39346 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39347 PyObject * obj0 = 0 ;
39348 char *kwnames[] = {
39349 (char *) "self", NULL
39350 };
39351
39352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
39353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39355 {
39356 PyThreadState* __tstate = wxPyBeginAllowThreads();
39357 (arg1)->Unconstrained();
39358
39359 wxPyEndAllowThreads(__tstate);
39360 if (PyErr_Occurred()) SWIG_fail;
39361 }
39362 Py_INCREF(Py_None); resultobj = Py_None;
39363 return resultobj;
39364 fail:
39365 return NULL;
39366 }
39367
39368
39369 static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
39370 PyObject *resultobj;
39371 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39372 PyObject * obj0 = 0 ;
39373 char *kwnames[] = {
39374 (char *) "self", NULL
39375 };
39376
39377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
39378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39380 {
39381 PyThreadState* __tstate = wxPyBeginAllowThreads();
39382 (arg1)->AsIs();
39383
39384 wxPyEndAllowThreads(__tstate);
39385 if (PyErr_Occurred()) SWIG_fail;
39386 }
39387 Py_INCREF(Py_None); resultobj = Py_None;
39388 return resultobj;
39389 fail:
39390 return NULL;
39391 }
39392
39393
39394 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
39395 PyObject *resultobj;
39396 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39397 wxWindow *result;
39398 PyObject * obj0 = 0 ;
39399 char *kwnames[] = {
39400 (char *) "self", NULL
39401 };
39402
39403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
39404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39406 {
39407 PyThreadState* __tstate = wxPyBeginAllowThreads();
39408 result = (wxWindow *)(arg1)->GetOtherWindow();
39409
39410 wxPyEndAllowThreads(__tstate);
39411 if (PyErr_Occurred()) SWIG_fail;
39412 }
39413 {
39414 resultobj = wxPyMake_wxObject(result);
39415 }
39416 return resultobj;
39417 fail:
39418 return NULL;
39419 }
39420
39421
39422 static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39423 PyObject *resultobj;
39424 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39425 int result;
39426 PyObject * obj0 = 0 ;
39427 char *kwnames[] = {
39428 (char *) "self", NULL
39429 };
39430
39431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
39432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39434 {
39435 PyThreadState* __tstate = wxPyBeginAllowThreads();
39436 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
39437
39438 wxPyEndAllowThreads(__tstate);
39439 if (PyErr_Occurred()) SWIG_fail;
39440 }
39441 resultobj = SWIG_FromInt((int)result);
39442 return resultobj;
39443 fail:
39444 return NULL;
39445 }
39446
39447
39448 static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39449 PyObject *resultobj;
39450 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39451 int arg2 ;
39452 PyObject * obj0 = 0 ;
39453 PyObject * obj1 = 0 ;
39454 char *kwnames[] = {
39455 (char *) "self",(char *) "which", NULL
39456 };
39457
39458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
39459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39461 arg2 = (wxEdge) SWIG_AsInt(obj1);
39462 if (PyErr_Occurred()) SWIG_fail;
39463 {
39464 PyThreadState* __tstate = wxPyBeginAllowThreads();
39465 (arg1)->SetEdge((wxEdge )arg2);
39466
39467 wxPyEndAllowThreads(__tstate);
39468 if (PyErr_Occurred()) SWIG_fail;
39469 }
39470 Py_INCREF(Py_None); resultobj = Py_None;
39471 return resultobj;
39472 fail:
39473 return NULL;
39474 }
39475
39476
39477 static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39478 PyObject *resultobj;
39479 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39480 int arg2 ;
39481 PyObject * obj0 = 0 ;
39482 PyObject * obj1 = 0 ;
39483 char *kwnames[] = {
39484 (char *) "self",(char *) "v", NULL
39485 };
39486
39487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
39488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39490 arg2 = (int) SWIG_AsInt(obj1);
39491 if (PyErr_Occurred()) SWIG_fail;
39492 {
39493 PyThreadState* __tstate = wxPyBeginAllowThreads();
39494 (arg1)->SetValue(arg2);
39495
39496 wxPyEndAllowThreads(__tstate);
39497 if (PyErr_Occurred()) SWIG_fail;
39498 }
39499 Py_INCREF(Py_None); resultobj = Py_None;
39500 return resultobj;
39501 fail:
39502 return NULL;
39503 }
39504
39505
39506 static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39507 PyObject *resultobj;
39508 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39509 int result;
39510 PyObject * obj0 = 0 ;
39511 char *kwnames[] = {
39512 (char *) "self", NULL
39513 };
39514
39515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
39516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39518 {
39519 PyThreadState* __tstate = wxPyBeginAllowThreads();
39520 result = (int)(arg1)->GetMargin();
39521
39522 wxPyEndAllowThreads(__tstate);
39523 if (PyErr_Occurred()) SWIG_fail;
39524 }
39525 resultobj = SWIG_FromInt((int)result);
39526 return resultobj;
39527 fail:
39528 return NULL;
39529 }
39530
39531
39532 static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39533 PyObject *resultobj;
39534 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39535 int arg2 ;
39536 PyObject * obj0 = 0 ;
39537 PyObject * obj1 = 0 ;
39538 char *kwnames[] = {
39539 (char *) "self",(char *) "m", NULL
39540 };
39541
39542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
39543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39545 arg2 = (int) SWIG_AsInt(obj1);
39546 if (PyErr_Occurred()) SWIG_fail;
39547 {
39548 PyThreadState* __tstate = wxPyBeginAllowThreads();
39549 (arg1)->SetMargin(arg2);
39550
39551 wxPyEndAllowThreads(__tstate);
39552 if (PyErr_Occurred()) SWIG_fail;
39553 }
39554 Py_INCREF(Py_None); resultobj = Py_None;
39555 return resultobj;
39556 fail:
39557 return NULL;
39558 }
39559
39560
39561 static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39562 PyObject *resultobj;
39563 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39564 int result;
39565 PyObject * obj0 = 0 ;
39566 char *kwnames[] = {
39567 (char *) "self", NULL
39568 };
39569
39570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
39571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39573 {
39574 PyThreadState* __tstate = wxPyBeginAllowThreads();
39575 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
39576
39577 wxPyEndAllowThreads(__tstate);
39578 if (PyErr_Occurred()) SWIG_fail;
39579 }
39580 resultobj = SWIG_FromInt((int)result);
39581 return resultobj;
39582 fail:
39583 return NULL;
39584 }
39585
39586
39587 static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
39588 PyObject *resultobj;
39589 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39590 int result;
39591 PyObject * obj0 = 0 ;
39592 char *kwnames[] = {
39593 (char *) "self", NULL
39594 };
39595
39596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
39597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39599 {
39600 PyThreadState* __tstate = wxPyBeginAllowThreads();
39601 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
39602
39603 wxPyEndAllowThreads(__tstate);
39604 if (PyErr_Occurred()) SWIG_fail;
39605 }
39606 resultobj = SWIG_FromInt((int)result);
39607 return resultobj;
39608 fail:
39609 return NULL;
39610 }
39611
39612
39613 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39614 PyObject *resultobj;
39615 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39616 int result;
39617 PyObject * obj0 = 0 ;
39618 char *kwnames[] = {
39619 (char *) "self", NULL
39620 };
39621
39622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
39623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39625 {
39626 PyThreadState* __tstate = wxPyBeginAllowThreads();
39627 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
39628
39629 wxPyEndAllowThreads(__tstate);
39630 if (PyErr_Occurred()) SWIG_fail;
39631 }
39632 resultobj = SWIG_FromInt((int)result);
39633 return resultobj;
39634 fail:
39635 return NULL;
39636 }
39637
39638
39639 static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39640 PyObject *resultobj;
39641 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39642 bool result;
39643 PyObject * obj0 = 0 ;
39644 char *kwnames[] = {
39645 (char *) "self", NULL
39646 };
39647
39648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
39649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39651 {
39652 PyThreadState* __tstate = wxPyBeginAllowThreads();
39653 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
39654
39655 wxPyEndAllowThreads(__tstate);
39656 if (PyErr_Occurred()) SWIG_fail;
39657 }
39658 {
39659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39660 }
39661 return resultobj;
39662 fail:
39663 return NULL;
39664 }
39665
39666
39667 static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39668 PyObject *resultobj;
39669 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39670 bool arg2 ;
39671 PyObject * obj0 = 0 ;
39672 PyObject * obj1 = 0 ;
39673 char *kwnames[] = {
39674 (char *) "self",(char *) "d", NULL
39675 };
39676
39677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
39678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39680 arg2 = (bool) SWIG_AsBool(obj1);
39681 if (PyErr_Occurred()) SWIG_fail;
39682 {
39683 PyThreadState* __tstate = wxPyBeginAllowThreads();
39684 (arg1)->SetDone(arg2);
39685
39686 wxPyEndAllowThreads(__tstate);
39687 if (PyErr_Occurred()) SWIG_fail;
39688 }
39689 Py_INCREF(Py_None); resultobj = Py_None;
39690 return resultobj;
39691 fail:
39692 return NULL;
39693 }
39694
39695
39696 static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39697 PyObject *resultobj;
39698 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39699 int result;
39700 PyObject * obj0 = 0 ;
39701 char *kwnames[] = {
39702 (char *) "self", NULL
39703 };
39704
39705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
39706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39708 {
39709 PyThreadState* __tstate = wxPyBeginAllowThreads();
39710 result = (int)(arg1)->GetRelationship();
39711
39712 wxPyEndAllowThreads(__tstate);
39713 if (PyErr_Occurred()) SWIG_fail;
39714 }
39715 resultobj = SWIG_FromInt((int)result);
39716 return resultobj;
39717 fail:
39718 return NULL;
39719 }
39720
39721
39722 static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39723 PyObject *resultobj;
39724 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39725 int arg2 ;
39726 PyObject * obj0 = 0 ;
39727 PyObject * obj1 = 0 ;
39728 char *kwnames[] = {
39729 (char *) "self",(char *) "r", NULL
39730 };
39731
39732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
39733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39735 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39736 if (PyErr_Occurred()) SWIG_fail;
39737 {
39738 PyThreadState* __tstate = wxPyBeginAllowThreads();
39739 (arg1)->SetRelationship((wxRelationship )arg2);
39740
39741 wxPyEndAllowThreads(__tstate);
39742 if (PyErr_Occurred()) SWIG_fail;
39743 }
39744 Py_INCREF(Py_None); resultobj = Py_None;
39745 return resultobj;
39746 fail:
39747 return NULL;
39748 }
39749
39750
39751 static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
39752 PyObject *resultobj;
39753 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39754 wxWindow *arg2 = (wxWindow *) 0 ;
39755 bool result;
39756 PyObject * obj0 = 0 ;
39757 PyObject * obj1 = 0 ;
39758 char *kwnames[] = {
39759 (char *) "self",(char *) "otherW", NULL
39760 };
39761
39762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
39763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39767 {
39768 PyThreadState* __tstate = wxPyBeginAllowThreads();
39769 result = (bool)(arg1)->ResetIfWin(arg2);
39770
39771 wxPyEndAllowThreads(__tstate);
39772 if (PyErr_Occurred()) SWIG_fail;
39773 }
39774 {
39775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39776 }
39777 return resultobj;
39778 fail:
39779 return NULL;
39780 }
39781
39782
39783 static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
39784 PyObject *resultobj;
39785 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39786 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
39787 wxWindow *arg3 = (wxWindow *) 0 ;
39788 bool result;
39789 PyObject * obj0 = 0 ;
39790 PyObject * obj1 = 0 ;
39791 PyObject * obj2 = 0 ;
39792 char *kwnames[] = {
39793 (char *) "self",(char *) "constraints",(char *) "win", NULL
39794 };
39795
39796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
39797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
39800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39801 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39803 {
39804 PyThreadState* __tstate = wxPyBeginAllowThreads();
39805 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
39806
39807 wxPyEndAllowThreads(__tstate);
39808 if (PyErr_Occurred()) SWIG_fail;
39809 }
39810 {
39811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39812 }
39813 return resultobj;
39814 fail:
39815 return NULL;
39816 }
39817
39818
39819 static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39820 PyObject *resultobj;
39821 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39822 int arg2 ;
39823 wxWindow *arg3 = (wxWindow *) 0 ;
39824 wxWindow *arg4 = (wxWindow *) 0 ;
39825 int result;
39826 PyObject * obj0 = 0 ;
39827 PyObject * obj1 = 0 ;
39828 PyObject * obj2 = 0 ;
39829 PyObject * obj3 = 0 ;
39830 char *kwnames[] = {
39831 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
39832 };
39833
39834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39837 arg2 = (wxEdge) SWIG_AsInt(obj1);
39838 if (PyErr_Occurred()) SWIG_fail;
39839 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39841 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
39842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39843 {
39844 PyThreadState* __tstate = wxPyBeginAllowThreads();
39845 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
39846
39847 wxPyEndAllowThreads(__tstate);
39848 if (PyErr_Occurred()) SWIG_fail;
39849 }
39850 resultobj = SWIG_FromInt((int)result);
39851 return resultobj;
39852 fail:
39853 return NULL;
39854 }
39855
39856
39857 static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
39858 PyObject *obj;
39859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39860 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
39861 Py_INCREF(obj);
39862 return Py_BuildValue((char *)"");
39863 }
39864 static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39865 PyObject *resultobj;
39866 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39867 wxIndividualLayoutConstraint *result;
39868 PyObject * obj0 = 0 ;
39869 char *kwnames[] = {
39870 (char *) "self", NULL
39871 };
39872
39873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
39874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39876 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
39877
39878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39879 return resultobj;
39880 fail:
39881 return NULL;
39882 }
39883
39884
39885 static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39886 PyObject *resultobj;
39887 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39888 wxIndividualLayoutConstraint *result;
39889 PyObject * obj0 = 0 ;
39890 char *kwnames[] = {
39891 (char *) "self", NULL
39892 };
39893
39894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
39895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39897 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
39898
39899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39900 return resultobj;
39901 fail:
39902 return NULL;
39903 }
39904
39905
39906 static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39907 PyObject *resultobj;
39908 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39909 wxIndividualLayoutConstraint *result;
39910 PyObject * obj0 = 0 ;
39911 char *kwnames[] = {
39912 (char *) "self", NULL
39913 };
39914
39915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
39916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39918 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
39919
39920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39921 return resultobj;
39922 fail:
39923 return NULL;
39924 }
39925
39926
39927 static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39928 PyObject *resultobj;
39929 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39930 wxIndividualLayoutConstraint *result;
39931 PyObject * obj0 = 0 ;
39932 char *kwnames[] = {
39933 (char *) "self", NULL
39934 };
39935
39936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
39937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39939 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
39940
39941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39942 return resultobj;
39943 fail:
39944 return NULL;
39945 }
39946
39947
39948 static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39949 PyObject *resultobj;
39950 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39951 wxIndividualLayoutConstraint *result;
39952 PyObject * obj0 = 0 ;
39953 char *kwnames[] = {
39954 (char *) "self", NULL
39955 };
39956
39957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
39958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39960 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
39961
39962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39963 return resultobj;
39964 fail:
39965 return NULL;
39966 }
39967
39968
39969 static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39970 PyObject *resultobj;
39971 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39972 wxIndividualLayoutConstraint *result;
39973 PyObject * obj0 = 0 ;
39974 char *kwnames[] = {
39975 (char *) "self", NULL
39976 };
39977
39978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
39979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
39980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39981 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
39982
39983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
39984 return resultobj;
39985 fail:
39986 return NULL;
39987 }
39988
39989
39990 static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
39991 PyObject *resultobj;
39992 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
39993 wxIndividualLayoutConstraint *result;
39994 PyObject * obj0 = 0 ;
39995 char *kwnames[] = {
39996 (char *) "self", NULL
39997 };
39998
39999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40002 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40003
40004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40005 return resultobj;
40006 fail:
40007 return NULL;
40008 }
40009
40010
40011 static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40012 PyObject *resultobj;
40013 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40014 wxIndividualLayoutConstraint *result;
40015 PyObject * obj0 = 0 ;
40016 char *kwnames[] = {
40017 (char *) "self", NULL
40018 };
40019
40020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40023 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40024
40025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40026 return resultobj;
40027 fail:
40028 return NULL;
40029 }
40030
40031
40032 static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40033 PyObject *resultobj;
40034 wxLayoutConstraints *result;
40035 char *kwnames[] = {
40036 NULL
40037 };
40038
40039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40040 {
40041 PyThreadState* __tstate = wxPyBeginAllowThreads();
40042 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40043
40044 wxPyEndAllowThreads(__tstate);
40045 if (PyErr_Occurred()) SWIG_fail;
40046 }
40047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40048 return resultobj;
40049 fail:
40050 return NULL;
40051 }
40052
40053
40054 static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40055 PyObject *resultobj;
40056 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40057 wxWindow *arg2 = (wxWindow *) 0 ;
40058 int *arg3 = (int *) 0 ;
40059 bool result;
40060 int temp3 ;
40061 PyObject * obj0 = 0 ;
40062 PyObject * obj1 = 0 ;
40063 char *kwnames[] = {
40064 (char *) "self",(char *) "win", NULL
40065 };
40066
40067 arg3 = &temp3;
40068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40073 {
40074 PyThreadState* __tstate = wxPyBeginAllowThreads();
40075 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40076
40077 wxPyEndAllowThreads(__tstate);
40078 if (PyErr_Occurred()) SWIG_fail;
40079 }
40080 {
40081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40082 }
40083 {
40084 PyObject *o = PyInt_FromLong((long) (*arg3));
40085 resultobj = t_output_helper(resultobj,o);
40086 }
40087 return resultobj;
40088 fail:
40089 return NULL;
40090 }
40091
40092
40093 static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
40094 PyObject *resultobj;
40095 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40096 bool result;
40097 PyObject * obj0 = 0 ;
40098 char *kwnames[] = {
40099 (char *) "self", NULL
40100 };
40101
40102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40105 {
40106 PyThreadState* __tstate = wxPyBeginAllowThreads();
40107 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40108
40109 wxPyEndAllowThreads(__tstate);
40110 if (PyErr_Occurred()) SWIG_fail;
40111 }
40112 {
40113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40114 }
40115 return resultobj;
40116 fail:
40117 return NULL;
40118 }
40119
40120
40121 static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
40122 PyObject *obj;
40123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40124 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40125 Py_INCREF(obj);
40126 return Py_BuildValue((char *)"");
40127 }
40128 static PyMethodDef SwigMethods[] = {
40129 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
40130 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
40131 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
40132 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
40133 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
40134 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
40135 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
40136 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
40137 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
40138 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
40139 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
40140 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
40141 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
40142 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
40143 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
40144 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
40145 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
40146 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
40147 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
40148 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
40149 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
40150 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
40151 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS },
40152 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS },
40153 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
40154 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
40155 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
40156 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
40157 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
40158 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
40159 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
40160 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
40161 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
40162 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
40163 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
40164 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
40165 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
40166 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
40167 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
40168 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
40169 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
40170 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
40171 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
40172 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
40173 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
40174 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
40175 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
40176 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
40177 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
40178 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
40179 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
40180 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
40181 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
40182 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
40183 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
40184 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
40185 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
40186 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
40187 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
40188 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
40189 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
40190 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
40191 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
40192 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
40193 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
40194 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
40195 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
40196 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
40197 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
40198 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
40199 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
40200 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
40201 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
40202 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
40203 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
40204 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
40205 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
40206 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
40207 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
40208 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
40209 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
40210 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
40211 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
40212 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
40213 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
40214 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
40215 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
40216 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
40217 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
40218 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
40219 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
40220 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
40221 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
40222 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
40223 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
40224 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
40225 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
40226 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
40227 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
40228 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
40229 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
40230 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
40231 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
40232 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
40233 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
40234 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
40235 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
40236 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
40237 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
40238 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
40239 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
40240 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
40241 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40242 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
40243 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40244 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
40245 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
40246 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
40247 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
40248 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
40249 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
40250 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
40251 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
40252 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
40253 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
40254 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
40255 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
40256 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
40257 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
40258 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
40259 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
40260 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
40261 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
40262 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
40263 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
40264 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
40265 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
40266 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
40267 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
40268 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
40269 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
40270 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
40271 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
40272 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
40273 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
40274 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
40275 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
40276 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
40277 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
40278 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
40279 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
40280 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
40281 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
40282 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
40283 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
40284 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
40285 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40286 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
40287 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40288 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
40289 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
40290 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
40291 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
40292 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40293 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40294 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40295 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40296 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40297 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
40298 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
40299 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40300 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
40301 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
40302 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
40303 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
40304 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
40305 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
40306 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
40307 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
40308 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
40309 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
40310 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
40311 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
40312 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
40313 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
40314 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
40315 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
40316 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40317 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40318 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
40319 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
40320 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40321 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40322 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40323 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40324 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
40325 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
40326 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
40327 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
40328 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
40329 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
40330 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40331 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40332 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40333 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40334 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
40335 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
40336 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
40337 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
40338 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40339 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
40340 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
40341 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
40342 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
40343 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
40344 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
40345 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
40346 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
40347 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40348 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
40349 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
40350 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
40351 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
40352 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
40353 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
40354 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
40355 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
40356 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
40357 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
40358 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
40359 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
40360 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
40361 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
40362 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
40363 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
40364 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
40365 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
40366 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
40367 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
40368 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
40369 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40370 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
40371 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
40372 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
40373 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
40374 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
40375 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
40376 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
40377 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
40378 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
40379 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
40380 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
40381 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
40382 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
40383 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
40384 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
40385 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
40386 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
40387 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
40388 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
40389 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40390 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40391 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
40392 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
40393 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40394 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40395 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
40396 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
40397 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
40398 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
40399 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
40400 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
40401 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
40402 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
40403 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
40404 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
40405 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
40406 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
40407 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
40408 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
40409 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
40410 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
40411 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
40412 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
40413 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
40414 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
40415 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
40416 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
40417 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
40418 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
40419 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
40420 { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
40421 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
40422 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
40423 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
40424 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
40425 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
40426 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
40427 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
40428 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
40429 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
40430 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
40431 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
40432 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
40433 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
40434 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
40435 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
40436 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
40437 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
40438 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
40439 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
40440 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
40441 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
40442 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
40443 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
40444 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
40445 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40446 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
40447 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40448 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40449 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40450 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
40451 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
40452 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40453 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
40454 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
40455 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
40456 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
40457 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
40458 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
40459 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
40460 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
40461 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
40462 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
40463 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
40464 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
40465 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
40466 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
40467 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
40468 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
40469 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
40470 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
40471 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
40472 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
40473 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
40474 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
40475 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40476 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40477 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
40478 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40479 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40480 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
40481 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
40482 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
40483 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
40484 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
40485 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
40486 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
40487 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
40488 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
40489 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
40490 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
40491 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
40492 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
40493 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
40494 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40495 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
40496 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
40497 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
40498 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
40499 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40500 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40501 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40502 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40503 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
40504 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
40505 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40506 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40507 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40508 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40509 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
40510 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
40511 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
40512 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
40513 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
40514 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
40515 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
40516 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
40517 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
40518 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40519 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40520 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40521 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40522 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
40523 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
40524 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
40525 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
40526 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
40527 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
40528 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
40529 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
40530 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
40531 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
40532 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
40533 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
40534 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
40535 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
40536 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
40537 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
40538 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40539 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40540 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
40541 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40542 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40543 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
40544 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
40545 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
40546 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
40547 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40548 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40549 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40550 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40551 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
40552 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
40553 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
40554 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
40555 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
40556 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
40557 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40558 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40559 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40560 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40561 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40562 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40563 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40564 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40565 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
40566 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
40567 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
40568 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
40569 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
40570 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
40571 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
40572 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
40573 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40574 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40575 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
40576 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
40577 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
40578 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
40579 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
40580 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40581 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40582 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40583 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40584 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
40585 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
40586 { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS },
40587 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
40588 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
40589 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40590 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40591 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40592 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40593 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40594 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40595 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40596 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40597 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
40598 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
40599 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40600 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40601 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40602 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40603 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40604 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40605 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40606 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40607 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
40608 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
40609 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
40610 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
40611 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
40612 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
40613 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
40614 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
40615 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
40616 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40617 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40618 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
40619 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
40620 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
40621 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40622 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40623 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
40624 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
40625 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40626 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40627 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40628 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40629 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
40630 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
40631 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40632 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40633 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
40634 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
40635 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
40636 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
40637 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
40638 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
40639 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
40640 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
40641 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
40642 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40643 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
40644 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
40645 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
40646 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40647 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
40648 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
40649 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
40650 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
40651 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
40652 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
40653 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
40654 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
40655 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
40656 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
40657 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
40658 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
40659 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40660 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40661 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40662 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
40663 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
40664 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
40665 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
40666 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
40667 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
40668 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
40669 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
40670 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
40671 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
40672 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
40673 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
40674 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
40675 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40676 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
40677 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
40678 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
40679 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
40680 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
40681 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
40682 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
40683 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
40684 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
40685 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
40686 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
40687 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
40688 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
40689 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40690 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40691 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
40692 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
40693 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40694 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40695 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
40696 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
40697 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
40698 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
40699 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
40700 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
40701 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
40702 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
40703 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
40704 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40705 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40706 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
40707 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
40708 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40709 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40710 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
40711 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
40712 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
40713 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
40714 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
40715 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
40716 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40717 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40718 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
40719 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
40720 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40721 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
40722 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
40723 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40724 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
40725 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
40726 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40727 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40728 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
40729 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
40730 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
40731 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
40732 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40733 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40734 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
40735 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
40736 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
40737 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
40738 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40739 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40740 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
40741 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40742 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40743 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40744 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40745 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
40746 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
40747 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
40748 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40749 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
40750 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
40751 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
40752 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
40753 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
40754 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
40755 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
40756 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40757 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
40758 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
40759 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
40760 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
40761 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
40762 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
40763 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
40764 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
40765 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
40766 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
40767 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
40768 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
40769 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
40770 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
40771 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
40772 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
40773 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
40774 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
40775 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
40776 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
40777 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
40778 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
40779 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
40780 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
40781 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
40782 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
40783 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
40784 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
40785 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
40786 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
40787 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
40788 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
40789 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
40790 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
40791 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
40792 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
40793 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
40794 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
40795 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
40796 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
40797 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
40798 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
40799 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
40800 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
40801 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
40802 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
40803 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
40804 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
40805 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40806 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40807 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
40808 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
40809 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
40810 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
40811 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
40812 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS },
40813 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS },
40814 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS },
40815 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS },
40816 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS },
40817 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS },
40818 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS },
40819 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
40820 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
40821 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
40822 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
40823 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
40824 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
40825 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
40826 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
40827 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
40828 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
40829 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
40830 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
40831 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
40832 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
40833 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
40834 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
40835 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
40836 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
40837 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
40838 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
40839 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
40840 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
40841 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
40842 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
40843 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
40844 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
40845 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
40846 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
40847 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
40848 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
40849 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
40850 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
40851 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40852 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
40853 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
40854 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
40855 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
40856 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
40857 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
40858 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
40859 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
40860 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
40861 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
40862 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
40863 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
40864 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
40865 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
40866 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
40867 { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS },
40868 { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS },
40869 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
40870 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
40871 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
40872 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
40873 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
40874 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS },
40875 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
40876 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
40877 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
40878 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
40879 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
40880 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
40881 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
40882 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
40883 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
40884 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
40885 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
40886 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
40887 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
40888 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
40889 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
40890 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
40891 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
40892 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
40893 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
40894 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
40895 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
40896 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
40897 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
40898 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
40899 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
40900 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
40901 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
40902 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
40903 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
40904 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
40905 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
40906 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
40907 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
40908 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
40909 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
40910 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
40911 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
40912 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
40913 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
40914 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
40915 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
40916 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
40917 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
40918 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
40919 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS },
40920 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
40921 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
40922 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS },
40923 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40924 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
40925 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
40926 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
40927 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
40928 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
40929 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
40930 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
40931 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
40932 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
40933 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
40934 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
40935 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
40936 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
40937 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
40938 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
40939 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
40940 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
40941 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
40942 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
40943 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
40944 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
40945 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
40946 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
40947 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
40948 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
40949 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
40950 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
40951 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
40952 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40953 { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40954 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
40955 { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS },
40956 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
40957 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
40958 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
40959 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
40960 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
40961 { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS },
40962 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
40963 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
40964 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
40965 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
40966 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
40967 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
40968 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
40969 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
40970 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
40971 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
40972 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
40973 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
40974 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
40975 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS },
40976 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
40977 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
40978 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
40979 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
40980 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
40981 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
40982 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
40983 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
40984 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
40985 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
40986 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
40987 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
40988 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
40989 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
40990 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
40991 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
40992 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
40993 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
40994 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
40995 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
40996 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
40997 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
40998 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
40999 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
41000 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
41001 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
41002 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
41003 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41004 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41005 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
41006 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
41007 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
41008 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
41009 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41010 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41011 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS },
41012 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
41013 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
41014 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41015 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41016 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
41017 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
41018 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
41019 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
41020 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
41021 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
41022 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
41023 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
41024 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
41025 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
41026 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
41027 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
41028 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
41029 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41030 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
41031 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
41032 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
41033 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
41034 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
41035 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
41036 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
41037 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
41038 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
41039 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
41040 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
41041 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
41042 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
41043 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
41044 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
41045 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
41046 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
41047 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
41048 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
41049 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
41050 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
41051 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
41052 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
41053 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
41054 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
41055 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
41056 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
41057 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
41058 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
41059 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
41060 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
41061 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
41062 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
41063 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
41064 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41065 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
41066 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
41067 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
41068 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
41069 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41070 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41071 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
41072 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
41073 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41074 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41075 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41076 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41077 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
41078 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
41079 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
41080 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
41081 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
41082 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
41083 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
41084 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
41085 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
41086 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
41087 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
41088 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
41089 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
41090 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
41091 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
41092 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
41093 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
41094 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
41095 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
41096 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
41097 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
41098 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
41099 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
41100 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
41101 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
41102 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
41103 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41104 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
41105 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
41106 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41107 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41108 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
41109 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
41110 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
41111 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
41112 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
41113 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
41114 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
41115 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
41116 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
41117 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
41118 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
41119 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
41120 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
41121 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
41122 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
41123 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
41124 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS },
41125 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
41126 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
41127 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
41128 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
41129 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
41130 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
41131 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41132 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
41133 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
41134 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
41135 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
41136 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
41137 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
41138 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
41139 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
41140 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
41141 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
41142 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
41143 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
41144 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
41145 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
41146 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
41147 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
41148 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
41149 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41150 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
41151 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
41152 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
41153 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
41154 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
41155 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
41156 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
41157 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
41158 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
41159 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
41160 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
41161 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
41162 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
41163 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
41164 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
41165 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
41166 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
41167 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
41168 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
41169 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
41170 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41171 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41172 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41173 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41174 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
41175 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
41176 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
41177 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
41178 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41179 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
41180 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
41181 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
41182 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
41183 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
41184 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
41185 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
41186 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
41187 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
41188 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
41189 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
41190 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
41191 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
41192 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
41193 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
41194 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
41195 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
41196 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
41197 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
41198 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
41199 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
41200 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
41201 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
41202 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
41203 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
41204 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
41205 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
41206 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
41207 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
41208 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
41209 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
41210 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41211 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
41212 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
41213 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
41214 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41215 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
41216 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
41217 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41218 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41219 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41220 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
41221 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
41222 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
41223 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41224 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41225 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
41226 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41227 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
41228 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
41229 { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS },
41230 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
41231 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
41232 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
41233 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
41234 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41235 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
41236 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
41237 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
41238 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
41239 { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41240 { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41241 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
41242 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
41243 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
41244 { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41245 { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41246 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
41247 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
41248 { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41249 { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41250 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
41251 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
41252 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
41253 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
41254 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
41255 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
41256 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
41257 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
41258 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
41259 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
41260 { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41261 { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41262 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
41263 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
41264 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
41265 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
41266 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41267 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41268 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41269 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41270 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
41271 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
41272 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
41273 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
41274 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
41275 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
41276 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
41277 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
41278 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
41279 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
41280 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
41281 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
41282 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
41283 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
41284 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
41285 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
41286 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
41287 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
41288 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
41289 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
41290 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
41291 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
41292 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
41293 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
41294 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41295 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41296 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41297 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
41298 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
41299 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
41300 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
41301 { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS },
41302 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
41303 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
41304 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
41305 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
41306 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
41307 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
41308 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41309 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41310 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41311 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
41312 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
41313 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
41314 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
41315 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
41316 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
41317 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
41318 { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS },
41319 { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41320 { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41321 { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS },
41322 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
41323 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
41324 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
41325 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
41326 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
41327 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
41328 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
41329 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
41330 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
41331 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
41332 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
41333 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
41334 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
41335 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
41336 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
41337 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
41338 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
41339 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
41340 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
41341 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
41342 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
41343 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
41344 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
41345 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
41346 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
41347 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
41348 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
41349 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
41350 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
41351 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
41352 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
41353 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
41354 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
41355 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
41356 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
41357 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
41358 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
41359 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
41360 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
41361 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
41362 { NULL, NULL }
41363 };
41364
41365
41366 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41367
41368 static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
41369 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
41370 }
41371 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
41372 return (void *)((wxSizer *) ((wxBoxSizer *) x));
41373 }
41374 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
41375 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
41376 }
41377 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
41378 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41379 }
41380 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
41381 return (void *)((wxSizer *) ((wxGridSizer *) x));
41382 }
41383 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
41384 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
41385 }
41386 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
41387 return (void *)((wxSizer *) ((wxPySizer *) x));
41388 }
41389 static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
41390 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
41391 }
41392 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41393 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41394 }
41395 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41396 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41397 }
41398 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41399 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41400 }
41401 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41402 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41403 }
41404 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41405 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41406 }
41407 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41408 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41409 }
41410 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41411 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41412 }
41413 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41414 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41415 }
41416 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41417 return (void *)((wxEvent *) ((wxPyEvent *) x));
41418 }
41419 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41420 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41421 }
41422 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41423 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41424 }
41425 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41426 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41427 }
41428 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41429 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41430 }
41431 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41432 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41433 }
41434 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41435 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41436 }
41437 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41438 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41439 }
41440 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41441 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41442 }
41443 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41444 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41445 }
41446 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41447 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41448 }
41449 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41450 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41451 }
41452 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41453 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41454 }
41455 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41456 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41457 }
41458 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41459 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41460 }
41461 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41462 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41463 }
41464 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41465 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41466 }
41467 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41468 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41469 }
41470 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41471 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41472 }
41473 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41474 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41475 }
41476 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41477 return (void *)((wxEvent *) ((wxShowEvent *) x));
41478 }
41479 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41480 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41481 }
41482 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41483 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41484 }
41485 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41486 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41487 }
41488 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41489 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41490 }
41491 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41492 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41493 }
41494 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41495 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41496 }
41497 static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
41498 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
41499 }
41500 static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
41501 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
41502 }
41503 static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
41504 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
41505 }
41506 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41507 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41508 }
41509 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41510 return (void *)((wxControl *) ((wxControlWithItems *) x));
41511 }
41512 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41513 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41514 }
41515 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41516 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41517 }
41518 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41519 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41520 }
41521 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41522 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41523 }
41524 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41525 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41526 }
41527 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41528 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41529 }
41530 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41531 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41532 }
41533 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41534 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41535 }
41536 static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
41537 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
41538 }
41539 static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
41540 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
41541 }
41542 static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
41543 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
41544 }
41545 static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
41546 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
41547 }
41548 static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
41549 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
41550 }
41551 static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
41552 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41553 }
41554 static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
41555 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
41556 }
41557 static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
41558 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
41559 }
41560 static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
41561 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41562 }
41563 static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
41564 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41565 }
41566 static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
41567 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
41568 }
41569 static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
41570 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
41571 }
41572 static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
41573 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
41574 }
41575 static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
41576 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
41577 }
41578 static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
41579 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
41580 }
41581 static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
41582 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
41583 }
41584 static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
41585 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
41586 }
41587 static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
41588 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
41589 }
41590 static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
41591 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
41592 }
41593 static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
41594 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
41595 }
41596 static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
41597 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
41598 }
41599 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
41600 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
41601 }
41602 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
41603 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
41604 }
41605 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
41606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
41607 }
41608 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41609 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41610 }
41611 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41612 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41613 }
41614 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41615 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41616 }
41617 static void *_p_wxValidatorTo_p_wxObject(void *x) {
41618 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41619 }
41620 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41621 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41622 }
41623 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
41624 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
41625 }
41626 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
41627 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
41628 }
41629 static void *_p_wxSizerTo_p_wxObject(void *x) {
41630 return (void *)((wxObject *) ((wxSizer *) x));
41631 }
41632 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
41633 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
41634 }
41635 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
41636 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
41637 }
41638 static void *_p_wxMenuTo_p_wxObject(void *x) {
41639 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
41640 }
41641 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
41642 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
41643 }
41644 static void *_p_wxImageTo_p_wxObject(void *x) {
41645 return (void *)((wxObject *) ((wxImage *) x));
41646 }
41647 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
41648 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
41649 }
41650 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
41651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
41652 }
41653 static void *_p_wxPyEventTo_p_wxObject(void *x) {
41654 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
41655 }
41656 static void *_p_wxWindowTo_p_wxObject(void *x) {
41657 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
41658 }
41659 static void *_p_wxControlTo_p_wxObject(void *x) {
41660 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
41661 }
41662 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
41663 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
41664 }
41665 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
41666 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
41667 }
41668 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
41669 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
41670 }
41671 static void *_p_wxPyAppTo_p_wxObject(void *x) {
41672 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41673 }
41674 static void *_p_wxEventTo_p_wxObject(void *x) {
41675 return (void *)((wxObject *) ((wxEvent *) x));
41676 }
41677 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
41678 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
41679 }
41680 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
41681 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
41682 }
41683 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
41684 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
41685 }
41686 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
41687 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
41688 }
41689 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
41690 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
41691 }
41692 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
41693 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
41694 }
41695 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
41696 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
41697 }
41698 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
41699 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
41700 }
41701 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
41702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41703 }
41704 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
41705 return (void *)((wxObject *) ((wxEvtHandler *) x));
41706 }
41707 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
41708 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
41709 }
41710 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
41711 return (void *)((wxObject *) ((wxImageHandler *) x));
41712 }
41713 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
41714 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
41715 }
41716 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
41717 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
41718 }
41719 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
41720 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41721 }
41722 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
41723 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41724 }
41725 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
41726 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
41727 }
41728 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
41729 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
41730 }
41731 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
41732 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
41733 }
41734 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
41735 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
41736 }
41737 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
41738 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
41739 }
41740 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
41741 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
41742 }
41743 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
41744 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
41745 }
41746 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
41747 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
41748 }
41749 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
41750 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
41751 }
41752 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
41753 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
41754 }
41755 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
41756 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41757 }
41758 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
41759 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
41760 }
41761 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
41762 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
41763 }
41764 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
41765 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
41766 }
41767 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
41768 return (void *)((wxObject *) ((wxFileSystem *) x));
41769 }
41770 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
41771 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
41772 }
41773 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
41774 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
41775 }
41776 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
41777 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
41778 }
41779 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
41780 return (void *)((wxObject *) ((wxSizerItem *) x));
41781 }
41782 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
41783 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
41784 }
41785 static void *_p_wxShowEventTo_p_wxObject(void *x) {
41786 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
41787 }
41788 static void *_p_wxFSFileTo_p_wxObject(void *x) {
41789 return (void *)((wxObject *) ((wxFSFile *) x));
41790 }
41791 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
41792 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
41793 }
41794 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
41795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
41796 }
41797 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
41798 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
41799 }
41800 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
41801 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
41802 }
41803 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
41804 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41805 }
41806 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
41807 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41808 }
41809 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
41810 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
41811 }
41812 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
41813 return (void *)((wxObject *) ((wxMenuItem *) x));
41814 }
41815 static void *_p_wxPySizerTo_p_wxObject(void *x) {
41816 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
41817 }
41818 static void *_p_wxControlTo_p_wxWindow(void *x) {
41819 return (void *)((wxWindow *) ((wxControl *) x));
41820 }
41821 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
41822 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
41823 }
41824 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
41825 return (void *)((wxWindow *) ((wxMenuBar *) x));
41826 }
41827 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
41828 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
41829 }
41830 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
41831 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
41832 }
41833 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
41834 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
41835 }
41836 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
41837 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
41838 }
41839 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
41840 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41841 }
41842 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
41843 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
41844 }
41845 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
41846 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
41847 }
41848 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
41849 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
41850 }
41851 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
41852 return (void *)((wxValidator *) ((wxPyValidator *) x));
41853 }
41854 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}};
41855 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}};
41856 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}};
41857 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}};
41858 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}};
41859 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}};
41860 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}};
41861 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}};
41862 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}};
41863 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}};
41864 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}};
41865 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}};
41866 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}};
41867 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}};
41868 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}};
41869 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}};
41870 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}};
41871 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}};
41872 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}};
41873 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}};
41874 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}};
41875 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}};
41876 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}};
41877 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}};
41878 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}};
41879 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}};
41880 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}};
41881 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}};
41882 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}};
41883 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}};
41884 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}};
41885 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}};
41886 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}};
41887 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}};
41888 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}};
41889 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}};
41890 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}};
41891 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}};
41892 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}};
41893 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}};
41894 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}};
41895 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}};
41896 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}};
41897 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}};
41898 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}};
41899 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}};
41900 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}};
41901 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}};
41902 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}};
41903 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}};
41904 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}};
41905 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}};
41906 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}};
41907 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}};
41908 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}};
41909 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}};
41910 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}};
41911 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}};
41912 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}};
41913 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}};
41914 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}};
41915 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}};
41916 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}};
41917 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}};
41918 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}};
41919 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}};
41920 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}};
41921 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}};
41922 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}};
41923 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}};
41924 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}};
41925 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}};
41926 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}};
41927 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}};
41928 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}};
41929 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}};
41930 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}};
41931 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}};
41932 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}};
41933 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}};
41934 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}};
41935 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}};
41936 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}};
41937 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}};
41938 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}};
41939 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}};
41940 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}};
41941 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}};
41942 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}};
41943 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}};
41944 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}};
41945 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}};
41946 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}};
41947 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}};
41948 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}};
41949 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}};
41950 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}};
41951 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}};
41952 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}};
41953 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}};
41954 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}};
41955 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}};
41956 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}};
41957 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}};
41958 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}};
41959 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}};
41960 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}};
41961 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}};
41962 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}};
41963 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}};
41964 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}};
41965 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}};
41966 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}};
41967 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}};
41968 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}};
41969
41970 static swig_type_info *swig_types_initial[] = {
41971 _swigt__p_wxLayoutConstraints,
41972 _swigt__p_wxRealPoint,
41973 _swigt__p_wxSizerItem,
41974 _swigt__p_wxGBSizerItem,
41975 _swigt__p_wxScrollEvent,
41976 _swigt__p_wxIndividualLayoutConstraint,
41977 _swigt__p_wxSizer,
41978 _swigt__p_wxBoxSizer,
41979 _swigt__p_wxStaticBoxSizer,
41980 _swigt__p_wxGridBagSizer,
41981 _swigt__p_wxAcceleratorEntry,
41982 _swigt__p_wxUpdateUIEvent,
41983 _swigt__p_wxMenu,
41984 _swigt__p_wxEvent,
41985 _swigt__p_wxGridSizer,
41986 _swigt__p_wxFlexGridSizer,
41987 _swigt__p_wxInitDialogEvent,
41988 _swigt__p_wxItemContainer,
41989 _swigt__p_wxNcPaintEvent,
41990 _swigt__p_wxPaintEvent,
41991 _swigt__p_wxSysColourChangedEvent,
41992 _swigt__p_wxMouseCaptureChangedEvent,
41993 _swigt__p_wxDisplayChangedEvent,
41994 _swigt__p_wxPaletteChangedEvent,
41995 _swigt__p_wxControl,
41996 _swigt__p_wxFont,
41997 _swigt__p_wxMenuBarBase,
41998 _swigt__p_wxSetCursorEvent,
41999 _swigt__p_wxFSFile,
42000 _swigt__p_wxCaret,
42001 _swigt__p_wxRegion,
42002 _swigt__p_wxPoint2D,
42003 _swigt__p_int,
42004 _swigt__p_wxSize,
42005 _swigt__p_wxDC,
42006 _swigt__p_wxPySizer,
42007 _swigt__p_wxVisualAttributes,
42008 _swigt__p_wxNotifyEvent,
42009 _swigt__p_wxPyEvent,
42010 _swigt__p_wxPropagationDisabler,
42011 _swigt__p_wxAppTraits,
42012 _swigt__p_wxArrayString,
42013 _swigt__p_wxShowEvent,
42014 _swigt__p_wxToolTip,
42015 _swigt__p_wxMaximizeEvent,
42016 _swigt__p_wxIconizeEvent,
42017 _swigt__p_wxActivateEvent,
42018 _swigt__p_wxMoveEvent,
42019 _swigt__p_wxSizeEvent,
42020 _swigt__p_wxQueryNewPaletteEvent,
42021 _swigt__p_wxWindowCreateEvent,
42022 _swigt__p_wxIdleEvent,
42023 _swigt__p_wxMenuItem,
42024 _swigt__p_wxStaticBox,
42025 _swigt__p_long,
42026 _swigt__p_wxTIFFHandler,
42027 _swigt__p_wxXPMHandler,
42028 _swigt__p_wxPNMHandler,
42029 _swigt__p_wxJPEGHandler,
42030 _swigt__p_wxPCXHandler,
42031 _swigt__p_wxGIFHandler,
42032 _swigt__p_wxPNGHandler,
42033 _swigt__p_wxANIHandler,
42034 _swigt__p_wxMemoryFSHandler,
42035 _swigt__p_wxEvtHandler,
42036 _swigt__p_wxCURHandler,
42037 _swigt__p_wxICOHandler,
42038 _swigt__p_wxBMPHandler,
42039 _swigt__p_wxImageHandler,
42040 _swigt__p_wxFileSystemHandler,
42041 _swigt__p_wxPyFileSystemHandler,
42042 _swigt__p_wxInternetFSHandler,
42043 _swigt__p_wxZipFSHandler,
42044 _swigt__p_wxRect,
42045 _swigt__p_wxGBSpan,
42046 _swigt__p_wxPropagateOnce,
42047 _swigt__p_wxAcceleratorTable,
42048 _swigt__p_char,
42049 _swigt__p_wxGBPosition,
42050 _swigt__p_wxImage,
42051 _swigt__p_wxFrame,
42052 _swigt__p_wxScrollWinEvent,
42053 _swigt__p_wxImageHistogram,
42054 _swigt__p_byte,
42055 _swigt__p_wxPoint,
42056 _swigt__p_wxCursor,
42057 _swigt__p_wxObject,
42058 _swigt__p_wxPyInputStream,
42059 _swigt__p_wxOutputStream,
42060 _swigt__p_wxInputStream,
42061 _swigt__p_wxDateTime,
42062 _swigt__p_wxKeyEvent,
42063 _swigt__p_wxNavigationKeyEvent,
42064 _swigt__p_wxWindowDestroyEvent,
42065 _swigt__p_wxWindow,
42066 _swigt__p_wxMenuBar,
42067 _swigt__p_wxFileSystem,
42068 _swigt__p_wxBitmap,
42069 _swigt__p_wxMenuEvent,
42070 _swigt__p_wxContextMenuEvent,
42071 _swigt__p_unsigned_char,
42072 _swigt__p_wxCloseEvent,
42073 _swigt__p_wxEraseEvent,
42074 _swigt__p_wxMouseEvent,
42075 _swigt__p_wxPyApp,
42076 _swigt__p_wxCommandEvent,
42077 _swigt__p_wxPyCommandEvent,
42078 _swigt__p_wxPyDropTarget,
42079 _swigt__p_wxChildFocusEvent,
42080 _swigt__p_wxFocusEvent,
42081 _swigt__p_wxDropFilesEvent,
42082 _swigt__p_wxControlWithItems,
42083 _swigt__p_wxColour,
42084 _swigt__p_wxValidator,
42085 _swigt__p_wxPyValidator,
42086 0
42087 };
42088
42089
42090 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42091
42092 static swig_const_info swig_const_table[] = {
42093 {0}};
42094
42095 #ifdef __cplusplus
42096 }
42097 #endif
42098
42099 #ifdef __cplusplus
42100 extern "C"
42101 #endif
42102 SWIGEXPORT(void) SWIG_init(void) {
42103 static PyObject *SWIG_globals = 0;
42104 static int typeinit = 0;
42105 PyObject *m, *d;
42106 int i;
42107 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42108 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42109 d = PyModule_GetDict(m);
42110
42111 if (!typeinit) {
42112 for (i = 0; swig_types_initial[i]; i++) {
42113 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42114 }
42115 typeinit = 1;
42116 }
42117 SWIG_InstallConstants(d,swig_const_table);
42118
42119
42120 #ifndef wxPyUSE_EXPORT
42121 // Make our API structure a CObject so other modules can import it
42122 // from this module.
42123 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42124 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42125 Py_XDECREF(cobj);
42126 #endif
42127
42128 PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND));
42129 PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL));
42130 PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL));
42131 PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION));
42132 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER));
42133 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER));
42134 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER));
42135 PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER));
42136 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER));
42137 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
42138 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
42139 PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
42140 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
42141 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
42142 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
42143 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
42144 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
42145 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
42146 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
42147 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
42148 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
42149 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE));
42150 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE));
42151 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN));
42152 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS));
42153 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB));
42154 PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED));
42155 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE));
42156 PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED));
42157 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH));
42158 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB));
42159 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB));
42160 PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT));
42161 PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE));
42162 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE));
42163 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED));
42164 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW));
42165 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL));
42166 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER));
42167 PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD));
42168 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE));
42169 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN));
42170 PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT));
42171 PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY));
42172 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL));
42173 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL));
42174 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS));
42175 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS));
42176 PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP));
42177 PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE));
42178 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL));
42179 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL));
42180 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS));
42181 PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS));
42182 PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT));
42183 PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP));
42184 PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT));
42185 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM));
42186 PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH));
42187 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE));
42188 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL));
42189 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL));
42190 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP));
42191 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE));
42192 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE));
42193 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER));
42194 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE));
42195 PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE));
42196 PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP));
42197 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM));
42198 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT));
42199 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT));
42200 PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK));
42201 PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO));
42202 PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL));
42203 PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES));
42204 PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO));
42205 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT));
42206 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT));
42207 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION));
42208 PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND));
42209 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION));
42210 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION));
42211 PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP));
42212 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK));
42213 PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK));
42214 PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING));
42215 PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR));
42216 PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD));
42217 PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD));
42218 PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET));
42219 PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP));
42220 PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE));
42221 PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP));
42222 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH));
42223 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT));
42224 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO));
42225 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING));
42226 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
42227 PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT));
42228 PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE));
42229 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH));
42230 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM));
42231 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW));
42232 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT));
42233 PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY));
42234 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR));
42235 PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST));
42236 PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN));
42237 PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE));
42238 PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW));
42239 PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE));
42240 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS));
42241 PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT));
42242 PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT));
42243 PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO));
42244 PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO));
42245 PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP));
42246 PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT));
42247 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP));
42248 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW));
42249 PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT));
42250 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS));
42251 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS));
42252 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES));
42253 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT));
42254 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL));
42255 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES));
42256 PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT));
42257 PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY));
42258 PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE));
42259 PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR));
42260 PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND));
42261 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE));
42262 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL));
42263 PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE));
42264 PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE));
42265 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL));
42266 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES));
42267 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS));
42268 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS));
42269 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS));
42270 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST));
42271 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE));
42272 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME));
42273 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE));
42274 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE));
42275 PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1));
42276 PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2));
42277 PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3));
42278 PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4));
42279 PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5));
42280 PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6));
42281 PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7));
42282 PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8));
42283 PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9));
42284 PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK));
42285 PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL));
42286 PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY));
42287 PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES));
42288 PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO));
42289 PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC));
42290 PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD));
42291 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD));
42292 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT));
42293 PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE));
42294 PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP));
42295 PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET));
42296 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP));
42297 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL));
42298 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL));
42299 PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT));
42300 PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY));
42301 PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE));
42302 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST));
42303 PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN));
42304 PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE));
42305 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY));
42306 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT));
42307 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST));
42308 PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE));
42309 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR));
42310 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT));
42311 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL));
42312 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT));
42313 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL));
42314 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE));
42315 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL));
42316 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT));
42317 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME));
42318 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME));
42319 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME));
42320 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON));
42321 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE));
42322 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF));
42323 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE));
42324 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
42325 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
42326 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL));
42327 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL));
42328 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
42329 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS));
42330 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT));
42331 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
42332 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE));
42333 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
42334 PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT));
42335 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC));
42336 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC));
42337 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH));
42338 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH));
42339 PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS));
42340 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC));
42341 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC));
42342 PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS));
42343 PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC));
42344 PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE));
42345 PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER));
42346 PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL));
42347 PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL));
42348 PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH));
42349 PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT));
42350 PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT));
42351 PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP));
42352 PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN));
42353 PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP));
42354 PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM));
42355 PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH));
42356 PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH));
42357 PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST));
42358 PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST));
42359 PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL));
42360 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT));
42361 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
42362 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
42363 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT));
42364 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP));
42365 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT));
42366 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM));
42367 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL));
42368 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL));
42369 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER));
42370 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE));
42371 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK));
42372 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT));
42373 PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK));
42374 PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
42375 PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
42376 PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
42377 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
42378 PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
42379 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
42380 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
42381 PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE));
42382 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC));
42383 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE));
42384 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED));
42385 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN));
42386 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE));
42387 PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK));
42388 PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT));
42389 PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE));
42390 PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN));
42391 PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT));
42392 PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS));
42393 PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN));
42394 PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE));
42395 PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE));
42396 PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED));
42397 PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL));
42398 PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT));
42399 PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD));
42400 PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC));
42401 PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT));
42402 PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID));
42403 PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT));
42404 PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH));
42405 PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH));
42406 PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH));
42407 PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH));
42408 PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT));
42409 PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE));
42410 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH));
42411 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH));
42412 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH));
42413 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH));
42414 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH));
42415 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH));
42416 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL));
42417 PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER));
42418 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND));
42419 PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND));
42420 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING));
42421 PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT));
42422 PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR));
42423 PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR));
42424 PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT));
42425 PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE));
42426 PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE));
42427 PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY));
42428 PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND));
42429 PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT));
42430 PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP));
42431 PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR));
42432 PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV));
42433 PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT));
42434 PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT));
42435 PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND));
42436 PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR));
42437 PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET));
42438 PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK));
42439 PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB));
42440 PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN));
42441 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE));
42442 PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE));
42443 PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE));
42444 PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START));
42445 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON));
42446 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON));
42447 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL));
42448 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON));
42449 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR));
42450 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT));
42451 PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT));
42452 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL));
42453 PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU));
42454 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE));
42455 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL));
42456 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR));
42457 PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT));
42458 PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END));
42459 PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME));
42460 PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT));
42461 PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP));
42462 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT));
42463 PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN));
42464 PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT));
42465 PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT));
42466 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE));
42467 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT));
42468 PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT));
42469 PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP));
42470 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0));
42471 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1));
42472 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2));
42473 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3));
42474 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4));
42475 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5));
42476 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6));
42477 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7));
42478 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8));
42479 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9));
42480 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY));
42481 PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD));
42482 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR));
42483 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT));
42484 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL));
42485 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE));
42486 PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1));
42487 PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2));
42488 PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3));
42489 PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4));
42490 PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5));
42491 PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6));
42492 PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7));
42493 PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8));
42494 PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9));
42495 PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10));
42496 PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11));
42497 PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12));
42498 PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13));
42499 PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14));
42500 PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15));
42501 PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16));
42502 PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17));
42503 PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18));
42504 PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19));
42505 PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20));
42506 PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21));
42507 PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22));
42508 PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23));
42509 PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24));
42510 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK));
42511 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL));
42512 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP));
42513 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN));
42514 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE));
42515 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB));
42516 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER));
42517 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1));
42518 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2));
42519 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3));
42520 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4));
42521 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME));
42522 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT));
42523 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP));
42524 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT));
42525 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN));
42526 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR));
42527 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP));
42528 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT));
42529 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN));
42530 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END));
42531 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN));
42532 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT));
42533 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE));
42534 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL));
42535 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY));
42536 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD));
42537 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR));
42538 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT));
42539 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL));
42540 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE));
42541 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT));
42542 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT));
42543 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU));
42544 PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE));
42545 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER));
42546 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL));
42547 PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4));
42548 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET));
42549 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET));
42550 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET));
42551 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL));
42552 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID));
42553 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER));
42554 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT));
42555 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE));
42556 PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3));
42557 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL));
42558 PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5));
42559 PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4));
42560 PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5));
42561 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO));
42562 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO));
42563 PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14));
42564 PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17));
42565 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE));
42566 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9));
42567 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10));
42568 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11));
42569 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12));
42570 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14));
42571 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL));
42572 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5));
42573 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3));
42574 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4));
42575 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6));
42576 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65));
42577 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4));
42578 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5));
42579 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6));
42580 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY));
42581 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH));
42582 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL));
42583 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US));
42584 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
42585 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
42586 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4));
42587 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
42588 PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11));
42589 PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11));
42590 PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11));
42591 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE));
42592 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA));
42593 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA));
42594 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA));
42595 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA));
42596 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
42597 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE));
42598 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
42599 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS));
42600 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS));
42601 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS));
42602 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS));
42603 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE));
42604 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE));
42605 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA));
42606 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA));
42607 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA));
42608 PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2));
42609 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE));
42610 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
42611 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX));
42612 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL));
42613 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL));
42614 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR));
42615 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL));
42616 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK));
42617 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO));
42618 PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX));
42619 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE));
42620 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST));
42621 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
42622 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
42623 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
42624 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
42625 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB));
42626 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1));
42627 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2));
42628 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST));
42629 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE));
42630 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE));
42631 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
42632 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
42633 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER));
42634 PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX));
42635 PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE));
42636 PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT));
42637 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL));
42638 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT));
42639 PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN));
42640 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE));
42641 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE));
42642 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE));
42643 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
42644 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
42645 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID));
42646 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP));
42647 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO));
42648 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR));
42649 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM));
42650 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
42651 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM));
42652 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
42653 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF));
42654 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF));
42655 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG));
42656 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG));
42657 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM));
42658 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX));
42659 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT));
42660 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON));
42661 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI));
42662 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF));
42663 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
42664 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY));
42665 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE));
42666 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW));
42667 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW));
42668 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE));
42669 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR));
42670 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS));
42671 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND));
42672 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM));
42673 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON));
42674 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER));
42675 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
42676 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY));
42677 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH));
42678 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL));
42679 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT));
42680 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT));
42681 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW));
42682 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON));
42683 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW));
42684 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS));
42685 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE));
42686 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE));
42687 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING));
42688 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN));
42689 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT));
42690 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH));
42691 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK));
42692 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT));
42693 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW));
42694 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT));
42695 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX));
42696 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
42697 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
42698 PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart));
42699 PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent));
42700 PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd));
42701
42702 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
42703
42704
42705 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
42706
42707 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
42708 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
42709 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
42710 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
42711 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
42712 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
42713 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
42714 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM));
42715 PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP));
42716 PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP));
42717 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY));
42718 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY));
42719 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED));
42720 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE));
42721 PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP));
42722 PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP));
42723 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW));
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,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL));
42848 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
42849 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
42850 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
42851 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG));
42852 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG));
42853 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS));
42854 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
42855 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
42856 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
42857 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
42858 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
42859 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
42860 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
42861 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX));
42862 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
42863 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
42864 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
42865 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
42866 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL));
42867 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
42868 PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft));
42869 PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop));
42870 PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight));
42871 PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom));
42872 PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth));
42873 PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight));
42874 PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre));
42875 PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter));
42876 PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX));
42877 PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY));
42878 PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained));
42879 PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs));
42880 PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf));
42881 PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove));
42882 PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow));
42883 PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf));
42884 PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf));
42885 PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs));
42886 PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute));
42887
42888 // Initialize threading, some globals and such
42889 __wxPyPreStart(d);
42890
42891
42892 // Although these are defined in __version__ they need to be here too so
42893 // that an assert can be done to ensure that the wxPython and the wxWindows
42894 // versions match.
42895 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
42896 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
42897 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
42898
42899 }
42900